blob: a8024c4e81d54d56b5ed3aeb299ec4e49f1cb3cd [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
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000759PANGOFT2_DELEGATE_FALSE
760PANGOFT2_DELEGATE_TRUE
761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872MAGICK_HDRI
873DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_LTDL_FALSE
875WITH_LTDL_TRUE
876WITH_MODULES_FALSE
877WITH_MODULES_TRUE
878WITH_SHARED_LIBS_FALSE
879WITH_SHARED_LIBS_TRUE
880LTDLOPEN
881LT_CONFIG_H
882CONVENIENCE_LTDL_FALSE
883CONVENIENCE_LTDL_TRUE
884INSTALL_LTDL_FALSE
885INSTALL_LTDL_TRUE
886ARGZ_H
887sys_symbol_underscore
888LIBADD_DL
889LT_DLPREOPEN
890LIBADD_DLD_LINK
891LIBADD_SHL_LOAD
892LIBADD_DLOPEN
893LT_DLLOADERS
894INCLTDL
895LTDLINCL
896LTDLDEPS
897LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000898LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000899CXXCPP
900OTOOL64
901OTOOL
902LIPO
903NMEDIT
904DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000905MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000906RANLIB
cristyda16f162011-02-19 23:52:17 +0000907ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000908AR
909NM
910ac_ct_DUMPBIN
911DUMPBIN
912LIBTOOL
913OBJDUMP
914DLLTOOL
915AS
cristy3ed852e2009-09-05 21:47:34 +0000916LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000917CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000918CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000919OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000920PTHREAD_CFLAGS
921PTHREAD_LIBS
922PTHREAD_CC
923ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000924SHAREARCH_DIR
925INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000926WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000927USING_CL_FALSE
928USING_CL_TRUE
929CYGWIN_BUILD_FALSE
930CYGWIN_BUILD_TRUE
931WIN32_NATIVE_BUILD_FALSE
932WIN32_NATIVE_BUILD_TRUE
933WINGDI32_DELEGATE_FALSE
934WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000935GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000937LN_S
cristy3ed852e2009-09-05 21:47:34 +0000938LD
cristy73bd4a52010-10-05 11:24:23 +0000939FGREP
940SED
941am__fastdepCXX_FALSE
942am__fastdepCXX_TRUE
943CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000944ac_ct_CXX
945CXXFLAGS
946CXX
cristya0b81c32010-01-22 02:54:33 +0000947EGREP
948GREP
949CPP
cristy73bd4a52010-10-05 11:24:23 +0000950am__fastdepCC_FALSE
951am__fastdepCC_TRUE
952CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000953am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000954AMDEPBACKSLASH
955AMDEP_FALSE
956AMDEP_TRUE
957am__quote
958am__include
959DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000960OBJEXT
961EXEEXT
962ac_ct_CC
963CPPFLAGS
964LDFLAGS
965CFLAGS
966CC
967DIRSEP
968MAGICK_FILTER_MODULE_PATH
969MAGICK_CONFIGURE_BUILD_PATH
970MAGICK_CONFIGURE_SRC_PATH
971MAGICK_CODER_MODULE_PATH
972MAN_DIR
973INFO_DIR
974PERSISTINCLUDE_DIR
975INCLUDE_DIR
976LIB_DIR
977LOCALSTATE_DIR
978SHAREDSTATE_DIR
979SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000980DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000981DATA_DIR
982LIBEXEC_DIR
983SBIN_DIR
984BIN_DIR
985EXEC_PREFIX_DIR
986PREFIX_DIR
987CONFIG_STATUS_DEPENDENCIES
988MAGICK_LIB_VERSION_NUMBER
989MAGICK_LIB_VERSION_TEXT
990MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000991AM_BACKSLASH
992AM_DEFAULT_VERBOSITY
993am__untar
994am__tar
995AMTAR
996am__leading_dot
997SET_MAKE
998AWK
999mkdir_p
1000MKDIR_P
1001INSTALL_STRIP_PROGRAM
1002STRIP
1003install_sh
1004MAKEINFO
1005AUTOHEADER
1006AUTOMAKE
1007AUTOCONF
1008ACLOCAL
1009VERSION
1010PACKAGE
1011CYGPATH_W
1012am__isrc
1013INSTALL_DATA
1014INSTALL_SCRIPT
1015INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001016PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001017PACKAGE_RELEASE_DATE
1018PACKAGE_LIB_VERSION_NUMBER
1019PACKAGE_LIB_VERSION
1020PACKAGE_CHANGE_DATE
1021PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001022PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001023MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001024MAGICK_LIBRARY_VERSION_INFO
1025MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001026MAGICK_LIBRARY_AGE
1027MAGICK_LIBRARY_REVISION
1028MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001029MAGICK_TARGET_OS
1030MAGICK_TARGET_VENDOR
1031MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001032target_os
1033target_vendor
1034target_cpu
1035target
1036host_os
1037host_vendor
1038host_cpu
1039host
1040build_os
1041build_vendor
1042build_cpu
1043build
1044CONFIGURE_ARGS
1045DISTCHECK_CONFIG_FLAGS
1046target_alias
1047host_alias
1048build_alias
1049LIBS
1050ECHO_T
1051ECHO_N
1052ECHO_C
1053DEFS
1054mandir
1055localedir
1056libdir
1057psdir
1058pdfdir
1059dvidir
1060htmldir
1061infodir
1062docdir
1063oldincludedir
1064includedir
1065localstatedir
1066sharedstatedir
1067sysconfdir
1068datadir
1069datarootdir
1070libexecdir
1071sbindir
1072bindir
1073program_transform_name
1074prefix
1075exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001076PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001077PACKAGE_BUGREPORT
1078PACKAGE_STRING
1079PACKAGE_VERSION
1080PACKAGE_TARNAME
1081PACKAGE_NAME
1082PATH_SEPARATOR
1083SHELL'
1084ac_subst_files=''
1085ac_user_opts='
1086enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001087enable_silent_rules
1088enable_dependency_tracking
1089with_gnu_ld
1090with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001091enable_bounds_checking
1092enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001093with_includearch_dir
1094with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001095with_threads
1096enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001097enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001098enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001099enable_shared
1100enable_static
1101with_pic
1102enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001103with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001104enable_libtool_lock
1105with_included_ltdl
1106with_ltdl_include
1107with_ltdl_lib
1108enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001109with_modules
1110enable_delegate_build
1111enable_deprecated
1112enable_installed
1113enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001114enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001115enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001116enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001117enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001118enable_ccmalloc
1119enable_efence
1120enable_prof
1121enable_gprof
1122enable_gcov
1123with_method_prefix
1124with_quantum_depth
1125with_cache
1126with_frozenpaths
1127with_magick_plus_plus
1128with_perl
1129with_perl_options
1130with_umem
1131with_libstdc
1132with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001133with_x
cristy3ed852e2009-09-05 21:47:34 +00001134with_zlib
1135with_autotrace
1136with_dps
1137with_djvu
cristy430a7312010-01-21 20:44:04 +00001138with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001139with_fftw
1140with_fpx
1141with_fontconfig
1142with_freetype
1143with_gslib
1144with_fontpath
1145with_gs_font_dir
1146with_gvc
1147with_jbig
1148with_jpeg
1149with_jp2
1150with_lcms
cristy71203402010-06-18 13:12:03 +00001151with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001152with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001153with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001154with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001155with_pango
cristy3ed852e2009-09-05 21:47:34 +00001156with_png
1157with_rsvg
1158with_tiff
cristyb1860752011-03-14 00:27:46 +00001159with_webp
cristy3ed852e2009-09-05 21:47:34 +00001160with_windows_font_dir
1161with_wmf
1162with_xml
1163'
1164 ac_precious_vars='build_alias
1165host_alias
1166target_alias
1167CC
1168CFLAGS
1169LDFLAGS
1170LIBS
1171CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001172CPP
cristy3ed852e2009-09-05 21:47:34 +00001173CXX
1174CXXFLAGS
1175CCC
cristy73bd4a52010-10-05 11:24:23 +00001176PKG_CONFIG
1177CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001178XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001179AUTOTRACE_CFLAGS
1180AUTOTRACE_LIBS
1181FONTCONFIG_CFLAGS
1182FONTCONFIG_LIBS
1183GVC_CFLAGS
1184GVC_LIBS
1185LQR_CFLAGS
1186LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001187LZMA_CFLAGS
1188LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001189OPENEXR_CFLAGS
1190OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001191PANGO_CFLAGS
1192PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001193RSVG_CFLAGS
1194RSVG_LIBS
1195CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001196CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001197
1198
1199# Initialize some variables set by options.
1200ac_init_help=
1201ac_init_version=false
1202ac_unrecognized_opts=
1203ac_unrecognized_sep=
1204# The variables have the same names as the options, with
1205# dashes changed to underlines.
1206cache_file=/dev/null
1207exec_prefix=NONE
1208no_create=
1209no_recursion=
1210prefix=NONE
1211program_prefix=NONE
1212program_suffix=NONE
1213program_transform_name=s,x,x,
1214silent=
1215site=
1216srcdir=
1217verbose=
1218x_includes=NONE
1219x_libraries=NONE
1220
1221# Installation directory options.
1222# These are left unexpanded so users can "make install exec_prefix=/foo"
1223# and all the variables that are supposed to be based on exec_prefix
1224# by default will actually change.
1225# Use braces instead of parens because sh, perl, etc. also accept them.
1226# (The list follows the same order as the GNU Coding Standards.)
1227bindir='${exec_prefix}/bin'
1228sbindir='${exec_prefix}/sbin'
1229libexecdir='${exec_prefix}/libexec'
1230datarootdir='${prefix}/share'
1231datadir='${datarootdir}'
1232sysconfdir='${prefix}/etc'
1233sharedstatedir='${prefix}/com'
1234localstatedir='${prefix}/var'
1235includedir='${prefix}/include'
1236oldincludedir='/usr/include'
1237docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1238infodir='${datarootdir}/info'
1239htmldir='${docdir}'
1240dvidir='${docdir}'
1241pdfdir='${docdir}'
1242psdir='${docdir}'
1243libdir='${exec_prefix}/lib'
1244localedir='${datarootdir}/locale'
1245mandir='${datarootdir}/man'
1246
1247ac_prev=
1248ac_dashdash=
1249for ac_option
1250do
1251 # If the previous option needs an argument, assign it.
1252 if test -n "$ac_prev"; then
1253 eval $ac_prev=\$ac_option
1254 ac_prev=
1255 continue
1256 fi
1257
1258 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001259 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1260 *=) ac_optarg= ;;
1261 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001262 esac
1263
1264 # Accept the important Cygnus configure options, so we can diagnose typos.
1265
1266 case $ac_dashdash$ac_option in
1267 --)
1268 ac_dashdash=yes ;;
1269
1270 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1271 ac_prev=bindir ;;
1272 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1273 bindir=$ac_optarg ;;
1274
1275 -build | --build | --buil | --bui | --bu)
1276 ac_prev=build_alias ;;
1277 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1278 build_alias=$ac_optarg ;;
1279
1280 -cache-file | --cache-file | --cache-fil | --cache-fi \
1281 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1282 ac_prev=cache_file ;;
1283 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1284 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1285 cache_file=$ac_optarg ;;
1286
1287 --config-cache | -C)
1288 cache_file=config.cache ;;
1289
1290 -datadir | --datadir | --datadi | --datad)
1291 ac_prev=datadir ;;
1292 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1293 datadir=$ac_optarg ;;
1294
1295 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1296 | --dataroo | --dataro | --datar)
1297 ac_prev=datarootdir ;;
1298 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1299 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1300 datarootdir=$ac_optarg ;;
1301
1302 -disable-* | --disable-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001306 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1310 *"
1311"enable_$ac_useropt"
1312"*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval enable_$ac_useropt=no ;;
1317
1318 -docdir | --docdir | --docdi | --doc | --do)
1319 ac_prev=docdir ;;
1320 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1321 docdir=$ac_optarg ;;
1322
1323 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1324 ac_prev=dvidir ;;
1325 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1326 dvidir=$ac_optarg ;;
1327
1328 -enable-* | --enable-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001332 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"enable_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval enable_$ac_useropt=\$ac_optarg ;;
1343
1344 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1345 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1346 | --exec | --exe | --ex)
1347 ac_prev=exec_prefix ;;
1348 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1349 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1350 | --exec=* | --exe=* | --ex=*)
1351 exec_prefix=$ac_optarg ;;
1352
1353 -gas | --gas | --ga | --g)
1354 # Obsolete; use --with-gas.
1355 with_gas=yes ;;
1356
1357 -help | --help | --hel | --he | -h)
1358 ac_init_help=long ;;
1359 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1360 ac_init_help=recursive ;;
1361 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1362 ac_init_help=short ;;
1363
1364 -host | --host | --hos | --ho)
1365 ac_prev=host_alias ;;
1366 -host=* | --host=* | --hos=* | --ho=*)
1367 host_alias=$ac_optarg ;;
1368
1369 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1370 ac_prev=htmldir ;;
1371 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1372 | --ht=*)
1373 htmldir=$ac_optarg ;;
1374
1375 -includedir | --includedir | --includedi | --included | --include \
1376 | --includ | --inclu | --incl | --inc)
1377 ac_prev=includedir ;;
1378 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1379 | --includ=* | --inclu=* | --incl=* | --inc=*)
1380 includedir=$ac_optarg ;;
1381
1382 -infodir | --infodir | --infodi | --infod | --info | --inf)
1383 ac_prev=infodir ;;
1384 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1385 infodir=$ac_optarg ;;
1386
1387 -libdir | --libdir | --libdi | --libd)
1388 ac_prev=libdir ;;
1389 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1390 libdir=$ac_optarg ;;
1391
1392 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1393 | --libexe | --libex | --libe)
1394 ac_prev=libexecdir ;;
1395 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1396 | --libexe=* | --libex=* | --libe=*)
1397 libexecdir=$ac_optarg ;;
1398
1399 -localedir | --localedir | --localedi | --localed | --locale)
1400 ac_prev=localedir ;;
1401 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1402 localedir=$ac_optarg ;;
1403
1404 -localstatedir | --localstatedir | --localstatedi | --localstated \
1405 | --localstate | --localstat | --localsta | --localst | --locals)
1406 ac_prev=localstatedir ;;
1407 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1408 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1409 localstatedir=$ac_optarg ;;
1410
1411 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1412 ac_prev=mandir ;;
1413 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1414 mandir=$ac_optarg ;;
1415
1416 -nfp | --nfp | --nf)
1417 # Obsolete; use --without-fp.
1418 with_fp=no ;;
1419
1420 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1421 | --no-cr | --no-c | -n)
1422 no_create=yes ;;
1423
1424 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1425 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1426 no_recursion=yes ;;
1427
1428 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1429 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1430 | --oldin | --oldi | --old | --ol | --o)
1431 ac_prev=oldincludedir ;;
1432 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1433 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1434 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1435 oldincludedir=$ac_optarg ;;
1436
1437 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1438 ac_prev=prefix ;;
1439 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1440 prefix=$ac_optarg ;;
1441
1442 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1443 | --program-pre | --program-pr | --program-p)
1444 ac_prev=program_prefix ;;
1445 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1446 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1447 program_prefix=$ac_optarg ;;
1448
1449 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1450 | --program-suf | --program-su | --program-s)
1451 ac_prev=program_suffix ;;
1452 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1453 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1454 program_suffix=$ac_optarg ;;
1455
1456 -program-transform-name | --program-transform-name \
1457 | --program-transform-nam | --program-transform-na \
1458 | --program-transform-n | --program-transform- \
1459 | --program-transform | --program-transfor \
1460 | --program-transfo | --program-transf \
1461 | --program-trans | --program-tran \
1462 | --progr-tra | --program-tr | --program-t)
1463 ac_prev=program_transform_name ;;
1464 -program-transform-name=* | --program-transform-name=* \
1465 | --program-transform-nam=* | --program-transform-na=* \
1466 | --program-transform-n=* | --program-transform-=* \
1467 | --program-transform=* | --program-transfor=* \
1468 | --program-transfo=* | --program-transf=* \
1469 | --program-trans=* | --program-tran=* \
1470 | --progr-tra=* | --program-tr=* | --program-t=*)
1471 program_transform_name=$ac_optarg ;;
1472
1473 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1474 ac_prev=pdfdir ;;
1475 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1476 pdfdir=$ac_optarg ;;
1477
1478 -psdir | --psdir | --psdi | --psd | --ps)
1479 ac_prev=psdir ;;
1480 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1481 psdir=$ac_optarg ;;
1482
1483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484 | -silent | --silent | --silen | --sile | --sil)
1485 silent=yes ;;
1486
1487 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1488 ac_prev=sbindir ;;
1489 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1490 | --sbi=* | --sb=*)
1491 sbindir=$ac_optarg ;;
1492
1493 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1494 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1495 | --sharedst | --shareds | --shared | --share | --shar \
1496 | --sha | --sh)
1497 ac_prev=sharedstatedir ;;
1498 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1499 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1500 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1501 | --sha=* | --sh=*)
1502 sharedstatedir=$ac_optarg ;;
1503
1504 -site | --site | --sit)
1505 ac_prev=site ;;
1506 -site=* | --site=* | --sit=*)
1507 site=$ac_optarg ;;
1508
1509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1510 ac_prev=srcdir ;;
1511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1512 srcdir=$ac_optarg ;;
1513
1514 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1515 | --syscon | --sysco | --sysc | --sys | --sy)
1516 ac_prev=sysconfdir ;;
1517 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1518 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1519 sysconfdir=$ac_optarg ;;
1520
1521 -target | --target | --targe | --targ | --tar | --ta | --t)
1522 ac_prev=target_alias ;;
1523 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1524 target_alias=$ac_optarg ;;
1525
1526 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1527 verbose=yes ;;
1528
1529 -version | --version | --versio | --versi | --vers | -V)
1530 ac_init_version=: ;;
1531
1532 -with-* | --with-*)
1533 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1534 # Reject names that are not valid shell variable names.
1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001536 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001537 ac_useropt_orig=$ac_useropt
1538 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539 case $ac_user_opts in
1540 *"
1541"with_$ac_useropt"
1542"*) ;;
1543 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1544 ac_unrecognized_sep=', ';;
1545 esac
1546 eval with_$ac_useropt=\$ac_optarg ;;
1547
1548 -without-* | --without-*)
1549 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1550 # Reject names that are not valid shell variable names.
1551 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001552 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001553 ac_useropt_orig=$ac_useropt
1554 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1555 case $ac_user_opts in
1556 *"
1557"with_$ac_useropt"
1558"*) ;;
1559 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1560 ac_unrecognized_sep=', ';;
1561 esac
1562 eval with_$ac_useropt=no ;;
1563
1564 --x)
1565 # Obsolete; use --with-x.
1566 with_x=yes ;;
1567
1568 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1569 | --x-incl | --x-inc | --x-in | --x-i)
1570 ac_prev=x_includes ;;
1571 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1572 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1573 x_includes=$ac_optarg ;;
1574
1575 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1576 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1577 ac_prev=x_libraries ;;
1578 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1579 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1580 x_libraries=$ac_optarg ;;
1581
cristy98dddb52010-11-04 00:30:15 +00001582 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1583Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001584 ;;
1585
1586 *=*)
1587 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1588 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001589 case $ac_envvar in #(
1590 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001591 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001592 esac
cristy3ed852e2009-09-05 21:47:34 +00001593 eval $ac_envvar=\$ac_optarg
1594 export $ac_envvar ;;
1595
1596 *)
1597 # FIXME: should be removed in autoconf 3.0.
1598 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1599 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1600 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001601 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001602 ;;
1603
1604 esac
1605done
1606
1607if test -n "$ac_prev"; then
1608 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001609 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001610fi
1611
1612if test -n "$ac_unrecognized_opts"; then
1613 case $enable_option_checking in
1614 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001615 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001616 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1617 esac
1618fi
1619
1620# Check all directory arguments for consistency.
1621for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1622 datadir sysconfdir sharedstatedir localstatedir includedir \
1623 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1624 libdir localedir mandir
1625do
1626 eval ac_val=\$$ac_var
1627 # Remove trailing slashes.
1628 case $ac_val in
1629 */ )
1630 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1631 eval $ac_var=\$ac_val;;
1632 esac
1633 # Be sure to have absolute directory names.
1634 case $ac_val in
1635 [\\/$]* | ?:[\\/]* ) continue;;
1636 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1637 esac
cristy98dddb52010-11-04 00:30:15 +00001638 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001639done
1640
1641# There might be people who depend on the old broken behavior: `$host'
1642# used to hold the argument of --host etc.
1643# FIXME: To remove some day.
1644build=$build_alias
1645host=$host_alias
1646target=$target_alias
1647
1648# FIXME: To remove some day.
1649if test "x$host_alias" != x; then
1650 if test "x$build_alias" = x; then
1651 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001652 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1653 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001654 elif test "x$build_alias" != "x$host_alias"; then
1655 cross_compiling=yes
1656 fi
1657fi
1658
1659ac_tool_prefix=
1660test -n "$host_alias" && ac_tool_prefix=$host_alias-
1661
1662test "$silent" = yes && exec 6>/dev/null
1663
1664
1665ac_pwd=`pwd` && test -n "$ac_pwd" &&
1666ac_ls_di=`ls -di .` &&
1667ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001668 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001669test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001670 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001671
1672
1673# Find the source files, if location was not specified.
1674if test -z "$srcdir"; then
1675 ac_srcdir_defaulted=yes
1676 # Try the directory containing this script, then the parent directory.
1677 ac_confdir=`$as_dirname -- "$as_myself" ||
1678$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1679 X"$as_myself" : 'X\(//\)[^/]' \| \
1680 X"$as_myself" : 'X\(//\)$' \| \
1681 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1682$as_echo X"$as_myself" |
1683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1684 s//\1/
1685 q
1686 }
1687 /^X\(\/\/\)[^/].*/{
1688 s//\1/
1689 q
1690 }
1691 /^X\(\/\/\)$/{
1692 s//\1/
1693 q
1694 }
1695 /^X\(\/\).*/{
1696 s//\1/
1697 q
1698 }
1699 s/.*/./; q'`
1700 srcdir=$ac_confdir
1701 if test ! -r "$srcdir/$ac_unique_file"; then
1702 srcdir=..
1703 fi
1704else
1705 ac_srcdir_defaulted=no
1706fi
1707if test ! -r "$srcdir/$ac_unique_file"; then
1708 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001709 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001710fi
1711ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1712ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001713 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001714 pwd)`
1715# When building in place, set srcdir=.
1716if test "$ac_abs_confdir" = "$ac_pwd"; then
1717 srcdir=.
1718fi
1719# Remove unnecessary trailing slashes from srcdir.
1720# Double slashes in file names in object file debugging info
1721# mess up M-x gdb in Emacs.
1722case $srcdir in
1723*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1724esac
1725for ac_var in $ac_precious_vars; do
1726 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1727 eval ac_env_${ac_var}_value=\$${ac_var}
1728 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1729 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1730done
1731
1732#
1733# Report the --help message.
1734#
1735if test "$ac_init_help" = "long"; then
1736 # Omit some internal or obsolete options to make the list less imposing.
1737 # This message is too long to be a string in the A/UX 3.1 sh.
1738 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001739\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001740
1741Usage: $0 [OPTION]... [VAR=VALUE]...
1742
1743To assign environment variables (e.g., CC, CFLAGS...), specify them as
1744VAR=VALUE. See below for descriptions of some of the useful variables.
1745
1746Defaults for the options are specified in brackets.
1747
1748Configuration:
1749 -h, --help display this help and exit
1750 --help=short display options specific to this package
1751 --help=recursive display the short help of all the included packages
1752 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001753 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001754 --cache-file=FILE cache test results in FILE [disabled]
1755 -C, --config-cache alias for \`--cache-file=config.cache'
1756 -n, --no-create do not create output files
1757 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1758
1759Installation directories:
1760 --prefix=PREFIX install architecture-independent files in PREFIX
1761 [$ac_default_prefix]
1762 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1763 [PREFIX]
1764
1765By default, \`make install' will install all the files in
1766\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1767an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1768for instance \`--prefix=\$HOME'.
1769
1770For better control, use the options below.
1771
1772Fine tuning of the installation directories:
1773 --bindir=DIR user executables [EPREFIX/bin]
1774 --sbindir=DIR system admin executables [EPREFIX/sbin]
1775 --libexecdir=DIR program executables [EPREFIX/libexec]
1776 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1777 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1778 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1779 --libdir=DIR object code libraries [EPREFIX/lib]
1780 --includedir=DIR C header files [PREFIX/include]
1781 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1782 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1783 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1784 --infodir=DIR info documentation [DATAROOTDIR/info]
1785 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1786 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001787 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001788 --htmldir=DIR html documentation [DOCDIR]
1789 --dvidir=DIR dvi documentation [DOCDIR]
1790 --pdfdir=DIR pdf documentation [DOCDIR]
1791 --psdir=DIR ps documentation [DOCDIR]
1792_ACEOF
1793
1794 cat <<\_ACEOF
1795
cristy73bd4a52010-10-05 11:24:23 +00001796Program names:
1797 --program-prefix=PREFIX prepend PREFIX to installed program names
1798 --program-suffix=SUFFIX append SUFFIX to installed program names
1799 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1800
cristy3ed852e2009-09-05 21:47:34 +00001801X features:
1802 --x-includes=DIR X include files are in DIR
1803 --x-libraries=DIR X library files are in DIR
1804
1805System types:
1806 --build=BUILD configure for building on BUILD [guessed]
1807 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1808 --target=TARGET configure for building compilers for TARGET [HOST]
1809_ACEOF
1810fi
1811
1812if test -n "$ac_init_help"; then
1813 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001814 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001815 esac
1816 cat <<\_ACEOF
1817
1818Optional Features:
1819 --disable-option-checking ignore unrecognized --enable/--with options
1820 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1821 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001822 --enable-silent-rules less verbose build output (undo: `make V=1')
1823 --disable-silent-rules verbose build output (undo: `make V=0')
1824 --disable-dependency-tracking speeds up one-time build
1825 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001826 --bounds-checking enable run-time bounds-checking
1827 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001828 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001829 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001830 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001831 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001832 --enable-shared[=PKGS] build shared libraries [default=yes]
1833 --enable-static[=PKGS] build static libraries [default=yes]
1834 --enable-fast-install[=PKGS]
1835 optimize for fast installation [default=yes]
1836 --disable-libtool-lock avoid locking (might break parallel builds)
1837 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001838 --enable-delegate-build look for delegate libraries in build directory
1839 --disable-deprecated exclude deprecated methods in MagickCore and
1840 MagickWand API's
1841 --disable-installed Formally install ImageMagick under PREFIX
1842 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001843 --enable-zero-configuration
1844 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001845 zero-configuration ImageMagick
1846 --enable-hdri accurately represent the wide range of intensity
1847 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001848 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001849 --enable-maintainer-mode enable make rules and dependencies not useful
1850 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001851 --enable-ccmalloc enable 'ccmalloc' memory debug support
1852 --enable-efence enable 'efence' memory debug support
1853 --enable-prof enable 'prof' profiling support
1854 --enable-gprof enable 'gprof' profiling support
1855 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001856 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001857
1858Optional Packages:
1859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001861 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001862 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy670aa3c2011-11-03 00:54:00 +00001863 --includearch-dir=DIR ARCH specific include directory
1864 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001865 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001866 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001867 both]
cristyda16f162011-02-19 23:52:17 +00001868 --with-sysroot=DIR Search for dependent libraries within DIR
1869 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001870 --with-included-ltdl use the GNU ltdl sources included here
1871 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1872 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001873 --with-modules enable building dynamically loadable modules
1874 --with-method-prefix=PREFIX
1875 prefix MagickCore API methods
1876 --with-quantum-depth=DEPTH
1877 number of bits in a pixel quantum (default 16)
1878 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1879 memory)
1880 --with-frozenpaths freeze delegate paths
1881 --without-magick-plus-plus
1882 disable build/install of Magick++
1883 --with-perl enable build/install of PerlMagick
1884 --with-perl-options=OPTIONS
1885 options to pass on command-line when generating
1886 PerlMagick's build file
1887 --with-umem enable umem memory allocation library support
1888 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1889 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001890 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001891 --without-zlib disable ZLIB support
1892 --with-autotrace enable autotrace support
1893 --without-dps disable Display Postscript support
1894 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001895 --with-dejavu-font-dir=DIR
1896 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-fftw disable FFTW support
1898 --without-fpx disable FlashPIX support
1899 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001900 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001901 --without-gslib enable Ghostscript library support
1902 --with-fontpath=DIR prepend to default font search path
1903 --with-gs-font-dir=DIR Ghostscript font directory
1904 --without-gvc disable GVC support
1905 --without-jbig disable JBIG support
1906 --without-jpeg disable JPEG support
1907 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001908 --without-lcms disable lcms (v1.1X) support
1909 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001910 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001911 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001912 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001913 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-png disable PNG support
1915 --without-rsvg disable RSVG support
1916 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001917 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-windows-font-dir=DIR
1919 directory containing MS-Windows fonts
1920 --without-wmf disable WMF support
1921 --without-xml disable XML support
1922
1923Some influential environment variables:
1924 CC C compiler command
1925 CFLAGS C compiler flags
1926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1927 nonstandard directory <lib dir>
1928 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001929 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001930 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001931 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001932 CXX C++ compiler command
1933 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001934 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001935 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001936 XMKMF Path to xmkmf, Makefile generator for X Window System
1937 AUTOTRACE_CFLAGS
1938 C compiler flags for AUTOTRACE, overriding pkg-config
1939 AUTOTRACE_LIBS
1940 linker flags for AUTOTRACE, overriding pkg-config
1941 FONTCONFIG_CFLAGS
1942 C compiler flags for FONTCONFIG, overriding pkg-config
1943 FONTCONFIG_LIBS
1944 linker flags for FONTCONFIG, overriding pkg-config
1945 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1946 GVC_LIBS linker flags for GVC, overriding pkg-config
1947 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1948 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001949 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1950 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001951 OPENEXR_CFLAGS
1952 C compiler flags for OPENEXR, overriding pkg-config
1953 OPENEXR_LIBS
1954 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001955 PANGO_CFLAGS
1956 C compiler flags for PANGO, overriding pkg-config
1957 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001958 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1959 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1960 CAIRO_SVG_CFLAGS
1961 C compiler flags for CAIRO_SVG, overriding pkg-config
1962 CAIRO_SVG_LIBS
1963 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001964
1965Use these variables to override the choices made by `configure' or to help
1966it to find libraries and programs with nonstandard names/locations.
1967
1968Report bugs to <http://www.imagemagick.org>.
1969_ACEOF
1970ac_status=$?
1971fi
1972
1973if test "$ac_init_help" = "recursive"; then
1974 # If there are subdirs, report their specific --help.
1975 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1976 test -d "$ac_dir" ||
1977 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1978 continue
1979 ac_builddir=.
1980
1981case "$ac_dir" in
1982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983*)
1984 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1985 # A ".." for each directory in $ac_dir_suffix.
1986 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1987 case $ac_top_builddir_sub in
1988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1990 esac ;;
1991esac
1992ac_abs_top_builddir=$ac_pwd
1993ac_abs_builddir=$ac_pwd$ac_dir_suffix
1994# for backward compatibility:
1995ac_top_builddir=$ac_top_build_prefix
1996
1997case $srcdir in
1998 .) # We are building in place.
1999 ac_srcdir=.
2000 ac_top_srcdir=$ac_top_builddir_sub
2001 ac_abs_top_srcdir=$ac_pwd ;;
2002 [\\/]* | ?:[\\/]* ) # Absolute name.
2003 ac_srcdir=$srcdir$ac_dir_suffix;
2004 ac_top_srcdir=$srcdir
2005 ac_abs_top_srcdir=$srcdir ;;
2006 *) # Relative name.
2007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2008 ac_top_srcdir=$ac_top_build_prefix$srcdir
2009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2010esac
2011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2012
2013 cd "$ac_dir" || { ac_status=$?; continue; }
2014 # Check for guested configure.
2015 if test -f "$ac_srcdir/configure.gnu"; then
2016 echo &&
2017 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2018 elif test -f "$ac_srcdir/configure"; then
2019 echo &&
2020 $SHELL "$ac_srcdir/configure" --help=recursive
2021 else
2022 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2023 fi || ac_status=$?
2024 cd "$ac_pwd" || { ac_status=$?; break; }
2025 done
2026fi
2027
2028test -n "$ac_init_help" && exit $ac_status
2029if $ac_init_version; then
2030 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002031ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002032generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002033
cristy98dddb52010-11-04 00:30:15 +00002034Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002035This configure script is free software; the Free Software Foundation
2036gives unlimited permission to copy, distribute and modify it.
2037_ACEOF
2038 exit
2039fi
cristy8b350f62009-11-15 23:12:43 +00002040
2041## ------------------------ ##
2042## Autoconf initialization. ##
2043## ------------------------ ##
2044
2045# ac_fn_c_try_compile LINENO
2046# --------------------------
2047# Try to compile conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_c_try_compile ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext
2052 if { { ac_try="$ac_compile"
2053case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_compile") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_c_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest.$ac_objext; then :
2071 ac_retval=0
2072else
2073 $as_echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_retval=1
2077fi
cristyda16f162011-02-19 23:52:17 +00002078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002079 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002080
2081} # ac_fn_c_try_compile
2082
cristy95646052009-11-28 23:05:30 +00002083# ac_fn_c_try_cpp LINENO
2084# ----------------------
2085# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_c_try_cpp ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095$as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 ac_status=$?
2098 if test -s conftest.err; then
2099 grep -v '^ *+' conftest.err >conftest.er1
2100 cat conftest.er1 >&5
2101 mv -f conftest.er1 conftest.err
2102 fi
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002104 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2106 test ! -s conftest.err
2107 }; then :
2108 ac_retval=0
2109else
2110 $as_echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 ac_retval=1
2114fi
cristyda16f162011-02-19 23:52:17 +00002115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002116 as_fn_set_status $ac_retval
2117
2118} # ac_fn_c_try_cpp
2119
cristy8b350f62009-11-15 23:12:43 +00002120# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121# -------------------------------------------------------
2122# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123# the include files in INCLUDES and setting the cache variable VAR
2124# accordingly.
2125ac_fn_c_check_header_mongrel ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002128 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002131if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002132 $as_echo_n "(cached) " >&6
2133fi
2134eval ac_res=\$$3
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137else
2138 # Is the header compilable?
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140$as_echo_n "checking $2 usability... " >&6; }
2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144#include <$2>
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_header_compiler=yes
2148else
2149 ac_header_compiler=no
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153$as_echo "$ac_header_compiler" >&6; }
2154
2155# Is the header present?
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157$as_echo_n "checking $2 presence... " >&6; }
2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160#include <$2>
2161_ACEOF
2162if ac_fn_c_try_cpp "$LINENO"; then :
2163 ac_header_preproc=yes
2164else
2165 ac_header_preproc=no
2166fi
cristyda16f162011-02-19 23:52:17 +00002167rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169$as_echo "$ac_header_preproc" >&6; }
2170
2171# So? What about this header?
2172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173 yes:no: )
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ;;
2179 no:yes:* )
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2183$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2187$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002190( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002191## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002192## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002193 ) | sed "s/^/$as_me: WARNING: /" >&2
2194 ;;
2195esac
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002198if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002199 $as_echo_n "(cached) " >&6
2200else
2201 eval "$3=\$ac_header_compiler"
2202fi
2203eval ac_res=\$$3
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205$as_echo "$ac_res" >&6; }
2206fi
cristyda16f162011-02-19 23:52:17 +00002207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002208
2209} # ac_fn_c_check_header_mongrel
2210
2211# ac_fn_c_try_run LINENO
2212# ----------------------
2213# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2214# that executables *can* be run.
2215ac_fn_c_try_run ()
2216{
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if { { ac_try="$ac_link"
2219case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224$as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_link") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2229 { { case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_try") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; }; }; then :
2239 ac_retval=0
2240else
2241 $as_echo "$as_me: program exited with status $ac_status" >&5
2242 $as_echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 ac_retval=$ac_status
2246fi
2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002249 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002250
2251} # ac_fn_c_try_run
2252
2253# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2254# -------------------------------------------------------
2255# Tests whether HEADER exists and can be compiled using the include files in
2256# INCLUDES, setting the cache variable VAR accordingly.
2257ac_fn_c_check_header_compile ()
2258{
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002262if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002263 $as_echo_n "(cached) " >&6
2264else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268#include <$2>
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 eval "$3=yes"
2272else
2273 eval "$3=no"
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002281
2282} # ac_fn_c_check_header_compile
2283
cristya0b81c32010-01-22 02:54:33 +00002284# ac_fn_cxx_try_compile LINENO
2285# ----------------------------
2286# Try to compile conftest.$ac_ext, and return whether this succeeded.
2287ac_fn_cxx_try_compile ()
2288{
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2292case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295esac
2296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297$as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2299 ac_status=$?
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2304 fi
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_cxx_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 ac_retval=1
2316fi
cristyda16f162011-02-19 23:52:17 +00002317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002318 as_fn_set_status $ac_retval
2319
2320} # ac_fn_cxx_try_compile
2321
cristy8b350f62009-11-15 23:12:43 +00002322# ac_fn_c_try_link LINENO
2323# -----------------------
2324# Try to link conftest.$ac_ext, and return whether this succeeded.
2325ac_fn_c_try_link ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext conftest$ac_exeext
2329 if { { ac_try="$ac_link"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335$as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_link") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_c_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest$ac_exeext && {
2348 test "$cross_compiling" = yes ||
2349 $as_test_x conftest$ac_exeext
2350 }; then :
2351 ac_retval=0
2352else
2353 $as_echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_retval=1
2357fi
2358 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2359 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2360 # interfere with the next link command; also delete a directory that is
2361 # left behind by Apple's compiler. We do this before executing the actions.
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002364 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002365
2366} # ac_fn_c_try_link
2367
cristy73bd4a52010-10-05 11:24:23 +00002368# ac_fn_c_check_func LINENO FUNC VAR
2369# ----------------------------------
2370# Tests whether FUNC exists, setting the cache variable VAR accordingly
2371ac_fn_c_check_func ()
2372{
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002376if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002377 $as_echo_n "(cached) " >&6
2378else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380/* end confdefs.h. */
2381/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2383#define $2 innocuous_$2
2384
2385/* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $2 (); below.
2387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2388 <limits.h> exists even on freestanding compilers. */
2389
2390#ifdef __STDC__
2391# include <limits.h>
2392#else
2393# include <assert.h>
2394#endif
2395
2396#undef $2
2397
2398/* Override any GCC internal prototype to avoid an error.
2399 Use char because int might match the return type of a GCC
2400 builtin and then its argument prototype would still apply. */
2401#ifdef __cplusplus
2402extern "C"
2403#endif
2404char $2 ();
2405/* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408#if defined __stub_$2 || defined __stub___$2
2409choke me
2410#endif
2411
2412int
2413main ()
2414{
2415return $2 ();
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420if ac_fn_c_try_link "$LINENO"; then :
2421 eval "$3=yes"
2422else
2423 eval "$3=no"
2424fi
2425rm -f core conftest.err conftest.$ac_objext \
2426 conftest$ac_exeext conftest.$ac_ext
2427fi
2428eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002432
2433} # ac_fn_c_check_func
2434
2435# ac_fn_cxx_try_cpp LINENO
2436# ------------------------
2437# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2438ac_fn_cxx_try_cpp ()
2439{
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 if { { ac_try="$ac_cpp conftest.$ac_ext"
2442case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447$as_echo "$ac_try_echo"; } >&5
2448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2449 ac_status=$?
2450 if test -s conftest.err; then
2451 grep -v '^ *+' conftest.err >conftest.er1
2452 cat conftest.er1 >&5
2453 mv -f conftest.er1 conftest.err
2454 fi
2455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002456 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002457 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2458 test ! -s conftest.err
2459 }; then :
2460 ac_retval=0
2461else
2462 $as_echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_retval=1
2466fi
cristyda16f162011-02-19 23:52:17 +00002467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002468 as_fn_set_status $ac_retval
2469
2470} # ac_fn_cxx_try_cpp
2471
2472# ac_fn_cxx_try_link LINENO
2473# -------------------------
2474# Try to link conftest.$ac_ext, and return whether this succeeded.
2475ac_fn_cxx_try_link ()
2476{
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { { ac_try="$ac_link"
2480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_link") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2492 fi
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; } && {
2495 test -z "$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 } && test -s conftest$ac_exeext && {
2498 test "$cross_compiling" = yes ||
2499 $as_test_x conftest$ac_exeext
2500 }; then :
2501 ac_retval=0
2502else
2503 $as_echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507fi
2508 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2509 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2510 # interfere with the next link command; also delete a directory that is
2511 # left behind by Apple's compiler. We do this before executing the actions.
2512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002514 as_fn_set_status $ac_retval
2515
2516} # ac_fn_cxx_try_link
2517
cristy98dddb52010-11-04 00:30:15 +00002518# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2519# ---------------------------------------------
2520# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2521# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002522ac_fn_c_check_decl ()
2523{
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002525 as_decl_name=`echo $2|sed 's/ *(.*//'`
2526 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2528$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002529if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002530 $as_echo_n "(cached) " >&6
2531else
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
cristy98dddb52010-11-04 00:30:15 +00002538#ifndef $as_decl_name
2539#ifdef __cplusplus
2540 (void) $as_decl_use;
2541#else
2542 (void) $as_decl_name;
2543#endif
cristy73bd4a52010-10-05 11:24:23 +00002544#endif
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550if ac_fn_c_try_compile "$LINENO"; then :
2551 eval "$3=yes"
2552else
2553 eval "$3=no"
2554fi
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
2557eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002561
2562} # ac_fn_c_check_decl
2563
cristy8b350f62009-11-15 23:12:43 +00002564# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2565# -------------------------------------------
2566# Tests whether TYPE exists after having included INCLUDES, setting cache
2567# variable VAR accordingly.
2568ac_fn_c_check_type ()
2569{
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002573if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002574 $as_echo_n "(cached) " >&6
2575else
2576 eval "$3=no"
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578/* end confdefs.h. */
2579$4
2580int
2581main ()
2582{
2583if (sizeof ($2))
2584 return 0;
2585 ;
2586 return 0;
2587}
2588_ACEOF
2589if ac_fn_c_try_compile "$LINENO"; then :
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591/* end confdefs.h. */
2592$4
2593int
2594main ()
2595{
2596if (sizeof (($2)))
2597 return 0;
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603
2604else
2605 eval "$3=yes"
2606fi
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611eval ac_res=\$$3
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002615
2616} # ac_fn_c_check_type
2617
cristy92703d82010-04-26 00:18:18 +00002618# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2619# ----------------------------------------------------
2620# Tries to find if the field MEMBER exists in type AGGR, after including
2621# INCLUDES, setting cache variable VAR accordingly.
2622ac_fn_c_check_member ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2626$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002627if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002628 $as_echo_n "(cached) " >&6
2629else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632$5
2633int
2634main ()
2635{
2636static $2 ac_aggr;
2637if (ac_aggr.$3)
2638return 0;
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643if ac_fn_c_try_compile "$LINENO"; then :
2644 eval "$4=yes"
2645else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$5
2649int
2650main ()
2651{
2652static $2 ac_aggr;
2653if (sizeof ac_aggr.$3)
2654return 0;
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_compile "$LINENO"; then :
2660 eval "$4=yes"
2661else
2662 eval "$4=no"
2663fi
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667fi
2668eval ac_res=\$$4
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002672
2673} # ac_fn_c_check_member
2674
cristy501c8042011-05-26 17:46:28 +00002675# ac_fn_c_find_intX_t LINENO BITS VAR
2676# -----------------------------------
2677# Finds a signed integer type with width BITS, setting cache variable VAR
2678# accordingly.
2679ac_fn_c_find_intX_t ()
2680{
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2683$as_echo_n "checking for int$2_t... " >&6; }
2684if eval \${$3+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 eval "$3=no"
2688 # Order is important - never check a type that is potentially smaller
2689 # than half of the expected target width.
2690 for ac_type in int$2_t 'int' 'long int' \
2691 'long long int' 'short int' 'signed char'; do
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693/* end confdefs.h. */
2694$ac_includes_default
2695 enum { N = $2 / 2 - 1 };
2696int
2697main ()
2698{
2699static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2700test_array [0] = 0
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$ac_includes_default
2710 enum { N = $2 / 2 - 1 };
2711int
2712main ()
2713{
2714static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2715 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2716test_array [0] = 0
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723
2724else
2725 case $ac_type in #(
2726 int$2_t) :
2727 eval "$3=yes" ;; #(
2728 *) :
2729 eval "$3=\$ac_type" ;;
2730esac
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 if eval test \"x\$"$3"\" = x"no"; then :
2736
2737else
2738 break
2739fi
2740 done
2741fi
2742eval ac_res=\$$3
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744$as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746
2747} # ac_fn_c_find_intX_t
2748
2749# ac_fn_c_find_uintX_t LINENO BITS VAR
2750# ------------------------------------
2751# Finds an unsigned integer type with width BITS, setting cache variable VAR
2752# accordingly.
2753ac_fn_c_find_uintX_t ()
2754{
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2757$as_echo_n "checking for uint$2_t... " >&6; }
2758if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760else
2761 eval "$3=no"
2762 # Order is important - never check a type that is potentially smaller
2763 # than half of the expected target width.
2764 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2765 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767/* end confdefs.h. */
2768$ac_includes_default
2769int
2770main ()
2771{
2772static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2773test_array [0] = 0
2774
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779if ac_fn_c_try_compile "$LINENO"; then :
2780 case $ac_type in #(
2781 uint$2_t) :
2782 eval "$3=yes" ;; #(
2783 *) :
2784 eval "$3=\$ac_type" ;;
2785esac
2786fi
2787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 if eval test \"x\$"$3"\" = x"no"; then :
2789
2790else
2791 break
2792fi
2793 done
2794fi
2795eval ac_res=\$$3
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797$as_echo "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799
2800} # ac_fn_c_find_uintX_t
2801
cristy8b350f62009-11-15 23:12:43 +00002802# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2803# --------------------------------------------
2804# Tries to find the compile-time value of EXPR in a program that includes
2805# INCLUDES, setting VAR accordingly. Returns whether the value could be
2806# computed
2807ac_fn_c_compute_int ()
2808{
2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2810 if test "$cross_compiling" = yes; then
2811 # Depending upon the size, compute the lo and hi bounds.
2812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813/* end confdefs.h. */
2814$4
2815int
2816main ()
2817{
2818static int test_array [1 - 2 * !(($2) >= 0)];
2819test_array [0] = 0
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825if ac_fn_c_try_compile "$LINENO"; then :
2826 ac_lo=0 ac_mid=0
2827 while :; do
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$4
2831int
2832main ()
2833{
2834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2835test_array [0] = 0
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_hi=$ac_mid; break
2843else
2844 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2845 if test $ac_lo -le $ac_mid; then
2846 ac_lo= ac_hi=
2847 break
2848 fi
2849 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 done
2853else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$4
2857int
2858main ()
2859{
2860static int test_array [1 - 2 * !(($2) < 0)];
2861test_array [0] = 0
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_hi=-1 ac_mid=-1
2869 while :; do
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
2872$4
2873int
2874main ()
2875{
2876static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2877test_array [0] = 0
2878
2879 ;
2880 return 0;
2881}
2882_ACEOF
2883if ac_fn_c_try_compile "$LINENO"; then :
2884 ac_lo=$ac_mid; break
2885else
2886 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2887 if test $ac_mid -le $ac_hi; then
2888 ac_lo= ac_hi=
2889 break
2890 fi
2891 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2892fi
2893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 done
2895else
2896 ac_lo= ac_hi=
2897fi
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899fi
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901# Binary search between lo and hi bounds.
2902while test "x$ac_lo" != "x$ac_hi"; do
2903 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906$4
2907int
2908main ()
2909{
2910static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2911test_array [0] = 0
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_hi=$ac_mid
2919else
2920 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923done
2924case $ac_lo in #((
2925?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2926'') ac_retval=1 ;;
2927esac
2928 else
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h. */
2931$4
2932static long int longval () { return $2; }
2933static unsigned long int ulongval () { return $2; }
2934#include <stdio.h>
2935#include <stdlib.h>
2936int
2937main ()
2938{
2939
2940 FILE *f = fopen ("conftest.val", "w");
2941 if (! f)
2942 return 1;
2943 if (($2) < 0)
2944 {
2945 long int i = longval ();
2946 if (i != ($2))
2947 return 1;
2948 fprintf (f, "%ld", i);
2949 }
2950 else
2951 {
2952 unsigned long int i = ulongval ();
2953 if (i != ($2))
2954 return 1;
2955 fprintf (f, "%lu", i);
2956 }
2957 /* Do not output a trailing newline, as this causes \r\n confusion
2958 on some platforms. */
2959 return ferror (f) || fclose (f) != 0;
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965if ac_fn_c_try_run "$LINENO"; then :
2966 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2967else
2968 ac_retval=1
2969fi
2970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2971 conftest.$ac_objext conftest.beam conftest.$ac_ext
2972rm -f conftest.val
2973
2974 fi
cristyda16f162011-02-19 23:52:17 +00002975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002976 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002977
2978} # ac_fn_c_compute_int
2979
2980# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2981# ---------------------------------------------------------
2982# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2983# the include files in INCLUDES and setting the cache variable VAR
2984# accordingly.
2985ac_fn_cxx_check_header_mongrel ()
2986{
2987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002988 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2990$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002991if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002992 $as_echo_n "(cached) " >&6
2993fi
2994eval ac_res=\$$3
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2996$as_echo "$ac_res" >&6; }
2997else
2998 # Is the header compilable?
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3000$as_echo_n "checking $2 usability... " >&6; }
3001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h. */
3003$4
3004#include <$2>
3005_ACEOF
3006if ac_fn_cxx_try_compile "$LINENO"; then :
3007 ac_header_compiler=yes
3008else
3009 ac_header_compiler=no
3010fi
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3013$as_echo "$ac_header_compiler" >&6; }
3014
3015# Is the header present?
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3017$as_echo_n "checking $2 presence... " >&6; }
3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h. */
3020#include <$2>
3021_ACEOF
3022if ac_fn_cxx_try_cpp "$LINENO"; then :
3023 ac_header_preproc=yes
3024else
3025 ac_header_preproc=no
3026fi
cristyda16f162011-02-19 23:52:17 +00003027rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3029$as_echo "$ac_header_preproc" >&6; }
3030
3031# So? What about this header?
3032case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3033 yes:no: )
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3035$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3037$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3038 ;;
3039 no:yes:* )
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3041$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3043$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3045$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3047$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003050( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003051## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003052## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003053 ) | sed "s/^/$as_me: WARNING: /" >&2
3054 ;;
3055esac
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3057$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003058if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003059 $as_echo_n "(cached) " >&6
3060else
3061 eval "$3=\$ac_header_compiler"
3062fi
3063eval ac_res=\$$3
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065$as_echo "$ac_res" >&6; }
3066fi
cristyda16f162011-02-19 23:52:17 +00003067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003068
3069} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003070cat >config.log <<_ACEOF
3071This file contains any messages produced by compilers while
3072running configure, to aid debugging if configure makes a mistake.
3073
cristy29eb34e2011-10-16 00:46:08 +00003074It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003075generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003076
3077 $ $0 $@
3078
3079_ACEOF
3080exec 5>>config.log
3081{
3082cat <<_ASUNAME
3083## --------- ##
3084## Platform. ##
3085## --------- ##
3086
3087hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3088uname -m = `(uname -m) 2>/dev/null || echo unknown`
3089uname -r = `(uname -r) 2>/dev/null || echo unknown`
3090uname -s = `(uname -s) 2>/dev/null || echo unknown`
3091uname -v = `(uname -v) 2>/dev/null || echo unknown`
3092
3093/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3094/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3095
3096/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3097/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3098/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3099/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3100/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3101/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3102/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3103
3104_ASUNAME
3105
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003111 $as_echo "PATH: $as_dir"
3112 done
cristy3ed852e2009-09-05 21:47:34 +00003113IFS=$as_save_IFS
3114
3115} >&5
3116
3117cat >&5 <<_ACEOF
3118
3119
3120## ----------- ##
3121## Core tests. ##
3122## ----------- ##
3123
3124_ACEOF
3125
3126
3127# Keep a trace of the command line.
3128# Strip out --no-create and --no-recursion so they do not pile up.
3129# Strip out --silent because we don't want to record it for future runs.
3130# Also quote any args containing shell meta-characters.
3131# Make two passes to allow for proper duplicate-argument suppression.
3132ac_configure_args=
3133ac_configure_args0=
3134ac_configure_args1=
3135ac_must_keep_next=false
3136for ac_pass in 1 2
3137do
3138 for ac_arg
3139 do
3140 case $ac_arg in
3141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3143 | -silent | --silent | --silen | --sile | --sil)
3144 continue ;;
3145 *\'*)
3146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 esac
3148 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003150 2)
cristy8b350f62009-11-15 23:12:43 +00003151 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003152 if test $ac_must_keep_next = true; then
3153 ac_must_keep_next=false # Got value, back to normal.
3154 else
3155 case $ac_arg in
3156 *=* | --config-cache | -C | -disable-* | --disable-* \
3157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3159 | -with-* | --with-* | -without-* | --without-* | --x)
3160 case "$ac_configure_args0 " in
3161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3162 esac
3163 ;;
3164 -* ) ac_must_keep_next=true ;;
3165 esac
3166 fi
cristy8b350f62009-11-15 23:12:43 +00003167 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003168 ;;
3169 esac
3170 done
3171done
cristy8b350f62009-11-15 23:12:43 +00003172{ ac_configure_args0=; unset ac_configure_args0;}
3173{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003174
3175# When interrupted or exit'd, cleanup temporary files, and complete
3176# config.log. We remove comments because anyway the quotes in there
3177# would cause problems or look ugly.
3178# WARNING: Use '\'' to represent an apostrophe within the trap.
3179# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3180trap 'exit_status=$?
3181 # Save into config.log some information that might help in debugging.
3182 {
3183 echo
3184
cristy98dddb52010-11-04 00:30:15 +00003185 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003186## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003187## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003188 echo
3189 # The following way of writing the cache mishandles newlines in values,
3190(
3191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3192 eval ac_val=\$$ac_var
3193 case $ac_val in #(
3194 *${as_nl}*)
3195 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3198 esac
3199 case $ac_var in #(
3200 _ | IFS | as_nl) ;; #(
3201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003202 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003203 esac ;;
3204 esac
3205 done
3206 (set) 2>&1 |
3207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3208 *${as_nl}ac_space=\ *)
3209 sed -n \
3210 "s/'\''/'\''\\\\'\'''\''/g;
3211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3212 ;; #(
3213 *)
3214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3215 ;;
3216 esac |
3217 sort
3218)
3219 echo
3220
cristy98dddb52010-11-04 00:30:15 +00003221 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003222## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003223## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003224 echo
3225 for ac_var in $ac_subst_vars
3226 do
3227 eval ac_val=\$$ac_var
3228 case $ac_val in
3229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3230 esac
3231 $as_echo "$ac_var='\''$ac_val'\''"
3232 done | sort
3233 echo
3234
3235 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003236 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003237## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003238## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003239 echo
3240 for ac_var in $ac_subst_files
3241 do
3242 eval ac_val=\$$ac_var
3243 case $ac_val in
3244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245 esac
3246 $as_echo "$ac_var='\''$ac_val'\''"
3247 done | sort
3248 echo
3249 fi
3250
3251 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003252 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003253## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003254## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003255 echo
3256 cat confdefs.h
3257 echo
3258 fi
3259 test "$ac_signal" != 0 &&
3260 $as_echo "$as_me: caught signal $ac_signal"
3261 $as_echo "$as_me: exit $exit_status"
3262 } >&5
3263 rm -f core *.core core.conftest.* &&
3264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3265 exit $exit_status
3266' 0
3267for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003269done
3270ac_signal=0
3271
3272# confdefs.h avoids OS command line length limits that DEFS can exceed.
3273rm -f -r conftest* confdefs.h
3274
cristy8b350f62009-11-15 23:12:43 +00003275$as_echo "/* confdefs.h */" > confdefs.h
3276
cristy3ed852e2009-09-05 21:47:34 +00003277# Predefined preprocessor variables.
3278
3279cat >>confdefs.h <<_ACEOF
3280#define PACKAGE_NAME "$PACKAGE_NAME"
3281_ACEOF
3282
cristy3ed852e2009-09-05 21:47:34 +00003283cat >>confdefs.h <<_ACEOF
3284#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3285_ACEOF
3286
cristy3ed852e2009-09-05 21:47:34 +00003287cat >>confdefs.h <<_ACEOF
3288#define PACKAGE_VERSION "$PACKAGE_VERSION"
3289_ACEOF
3290
cristy3ed852e2009-09-05 21:47:34 +00003291cat >>confdefs.h <<_ACEOF
3292#define PACKAGE_STRING "$PACKAGE_STRING"
3293_ACEOF
3294
cristy3ed852e2009-09-05 21:47:34 +00003295cat >>confdefs.h <<_ACEOF
3296#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3297_ACEOF
3298
cristy8b350f62009-11-15 23:12:43 +00003299cat >>confdefs.h <<_ACEOF
3300#define PACKAGE_URL "$PACKAGE_URL"
3301_ACEOF
3302
cristy3ed852e2009-09-05 21:47:34 +00003303
3304# Let the site file select an alternate cache file if it wants to.
3305# Prefer an explicitly selected file to automatically selected ones.
3306ac_site_file1=NONE
3307ac_site_file2=NONE
3308if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003309 # We do not want a PATH search for config.site.
3310 case $CONFIG_SITE in #((
3311 -*) ac_site_file1=./$CONFIG_SITE;;
3312 */*) ac_site_file1=$CONFIG_SITE;;
3313 *) ac_site_file1=./$CONFIG_SITE;;
3314 esac
cristy3ed852e2009-09-05 21:47:34 +00003315elif test "x$prefix" != xNONE; then
3316 ac_site_file1=$prefix/share/config.site
3317 ac_site_file2=$prefix/etc/config.site
3318else
3319 ac_site_file1=$ac_default_prefix/share/config.site
3320 ac_site_file2=$ac_default_prefix/etc/config.site
3321fi
3322for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3323do
3324 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003327$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3328 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003329 . "$ac_site_file" \
3330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332as_fn_error $? "failed to load site script $ac_site_file
3333See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003334 fi
3335done
3336
3337if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003338 # Some versions of bash will fail to source /dev/null (special files
3339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003342$as_echo "$as_me: loading cache $cache_file" >&6;}
3343 case $cache_file in
3344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3345 *) . "./$cache_file";;
3346 esac
3347 fi
3348else
cristy8b350f62009-11-15 23:12:43 +00003349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003350$as_echo "$as_me: creating cache $cache_file" >&6;}
3351 >$cache_file
3352fi
3353
cristycd4c5312009-11-22 01:19:08 +00003354as_fn_append ac_header_list " stdlib.h"
3355as_fn_append ac_header_list " unistd.h"
3356as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003357# Check that the precious variables saved in the cache have kept the same
3358# value.
3359ac_cache_corrupted=false
3360for ac_var in $ac_precious_vars; do
3361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3362 eval ac_new_set=\$ac_env_${ac_var}_set
3363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3364 eval ac_new_val=\$ac_env_${ac_var}_value
3365 case $ac_old_set,$ac_new_set in
3366 set,)
cristy8b350f62009-11-15 23:12:43 +00003367 { $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 +00003368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3369 ac_cache_corrupted=: ;;
3370 ,set)
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3373 ac_cache_corrupted=: ;;
3374 ,);;
3375 *)
3376 if test "x$ac_old_val" != "x$ac_new_val"; then
3377 # differences in whitespace do not lead to failure.
3378 ac_old_val_w=`echo x $ac_old_val`
3379 ac_new_val_w=`echo x $ac_new_val`
3380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3383 ac_cache_corrupted=:
3384 else
cristy8b350f62009-11-15 23:12:43 +00003385 { $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 +00003386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3387 eval $ac_var=\$ac_old_val
3388 fi
cristy8b350f62009-11-15 23:12:43 +00003389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3393 fi;;
3394 esac
3395 # Pass precious variables to config.status.
3396 if test "$ac_new_set" = set; then
3397 case $ac_new_val in
3398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3399 *) ac_arg=$ac_var=$ac_new_val ;;
3400 esac
3401 case " $ac_configure_args " in
3402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003404 esac
3405 fi
3406done
3407if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003413fi
cristy8b350f62009-11-15 23:12:43 +00003414## -------------------- ##
3415## Main body of script. ##
3416## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425
3426ac_aux_dir=
3427for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003428 if test -f "$ac_dir/install-sh"; then
3429 ac_aux_dir=$ac_dir
3430 ac_install_sh="$ac_aux_dir/install-sh -c"
3431 break
3432 elif test -f "$ac_dir/install.sh"; then
3433 ac_aux_dir=$ac_dir
3434 ac_install_sh="$ac_aux_dir/install.sh -c"
3435 break
3436 elif test -f "$ac_dir/shtool"; then
3437 ac_aux_dir=$ac_dir
3438 ac_install_sh="$ac_aux_dir/shtool install -c"
3439 break
3440 fi
cristy3ed852e2009-09-05 21:47:34 +00003441done
3442if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003443 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444fi
3445
3446# These three variables are undocumented and unsupported,
3447# and are intended to be withdrawn in a future Autoconf release.
3448# They can cause serious problems if a builder's source tree is in a directory
3449# whose full name contains unusual characters.
3450ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3451ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3452ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3453
3454
3455
3456
3457ac_config_headers="$ac_config_headers config/config.h"
3458
cristy24fc1fe2010-10-23 21:13:01 +00003459
cristy4c08aed2011-07-01 19:47:50 +00003460ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003461
cristy4c08aed2011-07-01 19:47:50 +00003462ac_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 +00003463
3464
3465#
3466# Save initial user-tunable values
3467#
3468USER_LIBS=$LIBS
3469for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3470 eval isset=\${$var+set}
3471 if test "$isset" = 'set'; then
3472 eval val=$`echo $var`
3473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3474 fi
3475done
3476
3477
3478CONFIGURE_ARGS="$0 ${ac_configure_args}"
3479
3480
3481# Source file containing package/library versioning information.
3482. ${srcdir}/version.sh
3483
cristy15a88782010-01-31 23:24:49 +00003484echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003485# Make sure we can run config.sub.
3486$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003488
cristy8b350f62009-11-15 23:12:43 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003491if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003492 $as_echo_n "(cached) " >&6
3493else
3494 ac_build_alias=$build_alias
3495test "x$ac_build_alias" = x &&
3496 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3497test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003499ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003501
3502fi
cristy8b350f62009-11-15 23:12:43 +00003503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003504$as_echo "$ac_cv_build" >&6; }
3505case $ac_cv_build in
3506*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003507*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003508esac
3509build=$ac_cv_build
3510ac_save_IFS=$IFS; IFS='-'
3511set x $ac_cv_build
3512shift
3513build_cpu=$1
3514build_vendor=$2
3515shift; shift
3516# Remember, the first character of IFS is used to create $*,
3517# except with old shells:
3518build_os=$*
3519IFS=$ac_save_IFS
3520case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3521
3522
cristy8b350f62009-11-15 23:12:43 +00003523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003525if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003526 $as_echo_n "(cached) " >&6
3527else
3528 if test "x$host_alias" = x; then
3529 ac_cv_host=$ac_cv_build
3530else
3531 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003533fi
3534
3535fi
cristy8b350f62009-11-15 23:12:43 +00003536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003537$as_echo "$ac_cv_host" >&6; }
3538case $ac_cv_host in
3539*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003540*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003541esac
3542host=$ac_cv_host
3543ac_save_IFS=$IFS; IFS='-'
3544set x $ac_cv_host
3545shift
3546host_cpu=$1
3547host_vendor=$2
3548shift; shift
3549# Remember, the first character of IFS is used to create $*,
3550# except with old shells:
3551host_os=$*
3552IFS=$ac_save_IFS
3553case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3554
3555
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003558if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003559 $as_echo_n "(cached) " >&6
3560else
3561 if test "x$target_alias" = x; then
3562 ac_cv_target=$ac_cv_host
3563else
3564 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003566fi
3567
3568fi
cristy8b350f62009-11-15 23:12:43 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003570$as_echo "$ac_cv_target" >&6; }
3571case $ac_cv_target in
3572*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003573*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003574esac
3575target=$ac_cv_target
3576ac_save_IFS=$IFS; IFS='-'
3577set x $ac_cv_target
3578shift
3579target_cpu=$1
3580target_vendor=$2
3581shift; shift
3582# Remember, the first character of IFS is used to create $*,
3583# except with old shells:
3584target_os=$*
3585IFS=$ac_save_IFS
3586case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3587
3588
3589# The aliases save the names the user supplied, while $host etc.
3590# will get canonicalized.
3591test -n "$target_alias" &&
3592 test "$program_prefix$program_suffix$program_transform_name" = \
3593 NONENONEs,x,x, &&
3594 program_prefix=${target_alias}-
3595
cristy837d6dc2010-02-27 01:16:57 +00003596
3597
3598
cristy19615b82011-04-13 20:02:01 +00003599MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003600
3601
cristy19615b82011-04-13 20:02:01 +00003602MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003603
3604
cristy19615b82011-04-13 20:02:01 +00003605MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003606
3607
cristy3ed852e2009-09-05 21:47:34 +00003608# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003609MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3610
3611MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3612
cristy7247bba2012-02-05 16:37:27 +00003613MAGICK_SVN_REVISION=6701
cristyd694ca32011-03-27 21:42:54 +00003614
3615
cristy3ed852e2009-09-05 21:47:34 +00003616
3617
3618# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620$as_echo_n "checking whether build environment is sane... " >&6; }
3621# Just in case
3622sleep 1
3623echo timestamp > conftest.file
3624# Reject unsafe characters in $srcdir or the absolute working directory
3625# name. Accept space and tab only in the latter.
3626am_lf='
3627'
3628case `pwd` in
3629 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003631esac
3632case $srcdir in
3633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003635esac
cristy3ed852e2009-09-05 21:47:34 +00003636
cristy73bd4a52010-10-05 11:24:23 +00003637# Do `set' in a subshell so we don't clobber the current shell's
3638# arguments. Must try -L first in case configure is actually a
3639# symlink; some systems play weird games with the mod time of symlinks
3640# (eg FreeBSD returns the mod time of the symlink's containing
3641# directory).
3642if (
3643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644 if test "$*" = "X"; then
3645 # -L didn't work.
3646 set X `ls -t "$srcdir/configure" conftest.file`
3647 fi
3648 rm -f conftest.file
3649 if test "$*" != "X $srcdir/configure conftest.file" \
3650 && test "$*" != "X conftest.file $srcdir/configure"; then
3651
3652 # If neither matched, then we have a broken ls. This can happen
3653 # if, for instance, CONFIG_SHELL is bash and it inherits a
3654 # broken ls alias from the environment. This has actually
3655 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003657alias in your environment" "$LINENO" 5
3658 fi
3659
3660 test "$2" = conftest.file
3661 )
3662then
3663 # Ok.
3664 :
3665else
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003667Check your system clock" "$LINENO" 5
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670$as_echo "yes" >&6; }
3671
3672am__api_version='1.11'
3673
3674# Find a good install program. We prefer a C program (faster),
3675# so one script is as good as another. But avoid the broken or
3676# incompatible versions:
3677# SysV /etc/install, /usr/sbin/install
3678# SunOS /usr/etc/install
3679# IRIX /sbin/install
3680# AIX /bin/install
3681# AmigaOS /C/install, which installs bootblocks on floppy discs
3682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685# OS/2's system install, which has a completely different semantic
3686# ./install, which can be erroneously created by make from ./install.sh.
3687# Reject install programs that cannot install multiple files.
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689$as_echo_n "checking for a BSD-compatible install... " >&6; }
3690if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003691if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003692 $as_echo_n "(cached) " >&6
3693else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3700case $as_dir/ in #((
3701 ./ | .// | /[cC]/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3704 /usr/ucb/* ) ;;
3705 *)
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3708 # by default.
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3715 :
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3719 :
3720 else
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one > conftest.one
3723 echo two > conftest.two
3724 mkdir conftest.dir
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726 test -s conftest.one && test -s conftest.two &&
3727 test -s conftest.dir/conftest.one &&
3728 test -s conftest.dir/conftest.two
3729 then
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 break 3
3732 fi
3733 fi
3734 fi
3735 done
3736 done
3737 ;;
3738esac
3739
3740 done
3741IFS=$as_save_IFS
3742
3743rm -rf conftest.one conftest.two conftest.dir
3744
3745fi
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL=$ac_cv_path_install
3748 else
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL=$ac_install_sh
3754 fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757$as_echo "$INSTALL" >&6; }
3758
3759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760# It thinks the first close brace ends the variable substitution.
3761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767test "$program_prefix" != NONE &&
3768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3769# Use a double $ so make ignores it.
3770test "$program_suffix" != NONE &&
3771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3772# Double any \ or $.
3773# By default was `s,x,x', remove it if useless.
3774ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3775program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3776
3777# expand $ac_aux_dir to an absolute path
3778am_aux_dir=`cd $ac_aux_dir && pwd`
3779
3780if test x"${MISSING+set}" != xset; then
3781 case $am_aux_dir in
3782 *\ * | *\ *)
3783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3784 *)
3785 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3786 esac
3787fi
3788# Use eval to expand $SHELL
3789if eval "$MISSING --run true"; then
3790 am_missing_run="$MISSING --run "
3791else
3792 am_missing_run=
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3794$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3795fi
3796
3797if test x"${install_sh}" != xset; then
3798 case $am_aux_dir in
3799 *\ * | *\ *)
3800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3801 *)
3802 install_sh="\${SHELL} $am_aux_dir/install-sh"
3803 esac
3804fi
3805
3806# Installed binaries are usually stripped using `strip' when the user
3807# run `make install-strip'. However `strip' might not be the right
3808# tool to use in cross-compilation environments, therefore Automake
3809# will honor the `STRIP' environment variable to overrule this program.
3810if test "$cross_compiling" != no; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3813set dummy ${ac_tool_prefix}strip; ac_word=$2
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003816if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003817 $as_echo_n "(cached) " >&6
3818else
3819 if test -n "$STRIP"; then
3820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833done
3834 done
3835IFS=$as_save_IFS
3836
3837fi
3838fi
3839STRIP=$ac_cv_prog_STRIP
3840if test -n "$STRIP"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3842$as_echo "$STRIP" >&6; }
3843else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845$as_echo "no" >&6; }
3846fi
3847
3848
3849fi
3850if test -z "$ac_cv_prog_STRIP"; then
3851 ac_ct_STRIP=$STRIP
3852 # Extract the first word of "strip", so it can be a program name with args.
3853set dummy strip; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003856if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003857 $as_echo_n "(cached) " >&6
3858else
3859 if test -n "$ac_ct_STRIP"; then
3860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_STRIP="strip"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3880if test -n "$ac_ct_STRIP"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3882$as_echo "$ac_ct_STRIP" >&6; }
3883else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887
3888 if test "x$ac_ct_STRIP" = x; then
3889 STRIP=":"
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892yes:)
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895ac_tool_warned=yes ;;
3896esac
3897 STRIP=$ac_ct_STRIP
3898 fi
3899else
3900 STRIP="$ac_cv_prog_STRIP"
3901fi
3902
3903fi
3904INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3907$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3908if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003909 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003910 $as_echo_n "(cached) " >&6
3911else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in mkdir gmkdir; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3921 'mkdir (GNU coreutils) '* | \
3922 'mkdir (coreutils) '* | \
3923 'mkdir (fileutils) '4.1*)
3924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3925 break 3;;
3926 esac
3927 done
3928 done
3929 done
3930IFS=$as_save_IFS
3931
3932fi
3933
3934 test -d ./--version && rmdir ./--version
3935 if test "${ac_cv_path_mkdir+set}" = set; then
3936 MKDIR_P="$ac_cv_path_mkdir -p"
3937 else
3938 # As a last resort, use the slow shell script. Don't cache a
3939 # value for MKDIR_P within a source directory, because that will
3940 # break other packages using the cache if that directory is
3941 # removed, or if the value is a relative name.
3942 MKDIR_P="$ac_install_sh -d"
3943 fi
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3946$as_echo "$MKDIR_P" >&6; }
3947
3948mkdir_p="$MKDIR_P"
3949case $mkdir_p in
3950 [\\/$]* | ?:[\\/]*) ;;
3951 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3952esac
3953
3954for ac_prog in gawk mawk nawk awk
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003960if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003961 $as_echo_n "(cached) " >&6
3962else
3963 if test -n "$AWK"; then
3964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_prog_AWK="$ac_prog"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978 done
3979IFS=$as_save_IFS
3980
3981fi
3982fi
3983AWK=$ac_cv_prog_AWK
3984if test -n "$AWK"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3986$as_echo "$AWK" >&6; }
3987else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
3990fi
3991
3992
3993 test -n "$AWK" && break
3994done
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3998set x ${MAKE-make}
3999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004001 $as_echo_n "(cached) " >&6
4002else
4003 cat >conftest.make <<\_ACEOF
4004SHELL = /bin/sh
4005all:
4006 @echo '@@@%%%=$(MAKE)=@@@%%%'
4007_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004009case `${MAKE-make} -f conftest.make 2>/dev/null` in
4010 *@@@%%%=?*=@@@%%%*)
4011 eval ac_cv_prog_make_${ac_make}_set=yes;;
4012 *)
4013 eval ac_cv_prog_make_${ac_make}_set=no;;
4014esac
4015rm -f conftest.make
4016fi
4017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019$as_echo "yes" >&6; }
4020 SET_MAKE=
4021else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
4024 SET_MAKE="MAKE=${MAKE-make}"
4025fi
4026
4027rm -rf .tst 2>/dev/null
4028mkdir .tst 2>/dev/null
4029if test -d .tst; then
4030 am__leading_dot=.
4031else
4032 am__leading_dot=_
4033fi
4034rmdir .tst 2>/dev/null
4035
cristya448bd22011-10-14 12:38:13 +00004036# Check whether --enable-silent-rules was given.
4037if test "${enable_silent_rules+set}" = set; then :
4038 enableval=$enable_silent_rules;
4039fi
4040
4041case $enable_silent_rules in
4042yes) AM_DEFAULT_VERBOSITY=0;;
4043no) AM_DEFAULT_VERBOSITY=1;;
4044*) AM_DEFAULT_VERBOSITY=1;;
4045esac
4046AM_BACKSLASH='\'
4047
cristy73bd4a52010-10-05 11:24:23 +00004048if test "`cd $srcdir && pwd`" != "`pwd`"; then
4049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4050 # is not polluted with repeated "-I."
4051 am__isrc=' -I$(srcdir)'
4052 # test to see if srcdir already configured
4053 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004055 fi
4056fi
4057
4058# test whether we have cygpath
4059if test -z "$CYGPATH_W"; then
4060 if (cygpath --version) >/dev/null 2>/dev/null; then
4061 CYGPATH_W='cygpath -w'
4062 else
4063 CYGPATH_W=echo
4064 fi
4065fi
4066
4067
4068# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004069 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004070 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004071
4072
cristya448bd22011-10-14 12:38:13 +00004073cat >>confdefs.h <<_ACEOF
4074#define PACKAGE "$PACKAGE"
4075_ACEOF
4076
4077
4078cat >>confdefs.h <<_ACEOF
4079#define VERSION "$VERSION"
4080_ACEOF
4081
cristy73bd4a52010-10-05 11:24:23 +00004082# Some tools Automake needs.
4083
4084ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4085
4086
4087AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4088
4089
4090AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4091
4092
4093AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4094
4095
4096MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4097
4098# We need awk for the "check" target. The system "awk" is bad on
4099# some platforms.
4100# Always define AMTAR for backward compatibility.
4101
4102AMTAR=${AMTAR-"${am_missing_run}tar"}
4103
4104am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4105
4106
4107
4108
4109
cristy3ed852e2009-09-05 21:47:34 +00004110
4111# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004112# Check whether --enable-silent-rules was given.
4113if test "${enable_silent_rules+set}" = set; then :
4114 enableval=$enable_silent_rules;
4115fi
4116
4117case $enable_silent_rules in
4118yes) AM_DEFAULT_VERBOSITY=0;;
4119no) AM_DEFAULT_VERBOSITY=1;;
4120*) AM_DEFAULT_VERBOSITY=0;;
4121esac
4122AM_BACKSLASH='\'
4123
cristy3ed852e2009-09-05 21:47:34 +00004124
4125MAGICK_LIB_VERSION="0x"
4126if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4127 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4128fi
4129MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4130if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4131 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4132fi
4133MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4134if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4135 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4136fi
4137MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4138
4139
4140# Definition used to define MagickLibVersionText in version.h
4141MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4142
4143
4144# Definition used to define MagickLibVersionNumber in version.h
4145MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4146
4147
4148# Regenerate config.status if ChangeLog or version.sh is updated.
4149CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4150
4151
4152PERLMAINCC=$CC
4153
4154MAGICK_CFLAGS=''
4155MAGICK_CPPFLAGS=$CPPFLAGS_USER
4156MAGICK_PCFLAGS=$CPPFLAGS_USER
4157MAGICK_LDFLAGS=''
4158MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004159MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004160
4161#
4162# Evaluate shell variable equivalents to Makefile directory variables
4163#
4164if test "x$prefix" = xNONE; then
4165 prefix=$ac_default_prefix
4166fi
4167# Let make expand exec_prefix.
4168if test "x$exec_prefix" = xNONE; then
4169 exec_prefix='${prefix}'
4170fi
4171
4172#
4173eval "eval PREFIX_DIR=${prefix}"
4174
4175eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4176
4177eval "eval BIN_DIR=$bindir"
4178
4179eval "eval SBIN_DIR=$sbindir"
4180
4181eval "eval LIBEXEC_DIR=$libexecdir"
4182
4183eval "eval DATA_DIR=$datadir"
4184
cristyd55889c2011-03-27 00:50:24 +00004185eval "eval DOC_DIR=$docdir"
4186
cristy3ed852e2009-09-05 21:47:34 +00004187eval "eval SYSCONF_DIR=$sysconfdir"
4188
4189eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4190
4191eval "eval LOCALSTATE_DIR=$localstatedir"
4192
4193eval "eval LIB_DIR=$libdir"
4194
4195eval "eval INCLUDE_DIR=$includedir"
4196
4197eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4198
4199eval "eval INFO_DIR=$infodir"
4200
4201eval "eval MAN_DIR=$mandir"
4202
4203
4204# Get full paths to source and build directories
4205srcdirfull="`cd $srcdir && pwd`"
4206builddir="`pwd`"
4207
4208#
4209# Compute variables useful for running uninstalled software.
4210#
4211MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4212MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4213MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4214MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4215DIRSEP=':'
4216case "${build_os}" in
4217 mingw* )
4218 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4219 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4220 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4221 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4222 DIRSEP=';'
4223 ;;
4224esac
4225case "${host_os}" in
4226 mingw* )
4227 DIRSEP=';'
4228 ;;
4229esac
4230
4231
4232
4233
4234
4235
cristya0b81c32010-01-22 02:54:33 +00004236
4237#
4238# Enable OS features.
4239#
cristy73bd4a52010-10-05 11:24:23 +00004240DEPDIR="${am__leading_dot}deps"
4241
4242ac_config_commands="$ac_config_commands depfiles"
4243
4244
4245am_make=${MAKE-make}
4246cat > confinc << 'END'
4247am__doit:
4248 @echo this is the am__doit target
4249.PHONY: am__doit
4250END
4251# If we don't find an include directive, just comment out the code.
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4253$as_echo_n "checking for style of include used by $am_make... " >&6; }
4254am__include="#"
4255am__quote=
4256_am_result=none
4257# First try GNU make style include.
4258echo "include confinc" > confmf
4259# Ignore all kinds of additional output from `make'.
4260case `$am_make -s -f confmf 2> /dev/null` in #(
4261*the\ am__doit\ target*)
4262 am__include=include
4263 am__quote=
4264 _am_result=GNU
4265 ;;
4266esac
4267# Now try BSD make style include.
4268if test "$am__include" = "#"; then
4269 echo '.include "confinc"' > confmf
4270 case `$am_make -s -f confmf 2> /dev/null` in #(
4271 *the\ am__doit\ target*)
4272 am__include=.include
4273 am__quote="\""
4274 _am_result=BSD
4275 ;;
4276 esac
4277fi
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4281$as_echo "$_am_result" >&6; }
4282rm -f confinc confmf
4283
4284# Check whether --enable-dependency-tracking was given.
4285if test "${enable_dependency_tracking+set}" = set; then :
4286 enableval=$enable_dependency_tracking;
4287fi
4288
4289if test "x$enable_dependency_tracking" != xno; then
4290 am_depcomp="$ac_aux_dir/depcomp"
4291 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004292 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004293fi
4294 if test "x$enable_dependency_tracking" != xno; then
4295 AMDEP_TRUE=
4296 AMDEP_FALSE='#'
4297else
4298 AMDEP_TRUE='#'
4299 AMDEP_FALSE=
4300fi
4301
4302
cristy3ed852e2009-09-05 21:47:34 +00004303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4310set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004313if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004314 $as_echo_n "(cached) " >&6
4315else
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328 break 2
4329 fi
4330done
cristy8b350f62009-11-15 23:12:43 +00004331 done
cristy3ed852e2009-09-05 21:47:34 +00004332IFS=$as_save_IFS
4333
4334fi
4335fi
4336CC=$ac_cv_prog_CC
4337if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339$as_echo "$CC" >&6; }
4340else
cristy8b350f62009-11-15 23:12:43 +00004341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342$as_echo "no" >&6; }
4343fi
4344
4345
4346fi
4347if test -z "$ac_cv_prog_CC"; then
4348 ac_ct_CC=$CC
4349 # Extract the first word of "gcc", so it can be a program name with args.
4350set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004353if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004354 $as_echo_n "(cached) " >&6
4355else
4356 if test -n "$ac_ct_CC"; then
4357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004368 break 2
4369 fi
4370done
cristy8b350f62009-11-15 23:12:43 +00004371 done
cristy3ed852e2009-09-05 21:47:34 +00004372IFS=$as_save_IFS
4373
4374fi
4375fi
4376ac_ct_CC=$ac_cv_prog_ac_ct_CC
4377if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo "$ac_ct_CC" >&6; }
4380else
cristy8b350f62009-11-15 23:12:43 +00004381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004382$as_echo "no" >&6; }
4383fi
4384
4385 if test "x$ac_ct_CC" = x; then
4386 CC=""
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389yes:)
cristy8b350f62009-11-15 23:12:43 +00004390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392ac_tool_warned=yes ;;
4393esac
4394 CC=$ac_ct_CC
4395 fi
4396else
4397 CC="$ac_cv_prog_CC"
4398fi
4399
4400if test -z "$CC"; then
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4403set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004406if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004407 $as_echo_n "(cached) " >&6
4408else
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004421 break 2
4422 fi
4423done
cristy8b350f62009-11-15 23:12:43 +00004424 done
cristy3ed852e2009-09-05 21:47:34 +00004425IFS=$as_save_IFS
4426
4427fi
4428fi
4429CC=$ac_cv_prog_CC
4430if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432$as_echo "$CC" >&6; }
4433else
cristy8b350f62009-11-15 23:12:43 +00004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004435$as_echo "no" >&6; }
4436fi
4437
4438
4439 fi
4440fi
4441if test -z "$CC"; then
4442 # Extract the first word of "cc", so it can be a program name with args.
4443set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004446if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004447 $as_echo_n "(cached) " >&6
4448else
4449 if test -n "$CC"; then
4450 ac_cv_prog_CC="$CC" # Let the user override the test.
4451else
4452 ac_prog_rejected=no
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4461 ac_prog_rejected=yes
4462 continue
4463 fi
4464 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466 break 2
4467 fi
4468done
cristy8b350f62009-11-15 23:12:43 +00004469 done
cristy3ed852e2009-09-05 21:47:34 +00004470IFS=$as_save_IFS
4471
4472if test $ac_prog_rejected = yes; then
4473 # We found a bogon in the path, so make sure we never use it.
4474 set dummy $ac_cv_prog_CC
4475 shift
4476 if test $# != 0; then
4477 # We chose a different compiler from the bogus one.
4478 # However, it has the same basename, so the bogon will be chosen
4479 # first if we set CC to just the basename; use the full file name.
4480 shift
4481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4482 fi
4483fi
4484fi
4485fi
4486CC=$ac_cv_prog_CC
4487if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo "$CC" >&6; }
4490else
cristy8b350f62009-11-15 23:12:43 +00004491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492$as_echo "no" >&6; }
4493fi
4494
4495
4496fi
4497if test -z "$CC"; then
4498 if test -n "$ac_tool_prefix"; then
4499 for ac_prog in cl.exe
4500 do
4501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004505if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004506 $as_echo_n "(cached) " >&6
4507else
4508 if test -n "$CC"; then
4509 ac_cv_prog_CC="$CC" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520 break 2
4521 fi
4522done
cristy8b350f62009-11-15 23:12:43 +00004523 done
cristy3ed852e2009-09-05 21:47:34 +00004524IFS=$as_save_IFS
4525
4526fi
4527fi
4528CC=$ac_cv_prog_CC
4529if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004531$as_echo "$CC" >&6; }
4532else
cristy8b350f62009-11-15 23:12:43 +00004533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004534$as_echo "no" >&6; }
4535fi
4536
4537
4538 test -n "$CC" && break
4539 done
4540fi
4541if test -z "$CC"; then
4542 ac_ct_CC=$CC
4543 for ac_prog in cl.exe
4544do
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004549if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$ac_ct_CC"; then
4553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564 break 2
4565 fi
4566done
cristy8b350f62009-11-15 23:12:43 +00004567 done
cristy3ed852e2009-09-05 21:47:34 +00004568IFS=$as_save_IFS
4569
4570fi
4571fi
4572ac_ct_CC=$ac_cv_prog_ac_ct_CC
4573if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$ac_ct_CC" >&6; }
4576else
cristy8b350f62009-11-15 23:12:43 +00004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "no" >&6; }
4579fi
4580
4581
4582 test -n "$ac_ct_CC" && break
4583done
4584
4585 if test "x$ac_ct_CC" = x; then
4586 CC=""
4587 else
4588 case $cross_compiling:$ac_tool_warned in
4589yes:)
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592ac_tool_warned=yes ;;
4593esac
4594 CC=$ac_ct_CC
4595 fi
4596fi
4597
4598fi
4599
4600
cristy8b350f62009-11-15 23:12:43 +00004601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004603as_fn_error $? "no acceptable C compiler found in \$PATH
4604See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004605
4606# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004608set X $ac_compile
4609ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004610for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
cristy8b350f62009-11-15 23:12:43 +00004616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004619 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004620 if test -s conftest.err; then
4621 sed '10a\
4622... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004625 fi
cristycd4c5312009-11-22 01:19:08 +00004626 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629done
cristy3ed852e2009-09-05 21:47:34 +00004630
cristy8b350f62009-11-15 23:12:43 +00004631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004632/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004633
cristy3ed852e2009-09-05 21:47:34 +00004634int
4635main ()
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004643ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004644# Try to create an executable without -o first, disregard a.out.
4645# It will help us diagnose broken compilers, and finding out an intuition
4646# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4648$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004649ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4650
4651# The possible output files:
4652ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4653
4654ac_rmfiles=
4655for ac_file in $ac_files
4656do
4657 case $ac_file in
4658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4660 esac
4661done
4662rm -f $ac_rmfiles
4663
cristy8b350f62009-11-15 23:12:43 +00004664if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
cristy8b350f62009-11-15 23:12:43 +00004669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004671 (eval "$ac_link_default") 2>&5
4672 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4676# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4677# in a Makefile. We should not override ac_cv_exeext if it was cached,
4678# so that the user can short-circuit this test for compilers unknown to
4679# Autoconf.
4680for ac_file in $ac_files ''
4681do
4682 test -f "$ac_file" || continue
4683 case $ac_file in
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4685 ;;
4686 [ab].out )
4687 # We found the default executable, but exeext='' is most
4688 # certainly right.
4689 break;;
4690 *.* )
cristy8b350f62009-11-15 23:12:43 +00004691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004692 then :; else
4693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4694 fi
4695 # We set ac_cv_exeext here because the later test for it is not
4696 # safe: cross compilers may not add the suffix if given an `-o'
4697 # argument, so we may need to know it at that point already.
4698 # Even if this section looks crufty: it has the advantage of
4699 # actually working.
4700 break;;
4701 * )
4702 break;;
4703 esac
4704done
4705test "$ac_cv_exeext" = no && ac_cv_exeext=
4706
4707else
4708 ac_file=''
4709fi
cristy8b350f62009-11-15 23:12:43 +00004710if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714sed 's/^/| /' conftest.$ac_ext >&5
4715
cristy8b350f62009-11-15 23:12:43 +00004716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004718as_fn_error 77 "C compiler cannot create executables
4719See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004720else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4722$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004723fi
cristycd4c5312009-11-22 01:19:08 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4725$as_echo_n "checking for C compiler default output file name... " >&6; }
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4727$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004728ac_exeext=$ac_cv_exeext
4729
cristycd4c5312009-11-22 01:19:08 +00004730rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004731ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004734if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004735case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738esac
cristy8b350f62009-11-15 23:12:43 +00004739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4740$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004741 (eval "$ac_link") 2>&5
4742 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4744 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4746# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4747# work properly (i.e., refer to `conftest.exe'), while it won't with
4748# `rm'.
4749for ac_file in conftest.exe conftest conftest.*; do
4750 test -f "$ac_file" || continue
4751 case $ac_file in
4752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4754 break;;
4755 * ) break;;
4756 esac
4757done
4758else
cristy8b350f62009-11-15 23:12:43 +00004759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004761as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4762See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004763fi
cristycd4c5312009-11-22 01:19:08 +00004764rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004766$as_echo "$ac_cv_exeext" >&6; }
4767
4768rm -f conftest.$ac_ext
4769EXEEXT=$ac_cv_exeext
4770ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773#include <stdio.h>
4774int
4775main ()
4776{
4777FILE *f = fopen ("conftest.out", "w");
4778 return ferror (f) || fclose (f) != 0;
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
4784ac_clean_files="$ac_clean_files conftest.out"
4785# Check that the compiler produces executables we can run. If not, either
4786# the compiler is broken, or we cross compile.
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4788$as_echo_n "checking whether we are cross compiling... " >&6; }
4789if test "$cross_compiling" != yes; then
4790 { { ac_try="$ac_link"
4791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_link") 2>&5
4798 ac_status=$?
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }
4801 if { ac_try='./conftest$ac_cv_exeext'
4802 { { case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805esac
4806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807$as_echo "$ac_try_echo"; } >&5
4808 (eval "$ac_try") 2>&5
4809 ac_status=$?
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }; }; then
4812 cross_compiling=no
4813 else
4814 if test "$cross_compiling" = maybe; then
4815 cross_compiling=yes
4816 else
4817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004819as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004820If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004821See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004822 fi
4823 fi
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4826$as_echo "$cross_compiling" >&6; }
4827
4828rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4829ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004831$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004832if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004833 $as_echo_n "(cached) " >&6
4834else
cristy8b350f62009-11-15 23:12:43 +00004835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004836/* end confdefs.h. */
4837
4838int
4839main ()
4840{
4841
4842 ;
4843 return 0;
4844}
4845_ACEOF
4846rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004847if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
cristy8b350f62009-11-15 23:12:43 +00004852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004854 (eval "$ac_compile") 2>&5
4855 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004858 for ac_file in conftest.o conftest.obj conftest.*; do
4859 test -f "$ac_file" || continue;
4860 case $ac_file in
4861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4863 break;;
4864 esac
4865done
4866else
4867 $as_echo "$as_me: failed program was:" >&5
4868sed 's/^/| /' conftest.$ac_ext >&5
4869
cristy8b350f62009-11-15 23:12:43 +00004870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004872as_fn_error $? "cannot compute suffix of object files: cannot compile
4873See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004874fi
cristy3ed852e2009-09-05 21:47:34 +00004875rm -f conftest.$ac_cv_objext conftest.$ac_ext
4876fi
cristy8b350f62009-11-15 23:12:43 +00004877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004878$as_echo "$ac_cv_objext" >&6; }
4879OBJEXT=$ac_cv_objext
4880ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004882$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004883if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004884 $as_echo_n "(cached) " >&6
4885else
cristy8b350f62009-11-15 23:12:43 +00004886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004887/* end confdefs.h. */
4888
4889int
4890main ()
4891{
4892#ifndef __GNUC__
4893 choke me
4894#endif
4895
4896 ;
4897 return 0;
4898}
4899_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004900if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004901 ac_compiler_gnu=yes
4902else
cristy8b350f62009-11-15 23:12:43 +00004903 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004904fi
cristy3ed852e2009-09-05 21:47:34 +00004905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906ac_cv_c_compiler_gnu=$ac_compiler_gnu
4907
4908fi
cristy8b350f62009-11-15 23:12:43 +00004909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4911if test $ac_compiler_gnu = yes; then
4912 GCC=yes
4913else
4914 GCC=
4915fi
4916ac_test_CFLAGS=${CFLAGS+set}
4917ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004919$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004920if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004921 $as_echo_n "(cached) " >&6
4922else
4923 ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4925 ac_cv_prog_cc_g=no
4926 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933
4934 ;
4935 return 0;
4936}
4937_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004938if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004939 ac_cv_prog_cc_g=yes
4940else
cristy8b350f62009-11-15 23:12:43 +00004941 CFLAGS=""
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948
4949 ;
4950 return 0;
4951}
4952_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004954
cristy8b350f62009-11-15 23:12:43 +00004955else
4956 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004957 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004959/* end confdefs.h. */
4960
4961int
4962main ()
4963{
4964
4965 ;
4966 return 0;
4967}
4968_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004969if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004970 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004971fi
cristy3ed852e2009-09-05 21:47:34 +00004972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
cristy3ed852e2009-09-05 21:47:34 +00004974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975fi
cristy3ed852e2009-09-05 21:47:34 +00004976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 ac_c_werror_flag=$ac_save_c_werror_flag
4978fi
cristy8b350f62009-11-15 23:12:43 +00004979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004980$as_echo "$ac_cv_prog_cc_g" >&6; }
4981if test "$ac_test_CFLAGS" = set; then
4982 CFLAGS=$ac_save_CFLAGS
4983elif test $ac_cv_prog_cc_g = yes; then
4984 if test "$GCC" = yes; then
4985 CFLAGS="-g -O2"
4986 else
4987 CFLAGS="-g"
4988 fi
4989else
4990 if test "$GCC" = yes; then
4991 CFLAGS="-O2"
4992 else
4993 CFLAGS=
4994 fi
4995fi
cristy8b350f62009-11-15 23:12:43 +00004996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004998if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004999 $as_echo_n "(cached) " >&6
5000else
5001 ac_cv_prog_cc_c89=no
5002ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005004/* end confdefs.h. */
5005#include <stdarg.h>
5006#include <stdio.h>
5007#include <sys/types.h>
5008#include <sys/stat.h>
5009/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5010struct buf { int x; };
5011FILE * (*rcsopen) (struct buf *, struct stat *, int);
5012static char *e (p, i)
5013 char **p;
5014 int i;
5015{
5016 return p[i];
5017}
5018static char *f (char * (*g) (char **, int), char **p, ...)
5019{
5020 char *s;
5021 va_list v;
5022 va_start (v,p);
5023 s = g (p, va_arg (v,int));
5024 va_end (v);
5025 return s;
5026}
5027
5028/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5029 function prototypes and stuff, but not '\xHH' hex character constants.
5030 These don't provoke an error unfortunately, instead are silently treated
5031 as 'x'. The following induces an error, until -std is added to get
5032 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5033 array size at least. It's necessary to write '\x00'==0 to get something
5034 that's true only with -std. */
5035int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5036
5037/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5038 inside strings and character constants. */
5039#define FOO(x) 'x'
5040int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5041
5042int test (int i, double x);
5043struct s1 {int (*f) (int a);};
5044struct s2 {int (*f) (double a);};
5045int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5046int argc;
5047char **argv;
5048int
5049main ()
5050{
5051return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5052 ;
5053 return 0;
5054}
5055_ACEOF
5056for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5057 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5058do
5059 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005060 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005061 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005062fi
cristy3ed852e2009-09-05 21:47:34 +00005063rm -f core conftest.err conftest.$ac_objext
5064 test "x$ac_cv_prog_cc_c89" != "xno" && break
5065done
5066rm -f conftest.$ac_ext
5067CC=$ac_save_CC
5068
5069fi
5070# AC_CACHE_VAL
5071case "x$ac_cv_prog_cc_c89" in
5072 x)
cristy8b350f62009-11-15 23:12:43 +00005073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005074$as_echo "none needed" >&6; } ;;
5075 xno)
cristy8b350f62009-11-15 23:12:43 +00005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005077$as_echo "unsupported" >&6; } ;;
5078 *)
5079 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005081$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5082esac
cristy8b350f62009-11-15 23:12:43 +00005083if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005084
cristy8b350f62009-11-15 23:12:43 +00005085fi
cristy3ed852e2009-09-05 21:47:34 +00005086
5087ac_ext=c
5088ac_cpp='$CPP $CPPFLAGS'
5089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005092
cristy73bd4a52010-10-05 11:24:23 +00005093depcc="$CC" am_compiler_list=
5094
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5096$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005097if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005098 $as_echo_n "(cached) " >&6
5099else
5100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named `D' -- because `-MD' means `put the output
5105 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005106 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005107 mkdir conftest.dir
5108 # Copy depcomp to subdir because otherwise we won't find it if we're
5109 # using a relative directory.
5110 cp "$am_depcomp" conftest.dir
5111 cd conftest.dir
5112 # We will build objects and dependencies in a subdirectory because
5113 # it helps to detect inapplicable dependency modes. For instance
5114 # both Tru64's cc and ICC support -MD to output dependencies as a
5115 # side effect of compilation, but ICC will put the dependencies in
5116 # the current directory while Tru64 will put them in the object
5117 # directory.
5118 mkdir sub
5119
5120 am_cv_CC_dependencies_compiler_type=none
5121 if test "$am_compiler_list" = ""; then
5122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5123 fi
5124 am__universal=false
5125 case " $depcc " in #(
5126 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5127 esac
5128
5129 for depmode in $am_compiler_list; do
5130 # Setup a source with many dependencies, because some compilers
5131 # like to wrap large dependency lists on column 80 (with \), and
5132 # we should not choose a depcomp mode which is confused by this.
5133 #
5134 # We need to recreate these files for each test, as the compiler may
5135 # overwrite some of them when testing with obscure command lines.
5136 # This happens at least with the AIX C compiler.
5137 : > sub/conftest.c
5138 for i in 1 2 3 4 5 6; do
5139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5141 # Solaris 8's {/usr,}/bin/sh.
5142 touch sub/conftst$i.h
5143 done
5144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145
5146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5147 # mode. It turns out that the SunPro C++ compiler does not properly
5148 # handle `-M -o', and we need to detect this. Also, some Intel
5149 # versions had trouble with output in subdirs
5150 am__obj=sub/conftest.${OBJEXT-o}
5151 am__minus_obj="-o $am__obj"
5152 case $depmode in
5153 gcc)
5154 # This depmode causes a compiler race in universal mode.
5155 test "$am__universal" = false || continue
5156 ;;
5157 nosideeffect)
5158 # after this tag, mechanisms are not by side-effect, so they'll
5159 # only be used when explicitly requested
5160 if test "x$enable_dependency_tracking" = xyes; then
5161 continue
5162 else
5163 break
5164 fi
5165 ;;
cristy7247bba2012-02-05 16:37:27 +00005166 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005167 # This compiler won't grok `-c -o', but also, the minuso test has
5168 # not run yet. These depmodes are late enough in the game, and
5169 # so weak that their functioning should not be impacted.
5170 am__obj=conftest.${OBJEXT-o}
5171 am__minus_obj=
5172 ;;
5173 none) break ;;
5174 esac
5175 if depmode=$depmode \
5176 source=sub/conftest.c object=$am__obj \
5177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5179 >/dev/null 2>conftest.err &&
5180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184 # icc doesn't choke on unknown options, it will just issue warnings
5185 # or remarks (even with -Werror). So we grep stderr for any message
5186 # that says an option was ignored or not supported.
5187 # When given -MP, icc 7.0 and 7.1 complain thusly:
5188 # icc: Command line warning: ignoring option '-M'; no argument required
5189 # The diagnosis changed in icc 8.0:
5190 # icc: Command line remark: option '-MP' not supported
5191 if (grep 'ignoring option' conftest.err ||
5192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193 am_cv_CC_dependencies_compiler_type=$depmode
5194 break
5195 fi
5196 fi
5197 done
5198
5199 cd ..
5200 rm -rf conftest.dir
5201else
5202 am_cv_CC_dependencies_compiler_type=none
5203fi
5204
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5207$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5208CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5209
5210 if
5211 test "x$enable_dependency_tracking" != xno \
5212 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5213 am__fastdepCC_TRUE=
5214 am__fastdepCC_FALSE='#'
5215else
5216 am__fastdepCC_TRUE='#'
5217 am__fastdepCC_FALSE=
5218fi
5219
5220
cristy3ed852e2009-09-05 21:47:34 +00005221
cristya0b81c32010-01-22 02:54:33 +00005222ac_ext=c
5223ac_cpp='$CPP $CPPFLAGS'
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5228$as_echo_n "checking how to run the C preprocessor... " >&6; }
5229# On Suns, sometimes $CPP names a directory.
5230if test -n "$CPP" && test -d "$CPP"; then
5231 CPP=
5232fi
5233if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005234 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005235 $as_echo_n "(cached) " >&6
5236else
5237 # Double quotes because CPP needs to be expanded
5238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5239 do
5240 ac_preproc_ok=false
5241for ac_c_preproc_warn_flag in '' yes
5242do
5243 # Use a header file that comes with gcc, so configuring glibc
5244 # with a fresh cross-compiler works.
5245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5246 # <limits.h> exists even on freestanding compilers.
5247 # On the NeXT, cc -E runs the code through the compiler's parser,
5248 # not just through cpp. "Syntax error" is here to catch this case.
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h. */
5251#ifdef __STDC__
5252# include <limits.h>
5253#else
5254# include <assert.h>
5255#endif
5256 Syntax error
5257_ACEOF
5258if ac_fn_c_try_cpp "$LINENO"; then :
5259
5260else
5261 # Broken: fails on valid input.
5262continue
5263fi
cristyda16f162011-02-19 23:52:17 +00005264rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005265
5266 # OK, works on sane cases. Now check whether nonexistent headers
5267 # can be detected and how.
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5270#include <ac_nonexistent.h>
5271_ACEOF
5272if ac_fn_c_try_cpp "$LINENO"; then :
5273 # Broken: success on invalid input.
5274continue
5275else
5276 # Passes both tests.
5277ac_preproc_ok=:
5278break
5279fi
cristyda16f162011-02-19 23:52:17 +00005280rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005281
5282done
5283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005284rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005285if $ac_preproc_ok; then :
5286 break
5287fi
5288
5289 done
5290 ac_cv_prog_CPP=$CPP
5291
5292fi
5293 CPP=$ac_cv_prog_CPP
5294else
5295 ac_cv_prog_CPP=$CPP
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5298$as_echo "$CPP" >&6; }
5299ac_preproc_ok=false
5300for ac_c_preproc_warn_flag in '' yes
5301do
5302 # Use a header file that comes with gcc, so configuring glibc
5303 # with a fresh cross-compiler works.
5304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305 # <limits.h> exists even on freestanding compilers.
5306 # On the NeXT, cc -E runs the code through the compiler's parser,
5307 # not just through cpp. "Syntax error" is here to catch this case.
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h. */
5310#ifdef __STDC__
5311# include <limits.h>
5312#else
5313# include <assert.h>
5314#endif
5315 Syntax error
5316_ACEOF
5317if ac_fn_c_try_cpp "$LINENO"; then :
5318
5319else
5320 # Broken: fails on valid input.
5321continue
5322fi
cristyda16f162011-02-19 23:52:17 +00005323rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005324
5325 # OK, works on sane cases. Now check whether nonexistent headers
5326 # can be detected and how.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h. */
5329#include <ac_nonexistent.h>
5330_ACEOF
5331if ac_fn_c_try_cpp "$LINENO"; then :
5332 # Broken: success on invalid input.
5333continue
5334else
5335 # Passes both tests.
5336ac_preproc_ok=:
5337break
5338fi
cristyda16f162011-02-19 23:52:17 +00005339rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005340
5341done
5342# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005343rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005344if $ac_preproc_ok; then :
5345
5346else
5347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005349as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5350See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005351fi
5352
5353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5361$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005362if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005363 $as_echo_n "(cached) " >&6
5364else
5365 if test -z "$GREP"; then
5366 ac_path_GREP_found=false
5367 # Loop through the user's path and test for each of PROGNAME-LIST
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_prog in grep ggrep; do
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5377# Check for GNU ac_path_GREP and select it if it is found.
5378 # Check for GNU $ac_path_GREP
5379case `"$ac_path_GREP" --version 2>&1` in
5380*GNU*)
5381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5382*)
5383 ac_count=0
5384 $as_echo_n 0123456789 >"conftest.in"
5385 while :
5386 do
5387 cat "conftest.in" "conftest.in" >"conftest.tmp"
5388 mv "conftest.tmp" "conftest.in"
5389 cp "conftest.in" "conftest.nl"
5390 $as_echo 'GREP' >> "conftest.nl"
5391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5393 as_fn_arith $ac_count + 1 && ac_count=$as_val
5394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5395 # Best one so far, save it but keep looking for a better one
5396 ac_cv_path_GREP="$ac_path_GREP"
5397 ac_path_GREP_max=$ac_count
5398 fi
5399 # 10*(2^10) chars as input seems more than enough
5400 test $ac_count -gt 10 && break
5401 done
5402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5403esac
5404
5405 $ac_path_GREP_found && break 3
5406 done
5407 done
5408 done
5409IFS=$as_save_IFS
5410 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005411 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005412 fi
5413else
5414 ac_cv_path_GREP=$GREP
5415fi
5416
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5419$as_echo "$ac_cv_path_GREP" >&6; }
5420 GREP="$ac_cv_path_GREP"
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5424$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005425if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005426 $as_echo_n "(cached) " >&6
5427else
5428 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5429 then ac_cv_path_EGREP="$GREP -E"
5430 else
5431 if test -z "$EGREP"; then
5432 ac_path_EGREP_found=false
5433 # Loop through the user's path and test for each of PROGNAME-LIST
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_prog in egrep; do
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5442 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5443# Check for GNU ac_path_EGREP and select it if it is found.
5444 # Check for GNU $ac_path_EGREP
5445case `"$ac_path_EGREP" --version 2>&1` in
5446*GNU*)
5447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5448*)
5449 ac_count=0
5450 $as_echo_n 0123456789 >"conftest.in"
5451 while :
5452 do
5453 cat "conftest.in" "conftest.in" >"conftest.tmp"
5454 mv "conftest.tmp" "conftest.in"
5455 cp "conftest.in" "conftest.nl"
5456 $as_echo 'EGREP' >> "conftest.nl"
5457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5459 as_fn_arith $ac_count + 1 && ac_count=$as_val
5460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5461 # Best one so far, save it but keep looking for a better one
5462 ac_cv_path_EGREP="$ac_path_EGREP"
5463 ac_path_EGREP_max=$ac_count
5464 fi
5465 # 10*(2^10) chars as input seems more than enough
5466 test $ac_count -gt 10 && break
5467 done
5468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469esac
5470
5471 $ac_path_EGREP_found && break 3
5472 done
5473 done
5474 done
5475IFS=$as_save_IFS
5476 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005477 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005478 fi
5479else
5480 ac_cv_path_EGREP=$EGREP
5481fi
5482
5483 fi
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5486$as_echo "$ac_cv_path_EGREP" >&6; }
5487 EGREP="$ac_cv_path_EGREP"
5488
5489
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5491$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005492if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005493 $as_echo_n "(cached) " >&6
5494else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h. */
5497#include <stdlib.h>
5498#include <stdarg.h>
5499#include <string.h>
5500#include <float.h>
5501
5502int
5503main ()
5504{
5505
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"; then :
5511 ac_cv_header_stdc=yes
5512else
5513 ac_cv_header_stdc=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516
5517if test $ac_cv_header_stdc = yes; then
5518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
5521#include <string.h>
5522
5523_ACEOF
5524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "memchr" >/dev/null 2>&1; then :
5526
5527else
5528 ac_cv_header_stdc=no
5529fi
5530rm -f conftest*
5531
5532fi
5533
5534if test $ac_cv_header_stdc = yes; then
5535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h. */
5538#include <stdlib.h>
5539
5540_ACEOF
5541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 $EGREP "free" >/dev/null 2>&1; then :
5543
5544else
5545 ac_cv_header_stdc=no
5546fi
5547rm -f conftest*
5548
5549fi
5550
5551if test $ac_cv_header_stdc = yes; then
5552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5553 if test "$cross_compiling" = yes; then :
5554 :
5555else
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h. */
5558#include <ctype.h>
5559#include <stdlib.h>
5560#if ((' ' & 0x0FF) == 0x020)
5561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5563#else
5564# define ISLOWER(c) \
5565 (('a' <= (c) && (c) <= 'i') \
5566 || ('j' <= (c) && (c) <= 'r') \
5567 || ('s' <= (c) && (c) <= 'z'))
5568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5569#endif
5570
5571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5572int
5573main ()
5574{
5575 int i;
5576 for (i = 0; i < 256; i++)
5577 if (XOR (islower (i), ISLOWER (i))
5578 || toupper (i) != TOUPPER (i))
5579 return 2;
5580 return 0;
5581}
5582_ACEOF
5583if ac_fn_c_try_run "$LINENO"; then :
5584
5585else
5586 ac_cv_header_stdc=no
5587fi
5588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5589 conftest.$ac_objext conftest.beam conftest.$ac_ext
5590fi
5591
5592fi
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5595$as_echo "$ac_cv_header_stdc" >&6; }
5596if test $ac_cv_header_stdc = yes; then
5597
5598$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5599
5600fi
5601
5602# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5603for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5604 inttypes.h stdint.h unistd.h
5605do :
5606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5607ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5608"
cristy98dddb52010-11-04 00:30:15 +00005609if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005610 cat >>confdefs.h <<_ACEOF
5611#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5612_ACEOF
5613
5614fi
5615
5616done
5617
5618
5619
5620 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 +00005621if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005622 MINIX=yes
5623else
5624 MINIX=
5625fi
5626
5627
5628 if test "$MINIX" = yes; then
5629
5630$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5631
5632
5633$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5634
5635
5636$as_echo "#define _MINIX 1" >>confdefs.h
5637
5638 fi
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5642$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005643if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005644 $as_echo_n "(cached) " >&6
5645else
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648
5649# define __EXTENSIONS__ 1
5650 $ac_includes_default
5651int
5652main ()
5653{
5654
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659if ac_fn_c_try_compile "$LINENO"; then :
5660 ac_cv_safe_to_define___extensions__=yes
5661else
5662 ac_cv_safe_to_define___extensions__=no
5663fi
5664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665fi
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5667$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5668 test $ac_cv_safe_to_define___extensions__ = yes &&
5669 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5670
5671 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5672
5673 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5674
5675 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5676
5677 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5678
5679
5680
5681# Check for programs
5682ac_ext=c
5683ac_cpp='$CPP $CPPFLAGS'
5684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5689set dummy ${ac_tool_prefix}gcc; ac_word=$2
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005692if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005693 $as_echo_n "(cached) " >&6
5694else
5695 if test -n "$CC"; then
5696 ac_cv_prog_CC="$CC" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709done
5710 done
5711IFS=$as_save_IFS
5712
5713fi
5714fi
5715CC=$ac_cv_prog_CC
5716if test -n "$CC"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5718$as_echo "$CC" >&6; }
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724
5725fi
5726if test -z "$ac_cv_prog_CC"; then
5727 ac_ct_CC=$CC
5728 # Extract the first word of "gcc", so it can be a program name with args.
5729set dummy gcc; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005732if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005733 $as_echo_n "(cached) " >&6
5734else
5735 if test -n "$ac_ct_CC"; then
5736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_ac_ct_CC="gcc"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750 done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_CC=$ac_cv_prog_ac_ct_CC
5756if test -n "$ac_ct_CC"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5758$as_echo "$ac_ct_CC" >&6; }
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762fi
5763
5764 if test "x$ac_ct_CC" = x; then
5765 CC=""
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768yes:)
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771ac_tool_warned=yes ;;
5772esac
5773 CC=$ac_ct_CC
5774 fi
5775else
5776 CC="$ac_cv_prog_CC"
5777fi
5778
5779if test -z "$CC"; then
5780 if test -n "$ac_tool_prefix"; then
5781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5782set dummy ${ac_tool_prefix}cc; ac_word=$2
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005785if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005786 $as_echo_n "(cached) " >&6
5787else
5788 if test -n "$CC"; then
5789 ac_cv_prog_CC="$CC" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_prog_CC="${ac_tool_prefix}cc"
5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803 done
5804IFS=$as_save_IFS
5805
5806fi
5807fi
5808CC=$ac_cv_prog_CC
5809if test -n "$CC"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5811$as_echo "$CC" >&6; }
5812else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816
5817
5818 fi
5819fi
5820if test -z "$CC"; then
5821 # Extract the first word of "cc", so it can be a program name with args.
5822set dummy cc; ac_word=$2
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005825if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005826 $as_echo_n "(cached) " >&6
5827else
5828 if test -n "$CC"; then
5829 ac_cv_prog_CC="$CC" # Let the user override the test.
5830else
5831 ac_prog_rejected=no
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5840 ac_prog_rejected=yes
5841 continue
5842 fi
5843 ac_cv_prog_CC="cc"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847done
5848 done
5849IFS=$as_save_IFS
5850
5851if test $ac_prog_rejected = yes; then
5852 # We found a bogon in the path, so make sure we never use it.
5853 set dummy $ac_cv_prog_CC
5854 shift
5855 if test $# != 0; then
5856 # We chose a different compiler from the bogus one.
5857 # However, it has the same basename, so the bogon will be chosen
5858 # first if we set CC to just the basename; use the full file name.
5859 shift
5860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5861 fi
5862fi
5863fi
5864fi
5865CC=$ac_cv_prog_CC
5866if test -n "$CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5868$as_echo "$CC" >&6; }
5869else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
5872fi
5873
5874
5875fi
5876if test -z "$CC"; then
5877 if test -n "$ac_tool_prefix"; then
5878 for ac_prog in cl.exe
5879 do
5880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005884if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005885 $as_echo_n "(cached) " >&6
5886else
5887 if test -n "$CC"; then
5888 ac_cv_prog_CC="$CC" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901done
5902 done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907CC=$ac_cv_prog_CC
5908if test -n "$CC"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5910$as_echo "$CC" >&6; }
5911else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916
5917 test -n "$CC" && break
5918 done
5919fi
5920if test -z "$CC"; then
5921 ac_ct_CC=$CC
5922 for ac_prog in cl.exe
5923do
5924 # Extract the first word of "$ac_prog", so it can be a program name with args.
5925set dummy $ac_prog; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005928if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005929 $as_echo_n "(cached) " >&6
5930else
5931 if test -n "$ac_ct_CC"; then
5932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_ac_ct_CC="$ac_prog"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945done
5946 done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_CC=$ac_cv_prog_ac_ct_CC
5952if test -n "$ac_ct_CC"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5954$as_echo "$ac_ct_CC" >&6; }
5955else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960
5961 test -n "$ac_ct_CC" && break
5962done
5963
5964 if test "x$ac_ct_CC" = x; then
5965 CC=""
5966 else
5967 case $cross_compiling:$ac_tool_warned in
5968yes:)
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5971ac_tool_warned=yes ;;
5972esac
5973 CC=$ac_ct_CC
5974 fi
5975fi
5976
5977fi
5978
5979
5980test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005982as_fn_error $? "no acceptable C compiler found in \$PATH
5983See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005984
5985# Provide some information about the compiler.
5986$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5987set X $ac_compile
5988ac_compiler=$2
5989for ac_option in --version -v -V -qversion; do
5990 { { ac_try="$ac_compiler $ac_option >&5"
5991case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994esac
5995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5996$as_echo "$ac_try_echo"; } >&5
5997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5998 ac_status=$?
5999 if test -s conftest.err; then
6000 sed '10a\
6001... rest of stderr output deleted ...
6002 10q' conftest.err >conftest.er1
6003 cat conftest.er1 >&5
6004 fi
6005 rm -f conftest.er1 conftest.err
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }
6008done
6009
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6011$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006012if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006013 $as_echo_n "(cached) " >&6
6014else
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016/* end confdefs.h. */
6017
6018int
6019main ()
6020{
6021#ifndef __GNUC__
6022 choke me
6023#endif
6024
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_compile "$LINENO"; then :
6030 ac_compiler_gnu=yes
6031else
6032 ac_compiler_gnu=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035ac_cv_c_compiler_gnu=$ac_compiler_gnu
6036
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6039$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6040if test $ac_compiler_gnu = yes; then
6041 GCC=yes
6042else
6043 GCC=
6044fi
6045ac_test_CFLAGS=${CFLAGS+set}
6046ac_save_CFLAGS=$CFLAGS
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6048$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006049if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006050 $as_echo_n "(cached) " >&6
6051else
6052 ac_save_c_werror_flag=$ac_c_werror_flag
6053 ac_c_werror_flag=yes
6054 ac_cv_prog_cc_g=no
6055 CFLAGS="-g"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057/* end confdefs.h. */
6058
6059int
6060main ()
6061{
6062
6063 ;
6064 return 0;
6065}
6066_ACEOF
6067if ac_fn_c_try_compile "$LINENO"; then :
6068 ac_cv_prog_cc_g=yes
6069else
6070 CFLAGS=""
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073
6074int
6075main ()
6076{
6077
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"; then :
6083
6084else
6085 ac_c_werror_flag=$ac_save_c_werror_flag
6086 CFLAGS="-g"
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h. */
6089
6090int
6091main ()
6092{
6093
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_prog_cc_g=yes
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ac_c_werror_flag=$ac_save_c_werror_flag
6107fi
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6109$as_echo "$ac_cv_prog_cc_g" >&6; }
6110if test "$ac_test_CFLAGS" = set; then
6111 CFLAGS=$ac_save_CFLAGS
6112elif test $ac_cv_prog_cc_g = yes; then
6113 if test "$GCC" = yes; then
6114 CFLAGS="-g -O2"
6115 else
6116 CFLAGS="-g"
6117 fi
6118else
6119 if test "$GCC" = yes; then
6120 CFLAGS="-O2"
6121 else
6122 CFLAGS=
6123 fi
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6126$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006127if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006128 $as_echo_n "(cached) " >&6
6129else
6130 ac_cv_prog_cc_c89=no
6131ac_save_CC=$CC
6132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h. */
6134#include <stdarg.h>
6135#include <stdio.h>
6136#include <sys/types.h>
6137#include <sys/stat.h>
6138/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6139struct buf { int x; };
6140FILE * (*rcsopen) (struct buf *, struct stat *, int);
6141static char *e (p, i)
6142 char **p;
6143 int i;
6144{
6145 return p[i];
6146}
6147static char *f (char * (*g) (char **, int), char **p, ...)
6148{
6149 char *s;
6150 va_list v;
6151 va_start (v,p);
6152 s = g (p, va_arg (v,int));
6153 va_end (v);
6154 return s;
6155}
6156
6157/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6158 function prototypes and stuff, but not '\xHH' hex character constants.
6159 These don't provoke an error unfortunately, instead are silently treated
6160 as 'x'. The following induces an error, until -std is added to get
6161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6162 array size at least. It's necessary to write '\x00'==0 to get something
6163 that's true only with -std. */
6164int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6165
6166/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6167 inside strings and character constants. */
6168#define FOO(x) 'x'
6169int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6170
6171int test (int i, double x);
6172struct s1 {int (*f) (int a);};
6173struct s2 {int (*f) (double a);};
6174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6175int argc;
6176char **argv;
6177int
6178main ()
6179{
6180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6187do
6188 CC="$ac_save_CC $ac_arg"
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 ac_cv_prog_cc_c89=$ac_arg
6191fi
6192rm -f core conftest.err conftest.$ac_objext
6193 test "x$ac_cv_prog_cc_c89" != "xno" && break
6194done
6195rm -f conftest.$ac_ext
6196CC=$ac_save_CC
6197
6198fi
6199# AC_CACHE_VAL
6200case "x$ac_cv_prog_cc_c89" in
6201 x)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6203$as_echo "none needed" >&6; } ;;
6204 xno)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6206$as_echo "unsupported" >&6; } ;;
6207 *)
6208 CC="$CC $ac_cv_prog_cc_c89"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6210$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6211esac
6212if test "x$ac_cv_prog_cc_c89" != xno; then :
6213
6214fi
6215
6216ac_ext=c
6217ac_cpp='$CPP $CPPFLAGS'
6218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221
cristy73bd4a52010-10-05 11:24:23 +00006222depcc="$CC" am_compiler_list=
6223
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6225$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006226if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006227 $as_echo_n "(cached) " >&6
6228else
6229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6230 # We make a subdir and do the tests there. Otherwise we can end up
6231 # making bogus files that we don't know about and never remove. For
6232 # instance it was reported that on HP-UX the gcc test will end up
6233 # making a dummy file named `D' -- because `-MD' means `put the output
6234 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006235 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006236 mkdir conftest.dir
6237 # Copy depcomp to subdir because otherwise we won't find it if we're
6238 # using a relative directory.
6239 cp "$am_depcomp" conftest.dir
6240 cd conftest.dir
6241 # We will build objects and dependencies in a subdirectory because
6242 # it helps to detect inapplicable dependency modes. For instance
6243 # both Tru64's cc and ICC support -MD to output dependencies as a
6244 # side effect of compilation, but ICC will put the dependencies in
6245 # the current directory while Tru64 will put them in the object
6246 # directory.
6247 mkdir sub
6248
6249 am_cv_CC_dependencies_compiler_type=none
6250 if test "$am_compiler_list" = ""; then
6251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6252 fi
6253 am__universal=false
6254 case " $depcc " in #(
6255 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6256 esac
6257
6258 for depmode in $am_compiler_list; do
6259 # Setup a source with many dependencies, because some compilers
6260 # like to wrap large dependency lists on column 80 (with \), and
6261 # we should not choose a depcomp mode which is confused by this.
6262 #
6263 # We need to recreate these files for each test, as the compiler may
6264 # overwrite some of them when testing with obscure command lines.
6265 # This happens at least with the AIX C compiler.
6266 : > sub/conftest.c
6267 for i in 1 2 3 4 5 6; do
6268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6270 # Solaris 8's {/usr,}/bin/sh.
6271 touch sub/conftst$i.h
6272 done
6273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6274
6275 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6276 # mode. It turns out that the SunPro C++ compiler does not properly
6277 # handle `-M -o', and we need to detect this. Also, some Intel
6278 # versions had trouble with output in subdirs
6279 am__obj=sub/conftest.${OBJEXT-o}
6280 am__minus_obj="-o $am__obj"
6281 case $depmode in
6282 gcc)
6283 # This depmode causes a compiler race in universal mode.
6284 test "$am__universal" = false || continue
6285 ;;
6286 nosideeffect)
6287 # after this tag, mechanisms are not by side-effect, so they'll
6288 # only be used when explicitly requested
6289 if test "x$enable_dependency_tracking" = xyes; then
6290 continue
6291 else
6292 break
6293 fi
6294 ;;
cristy7247bba2012-02-05 16:37:27 +00006295 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006296 # This compiler won't grok `-c -o', but also, the minuso test has
6297 # not run yet. These depmodes are late enough in the game, and
6298 # so weak that their functioning should not be impacted.
6299 am__obj=conftest.${OBJEXT-o}
6300 am__minus_obj=
6301 ;;
6302 none) break ;;
6303 esac
6304 if depmode=$depmode \
6305 source=sub/conftest.c object=$am__obj \
6306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6307 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6308 >/dev/null 2>conftest.err &&
6309 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6311 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6313 # icc doesn't choke on unknown options, it will just issue warnings
6314 # or remarks (even with -Werror). So we grep stderr for any message
6315 # that says an option was ignored or not supported.
6316 # When given -MP, icc 7.0 and 7.1 complain thusly:
6317 # icc: Command line warning: ignoring option '-M'; no argument required
6318 # The diagnosis changed in icc 8.0:
6319 # icc: Command line remark: option '-MP' not supported
6320 if (grep 'ignoring option' conftest.err ||
6321 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6322 am_cv_CC_dependencies_compiler_type=$depmode
6323 break
6324 fi
6325 fi
6326 done
6327
6328 cd ..
6329 rm -rf conftest.dir
6330else
6331 am_cv_CC_dependencies_compiler_type=none
6332fi
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6336$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6337CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6338
6339 if
6340 test "x$enable_dependency_tracking" != xno \
6341 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6342 am__fastdepCC_TRUE=
6343 am__fastdepCC_FALSE='#'
6344else
6345 am__fastdepCC_TRUE='#'
6346 am__fastdepCC_FALSE=
6347fi
6348
6349
cristy95646052009-11-28 23:05:30 +00006350ac_ext=cpp
6351ac_cpp='$CXXCPP $CPPFLAGS'
6352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6355if test -z "$CXX"; then
6356 if test -n "$CCC"; then
6357 CXX=$CCC
6358 else
6359 if test -n "$ac_tool_prefix"; then
6360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6361 do
6362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006366if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006367 $as_echo_n "(cached) " >&6
6368else
6369 if test -n "$CXX"; then
6370 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6371else
6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383done
6384 done
6385IFS=$as_save_IFS
6386
6387fi
6388fi
6389CXX=$ac_cv_prog_CXX
6390if test -n "$CXX"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6392$as_echo "$CXX" >&6; }
6393else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395$as_echo "no" >&6; }
6396fi
6397
6398
6399 test -n "$CXX" && break
6400 done
6401fi
6402if test -z "$CXX"; then
6403 ac_ct_CXX=$CXX
6404 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6405do
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407set dummy $ac_prog; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006410if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006411 $as_echo_n "(cached) " >&6
6412else
6413 if test -n "$ac_ct_CXX"; then
6414 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_CXX="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428 done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6434if test -n "$ac_ct_CXX"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6436$as_echo "$ac_ct_CXX" >&6; }
6437else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443 test -n "$ac_ct_CXX" && break
6444done
6445
6446 if test "x$ac_ct_CXX" = x; then
6447 CXX="g++"
6448 else
6449 case $cross_compiling:$ac_tool_warned in
6450yes:)
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453ac_tool_warned=yes ;;
6454esac
6455 CXX=$ac_ct_CXX
6456 fi
6457fi
6458
6459 fi
6460fi
6461# Provide some information about the compiler.
6462$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6463set X $ac_compile
6464ac_compiler=$2
6465for ac_option in --version -v -V -qversion; do
6466 { { ac_try="$ac_compiler $ac_option >&5"
6467case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6472$as_echo "$ac_try_echo"; } >&5
6473 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6474 ac_status=$?
6475 if test -s conftest.err; then
6476 sed '10a\
6477... rest of stderr output deleted ...
6478 10q' conftest.err >conftest.er1
6479 cat conftest.er1 >&5
6480 fi
6481 rm -f conftest.er1 conftest.err
6482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6483 test $ac_status = 0; }
6484done
6485
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6487$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006488if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006489 $as_echo_n "(cached) " >&6
6490else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h. */
6493
6494int
6495main ()
6496{
6497#ifndef __GNUC__
6498 choke me
6499#endif
6500
6501 ;
6502 return 0;
6503}
6504_ACEOF
6505if ac_fn_cxx_try_compile "$LINENO"; then :
6506 ac_compiler_gnu=yes
6507else
6508 ac_compiler_gnu=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6512
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6515$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6516if test $ac_compiler_gnu = yes; then
6517 GXX=yes
6518else
6519 GXX=
6520fi
6521ac_test_CXXFLAGS=${CXXFLAGS+set}
6522ac_save_CXXFLAGS=$CXXFLAGS
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6524$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006525if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006526 $as_echo_n "(cached) " >&6
6527else
6528 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6529 ac_cxx_werror_flag=yes
6530 ac_cv_prog_cxx_g=no
6531 CXXFLAGS="-g"
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h. */
6534
6535int
6536main ()
6537{
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
6543if ac_fn_cxx_try_compile "$LINENO"; then :
6544 ac_cv_prog_cxx_g=yes
6545else
6546 CXXFLAGS=""
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h. */
6549
6550int
6551main ()
6552{
6553
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558if ac_fn_cxx_try_compile "$LINENO"; then :
6559
6560else
6561 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6562 CXXFLAGS="-g"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h. */
6565
6566int
6567main ()
6568{
6569
6570 ;
6571 return 0;
6572}
6573_ACEOF
6574if ac_fn_cxx_try_compile "$LINENO"; then :
6575 ac_cv_prog_cxx_g=yes
6576fi
6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578fi
6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6585$as_echo "$ac_cv_prog_cxx_g" >&6; }
6586if test "$ac_test_CXXFLAGS" = set; then
6587 CXXFLAGS=$ac_save_CXXFLAGS
6588elif test $ac_cv_prog_cxx_g = yes; then
6589 if test "$GXX" = yes; then
6590 CXXFLAGS="-g -O2"
6591 else
6592 CXXFLAGS="-g"
6593 fi
6594else
6595 if test "$GXX" = yes; then
6596 CXXFLAGS="-O2"
6597 else
6598 CXXFLAGS=
6599 fi
6600fi
6601ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
cristy73bd4a52010-10-05 11:24:23 +00006607depcc="$CXX" am_compiler_list=
6608
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6610$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006611if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006612 $as_echo_n "(cached) " >&6
6613else
6614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6615 # We make a subdir and do the tests there. Otherwise we can end up
6616 # making bogus files that we don't know about and never remove. For
6617 # instance it was reported that on HP-UX the gcc test will end up
6618 # making a dummy file named `D' -- because `-MD' means `put the output
6619 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006620 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006621 mkdir conftest.dir
6622 # Copy depcomp to subdir because otherwise we won't find it if we're
6623 # using a relative directory.
6624 cp "$am_depcomp" conftest.dir
6625 cd conftest.dir
6626 # We will build objects and dependencies in a subdirectory because
6627 # it helps to detect inapplicable dependency modes. For instance
6628 # both Tru64's cc and ICC support -MD to output dependencies as a
6629 # side effect of compilation, but ICC will put the dependencies in
6630 # the current directory while Tru64 will put them in the object
6631 # directory.
6632 mkdir sub
6633
6634 am_cv_CXX_dependencies_compiler_type=none
6635 if test "$am_compiler_list" = ""; then
6636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6637 fi
6638 am__universal=false
6639 case " $depcc " in #(
6640 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6641 esac
6642
6643 for depmode in $am_compiler_list; do
6644 # Setup a source with many dependencies, because some compilers
6645 # like to wrap large dependency lists on column 80 (with \), and
6646 # we should not choose a depcomp mode which is confused by this.
6647 #
6648 # We need to recreate these files for each test, as the compiler may
6649 # overwrite some of them when testing with obscure command lines.
6650 # This happens at least with the AIX C compiler.
6651 : > sub/conftest.c
6652 for i in 1 2 3 4 5 6; do
6653 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6654 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6655 # Solaris 8's {/usr,}/bin/sh.
6656 touch sub/conftst$i.h
6657 done
6658 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6659
6660 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6661 # mode. It turns out that the SunPro C++ compiler does not properly
6662 # handle `-M -o', and we need to detect this. Also, some Intel
6663 # versions had trouble with output in subdirs
6664 am__obj=sub/conftest.${OBJEXT-o}
6665 am__minus_obj="-o $am__obj"
6666 case $depmode in
6667 gcc)
6668 # This depmode causes a compiler race in universal mode.
6669 test "$am__universal" = false || continue
6670 ;;
6671 nosideeffect)
6672 # after this tag, mechanisms are not by side-effect, so they'll
6673 # only be used when explicitly requested
6674 if test "x$enable_dependency_tracking" = xyes; then
6675 continue
6676 else
6677 break
6678 fi
6679 ;;
cristy7247bba2012-02-05 16:37:27 +00006680 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006681 # This compiler won't grok `-c -o', but also, the minuso test has
6682 # not run yet. These depmodes are late enough in the game, and
6683 # so weak that their functioning should not be impacted.
6684 am__obj=conftest.${OBJEXT-o}
6685 am__minus_obj=
6686 ;;
6687 none) break ;;
6688 esac
6689 if depmode=$depmode \
6690 source=sub/conftest.c object=$am__obj \
6691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6692 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6693 >/dev/null 2>conftest.err &&
6694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6696 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6698 # icc doesn't choke on unknown options, it will just issue warnings
6699 # or remarks (even with -Werror). So we grep stderr for any message
6700 # that says an option was ignored or not supported.
6701 # When given -MP, icc 7.0 and 7.1 complain thusly:
6702 # icc: Command line warning: ignoring option '-M'; no argument required
6703 # The diagnosis changed in icc 8.0:
6704 # icc: Command line remark: option '-MP' not supported
6705 if (grep 'ignoring option' conftest.err ||
6706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6707 am_cv_CXX_dependencies_compiler_type=$depmode
6708 break
6709 fi
6710 fi
6711 done
6712
6713 cd ..
6714 rm -rf conftest.dir
6715else
6716 am_cv_CXX_dependencies_compiler_type=none
6717fi
6718
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6721$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6722CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6723
6724 if
6725 test "x$enable_dependency_tracking" != xno \
6726 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6727 am__fastdepCXX_TRUE=
6728 am__fastdepCXX_FALSE='#'
6729else
6730 am__fastdepCXX_TRUE='#'
6731 am__fastdepCXX_FALSE=
6732fi
6733
6734
cristy8b350f62009-11-15 23:12:43 +00006735 case $ac_cv_prog_cc_stdc in #(
6736 no) :
6737 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6738 *) :
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006740$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006741if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006742 $as_echo_n "(cached) " >&6
6743else
6744 ac_cv_prog_cc_c99=no
6745ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006747/* end confdefs.h. */
6748#include <stdarg.h>
6749#include <stdbool.h>
6750#include <stdlib.h>
6751#include <wchar.h>
6752#include <stdio.h>
6753
6754// Check varargs macros. These examples are taken from C99 6.10.3.5.
6755#define debug(...) fprintf (stderr, __VA_ARGS__)
6756#define showlist(...) puts (#__VA_ARGS__)
6757#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6758static void
6759test_varargs_macros (void)
6760{
6761 int x = 1234;
6762 int y = 5678;
6763 debug ("Flag");
6764 debug ("X = %d\n", x);
6765 showlist (The first, second, and third items.);
6766 report (x>y, "x is %d but y is %d", x, y);
6767}
6768
6769// Check long long types.
6770#define BIG64 18446744073709551615ull
6771#define BIG32 4294967295ul
6772#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6773#if !BIG_OK
6774 your preprocessor is broken;
6775#endif
6776#if BIG_OK
6777#else
6778 your preprocessor is broken;
6779#endif
6780static long long int bignum = -9223372036854775807LL;
6781static unsigned long long int ubignum = BIG64;
6782
6783struct incomplete_array
6784{
6785 int datasize;
6786 double data[];
6787};
6788
6789struct named_init {
6790 int number;
6791 const wchar_t *name;
6792 double average;
6793};
6794
6795typedef const char *ccp;
6796
6797static inline int
6798test_restrict (ccp restrict text)
6799{
6800 // See if C++-style comments work.
6801 // Iterate through items via the restricted pointer.
6802 // Also check for declarations in for loops.
6803 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6804 continue;
6805 return 0;
6806}
6807
6808// Check varargs and va_copy.
6809static void
6810test_varargs (const char *format, ...)
6811{
6812 va_list args;
6813 va_start (args, format);
6814 va_list args_copy;
6815 va_copy (args_copy, args);
6816
6817 const char *str;
6818 int number;
6819 float fnumber;
6820
6821 while (*format)
6822 {
6823 switch (*format++)
6824 {
6825 case 's': // string
6826 str = va_arg (args_copy, const char *);
6827 break;
6828 case 'd': // int
6829 number = va_arg (args_copy, int);
6830 break;
6831 case 'f': // float
6832 fnumber = va_arg (args_copy, double);
6833 break;
6834 default:
6835 break;
6836 }
6837 }
6838 va_end (args_copy);
6839 va_end (args);
6840}
6841
6842int
6843main ()
6844{
6845
6846 // Check bool.
6847 _Bool success = false;
6848
6849 // Check restrict.
6850 if (test_restrict ("String literal") == 0)
6851 success = true;
6852 char *restrict newvar = "Another string";
6853
6854 // Check varargs.
6855 test_varargs ("s, d' f .", "string", 65, 34.234);
6856 test_varargs_macros ();
6857
6858 // Check flexible array members.
6859 struct incomplete_array *ia =
6860 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6861 ia->datasize = 10;
6862 for (int i = 0; i < ia->datasize; ++i)
6863 ia->data[i] = i * 1.234;
6864
6865 // Check named initializers.
6866 struct named_init ni = {
6867 .number = 34,
6868 .name = L"Test wide string",
6869 .average = 543.34343,
6870 };
6871
6872 ni.number = 58;
6873
6874 int dynamic_array[ni.number];
6875 dynamic_array[ni.number - 1] = 543;
6876
6877 // work around unused variable warnings
6878 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6879 || dynamic_array[ni.number - 1] != 543);
6880
6881 ;
6882 return 0;
6883}
6884_ACEOF
6885for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6886do
6887 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006888 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006889 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006890fi
cristy3ed852e2009-09-05 21:47:34 +00006891rm -f core conftest.err conftest.$ac_objext
6892 test "x$ac_cv_prog_cc_c99" != "xno" && break
6893done
6894rm -f conftest.$ac_ext
6895CC=$ac_save_CC
6896
6897fi
6898# AC_CACHE_VAL
6899case "x$ac_cv_prog_cc_c99" in
6900 x)
cristy8b350f62009-11-15 23:12:43 +00006901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006902$as_echo "none needed" >&6; } ;;
6903 xno)
cristy8b350f62009-11-15 23:12:43 +00006904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006905$as_echo "unsupported" >&6; } ;;
6906 *)
6907 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006909$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6910esac
cristy8b350f62009-11-15 23:12:43 +00006911if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006912 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6913else
cristy8b350f62009-11-15 23:12:43 +00006914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006915$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006916if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006917 $as_echo_n "(cached) " >&6
6918else
6919 ac_cv_prog_cc_c89=no
6920ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006922/* end confdefs.h. */
6923#include <stdarg.h>
6924#include <stdio.h>
6925#include <sys/types.h>
6926#include <sys/stat.h>
6927/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6928struct buf { int x; };
6929FILE * (*rcsopen) (struct buf *, struct stat *, int);
6930static char *e (p, i)
6931 char **p;
6932 int i;
6933{
6934 return p[i];
6935}
6936static char *f (char * (*g) (char **, int), char **p, ...)
6937{
6938 char *s;
6939 va_list v;
6940 va_start (v,p);
6941 s = g (p, va_arg (v,int));
6942 va_end (v);
6943 return s;
6944}
6945
6946/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6947 function prototypes and stuff, but not '\xHH' hex character constants.
6948 These don't provoke an error unfortunately, instead are silently treated
6949 as 'x'. The following induces an error, until -std is added to get
6950 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6951 array size at least. It's necessary to write '\x00'==0 to get something
6952 that's true only with -std. */
6953int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6954
6955/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6956 inside strings and character constants. */
6957#define FOO(x) 'x'
6958int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6959
6960int test (int i, double x);
6961struct s1 {int (*f) (int a);};
6962struct s2 {int (*f) (double a);};
6963int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6964int argc;
6965char **argv;
6966int
6967main ()
6968{
6969return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6975 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6976do
6977 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006978 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006979 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006980fi
cristy3ed852e2009-09-05 21:47:34 +00006981rm -f core conftest.err conftest.$ac_objext
6982 test "x$ac_cv_prog_cc_c89" != "xno" && break
6983done
6984rm -f conftest.$ac_ext
6985CC=$ac_save_CC
6986
6987fi
6988# AC_CACHE_VAL
6989case "x$ac_cv_prog_cc_c89" in
6990 x)
cristy8b350f62009-11-15 23:12:43 +00006991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006992$as_echo "none needed" >&6; } ;;
6993 xno)
cristy8b350f62009-11-15 23:12:43 +00006994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006995$as_echo "unsupported" >&6; } ;;
6996 *)
6997 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006999$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7000esac
cristy8b350f62009-11-15 23:12:43 +00007001if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007002 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7003else
7004 ac_cv_prog_cc_stdc=no
7005fi
7006
cristy3ed852e2009-09-05 21:47:34 +00007007fi
cristy3ed852e2009-09-05 21:47:34 +00007008 ;;
7009esac
cristy8b350f62009-11-15 23:12:43 +00007010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007012 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007013 $as_echo_n "(cached) " >&6
7014fi
7015
cristy8b350f62009-11-15 23:12:43 +00007016 case $ac_cv_prog_cc_stdc in #(
7017 no) :
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7019$as_echo "unsupported" >&6; } ;; #(
7020 '') :
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7022$as_echo "none needed" >&6; } ;; #(
7023 *) :
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007025$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7026esac
7027
cristy3ed852e2009-09-05 21:47:34 +00007028ac_ext=c
7029ac_cpp='$CPP $CPPFLAGS'
7030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007034$as_echo_n "checking how to run the C preprocessor... " >&6; }
7035# On Suns, sometimes $CPP names a directory.
7036if test -n "$CPP" && test -d "$CPP"; then
7037 CPP=
7038fi
7039if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007040 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007041 $as_echo_n "(cached) " >&6
7042else
7043 # Double quotes because CPP needs to be expanded
7044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7045 do
7046 ac_preproc_ok=false
7047for ac_c_preproc_warn_flag in '' yes
7048do
7049 # Use a header file that comes with gcc, so configuring glibc
7050 # with a fresh cross-compiler works.
7051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 # <limits.h> exists even on freestanding compilers.
7053 # On the NeXT, cc -E runs the code through the compiler's parser,
7054 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007056/* end confdefs.h. */
7057#ifdef __STDC__
7058# include <limits.h>
7059#else
7060# include <assert.h>
7061#endif
7062 Syntax error
7063_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007064if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007065
cristy8b350f62009-11-15 23:12:43 +00007066else
cristy3ed852e2009-09-05 21:47:34 +00007067 # Broken: fails on valid input.
7068continue
7069fi
cristyda16f162011-02-19 23:52:17 +00007070rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007071
7072 # OK, works on sane cases. Now check whether nonexistent headers
7073 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007075/* end confdefs.h. */
7076#include <ac_nonexistent.h>
7077_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007078if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007079 # Broken: success on invalid input.
7080continue
7081else
cristy3ed852e2009-09-05 21:47:34 +00007082 # Passes both tests.
7083ac_preproc_ok=:
7084break
7085fi
cristyda16f162011-02-19 23:52:17 +00007086rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007087
7088done
7089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007090rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007091if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007092 break
7093fi
7094
7095 done
7096 ac_cv_prog_CPP=$CPP
7097
7098fi
7099 CPP=$ac_cv_prog_CPP
7100else
7101 ac_cv_prog_CPP=$CPP
7102fi
cristy8b350f62009-11-15 23:12:43 +00007103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007104$as_echo "$CPP" >&6; }
7105ac_preproc_ok=false
7106for ac_c_preproc_warn_flag in '' yes
7107do
7108 # Use a header file that comes with gcc, so configuring glibc
7109 # with a fresh cross-compiler works.
7110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111 # <limits.h> exists even on freestanding compilers.
7112 # On the NeXT, cc -E runs the code through the compiler's parser,
7113 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007115/* end confdefs.h. */
7116#ifdef __STDC__
7117# include <limits.h>
7118#else
7119# include <assert.h>
7120#endif
7121 Syntax error
7122_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007123if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007124
cristy8b350f62009-11-15 23:12:43 +00007125else
cristy3ed852e2009-09-05 21:47:34 +00007126 # Broken: fails on valid input.
7127continue
7128fi
cristyda16f162011-02-19 23:52:17 +00007129rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007130
7131 # OK, works on sane cases. Now check whether nonexistent headers
7132 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007134/* end confdefs.h. */
7135#include <ac_nonexistent.h>
7136_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007137if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007138 # Broken: success on invalid input.
7139continue
7140else
cristy3ed852e2009-09-05 21:47:34 +00007141 # Passes both tests.
7142ac_preproc_ok=:
7143break
7144fi
cristyda16f162011-02-19 23:52:17 +00007145rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007146
7147done
7148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007149rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007150if $ac_preproc_ok; then :
7151
cristy3ed852e2009-09-05 21:47:34 +00007152else
cristy8b350f62009-11-15 23:12:43 +00007153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007155as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7156See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007157fi
7158
7159ac_ext=c
7160ac_cpp='$CPP $CPPFLAGS'
7161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
cristy73bd4a52010-10-05 11:24:23 +00007165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7166$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007167if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007168 $as_echo_n "(cached) " >&6
7169else
7170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7171 for ac_i in 1 2 3 4 5 6 7; do
7172 ac_script="$ac_script$as_nl$ac_script"
7173 done
7174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7175 { ac_script=; unset ac_script;}
7176 if test -z "$SED"; then
7177 ac_path_SED_found=false
7178 # Loop through the user's path and test for each of PROGNAME-LIST
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_prog in sed gsed; do
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7187 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7188# Check for GNU ac_path_SED and select it if it is found.
7189 # Check for GNU $ac_path_SED
7190case `"$ac_path_SED" --version 2>&1` in
7191*GNU*)
7192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7193*)
7194 ac_count=0
7195 $as_echo_n 0123456789 >"conftest.in"
7196 while :
7197 do
7198 cat "conftest.in" "conftest.in" >"conftest.tmp"
7199 mv "conftest.tmp" "conftest.in"
7200 cp "conftest.in" "conftest.nl"
7201 $as_echo '' >> "conftest.nl"
7202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7204 as_fn_arith $ac_count + 1 && ac_count=$as_val
7205 if test $ac_count -gt ${ac_path_SED_max-0}; then
7206 # Best one so far, save it but keep looking for a better one
7207 ac_cv_path_SED="$ac_path_SED"
7208 ac_path_SED_max=$ac_count
7209 fi
7210 # 10*(2^10) chars as input seems more than enough
7211 test $ac_count -gt 10 && break
7212 done
7213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7214esac
7215
7216 $ac_path_SED_found && break 3
7217 done
7218 done
7219 done
7220IFS=$as_save_IFS
7221 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007222 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007223 fi
7224else
7225 ac_cv_path_SED=$SED
7226fi
7227
7228fi
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7230$as_echo "$ac_cv_path_SED" >&6; }
7231 SED="$ac_cv_path_SED"
7232 rm -f conftest.sed
7233
7234test -z "$SED" && SED=sed
7235Xsed="$SED -e 1s/^X//"
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7248$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007249if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007250 $as_echo_n "(cached) " >&6
7251else
7252 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7253 then ac_cv_path_FGREP="$GREP -F"
7254 else
7255 if test -z "$FGREP"; then
7256 ac_path_FGREP_found=false
7257 # Loop through the user's path and test for each of PROGNAME-LIST
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_prog in fgrep; do
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7266 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7267# Check for GNU ac_path_FGREP and select it if it is found.
7268 # Check for GNU $ac_path_FGREP
7269case `"$ac_path_FGREP" --version 2>&1` in
7270*GNU*)
7271 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7272*)
7273 ac_count=0
7274 $as_echo_n 0123456789 >"conftest.in"
7275 while :
7276 do
7277 cat "conftest.in" "conftest.in" >"conftest.tmp"
7278 mv "conftest.tmp" "conftest.in"
7279 cp "conftest.in" "conftest.nl"
7280 $as_echo 'FGREP' >> "conftest.nl"
7281 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7283 as_fn_arith $ac_count + 1 && ac_count=$as_val
7284 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7285 # Best one so far, save it but keep looking for a better one
7286 ac_cv_path_FGREP="$ac_path_FGREP"
7287 ac_path_FGREP_max=$ac_count
7288 fi
7289 # 10*(2^10) chars as input seems more than enough
7290 test $ac_count -gt 10 && break
7291 done
7292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7293esac
7294
7295 $ac_path_FGREP_found && break 3
7296 done
7297 done
7298 done
7299IFS=$as_save_IFS
7300 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007301 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007302 fi
7303else
7304 ac_cv_path_FGREP=$FGREP
7305fi
7306
7307 fi
7308fi
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7310$as_echo "$ac_cv_path_FGREP" >&6; }
7311 FGREP="$ac_cv_path_FGREP"
7312
7313
7314test -z "$GREP" && GREP=grep
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
cristy0c60a692010-11-04 01:09:47 +00007332ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7333ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7334ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7335
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7337$as_echo_n "checking how to print strings... " >&6; }
7338# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007339if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007340 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7341 ECHO='print -r --'
7342elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7343 ECHO='printf %s\n'
7344else
7345 # Use this function as a fallback that always works.
7346 func_fallback_echo ()
7347 {
7348 eval 'cat <<_LTECHO_EOF
7349$1
7350_LTECHO_EOF'
7351 }
7352 ECHO='func_fallback_echo'
7353fi
7354
7355# func_echo_all arg...
7356# Invoke $ECHO with all args, space-separated.
7357func_echo_all ()
7358{
7359 $ECHO ""
7360}
7361
7362case "$ECHO" in
7363 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7364$as_echo "printf" >&6; } ;;
7365 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7366$as_echo "print -r" >&6; } ;;
7367 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7368$as_echo "cat" >&6; } ;;
7369esac
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
cristy73bd4a52010-10-05 11:24:23 +00007384
7385
7386# Check whether --with-gnu-ld was given.
7387if test "${with_gnu_ld+set}" = set; then :
7388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7389else
7390 with_gnu_ld=no
7391fi
7392
7393ac_prog=ld
7394if test "$GCC" = yes; then
7395 # Check if gcc -print-prog-name=ld gives a path.
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7397$as_echo_n "checking for ld used by $CC... " >&6; }
7398 case $host in
7399 *-*-mingw*)
7400 # gcc leaves a trailing carriage return which upsets mingw
7401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7402 *)
7403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7404 esac
7405 case $ac_prog in
7406 # Accept absolute paths.
7407 [\\/]* | ?:[\\/]*)
7408 re_direlt='/[^/][^/]*/\.\./'
7409 # Canonicalize the pathname of ld
7410 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7411 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7412 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7413 done
7414 test -z "$LD" && LD="$ac_prog"
7415 ;;
7416 "")
7417 # If it fails, then pretend we aren't using GCC.
7418 ac_prog=ld
7419 ;;
7420 *)
7421 # If it is relative, then search for the first ld in PATH.
7422 with_gnu_ld=unknown
7423 ;;
7424 esac
7425elif test "$with_gnu_ld" = yes; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7427$as_echo_n "checking for GNU ld... " >&6; }
7428else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7430$as_echo_n "checking for non-GNU ld... " >&6; }
7431fi
cristyda16f162011-02-19 23:52:17 +00007432if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007433 $as_echo_n "(cached) " >&6
7434else
7435 if test -z "$LD"; then
7436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7437 for ac_dir in $PATH; do
7438 IFS="$lt_save_ifs"
7439 test -z "$ac_dir" && ac_dir=.
7440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7441 lt_cv_path_LD="$ac_dir/$ac_prog"
7442 # Check to see if the program is GNU ld. I'd rather use --version,
7443 # but apparently some variants of GNU ld only accept -v.
7444 # Break only if it was the GNU/non-GNU ld that we prefer.
7445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7446 *GNU* | *'with BFD'*)
7447 test "$with_gnu_ld" != no && break
7448 ;;
7449 *)
7450 test "$with_gnu_ld" != yes && break
7451 ;;
7452 esac
7453 fi
7454 done
7455 IFS="$lt_save_ifs"
7456else
7457 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7458fi
7459fi
7460
7461LD="$lt_cv_path_LD"
7462if test -n "$LD"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7464$as_echo "$LD" >&6; }
7465else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
cristy98dddb52010-11-04 00:30:15 +00007469test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7471$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007472if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007473 $as_echo_n "(cached) " >&6
7474else
7475 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7476case `$LD -v 2>&1 </dev/null` in
7477*GNU* | *'with BFD'*)
7478 lt_cv_prog_gnu_ld=yes
7479 ;;
7480*)
7481 lt_cv_prog_gnu_ld=no
7482 ;;
7483esac
7484fi
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7486$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7487with_gnu_ld=$lt_cv_prog_gnu_ld
7488
7489
7490
7491
7492
7493
7494
7495
7496
cristy3ed852e2009-09-05 21:47:34 +00007497
cristy837d6dc2010-02-27 01:16:57 +00007498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7499$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007500if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007501 $as_echo_n "(cached) " >&6
7502else
7503 ac_cv_prog_cc_c99=no
7504ac_save_CC=$CC
7505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h. */
7507#include <stdarg.h>
7508#include <stdbool.h>
7509#include <stdlib.h>
7510#include <wchar.h>
7511#include <stdio.h>
7512
7513// Check varargs macros. These examples are taken from C99 6.10.3.5.
7514#define debug(...) fprintf (stderr, __VA_ARGS__)
7515#define showlist(...) puts (#__VA_ARGS__)
7516#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7517static void
7518test_varargs_macros (void)
7519{
7520 int x = 1234;
7521 int y = 5678;
7522 debug ("Flag");
7523 debug ("X = %d\n", x);
7524 showlist (The first, second, and third items.);
7525 report (x>y, "x is %d but y is %d", x, y);
7526}
7527
7528// Check long long types.
7529#define BIG64 18446744073709551615ull
7530#define BIG32 4294967295ul
7531#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7532#if !BIG_OK
7533 your preprocessor is broken;
7534#endif
7535#if BIG_OK
7536#else
7537 your preprocessor is broken;
7538#endif
7539static long long int bignum = -9223372036854775807LL;
7540static unsigned long long int ubignum = BIG64;
7541
7542struct incomplete_array
7543{
7544 int datasize;
7545 double data[];
7546};
7547
7548struct named_init {
7549 int number;
7550 const wchar_t *name;
7551 double average;
7552};
7553
7554typedef const char *ccp;
7555
7556static inline int
7557test_restrict (ccp restrict text)
7558{
7559 // See if C++-style comments work.
7560 // Iterate through items via the restricted pointer.
7561 // Also check for declarations in for loops.
7562 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7563 continue;
7564 return 0;
7565}
7566
7567// Check varargs and va_copy.
7568static void
7569test_varargs (const char *format, ...)
7570{
7571 va_list args;
7572 va_start (args, format);
7573 va_list args_copy;
7574 va_copy (args_copy, args);
7575
7576 const char *str;
7577 int number;
7578 float fnumber;
7579
7580 while (*format)
7581 {
7582 switch (*format++)
7583 {
7584 case 's': // string
7585 str = va_arg (args_copy, const char *);
7586 break;
7587 case 'd': // int
7588 number = va_arg (args_copy, int);
7589 break;
7590 case 'f': // float
7591 fnumber = va_arg (args_copy, double);
7592 break;
7593 default:
7594 break;
7595 }
7596 }
7597 va_end (args_copy);
7598 va_end (args);
7599}
7600
7601int
7602main ()
7603{
7604
7605 // Check bool.
7606 _Bool success = false;
7607
7608 // Check restrict.
7609 if (test_restrict ("String literal") == 0)
7610 success = true;
7611 char *restrict newvar = "Another string";
7612
7613 // Check varargs.
7614 test_varargs ("s, d' f .", "string", 65, 34.234);
7615 test_varargs_macros ();
7616
7617 // Check flexible array members.
7618 struct incomplete_array *ia =
7619 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7620 ia->datasize = 10;
7621 for (int i = 0; i < ia->datasize; ++i)
7622 ia->data[i] = i * 1.234;
7623
7624 // Check named initializers.
7625 struct named_init ni = {
7626 .number = 34,
7627 .name = L"Test wide string",
7628 .average = 543.34343,
7629 };
7630
7631 ni.number = 58;
7632
7633 int dynamic_array[ni.number];
7634 dynamic_array[ni.number - 1] = 543;
7635
7636 // work around unused variable warnings
7637 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7638 || dynamic_array[ni.number - 1] != 543);
7639
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7645do
7646 CC="$ac_save_CC $ac_arg"
7647 if ac_fn_c_try_compile "$LINENO"; then :
7648 ac_cv_prog_cc_c99=$ac_arg
7649fi
7650rm -f core conftest.err conftest.$ac_objext
7651 test "x$ac_cv_prog_cc_c99" != "xno" && break
7652done
7653rm -f conftest.$ac_ext
7654CC=$ac_save_CC
7655
7656fi
7657# AC_CACHE_VAL
7658case "x$ac_cv_prog_cc_c99" in
7659 x)
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7661$as_echo "none needed" >&6; } ;;
7662 xno)
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7664$as_echo "unsupported" >&6; } ;;
7665 *)
7666 CC="$CC $ac_cv_prog_cc_c99"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7668$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7669esac
7670if test "x$ac_cv_prog_cc_c99" != xno; then :
7671
7672fi
7673
7674
cristy73bd4a52010-10-05 11:24:23 +00007675if test "x$CC" != xcc; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7677$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7678else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7680$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7681fi
7682set dummy $CC; ac_cc=`$as_echo "$2" |
7683 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007684if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007685 $as_echo_n "(cached) " >&6
7686else
cristy73bd4a52010-10-05 11:24:23 +00007687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h. */
7689
7690int
7691main ()
7692{
7693
7694 ;
7695 return 0;
7696}
7697_ACEOF
7698# Make sure it works both with $CC and with simple cc.
7699# We do the test twice because some compilers refuse to overwrite an
7700# existing .o file with -o, though they will create one.
7701ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7702rm -f conftest2.*
7703if { { case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706esac
7707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7708$as_echo "$ac_try_echo"; } >&5
7709 (eval "$ac_try") 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; } &&
7713 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716esac
7717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7718$as_echo "$ac_try_echo"; } >&5
7719 (eval "$ac_try") 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; };
7723then
7724 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7725 if test "x$CC" != xcc; then
7726 # Test first that cc exists at all.
7727 if { ac_try='cc -c conftest.$ac_ext >&5'
7728 { { case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
7732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7733$as_echo "$ac_try_echo"; } >&5
7734 (eval "$ac_try") 2>&5
7735 ac_status=$?
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }; }; then
7738 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7739 rm -f conftest2.*
7740 if { { case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743esac
7744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7745$as_echo "$ac_try_echo"; } >&5
7746 (eval "$ac_try") 2>&5
7747 ac_status=$?
7748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749 test $ac_status = 0; } &&
7750 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753esac
7754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7755$as_echo "$ac_try_echo"; } >&5
7756 (eval "$ac_try") 2>&5
7757 ac_status=$?
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; };
7760 then
7761 # cc works too.
7762 :
7763 else
7764 # cc exists but doesn't like -o.
7765 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7766 fi
7767 fi
7768 fi
7769else
7770 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7771fi
7772rm -f core conftest*
7773
7774fi
7775if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7777$as_echo "yes" >&6; }
7778else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
7781
7782$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7783
7784fi
7785
7786# FIXME: we rely on the cache variable name because
7787# there is no other way.
7788set dummy $CC
7789am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7790eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7791if test "$am_t" != yes; then
7792 # Losing compiler, so override with the script.
7793 # FIXME: It is wrong to rewrite CC.
7794 # But if we don't then we get into trouble of one sort or another.
7795 # A longer-term fix would be to have automake use am__CC in this case,
7796 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7797 CC="$am_aux_dir/compile $CC"
7798fi
7799
7800
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7802$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007803if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007804 $as_echo_n "(cached) " >&6
7805else
7806 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007807 ac_ext=c
7808ac_cpp='$CPP $CPPFLAGS'
7809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812
7813 ac_save_CFLAGS="$CFLAGS"
7814for 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" #
7815do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h. */
7818
7819int
7820main ()
7821{
cristy24fc1fe2010-10-23 21:13:01 +00007822
cristy73bd4a52010-10-05 11:24:23 +00007823 ;
7824 return 0;
7825}
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"; then :
7828 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7829fi
7830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831done
7832 CFLAGS="$ac_save_CFLAGS"
7833 ac_ext=c
7834ac_cpp='$CPP $CPPFLAGS'
7835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838
7839
7840fi
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7842$as_echo "$ac_cv_cflags_warn_all" >&6; }
7843case ".$ac_cv_cflags_warn_all" in
7844 .ok|.ok,*) ;;
7845 .|.no|.no,*)
7846 ;;
7847 *)
7848 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7849 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7850 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; }
7854 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7855 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }
7859 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7860 fi
7861 ;;
nicolas6237c462010-10-05 06:11:49 +00007862esac
cristy3ed852e2009-09-05 21:47:34 +00007863
cristya0b81c32010-01-22 02:54:33 +00007864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7866$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7867set x ${MAKE-make}
7868ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007869if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007870 $as_echo_n "(cached) " >&6
7871else
7872 cat >conftest.make <<\_ACEOF
7873SHELL = /bin/sh
7874all:
7875 @echo '@@@%%%=$(MAKE)=@@@%%%'
7876_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007877# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007878case `${MAKE-make} -f conftest.make 2>/dev/null` in
7879 *@@@%%%=?*=@@@%%%*)
7880 eval ac_cv_prog_make_${ac_make}_set=yes;;
7881 *)
7882 eval ac_cv_prog_make_${ac_make}_set=no;;
7883esac
7884rm -f conftest.make
7885fi
7886if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7888$as_echo "yes" >&6; }
7889 SET_MAKE=
7890else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
7893 SET_MAKE="MAKE=${MAKE-make}"
7894fi
7895
cristy8b350f62009-11-15 23:12:43 +00007896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007897$as_echo_n "checking whether ln -s works... " >&6; }
7898LN_S=$as_ln_s
7899if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007901$as_echo "yes" >&6; }
7902else
cristy8b350f62009-11-15 23:12:43 +00007903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007904$as_echo "no, using $LN_S" >&6; }
7905fi
7906
cristy73bd4a52010-10-05 11:24:23 +00007907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7908$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7909
7910# Check whether --with-dmalloc was given.
7911if test "${with_dmalloc+set}" = set; then :
7912 withval=$with_dmalloc; if test "$withval" = yes; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914$as_echo "yes" >&6; }
7915
7916$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7917
7918 LIBS="$LIBS -ldmalloc"
7919 LDFLAGS="$LDFLAGS -g"
7920else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
7927fi
7928
7929
7930
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7932$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007933if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007934 $as_echo_n "(cached) " >&6
7935else
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h. */
7938#include <stdlib.h>
7939 static void foo(void) __attribute__ ((unused));
7940 static void
7941 foo(void) {
7942 exit(1);
7943 }
7944
7945int
7946main ()
7947{
7948
7949 ;
7950 return 0;
7951}
7952_ACEOF
7953if ac_fn_c_try_compile "$LINENO"; then :
7954 ax_cv___attribute__=yes
7955else
7956 ax_cv___attribute__=no
7957
7958fi
7959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7963$as_echo "$ax_cv___attribute__" >&6; }
7964 if test "$ax_cv___attribute__" = "yes"; then
7965
7966$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7967
7968 fi
7969
7970
7971
7972if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7975set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007978if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007979 $as_echo_n "(cached) " >&6
7980else
7981 case $PKG_CONFIG in
7982 [\\/]* | ?:[\\/]*)
7983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7984 ;;
7985 *)
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997done
7998 done
7999IFS=$as_save_IFS
8000
8001 ;;
8002esac
8003fi
8004PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8005if test -n "$PKG_CONFIG"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8007$as_echo "$PKG_CONFIG" >&6; }
8008else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011fi
8012
8013
8014fi
8015if test -z "$ac_cv_path_PKG_CONFIG"; then
8016 ac_pt_PKG_CONFIG=$PKG_CONFIG
8017 # Extract the first word of "pkg-config", so it can be a program name with args.
8018set dummy pkg-config; ac_word=$2
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008021if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008022 $as_echo_n "(cached) " >&6
8023else
8024 case $ac_pt_PKG_CONFIG in
8025 [\\/]* | ?:[\\/]*)
8026 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8027 ;;
8028 *)
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040done
8041 done
8042IFS=$as_save_IFS
8043
8044 ;;
8045esac
8046fi
8047ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8048if test -n "$ac_pt_PKG_CONFIG"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8050$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8051else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054fi
8055
8056 if test "x$ac_pt_PKG_CONFIG" = x; then
8057 PKG_CONFIG=""
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065 PKG_CONFIG=$ac_pt_PKG_CONFIG
8066 fi
8067else
8068 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8069fi
8070
8071fi
8072if test -n "$PKG_CONFIG"; then
8073 _pkg_min_version=0.9.0
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8075$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8076 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078$as_echo "yes" >&6; }
8079 else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082 PKG_CONFIG=""
8083 fi
8084
8085fi
cristy3ed852e2009-09-05 21:47:34 +00008086
8087#
cristy3ed852e2009-09-05 21:47:34 +00008088# Enable run-time checking.
8089#
8090# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008091if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008092 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8093else
8094 enable_bounds_checking='no'
8095fi
8096
8097
8098if test "$enable_bounds_checking" = yes; then
8099
cristy8b350f62009-11-15 23:12:43 +00008100$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008101
8102fi
8103
8104#
8105# Tests for Windows
8106#
8107
8108
cristy73bd4a52010-10-05 11:24:23 +00008109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8110$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008111if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008112 $as_echo_n "(cached) " >&6
8113else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h. */
8116
8117int
8118main ()
8119{
8120#ifndef _MSC_VER
8121 choke me
8122#endif
8123
8124 ;
8125 return 0;
8126}
8127_ACEOF
8128if ac_fn_c_try_compile "$LINENO"; then :
8129 ax_compiler_ms=yes
8130else
8131 ax_compiler_ms=no
8132fi
8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134ax_cv_c_compiler_ms=$ax_compiler_ms
8135
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8138$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008139
8140GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008141native_win32_build='no'
8142cygwin_build='no'
8143case "${host_os}" in
8144 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008145 cygwin_build='yes'
8146 GDI32_LIBS='-lgdi32'
8147 ;;
8148 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008149 native_win32_build='yes'
8150 GDI32_LIBS='-lgdi32'
8151 ;;
8152esac
8153if test "${GDI32_LIBS}x" != 'x'; then
8154
cristy8b350f62009-11-15 23:12:43 +00008155$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008156
8157fi
8158
cristy73bd4a52010-10-05 11:24:23 +00008159 if test "${GDI32_LIBS}x" != 'x' ; then
8160 WINGDI32_DELEGATE_TRUE=
8161 WINGDI32_DELEGATE_FALSE='#'
8162else
8163 WINGDI32_DELEGATE_TRUE='#'
8164 WINGDI32_DELEGATE_FALSE=
8165fi
8166
8167 if test "${native_win32_build}" = 'yes' ; then
8168 WIN32_NATIVE_BUILD_TRUE=
8169 WIN32_NATIVE_BUILD_FALSE='#'
8170else
8171 WIN32_NATIVE_BUILD_TRUE='#'
8172 WIN32_NATIVE_BUILD_FALSE=
8173fi
8174
8175 if test "${cygwin_build}" = 'yes' ; then
8176 CYGWIN_BUILD_TRUE=
8177 CYGWIN_BUILD_FALSE='#'
8178else
8179 CYGWIN_BUILD_TRUE='#'
8180 CYGWIN_BUILD_FALSE=
8181fi
8182
8183 if test "x${CC}" = 'xcl.exe' ; then
8184 USING_CL_TRUE=
8185 USING_CL_FALSE='#'
8186else
8187 USING_CL_TRUE='#'
8188 USING_CL_FALSE=
8189fi
8190
cristy3ed852e2009-09-05 21:47:34 +00008191
8192WinPathScript="${srcdirfull}/winpath.sh"
8193
8194
8195#
8196# Compiler flags tweaks
8197#
8198if test "${GCC}" != "yes"; then
8199 case "${host}" in
8200 *-*-hpux* )
8201 # aCC: HP ANSI C++ B3910B A.03.34
8202 CFLAGS="${CFLAGS} -Wp,-H30000"
8203 if test -n "${CXXFLAGS}"; then
8204 CXXFLAGS='-AA'
8205 else
8206 CXXFLAGS="${CXXFLAGS} -AA"
8207 fi
8208 ;;
8209 *-dec-osf5.* )
8210 # Compaq alphaev68-dec-osf5.1 compiler
8211 if test -n "${CXXFLAGS}"; then
8212 CXXFLAGS='-std strict_ansi -noimplicit_include'
8213 else
8214 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8215 fi
8216 esac
8217fi
8218
8219# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008221$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008222if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008223 $as_echo_n "(cached) " >&6
8224else
8225
8226im_cv_ld_lazyload='none'
8227case "${host}" in
8228 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8229 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8230 im_cv_ld_lazyload='-Wl,-zlazyload'
8231 fi
8232 ;;
8233esac
8234
8235fi
cristy8b350f62009-11-15 23:12:43 +00008236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008237$as_echo "$im_cv_ld_lazyload" >&6; }
8238if test "${im_cv_ld_lazyload}" != 'none' ; then
8239 if test -z "${LDFLAGS}" ; then
8240 LDFLAGS="${im_cv_ld_lazyload}"
8241 else
8242 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8243 fi
8244fi
8245
8246case "$host" in
8247*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008248 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008249if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008250 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8251else
8252 build_osxuniversal=no
8253fi
8254
8255
8256 if test "${build_osxuniversal}" != no ; then
8257 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008258 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008259Please re-run configure with these options:
8260 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008261 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008262 fi
8263 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8264 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8265 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8266 fi
8267 ;;
8268esac
8269
cristy0151ae12011-10-28 16:32:29 +00008270#
8271# ARCH specific include directory
8272#
8273
cristy670aa3c2011-11-03 00:54:00 +00008274# Check whether --with-includearch-dir was given.
8275if test "${with_includearch_dir+set}" = set; then :
8276 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008277else
cristy670aa3c2011-11-03 00:54:00 +00008278 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008279fi
8280
8281
cristy670aa3c2011-11-03 00:54:00 +00008282eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008283
cristy0151ae12011-10-28 16:32:29 +00008284
8285#
8286# ARCH specific configuration directory
8287#
8288
cristy670aa3c2011-11-03 00:54:00 +00008289# Check whether --with-sharearch-dir was given.
8290if test "${with_sharearch_dir+set}" = set; then :
8291 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008292else
cristy408ebcd2011-11-14 01:36:57 +00008293 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008294fi
8295
8296
cristy670aa3c2011-11-03 00:54:00 +00008297eval "eval SHAREARCH_DIR=$sharearch_dir"
8298SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008299
cristy0151ae12011-10-28 16:32:29 +00008300
8301#
cristy3ed852e2009-09-05 21:47:34 +00008302# Enable support for threads
8303
8304# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008305if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008306 withval=$with_threads; with_threads=$withval
8307else
8308 with_threads='yes'
8309fi
8310
8311
8312have_threads=no
8313if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008314
8315
cristy73bd4a52010-10-05 11:24:23 +00008316ac_ext=c
8317ac_cpp='$CPP $CPPFLAGS'
8318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8320ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321
8322ax_pthread_ok=no
8323
8324# We used to check for pthread.h first, but this fails if pthread.h
8325# requires special compiler flags (e.g. on True64 or Sequent).
8326# It gets checked for in the link test anyway.
8327
8328# First of all, check if the user has set any of the PTHREAD_LIBS,
8329# etcetera environment variables, and if threads linking works using
8330# them:
8331if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8332 save_CFLAGS="$CFLAGS"
8333 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8334 save_LIBS="$LIBS"
8335 LIBS="$PTHREAD_LIBS $LIBS"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8337$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h. */
8340
8341/* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8344#ifdef __cplusplus
8345extern "C"
8346#endif
8347char pthread_join ();
8348int
8349main ()
8350{
8351return pthread_join ();
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357 ax_pthread_ok=yes
8358fi
8359rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8362$as_echo "$ax_pthread_ok" >&6; }
8363 if test x"$ax_pthread_ok" = xno; then
8364 PTHREAD_LIBS=""
8365 PTHREAD_CFLAGS=""
8366 fi
8367 LIBS="$save_LIBS"
8368 CFLAGS="$save_CFLAGS"
8369fi
8370
8371# We must check for the threads library under a number of different
8372# names; the ordering is very important because some systems
8373# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8374# libraries is broken (non-POSIX).
8375
8376# Create a list of thread flags to try. Items starting with a "-" are
8377# C compiler flags, and other items are library names, except for "none"
8378# which indicates that we try without any flags at all, and "pthread-config"
8379# which is a program returning the flags for the Pth emulation library.
8380
cristy18307f12011-12-30 01:20:16 +00008381ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008382
8383# The ordering *is* (sometimes) important. Some notes on the
8384# individual items follow:
8385
8386# pthreads: AIX (must check this before -lpthread)
8387# none: in case threads are in libc; should be tried before -Kthread and
8388# other compiler flags to prevent continual compiler warnings
8389# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8390# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8391# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8392# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8393# -pthreads: Solaris/gcc
8394# -mthreads: Mingw32/gcc, Lynx/gcc
8395# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8396# doesn't hurt to check since this sometimes defines pthreads too;
8397# also defines -D_REENTRANT)
8398# ... -mt is also the pthreads flag for HP/aCC
8399# pthread: Linux, etcetera
8400# --thread-safe: KAI C++
8401# pthread-config: use pthread-config program (for GNU Pth library)
8402
8403case "${host_cpu}-${host_os}" in
8404 *solaris*)
8405
8406 # On Solaris (at least, for some versions), libc contains stubbed
8407 # (non-functional) versions of the pthreads routines, so link-based
8408 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8409 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8410 # a function called by this macro, so we could check for that, but
8411 # who knows whether they'll stub that too in a future libc.) So,
8412 # we'll just look for -pthreads and -lpthread first:
8413
8414 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8415 ;;
8416
cristya316db12011-10-24 00:49:45 +00008417 *-darwin*)
8418 ax_pthread_flags="-pthread $ax_pthread_flags"
8419 ;;
cristy73bd4a52010-10-05 11:24:23 +00008420esac
8421
8422if test x"$ax_pthread_ok" = xno; then
8423for flag in $ax_pthread_flags; do
8424
8425 case $flag in
8426 none)
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8428$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8429 ;;
8430
8431 -*)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8433$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8434 PTHREAD_CFLAGS="$flag"
8435 ;;
8436
cristya316db12011-10-24 00:49:45 +00008437 pthread-config)
8438 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008439set dummy pthread-config; ac_word=$2
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008442if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008443 $as_echo_n "(cached) " >&6
8444else
8445 if test -n "$ax_pthread_config"; then
8446 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8447else
8448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_prog_ax_pthread_config="yes"
8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459done
8460 done
8461IFS=$as_save_IFS
8462
8463 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8464fi
8465fi
8466ax_pthread_config=$ac_cv_prog_ax_pthread_config
8467if test -n "$ax_pthread_config"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8469$as_echo "$ax_pthread_config" >&6; }
8470else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
8473fi
8474
8475
cristya316db12011-10-24 00:49:45 +00008476 if test x"$ax_pthread_config" = xno; then continue; fi
8477 PTHREAD_CFLAGS="`pthread-config --cflags`"
8478 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8479 ;;
cristy73bd4a52010-10-05 11:24:23 +00008480
8481 *)
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8483$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8484 PTHREAD_LIBS="-l$flag"
8485 ;;
8486 esac
8487
8488 save_LIBS="$LIBS"
8489 save_CFLAGS="$CFLAGS"
8490 LIBS="$PTHREAD_LIBS $LIBS"
8491 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8492
8493 # Check for various functions. We must include pthread.h,
8494 # since some functions may be macros. (On the Sequent, we
8495 # need a special flag -Kthread to make this header compile.)
8496 # We check for pthread_join because it is in -lpthread on IRIX
8497 # while pthread_create is in libc. We check for pthread_attr_init
8498 # due to DEC craziness with -lpthreads. We check for
8499 # pthread_cleanup_push because it is one of the few pthread
8500 # functions on Solaris that doesn't have a non-functional libc stub.
8501 # We try pthread_create on general principles.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h. */
8504#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008505 static void routine(void *a) { a = 0; }
8506 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008507int
8508main ()
8509{
8510pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008511 pthread_create(&th, 0, start_routine, 0);
8512 pthread_join(th, 0);
8513 pthread_attr_init(&attr);
8514 pthread_cleanup_push(routine, 0);
8515 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008516 ;
8517 return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_link "$LINENO"; then :
8521 ax_pthread_ok=yes
8522fi
8523rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525
8526 LIBS="$save_LIBS"
8527 CFLAGS="$save_CFLAGS"
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8530$as_echo "$ax_pthread_ok" >&6; }
8531 if test "x$ax_pthread_ok" = xyes; then
8532 break;
8533 fi
8534
8535 PTHREAD_LIBS=""
8536 PTHREAD_CFLAGS=""
8537done
8538fi
8539
8540# Various other checks:
8541if test "x$ax_pthread_ok" = xyes; then
8542 save_LIBS="$LIBS"
8543 LIBS="$PTHREAD_LIBS $LIBS"
8544 save_CFLAGS="$CFLAGS"
8545 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8546
8547 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008549$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008550 attr_name=unknown
8551 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008553/* end confdefs.h. */
8554#include <pthread.h>
8555int
8556main ()
8557{
cristya316db12011-10-24 00:49:45 +00008558int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008559 ;
8560 return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_link "$LINENO"; then :
8564 attr_name=$attr; break
8565fi
8566rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008568 done
cristy73bd4a52010-10-05 11:24:23 +00008569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8570$as_echo "$attr_name" >&6; }
8571 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8572
8573cat >>confdefs.h <<_ACEOF
8574#define PTHREAD_CREATE_JOINABLE $attr_name
8575_ACEOF
8576
8577 fi
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8580$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8581 flag=no
8582 case "${host_cpu}-${host_os}" in
8583 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8584 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8585 esac
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8587$as_echo "${flag}" >&6; }
8588 if test "x$flag" != xno; then
8589 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8590 fi
8591
cristya316db12011-10-24 00:49:45 +00008592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8593$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8594if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596else
8597
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h. */
8600
8601 #include <pthread.h>
8602int
8603main ()
8604{
8605int i = PTHREAD_PRIO_INHERIT;
8606 ;
8607 return 0;
8608}
8609_ACEOF
8610if ac_fn_c_try_link "$LINENO"; then :
8611 ax_cv_PTHREAD_PRIO_INHERIT=yes
8612else
8613 ax_cv_PTHREAD_PRIO_INHERIT=no
8614fi
8615rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617
8618fi
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8620$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8621 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8622
8623$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8624
8625fi
8626
cristy73bd4a52010-10-05 11:24:23 +00008627 LIBS="$save_LIBS"
8628 CFLAGS="$save_CFLAGS"
8629
8630 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008631 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008632 for ac_prog in xlc_r cc_r
8633do
8634 # Extract the first word of "$ac_prog", so it can be a program name with args.
8635set dummy $ac_prog; ac_word=$2
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008638if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008639 $as_echo_n "(cached) " >&6
8640else
8641 if test -n "$PTHREAD_CC"; then
8642 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8643else
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_PTHREAD_CC="$ac_prog"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8654 fi
8655done
8656 done
8657IFS=$as_save_IFS
8658
8659fi
8660fi
8661PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8662if test -n "$PTHREAD_CC"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8664$as_echo "$PTHREAD_CC" >&6; }
8665else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
8668fi
8669
8670
8671 test -n "$PTHREAD_CC" && break
8672done
8673test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8674
8675 else
8676 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008677 fi
cristy73bd4a52010-10-05 11:24:23 +00008678else
8679 PTHREAD_CC="$CC"
8680fi
8681
8682
8683
8684
8685
8686# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8687if test x"$ax_pthread_ok" = xyes; then
8688
8689$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8690
8691 :
8692else
8693 ax_pthread_ok=no
8694
8695fi
8696ac_ext=c
8697ac_cpp='$CPP $CPPFLAGS'
8698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
cristy7acf8fb2010-09-23 19:58:53 +00008703 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008704 have_threads=yes
8705 DEF_THREAD="$PTHREAD_CFLAGS"
8706 CFLAGS="$CFLAGS $DEF_THREAD"
8707 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8708 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008709 { $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 +00008710$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8711 CC="$PTHREAD_CC"
8712 fi
cristy55bf91c2010-09-24 00:29:41 +00008713
8714$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8715
cristy3ed852e2009-09-05 21:47:34 +00008716 fi
8717fi
8718
8719# Enable support for OpenMP
8720if test "$have_threads" != 'yes'; then
8721 ac_cv_prog_c_openmp=unsupported
8722fi
8723
8724 OPENMP_CFLAGS=
8725 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008726if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008727 enableval=$enable_openmp;
8728fi
8729
8730 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008732$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008733if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008734 $as_echo_n "(cached) " >&6
8735else
cristy8b350f62009-11-15 23:12:43 +00008736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008738
8739#ifndef _OPENMP
8740 choke me
8741#endif
8742#include <omp.h>
8743int main () { return omp_get_num_threads (); }
8744
8745_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008747 ac_cv_prog_c_openmp='none needed'
8748else
cristy8b350f62009-11-15 23:12:43 +00008749 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008750 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8751 ac_save_CFLAGS=$CFLAGS
8752 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008755
8756#ifndef _OPENMP
8757 choke me
8758#endif
8759#include <omp.h>
8760int main () { return omp_get_num_threads (); }
8761
8762_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008764 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008765fi
cristy8b350f62009-11-15 23:12:43 +00008766rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008768 CFLAGS=$ac_save_CFLAGS
8769 if test "$ac_cv_prog_c_openmp" != unsupported; then
8770 break
8771 fi
8772 done
8773fi
cristy8b350f62009-11-15 23:12:43 +00008774rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008776fi
cristy8b350f62009-11-15 23:12:43 +00008777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008778$as_echo "$ac_cv_prog_c_openmp" >&6; }
8779 case $ac_cv_prog_c_openmp in #(
8780 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008781 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008782 *)
cristy8b350f62009-11-15 23:12:43 +00008783 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008784 esac
8785 fi
8786
8787
8788CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8789MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8790
cristy391f1ce2010-09-09 17:23:28 +00008791if test "$enable_openmp" != no; then
8792 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8793 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8794 fi
8795fi
cristy3ed852e2009-09-05 21:47:34 +00008796
cristy736173a2009-09-20 21:18:22 +00008797# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008798
8799
cristy73bd4a52010-10-05 11:24:23 +00008800ac_ext=c
8801ac_cpp='$CPP $CPPFLAGS'
8802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8804ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805
8806ax_pthread_ok=no
8807
8808# We used to check for pthread.h first, but this fails if pthread.h
8809# requires special compiler flags (e.g. on True64 or Sequent).
8810# It gets checked for in the link test anyway.
8811
8812# First of all, check if the user has set any of the PTHREAD_LIBS,
8813# etcetera environment variables, and if threads linking works using
8814# them:
8815if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8816 save_CFLAGS="$CFLAGS"
8817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8818 save_LIBS="$LIBS"
8819 LIBS="$PTHREAD_LIBS $LIBS"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8821$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h. */
8824
8825/* Override any GCC internal prototype to avoid an error.
8826 Use char because int might match the return type of a GCC
8827 builtin and then its argument prototype would still apply. */
8828#ifdef __cplusplus
8829extern "C"
8830#endif
8831char pthread_join ();
8832int
8833main ()
8834{
8835return pthread_join ();
8836 ;
8837 return 0;
8838}
8839_ACEOF
8840if ac_fn_c_try_link "$LINENO"; then :
8841 ax_pthread_ok=yes
8842fi
8843rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8846$as_echo "$ax_pthread_ok" >&6; }
8847 if test x"$ax_pthread_ok" = xno; then
8848 PTHREAD_LIBS=""
8849 PTHREAD_CFLAGS=""
8850 fi
8851 LIBS="$save_LIBS"
8852 CFLAGS="$save_CFLAGS"
8853fi
8854
8855# We must check for the threads library under a number of different
8856# names; the ordering is very important because some systems
8857# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8858# libraries is broken (non-POSIX).
8859
8860# Create a list of thread flags to try. Items starting with a "-" are
8861# C compiler flags, and other items are library names, except for "none"
8862# which indicates that we try without any flags at all, and "pthread-config"
8863# which is a program returning the flags for the Pth emulation library.
8864
cristy18307f12011-12-30 01:20:16 +00008865ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008866
8867# The ordering *is* (sometimes) important. Some notes on the
8868# individual items follow:
8869
8870# pthreads: AIX (must check this before -lpthread)
8871# none: in case threads are in libc; should be tried before -Kthread and
8872# other compiler flags to prevent continual compiler warnings
8873# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8874# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8875# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8876# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8877# -pthreads: Solaris/gcc
8878# -mthreads: Mingw32/gcc, Lynx/gcc
8879# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8880# doesn't hurt to check since this sometimes defines pthreads too;
8881# also defines -D_REENTRANT)
8882# ... -mt is also the pthreads flag for HP/aCC
8883# pthread: Linux, etcetera
8884# --thread-safe: KAI C++
8885# pthread-config: use pthread-config program (for GNU Pth library)
8886
8887case "${host_cpu}-${host_os}" in
8888 *solaris*)
8889
8890 # On Solaris (at least, for some versions), libc contains stubbed
8891 # (non-functional) versions of the pthreads routines, so link-based
8892 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8893 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8894 # a function called by this macro, so we could check for that, but
8895 # who knows whether they'll stub that too in a future libc.) So,
8896 # we'll just look for -pthreads and -lpthread first:
8897
8898 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8899 ;;
8900
cristya316db12011-10-24 00:49:45 +00008901 *-darwin*)
8902 ax_pthread_flags="-pthread $ax_pthread_flags"
8903 ;;
cristy73bd4a52010-10-05 11:24:23 +00008904esac
8905
8906if test x"$ax_pthread_ok" = xno; then
8907for flag in $ax_pthread_flags; do
8908
8909 case $flag in
8910 none)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8912$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8913 ;;
8914
8915 -*)
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8917$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8918 PTHREAD_CFLAGS="$flag"
8919 ;;
8920
cristya316db12011-10-24 00:49:45 +00008921 pthread-config)
8922 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008923set dummy pthread-config; ac_word=$2
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008926if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008927 $as_echo_n "(cached) " >&6
8928else
8929 if test -n "$ax_pthread_config"; then
8930 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8931else
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8939 ac_cv_prog_ax_pthread_config="yes"
8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 break 2
8942 fi
8943done
8944 done
8945IFS=$as_save_IFS
8946
8947 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8948fi
8949fi
8950ax_pthread_config=$ac_cv_prog_ax_pthread_config
8951if test -n "$ax_pthread_config"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8953$as_echo "$ax_pthread_config" >&6; }
8954else
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956$as_echo "no" >&6; }
8957fi
8958
8959
cristya316db12011-10-24 00:49:45 +00008960 if test x"$ax_pthread_config" = xno; then continue; fi
8961 PTHREAD_CFLAGS="`pthread-config --cflags`"
8962 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8963 ;;
cristy73bd4a52010-10-05 11:24:23 +00008964
8965 *)
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8967$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8968 PTHREAD_LIBS="-l$flag"
8969 ;;
8970 esac
8971
8972 save_LIBS="$LIBS"
8973 save_CFLAGS="$CFLAGS"
8974 LIBS="$PTHREAD_LIBS $LIBS"
8975 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8976
8977 # Check for various functions. We must include pthread.h,
8978 # since some functions may be macros. (On the Sequent, we
8979 # need a special flag -Kthread to make this header compile.)
8980 # We check for pthread_join because it is in -lpthread on IRIX
8981 # while pthread_create is in libc. We check for pthread_attr_init
8982 # due to DEC craziness with -lpthreads. We check for
8983 # pthread_cleanup_push because it is one of the few pthread
8984 # functions on Solaris that doesn't have a non-functional libc stub.
8985 # We try pthread_create on general principles.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h. */
8988#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008989 static void routine(void *a) { a = 0; }
8990 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008991int
8992main ()
8993{
8994pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008995 pthread_create(&th, 0, start_routine, 0);
8996 pthread_join(th, 0);
8997 pthread_attr_init(&attr);
8998 pthread_cleanup_push(routine, 0);
8999 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009000 ;
9001 return 0;
9002}
9003_ACEOF
9004if ac_fn_c_try_link "$LINENO"; then :
9005 ax_pthread_ok=yes
9006fi
9007rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009
9010 LIBS="$save_LIBS"
9011 CFLAGS="$save_CFLAGS"
9012
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9014$as_echo "$ax_pthread_ok" >&6; }
9015 if test "x$ax_pthread_ok" = xyes; then
9016 break;
9017 fi
9018
9019 PTHREAD_LIBS=""
9020 PTHREAD_CFLAGS=""
9021done
9022fi
9023
9024# Various other checks:
9025if test "x$ax_pthread_ok" = xyes; then
9026 save_LIBS="$LIBS"
9027 LIBS="$PTHREAD_LIBS $LIBS"
9028 save_CFLAGS="$CFLAGS"
9029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9030
9031 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009033$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009034 attr_name=unknown
9035 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009037/* end confdefs.h. */
9038#include <pthread.h>
9039int
9040main ()
9041{
cristya316db12011-10-24 00:49:45 +00009042int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009043 ;
9044 return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"; then :
9048 attr_name=$attr; break
9049fi
9050rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009052 done
cristy73bd4a52010-10-05 11:24:23 +00009053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9054$as_echo "$attr_name" >&6; }
9055 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9056
9057cat >>confdefs.h <<_ACEOF
9058#define PTHREAD_CREATE_JOINABLE $attr_name
9059_ACEOF
9060
9061 fi
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9064$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9065 flag=no
9066 case "${host_cpu}-${host_os}" in
9067 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9068 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9069 esac
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9071$as_echo "${flag}" >&6; }
9072 if test "x$flag" != xno; then
9073 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9074 fi
9075
cristya316db12011-10-24 00:49:45 +00009076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9077$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9078if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080else
9081
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h. */
9084
9085 #include <pthread.h>
9086int
9087main ()
9088{
9089int i = PTHREAD_PRIO_INHERIT;
9090 ;
9091 return 0;
9092}
9093_ACEOF
9094if ac_fn_c_try_link "$LINENO"; then :
9095 ax_cv_PTHREAD_PRIO_INHERIT=yes
9096else
9097 ax_cv_PTHREAD_PRIO_INHERIT=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101
9102fi
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9104$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9105 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9106
9107$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9108
9109fi
9110
cristy73bd4a52010-10-05 11:24:23 +00009111 LIBS="$save_LIBS"
9112 CFLAGS="$save_CFLAGS"
9113
9114 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009115 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009116 for ac_prog in xlc_r cc_r
9117do
9118 # Extract the first word of "$ac_prog", so it can be a program name with args.
9119set dummy $ac_prog; ac_word=$2
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009122if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009123 $as_echo_n "(cached) " >&6
9124else
9125 if test -n "$PTHREAD_CC"; then
9126 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135 ac_cv_prog_PTHREAD_CC="$ac_prog"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9138 fi
9139done
9140 done
9141IFS=$as_save_IFS
9142
9143fi
9144fi
9145PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9146if test -n "$PTHREAD_CC"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9148$as_echo "$PTHREAD_CC" >&6; }
9149else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151$as_echo "no" >&6; }
9152fi
9153
9154
9155 test -n "$PTHREAD_CC" && break
9156done
9157test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9158
9159 else
9160 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009161 fi
cristy73bd4a52010-10-05 11:24:23 +00009162else
9163 PTHREAD_CC="$CC"
9164fi
9165
9166
9167
9168
9169
9170# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9171if test x"$ax_pthread_ok" = xyes; then
9172
9173$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9174
9175 :
9176else
9177 ax_pthread_ok=no
9178
9179fi
9180ac_ext=c
9181ac_cpp='$CPP $CPPFLAGS'
9182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184ac_compiler_gnu=$ac_cv_c_compiler_gnu
9185
9186
9187
9188# Check whether --enable-opencl was given.
9189if test "${enable_opencl+set}" = set; then :
9190 enableval=$enable_opencl; disable_opencl=$enableval
9191else
9192 disable_opencl='yes'
9193fi
9194
9195
9196if test "$disable_opencl" = 'yes'; then
9197 ac_ext=c
9198ac_cpp='$CPP $CPPFLAGS'
9199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9201ac_compiler_gnu=$ac_cv_c_compiler_gnu
9202
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9204$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009205if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009206 $as_echo_n "(cached) " >&6
9207else
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h. */
9210
9211int
9212main ()
9213{
9214#ifndef _MSC_VER
9215 choke me
9216#endif
9217
9218 ;
9219 return 0;
9220}
9221_ACEOF
9222if ac_fn_c_try_compile "$LINENO"; then :
9223 ax_compiler_ms=yes
9224else
9225 ax_compiler_ms=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228ax_cv_c_compiler_ms=$ax_compiler_ms
9229
9230fi
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9232$as_echo "$ax_cv_c_compiler_ms" >&6; }
9233 if test X$ax_compiler_ms = Xno; then :
9234 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9235fi
9236
9237 ax_save_CPPFLAGS=$CPPFLAGS
9238 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9239 for ac_header in CL/cl.h OpenCL/cl.h
9240do :
9241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9242ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009244 cat >>confdefs.h <<_ACEOF
9245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246_ACEOF
9247
9248fi
9249
9250done
9251
9252 CPPFLAGS=$ax_save_CPPFLAGS
9253
9254 for ac_header in windows.h
9255do :
9256 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009257if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009258 cat >>confdefs.h <<_ACEOF
9259#define HAVE_WINDOWS_H 1
9260_ACEOF
9261
9262fi
9263
9264done
9265
9266
9267
9268
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9270$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009271if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009272 $as_echo_n "(cached) " >&6
9273else
9274 ax_cv_check_cl_libcl=no
9275 case $host_cpu in
9276 x86_64) ax_check_cl_libdir=lib64 ;;
9277 *) ax_check_cl_libdir=lib ;;
9278 esac
9279 ax_save_CPPFLAGS=$CPPFLAGS
9280 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9281 ax_save_LIBS=$LIBS
9282 LIBS=""
9283 ax_check_libs="-lOpenCL -lCL -lclparser"
9284 for ax_lib in $ax_check_libs; do
9285 if test X$ax_compiler_ms = Xyes; then :
9286 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9287else
9288 ax_try_lib=$ax_lib
9289fi
9290 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h. */
9293
9294 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9295 # include <windows.h>
9296 # endif
9297 # ifdef HAVE_CL_CL_H
9298 # include <CL/cl.h>
9299 # elif defined(HAVE_OPENCL_CL_H)
9300 # include <OpenCL/cl.h>
9301 # else
9302 # error no CL.h
9303 # endif
9304int
9305main ()
9306{
9307clCreateContextFromType(0,0,0,0,0)
9308 ;
9309 return 0;
9310}
9311_ACEOF
9312if ac_fn_c_try_link "$LINENO"; then :
9313 ax_cv_check_cl_libcl=$ax_try_lib; break
9314else
9315 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"
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h. */
9318
9319 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9320 # include <windows.h>
9321 # endif
9322 # ifdef HAVE_CL_CL_H
9323 # include <CL/cl.h>
9324 # elif defined(HAVE_OPENCL_CL_H)
9325 # include <OpenCL/cl.h>
9326 # else
9327 # error no CL.h
9328 # endif
9329int
9330main ()
9331{
9332clCreateContextFromType(0,0,0,0,0)
9333 ;
9334 return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9339else
cristy78c5a0c2010-12-04 20:00:59 +00009340 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 +00009341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h. */
9343
9344 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9345 # include <windows.h>
9346 # endif
9347 # ifdef HAVE_CL_CL_H
9348 # include <CL/cl.h>
9349 # elif defined(HAVE_OPENCL_CL_H)
9350 # include <OpenCL/cl.h>
9351 # else
9352 # error no CL.h
9353 # endif
9354int
9355main ()
9356{
9357clCreateContextFromType(0,0,0,0,0)
9358 ;
9359 return 0;
9360}
9361_ACEOF
9362if ac_fn_c_try_link "$LINENO"; then :
9363 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367fi
9368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370fi
9371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 done
9374
cristyc3f8b8e2011-12-22 14:55:16 +00009375 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009376 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h. */
9379
9380 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9381 # include <windows.h>
9382 # endif
9383 # ifdef HAVE_CL_CL_H
9384 # include <CL/cl.h>
9385 # elif defined(HAVE_OPENCL_CL_H)
9386 # include <OpenCL/cl.h>
9387 # else
9388 # error no CL.h
9389 # endif
9390int
9391main ()
9392{
9393clCreateContextFromType(0,0,0,0,0)
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399 ax_cv_check_cl_libcl=$LIBS
9400fi
9401rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403fi
9404
9405 LIBS=$ax_save_LIBS
9406 CPPFLAGS=$ax_save_CPPFLAGS
9407fi
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9409$as_echo "$ax_cv_check_cl_libcl" >&6; }
9410
9411 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9412 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9413else
9414 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9415$as_echo "#define _OPENCL 1" >>confdefs.h
9416
9417fi
9418 ac_ext=c
9419ac_cpp='$CPP $CPPFLAGS'
9420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9422ac_compiler_gnu=$ac_cv_c_compiler_gnu
9423
9424fi
9425
9426
9427
9428
cristyc7083c12009-10-14 03:16:55 +00009429CFLAGS="$CL_CFLAGS $CFLAGS"
9430LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009431
cristy391f1ce2010-09-09 17:23:28 +00009432if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009433 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009434 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9435 fi
cristyfd9dcd42010-08-08 18:07:02 +00009436fi
cristy2e8b51d2009-10-17 18:26:15 +00009437
cristy3ed852e2009-09-05 21:47:34 +00009438########
9439#
9440# Check for large file support
9441#
9442########
9443# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009444if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009445 enableval=$enable_largefile;
9446fi
9447
9448if test "$enable_largefile" != no; then
9449
cristy8b350f62009-11-15 23:12:43 +00009450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009451$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009452if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009453 $as_echo_n "(cached) " >&6
9454else
9455 ac_cv_sys_largefile_CC=no
9456 if test "$GCC" != yes; then
9457 ac_save_CC=$CC
9458 while :; do
9459 # IRIX 6.2 and later do not support large files by default,
9460 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009462/* end confdefs.h. */
9463#include <sys/types.h>
9464 /* Check that off_t can represent 2**63 - 1 correctly.
9465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9466 since some C++ compilers masquerading as C compilers
9467 incorrectly reject 9223372036854775807. */
9468#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9470 && LARGE_OFF_T % 2147483647 == 1)
9471 ? 1 : -1];
9472int
9473main ()
9474{
9475
9476 ;
9477 return 0;
9478}
9479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009480 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009481 break
cristy3ed852e2009-09-05 21:47:34 +00009482fi
cristy3ed852e2009-09-05 21:47:34 +00009483rm -f core conftest.err conftest.$ac_objext
9484 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009485 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009486 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009487fi
cristy3ed852e2009-09-05 21:47:34 +00009488rm -f core conftest.err conftest.$ac_objext
9489 break
9490 done
9491 CC=$ac_save_CC
9492 rm -f conftest.$ac_ext
9493 fi
9494fi
cristy8b350f62009-11-15 23:12:43 +00009495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009496$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9497 if test "$ac_cv_sys_largefile_CC" != no; then
9498 CC=$CC$ac_cv_sys_largefile_CC
9499 fi
9500
cristy8b350f62009-11-15 23:12:43 +00009501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009502$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009503if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009504 $as_echo_n "(cached) " >&6
9505else
9506 while :; do
cristy8b350f62009-11-15 23:12:43 +00009507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009508/* end confdefs.h. */
9509#include <sys/types.h>
9510 /* Check that off_t can represent 2**63 - 1 correctly.
9511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9512 since some C++ compilers masquerading as C compilers
9513 incorrectly reject 9223372036854775807. */
9514#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9516 && LARGE_OFF_T % 2147483647 == 1)
9517 ? 1 : -1];
9518int
9519main ()
9520{
9521
9522 ;
9523 return 0;
9524}
9525_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009526if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009527 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009528fi
cristy3ed852e2009-09-05 21:47:34 +00009529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009531/* end confdefs.h. */
9532#define _FILE_OFFSET_BITS 64
9533#include <sys/types.h>
9534 /* Check that off_t can represent 2**63 - 1 correctly.
9535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9536 since some C++ compilers masquerading as C compilers
9537 incorrectly reject 9223372036854775807. */
9538#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9540 && LARGE_OFF_T % 2147483647 == 1)
9541 ? 1 : -1];
9542int
9543main ()
9544{
9545
9546 ;
9547 return 0;
9548}
9549_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009550if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009551 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009552fi
cristy3ed852e2009-09-05 21:47:34 +00009553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 ac_cv_sys_file_offset_bits=unknown
9555 break
9556done
9557fi
cristy8b350f62009-11-15 23:12:43 +00009558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009559$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9560case $ac_cv_sys_file_offset_bits in #(
9561 no | unknown) ;;
9562 *)
9563cat >>confdefs.h <<_ACEOF
9564#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9565_ACEOF
9566;;
9567esac
9568rm -rf conftest*
9569 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009571$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009572if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009573 $as_echo_n "(cached) " >&6
9574else
9575 while :; do
cristy8b350f62009-11-15 23:12:43 +00009576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009577/* end confdefs.h. */
9578#include <sys/types.h>
9579 /* Check that off_t can represent 2**63 - 1 correctly.
9580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9581 since some C++ compilers masquerading as C compilers
9582 incorrectly reject 9223372036854775807. */
9583#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9585 && LARGE_OFF_T % 2147483647 == 1)
9586 ? 1 : -1];
9587int
9588main ()
9589{
9590
9591 ;
9592 return 0;
9593}
9594_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009595if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009596 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009597fi
cristy3ed852e2009-09-05 21:47:34 +00009598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009600/* end confdefs.h. */
9601#define _LARGE_FILES 1
9602#include <sys/types.h>
9603 /* Check that off_t can represent 2**63 - 1 correctly.
9604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9605 since some C++ compilers masquerading as C compilers
9606 incorrectly reject 9223372036854775807. */
9607#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9609 && LARGE_OFF_T % 2147483647 == 1)
9610 ? 1 : -1];
9611int
9612main ()
9613{
9614
9615 ;
9616 return 0;
9617}
9618_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009619if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009620 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009621fi
cristy3ed852e2009-09-05 21:47:34 +00009622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 ac_cv_sys_large_files=unknown
9624 break
9625done
9626fi
cristy8b350f62009-11-15 23:12:43 +00009627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009628$as_echo "$ac_cv_sys_large_files" >&6; }
9629case $ac_cv_sys_large_files in #(
9630 no | unknown) ;;
9631 *)
9632cat >>confdefs.h <<_ACEOF
9633#define _LARGE_FILES $ac_cv_sys_large_files
9634_ACEOF
9635;;
9636esac
9637rm -rf conftest*
9638 fi
9639fi
9640
cristy8b350f62009-11-15 23:12:43 +00009641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009643if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009644 $as_echo_n "(cached) " >&6
9645else
9646 while :; do
cristy8b350f62009-11-15 23:12:43 +00009647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009648/* end confdefs.h. */
9649#include <sys/types.h> /* for off_t */
9650 #include <stdio.h>
9651int
9652main ()
9653{
9654int (*fp) (FILE *, off_t, int) = fseeko;
9655 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9656 ;
9657 return 0;
9658}
9659_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009660if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009661 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009662fi
cristy8b350f62009-11-15 23:12:43 +00009663rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009666/* end confdefs.h. */
9667#define _LARGEFILE_SOURCE 1
9668#include <sys/types.h> /* for off_t */
9669 #include <stdio.h>
9670int
9671main ()
9672{
9673int (*fp) (FILE *, off_t, int) = fseeko;
9674 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9675 ;
9676 return 0;
9677}
9678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009680 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009681fi
cristy8b350f62009-11-15 23:12:43 +00009682rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009684 ac_cv_sys_largefile_source=unknown
9685 break
9686done
9687fi
cristy8b350f62009-11-15 23:12:43 +00009688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009689$as_echo "$ac_cv_sys_largefile_source" >&6; }
9690case $ac_cv_sys_largefile_source in #(
9691 no | unknown) ;;
9692 *)
9693cat >>confdefs.h <<_ACEOF
9694#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9695_ACEOF
9696;;
9697esac
9698rm -rf conftest*
9699
9700# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9701# in glibc 2.1.3, but that breaks too many other things.
9702# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9703if test $ac_cv_sys_largefile_source != unknown; then
9704
cristy8b350f62009-11-15 23:12:43 +00009705$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009706
9707fi
9708
9709LFS_CPPFLAGS=''
9710if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009711 case $ac_cv_sys_file_offset_bits in
9712 no)
9713 # nothing to do here as the host supports LFS fine
9714 ;;
9715 unknown)
cristy8b350f62009-11-15 23:12:43 +00009716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009717$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009718 if test "$cross_compiling" = yes; then :
9719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009721as_fn_error $? "cannot run test program while cross compiling
9722See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009723else
cristy8b350f62009-11-15 23:12:43 +00009724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009726#include <unistd.h>
9727 main () {
9728 exit(!(sizeof(off_t) == 8));
9729 }
cristyda16f162011-02-19 23:52:17 +00009730int
9731main ()
9732{
9733
9734 ;
9735 return 0;
9736}
cristy3ed852e2009-09-05 21:47:34 +00009737_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009738if ac_fn_c_try_run "$LINENO"; then :
9739 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009740
cristy09b53e12011-10-14 12:47:22 +00009741 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9742$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009743else
cristy09b53e12011-10-14 12:47:22 +00009744 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9745$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009746fi
cristy8b350f62009-11-15 23:12:43 +00009747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9748 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009749fi
9750
cristyc1e0cc12011-09-21 16:41:16 +00009751 ;;
9752 *)
9753 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9754 ;;
9755 esac
cristy3ed852e2009-09-05 21:47:34 +00009756 if test "$ac_cv_sys_large_files" != 'no'; then
9757 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9758 fi
9759 if test "$ac_cv_sys_largefile_source" != 'no'; then
9760 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9761 fi
9762fi
9763
9764
cristy3ed852e2009-09-05 21:47:34 +00009765# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009766enable_dlopen=yes
9767
9768
9769
9770case `pwd` in
9771 *\ * | *\ *)
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9773$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9774esac
9775
9776
9777
cristy99bd5232011-12-07 14:38:20 +00009778macro_version='2.4.2'
9779macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +00009780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793ltmain="$ac_aux_dir/ltmain.sh"
9794
cristy0c60a692010-11-04 01:09:47 +00009795# Backslashify metacharacters that are still active within
9796# double-quoted strings.
9797sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9798
9799# Same as above, but do not quote variable references.
9800double_quote_subst='s/\(["`\\]\)/\\\1/g'
9801
9802# Sed substitution to delay expansion of an escaped shell variable in a
9803# double_quote_subst'ed string.
9804delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9805
9806# Sed substitution to delay expansion of an escaped single quote.
9807delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9808
9809# Sed substitution to avoid accidental globbing in evaled expressions
9810no_glob_subst='s/\*/\\\*/g'
9811
cristy73bd4a52010-10-05 11:24:23 +00009812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9813$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009814if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009815 $as_echo_n "(cached) " >&6
9816else
9817 if test -n "$NM"; then
9818 # Let the user override the test.
9819 lt_cv_path_NM="$NM"
9820else
9821 lt_nm_to_check="${ac_tool_prefix}nm"
9822 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9823 lt_nm_to_check="$lt_nm_to_check nm"
9824 fi
9825 for lt_tmp_nm in $lt_nm_to_check; do
9826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9827 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9828 IFS="$lt_save_ifs"
9829 test -z "$ac_dir" && ac_dir=.
9830 tmp_nm="$ac_dir/$lt_tmp_nm"
9831 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9832 # Check to see if the nm accepts a BSD-compat flag.
9833 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9834 # nm: unknown option "B" ignored
9835 # Tru64's nm complains that /dev/null is an invalid object file
9836 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9837 */dev/null* | *'Invalid file or object type'*)
9838 lt_cv_path_NM="$tmp_nm -B"
9839 break
9840 ;;
9841 *)
9842 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9843 */dev/null*)
9844 lt_cv_path_NM="$tmp_nm -p"
9845 break
9846 ;;
9847 *)
9848 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9849 continue # so that we can try to find one that supports BSD flags
9850 ;;
9851 esac
9852 ;;
9853 esac
9854 fi
9855 done
9856 IFS="$lt_save_ifs"
9857 done
9858 : ${lt_cv_path_NM=no}
9859fi
9860fi
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9862$as_echo "$lt_cv_path_NM" >&6; }
9863if test "$lt_cv_path_NM" != "no"; then
9864 NM="$lt_cv_path_NM"
9865else
9866 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009867 if test -n "$DUMPBIN"; then :
9868 # Let the user override the test.
9869 else
9870 if test -n "$ac_tool_prefix"; then
9871 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009872 do
9873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9874set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009877if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009878 $as_echo_n "(cached) " >&6
9879else
9880 if test -n "$DUMPBIN"; then
9881 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894done
9895 done
9896IFS=$as_save_IFS
9897
9898fi
9899fi
9900DUMPBIN=$ac_cv_prog_DUMPBIN
9901if test -n "$DUMPBIN"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9903$as_echo "$DUMPBIN" >&6; }
9904else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906$as_echo "no" >&6; }
9907fi
9908
9909
9910 test -n "$DUMPBIN" && break
9911 done
9912fi
9913if test -z "$DUMPBIN"; then
9914 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009915 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009916do
9917 # Extract the first word of "$ac_prog", so it can be a program name with args.
9918set dummy $ac_prog; ac_word=$2
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009921if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009922 $as_echo_n "(cached) " >&6
9923else
9924 if test -n "$ac_ct_DUMPBIN"; then
9925 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9926else
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9937 fi
9938done
9939 done
9940IFS=$as_save_IFS
9941
9942fi
9943fi
9944ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9945if test -n "$ac_ct_DUMPBIN"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9947$as_echo "$ac_ct_DUMPBIN" >&6; }
9948else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
9951fi
9952
9953
9954 test -n "$ac_ct_DUMPBIN" && break
9955done
9956
9957 if test "x$ac_ct_DUMPBIN" = x; then
9958 DUMPBIN=":"
9959 else
9960 case $cross_compiling:$ac_tool_warned in
9961yes:)
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9964ac_tool_warned=yes ;;
9965esac
9966 DUMPBIN=$ac_ct_DUMPBIN
9967 fi
9968fi
9969
cristy0c60a692010-11-04 01:09:47 +00009970 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9971 *COFF*)
9972 DUMPBIN="$DUMPBIN -symbols"
9973 ;;
9974 *)
9975 DUMPBIN=:
9976 ;;
9977 esac
9978 fi
cristy73bd4a52010-10-05 11:24:23 +00009979
9980 if test "$DUMPBIN" != ":"; then
9981 NM="$DUMPBIN"
9982 fi
9983fi
9984test -z "$NM" && NM=nm
9985
9986
9987
9988
9989
9990
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9992$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009993if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009994 $as_echo_n "(cached) " >&6
9995else
9996 lt_cv_nm_interface="BSD nm"
9997 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009998 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009999 (eval "$ac_compile" 2>conftest.err)
10000 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010001 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010002 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10003 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010004 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010005 cat conftest.out >&5
10006 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10007 lt_cv_nm_interface="MS dumpbin"
10008 fi
10009 rm -f conftest*
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10012$as_echo "$lt_cv_nm_interface" >&6; }
10013
10014# find the maximum length of command line arguments
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10016$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010017if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010018 $as_echo_n "(cached) " >&6
10019else
10020 i=0
10021 teststring="ABCD"
10022
10023 case $build_os in
10024 msdosdjgpp*)
10025 # On DJGPP, this test can blow up pretty badly due to problems in libc
10026 # (any single argument exceeding 2000 bytes causes a buffer overrun
10027 # during glob expansion). Even if it were fixed, the result of this
10028 # check would be larger than it should be.
10029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10030 ;;
10031
10032 gnu*)
10033 # Under GNU Hurd, this test is not required because there is
10034 # no limit to the length of command line arguments.
10035 # Libtool will interpret -1 as no limit whatsoever
10036 lt_cv_sys_max_cmd_len=-1;
10037 ;;
10038
10039 cygwin* | mingw* | cegcc*)
10040 # On Win9x/ME, this test blows up -- it succeeds, but takes
10041 # about 5 minutes as the teststring grows exponentially.
10042 # Worse, since 9x/ME are not pre-emptively multitasking,
10043 # you end up with a "frozen" computer, even though with patience
10044 # the test eventually succeeds (with a max line length of 256k).
10045 # Instead, let's just punt: use the minimum linelength reported by
10046 # all of the supported platforms: 8192 (on NT/2K/XP).
10047 lt_cv_sys_max_cmd_len=8192;
10048 ;;
10049
cristy0c60a692010-11-04 01:09:47 +000010050 mint*)
10051 # On MiNT this can take a long time and run out of memory.
10052 lt_cv_sys_max_cmd_len=8192;
10053 ;;
10054
cristy73bd4a52010-10-05 11:24:23 +000010055 amigaos*)
10056 # On AmigaOS with pdksh, this test takes hours, literally.
10057 # So we just punt and use a minimum line length of 8192.
10058 lt_cv_sys_max_cmd_len=8192;
10059 ;;
10060
10061 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10062 # This has been around since 386BSD, at least. Likely further.
10063 if test -x /sbin/sysctl; then
10064 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10065 elif test -x /usr/sbin/sysctl; then
10066 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10067 else
10068 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10069 fi
10070 # And add a safety zone
10071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10073 ;;
10074
10075 interix*)
10076 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10077 lt_cv_sys_max_cmd_len=196608
10078 ;;
10079
cristy99bd5232011-12-07 14:38:20 +000010080 os2*)
10081 # The test takes a long time on OS/2.
10082 lt_cv_sys_max_cmd_len=8192
10083 ;;
10084
cristy73bd4a52010-10-05 11:24:23 +000010085 osf*)
10086 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10087 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10088 # nice to cause kernel panics so lets avoid the loop below.
10089 # First set a reasonable default.
10090 lt_cv_sys_max_cmd_len=16384
10091 #
10092 if test -x /sbin/sysconfig; then
10093 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10094 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10095 esac
10096 fi
10097 ;;
10098 sco3.2v5*)
10099 lt_cv_sys_max_cmd_len=102400
10100 ;;
10101 sysv5* | sco5v6* | sysv4.2uw2*)
10102 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10103 if test -n "$kargmax"; then
10104 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10105 else
10106 lt_cv_sys_max_cmd_len=32768
10107 fi
10108 ;;
10109 *)
10110 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10111 if test -n "$lt_cv_sys_max_cmd_len"; then
10112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10114 else
10115 # Make teststring a little bigger before we do anything with it.
10116 # a 1K string should be a reasonable start.
10117 for i in 1 2 3 4 5 6 7 8 ; do
10118 teststring=$teststring$teststring
10119 done
10120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10121 # If test is not a shell built-in, we'll probably end up computing a
10122 # maximum length that is only half of the actual maximum length, but
10123 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010124 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010125 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010126 test $i != 17 # 1/2 MB should be enough
10127 do
10128 i=`expr $i + 1`
10129 teststring=$teststring$teststring
10130 done
10131 # Only check the string length outside the loop.
10132 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10133 teststring=
10134 # Add a significant safety factor because C++ compilers can tack on
10135 # massive amounts of additional arguments before passing them to the
10136 # linker. It appears as though 1/2 is a usable value.
10137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10138 fi
10139 ;;
10140 esac
10141
10142fi
10143
10144if test -n $lt_cv_sys_max_cmd_len ; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10146$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10147else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10149$as_echo "none" >&6; }
10150fi
10151max_cmd_len=$lt_cv_sys_max_cmd_len
10152
10153
10154
10155
10156
10157
10158: ${CP="cp -f"}
10159: ${MV="mv -f"}
10160: ${RM="rm -f"}
10161
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10163$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10164# Try some XSI features
10165xsi_shell=no
10166( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010167 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10168 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010169 && eval 'test $(( 1 + 1 )) -eq 2 \
10170 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10171 && xsi_shell=yes
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10173$as_echo "$xsi_shell" >&6; }
10174
10175
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10177$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10178lt_shell_append=no
10179( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10180 >/dev/null 2>&1 \
10181 && lt_shell_append=yes
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10183$as_echo "$lt_shell_append" >&6; }
10184
10185
10186if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10187 lt_unset=unset
10188else
10189 lt_unset=false
10190fi
10191
10192
10193
10194
10195
10196# test EBCDIC or ASCII
10197case `echo X|tr X '\101'` in
10198 A) # ASCII based system
10199 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10200 lt_SP2NL='tr \040 \012'
10201 lt_NL2SP='tr \015\012 \040\040'
10202 ;;
10203 *) # EBCDIC based system
10204 lt_SP2NL='tr \100 \n'
10205 lt_NL2SP='tr \r\n \100\100'
10206 ;;
10207esac
10208
10209
10210
10211
10212
10213
10214
10215
10216
cristyda16f162011-02-19 23:52:17 +000010217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10218$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10219if ${lt_cv_to_host_file_cmd+:} false; then :
10220 $as_echo_n "(cached) " >&6
10221else
10222 case $host in
10223 *-*-mingw* )
10224 case $build in
10225 *-*-mingw* ) # actually msys
10226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10227 ;;
10228 *-*-cygwin* )
10229 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10230 ;;
10231 * ) # otherwise, assume *nix
10232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10233 ;;
10234 esac
10235 ;;
10236 *-*-cygwin* )
10237 case $build in
10238 *-*-mingw* ) # actually msys
10239 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10240 ;;
10241 *-*-cygwin* )
10242 lt_cv_to_host_file_cmd=func_convert_file_noop
10243 ;;
10244 * ) # otherwise, assume *nix
10245 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10246 ;;
10247 esac
10248 ;;
10249 * ) # unhandled hosts (and "normal" native builds)
10250 lt_cv_to_host_file_cmd=func_convert_file_noop
10251 ;;
10252esac
10253
10254fi
10255
10256to_host_file_cmd=$lt_cv_to_host_file_cmd
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10258$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10259
10260
10261
10262
10263
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10265$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10266if ${lt_cv_to_tool_file_cmd+:} false; then :
10267 $as_echo_n "(cached) " >&6
10268else
10269 #assume ordinary cross tools, or native build.
10270lt_cv_to_tool_file_cmd=func_convert_file_noop
10271case $host in
10272 *-*-mingw* )
10273 case $build in
10274 *-*-mingw* ) # actually msys
10275 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10276 ;;
10277 esac
10278 ;;
10279esac
10280
10281fi
10282
10283to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10285$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10286
10287
10288
10289
10290
cristy73bd4a52010-10-05 11:24:23 +000010291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10292$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010293if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010294 $as_echo_n "(cached) " >&6
10295else
10296 lt_cv_ld_reload_flag='-r'
10297fi
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10299$as_echo "$lt_cv_ld_reload_flag" >&6; }
10300reload_flag=$lt_cv_ld_reload_flag
10301case $reload_flag in
10302"" | " "*) ;;
10303*) reload_flag=" $reload_flag" ;;
10304esac
10305reload_cmds='$LD$reload_flag -o $output$reload_objs'
10306case $host_os in
cristyda16f162011-02-19 23:52:17 +000010307 cygwin* | mingw* | pw32* | cegcc*)
10308 if test "$GCC" != yes; then
10309 reload_cmds=false
10310 fi
10311 ;;
cristy73bd4a52010-10-05 11:24:23 +000010312 darwin*)
10313 if test "$GCC" = yes; then
10314 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10315 else
10316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10317 fi
10318 ;;
10319esac
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329if test -n "$ac_tool_prefix"; then
10330 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10331set dummy ${ac_tool_prefix}objdump; ac_word=$2
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010334if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010335 $as_echo_n "(cached) " >&6
10336else
10337 if test -n "$OBJDUMP"; then
10338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10350 fi
10351done
10352 done
10353IFS=$as_save_IFS
10354
10355fi
10356fi
10357OBJDUMP=$ac_cv_prog_OBJDUMP
10358if test -n "$OBJDUMP"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10360$as_echo "$OBJDUMP" >&6; }
10361else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
10364fi
10365
10366
10367fi
10368if test -z "$ac_cv_prog_OBJDUMP"; then
10369 ac_ct_OBJDUMP=$OBJDUMP
10370 # Extract the first word of "objdump", so it can be a program name with args.
10371set dummy objdump; ac_word=$2
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010374if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$ac_ct_OBJDUMP"; then
10378 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391done
10392 done
10393IFS=$as_save_IFS
10394
10395fi
10396fi
10397ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10398if test -n "$ac_ct_OBJDUMP"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10400$as_echo "$ac_ct_OBJDUMP" >&6; }
10401else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
10404fi
10405
10406 if test "x$ac_ct_OBJDUMP" = x; then
10407 OBJDUMP="false"
10408 else
10409 case $cross_compiling:$ac_tool_warned in
10410yes:)
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10413ac_tool_warned=yes ;;
10414esac
10415 OBJDUMP=$ac_ct_OBJDUMP
10416 fi
10417else
10418 OBJDUMP="$ac_cv_prog_OBJDUMP"
10419fi
10420
10421test -z "$OBJDUMP" && OBJDUMP=objdump
10422
10423
10424
10425
10426
10427
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10429$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010430if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010431 $as_echo_n "(cached) " >&6
10432else
10433 lt_cv_file_magic_cmd='$MAGIC_CMD'
10434lt_cv_file_magic_test_file=
10435lt_cv_deplibs_check_method='unknown'
10436# Need to set the preceding variable on all platforms that support
10437# interlibrary dependencies.
10438# 'none' -- dependencies not supported.
10439# `unknown' -- same as none, but documents that we really don't know.
10440# 'pass_all' -- all dependencies passed with no checks.
10441# 'test_compile' -- check by making test program.
10442# 'file_magic [[regex]]' -- check by looking for files in library path
10443# which responds to the $file_magic_cmd with a given extended regex.
10444# If you have `file' or equivalent on your system and you're not sure
10445# whether `pass_all' will *always* work, you probably want this one.
10446
10447case $host_os in
10448aix[4-9]*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
10452beos*)
10453 lt_cv_deplibs_check_method=pass_all
10454 ;;
10455
10456bsdi[45]*)
10457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10458 lt_cv_file_magic_cmd='/usr/bin/file -L'
10459 lt_cv_file_magic_test_file=/shlib/libc.so
10460 ;;
10461
10462cygwin*)
10463 # func_win32_libid is a shell function defined in ltmain.sh
10464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10465 lt_cv_file_magic_cmd='func_win32_libid'
10466 ;;
10467
10468mingw* | pw32*)
10469 # Base MSYS/MinGW do not provide the 'file' command needed by
10470 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10471 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010472 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10473 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10475 lt_cv_file_magic_cmd='func_win32_libid'
10476 else
cristy0c60a692010-11-04 01:09:47 +000010477 # Keep this pattern in sync with the one in func_win32_libid.
10478 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 +000010479 lt_cv_file_magic_cmd='$OBJDUMP -f'
10480 fi
10481 ;;
10482
cristy0c60a692010-11-04 01:09:47 +000010483cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010484 # use the weaker test based on 'objdump'. See mingw*.
10485 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10486 lt_cv_file_magic_cmd='$OBJDUMP -f'
10487 ;;
10488
10489darwin* | rhapsody*)
10490 lt_cv_deplibs_check_method=pass_all
10491 ;;
10492
10493freebsd* | dragonfly*)
10494 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10495 case $host_cpu in
10496 i*86 )
10497 # Not sure whether the presence of OpenBSD here was a mistake.
10498 # Let's accept both of them until this is cleared up.
10499 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10500 lt_cv_file_magic_cmd=/usr/bin/file
10501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10502 ;;
10503 esac
10504 else
10505 lt_cv_deplibs_check_method=pass_all
10506 fi
10507 ;;
10508
10509gnu*)
10510 lt_cv_deplibs_check_method=pass_all
10511 ;;
10512
cristy0c60a692010-11-04 01:09:47 +000010513haiku*)
10514 lt_cv_deplibs_check_method=pass_all
10515 ;;
10516
cristy73bd4a52010-10-05 11:24:23 +000010517hpux10.20* | hpux11*)
10518 lt_cv_file_magic_cmd=/usr/bin/file
10519 case $host_cpu in
10520 ia64*)
10521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10523 ;;
10524 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010525 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 +000010526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10527 ;;
10528 *)
cristy0c60a692010-11-04 01:09:47 +000010529 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 +000010530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10531 ;;
10532 esac
10533 ;;
10534
10535interix[3-9]*)
10536 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10538 ;;
10539
10540irix5* | irix6* | nonstopux*)
10541 case $LD in
10542 *-32|*"-32 ") libmagic=32-bit;;
10543 *-n32|*"-n32 ") libmagic=N32;;
10544 *-64|*"-64 ") libmagic=64-bit;;
10545 *) libmagic=never-match;;
10546 esac
10547 lt_cv_deplibs_check_method=pass_all
10548 ;;
10549
cristy99bd5232011-12-07 14:38:20 +000010550# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000010551linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010552 lt_cv_deplibs_check_method=pass_all
10553 ;;
10554
10555netbsd*)
10556 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10558 else
10559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10560 fi
10561 ;;
10562
10563newos6*)
10564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10565 lt_cv_file_magic_cmd=/usr/bin/file
10566 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10567 ;;
10568
10569*nto* | *qnx*)
10570 lt_cv_deplibs_check_method=pass_all
10571 ;;
10572
10573openbsd*)
10574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10576 else
10577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10578 fi
10579 ;;
10580
10581osf3* | osf4* | osf5*)
10582 lt_cv_deplibs_check_method=pass_all
10583 ;;
10584
10585rdos*)
10586 lt_cv_deplibs_check_method=pass_all
10587 ;;
10588
10589solaris*)
10590 lt_cv_deplibs_check_method=pass_all
10591 ;;
10592
10593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594 lt_cv_deplibs_check_method=pass_all
10595 ;;
10596
10597sysv4 | sysv4.3*)
10598 case $host_vendor in
10599 motorola)
10600 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]'
10601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10602 ;;
10603 ncr)
10604 lt_cv_deplibs_check_method=pass_all
10605 ;;
10606 sequent)
10607 lt_cv_file_magic_cmd='/bin/file'
10608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10609 ;;
10610 sni)
10611 lt_cv_file_magic_cmd='/bin/file'
10612 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10613 lt_cv_file_magic_test_file=/lib/libc.so
10614 ;;
10615 siemens)
10616 lt_cv_deplibs_check_method=pass_all
10617 ;;
10618 pc)
10619 lt_cv_deplibs_check_method=pass_all
10620 ;;
10621 esac
10622 ;;
10623
10624tpf*)
10625 lt_cv_deplibs_check_method=pass_all
10626 ;;
10627esac
10628
10629fi
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10631$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010632
10633file_magic_glob=
10634want_nocaseglob=no
10635if test "$build" = "$host"; then
10636 case $host_os in
10637 mingw* | pw32*)
10638 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10639 want_nocaseglob=yes
10640 else
10641 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10642 fi
10643 ;;
10644 esac
10645fi
10646
cristy73bd4a52010-10-05 11:24:23 +000010647file_magic_cmd=$lt_cv_file_magic_cmd
10648deplibs_check_method=$lt_cv_deplibs_check_method
10649test -z "$deplibs_check_method" && deplibs_check_method=unknown
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
cristyda16f162011-02-19 23:52:17 +000010662
10663
10664
10665
10666
10667
10668
10669
10670
10671
cristy73bd4a52010-10-05 11:24:23 +000010672if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010673 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10674set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010677if ${ac_cv_prog_DLLTOOL+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679else
10680 if test -n "$DLLTOOL"; then
10681 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10682else
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10690 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694done
10695 done
10696IFS=$as_save_IFS
10697
10698fi
10699fi
10700DLLTOOL=$ac_cv_prog_DLLTOOL
10701if test -n "$DLLTOOL"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10703$as_echo "$DLLTOOL" >&6; }
10704else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
10707fi
10708
10709
10710fi
10711if test -z "$ac_cv_prog_DLLTOOL"; then
10712 ac_ct_DLLTOOL=$DLLTOOL
10713 # Extract the first word of "dlltool", so it can be a program name with args.
10714set dummy dlltool; ac_word=$2
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716$as_echo_n "checking for $ac_word... " >&6; }
10717if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719else
10720 if test -n "$ac_ct_DLLTOOL"; then
10721 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10722else
10723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724for as_dir in $PATH
10725do
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10730 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 break 2
10733 fi
10734done
10735 done
10736IFS=$as_save_IFS
10737
10738fi
10739fi
10740ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10741if test -n "$ac_ct_DLLTOOL"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10743$as_echo "$ac_ct_DLLTOOL" >&6; }
10744else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
10747fi
10748
10749 if test "x$ac_ct_DLLTOOL" = x; then
10750 DLLTOOL="false"
10751 else
10752 case $cross_compiling:$ac_tool_warned in
10753yes:)
10754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10756ac_tool_warned=yes ;;
10757esac
10758 DLLTOOL=$ac_ct_DLLTOOL
10759 fi
10760else
10761 DLLTOOL="$ac_cv_prog_DLLTOOL"
10762fi
10763
10764test -z "$DLLTOOL" && DLLTOOL=dlltool
10765
10766
10767
10768
10769
10770
10771
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10773$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10774if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776else
10777 lt_cv_sharedlib_from_linklib_cmd='unknown'
10778
10779case $host_os in
10780cygwin* | mingw* | pw32* | cegcc*)
10781 # two different shell functions defined in ltmain.sh
10782 # decide which to use based on capabilities of $DLLTOOL
10783 case `$DLLTOOL --help 2>&1` in
10784 *--identify-strict*)
10785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10786 ;;
10787 *)
10788 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10789 ;;
10790 esac
10791 ;;
10792*)
10793 # fallback: assume linklib IS sharedlib
10794 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10795 ;;
10796esac
10797
10798fi
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10800$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10801sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10802test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10803
10804
10805
10806
10807
10808
10809
10810if test -n "$ac_tool_prefix"; then
10811 for ac_prog in ar
10812 do
10813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816$as_echo_n "checking for $ac_word... " >&6; }
10817if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010818 $as_echo_n "(cached) " >&6
10819else
10820 if test -n "$AR"; then
10821 ac_cv_prog_AR="$AR" # Let the user override the test.
10822else
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 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 +000010830 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834done
10835 done
10836IFS=$as_save_IFS
10837
10838fi
10839fi
10840AR=$ac_cv_prog_AR
10841if test -n "$AR"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10843$as_echo "$AR" >&6; }
10844else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
10847fi
10848
10849
cristyda16f162011-02-19 23:52:17 +000010850 test -n "$AR" && break
10851 done
cristy73bd4a52010-10-05 11:24:23 +000010852fi
cristyda16f162011-02-19 23:52:17 +000010853if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010854 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010855 for ac_prog in ar
10856do
10857 # Extract the first word of "$ac_prog", so it can be a program name with args.
10858set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010861if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010862 $as_echo_n "(cached) " >&6
10863else
10864 if test -n "$ac_ct_AR"; then
10865 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10866else
10867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 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 +000010874 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10877 fi
10878done
10879 done
10880IFS=$as_save_IFS
10881
10882fi
10883fi
10884ac_ct_AR=$ac_cv_prog_ac_ct_AR
10885if test -n "$ac_ct_AR"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10887$as_echo "$ac_ct_AR" >&6; }
10888else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890$as_echo "no" >&6; }
10891fi
10892
cristyda16f162011-02-19 23:52:17 +000010893
10894 test -n "$ac_ct_AR" && break
10895done
10896
cristy73bd4a52010-10-05 11:24:23 +000010897 if test "x$ac_ct_AR" = x; then
10898 AR="false"
10899 else
10900 case $cross_compiling:$ac_tool_warned in
10901yes:)
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904ac_tool_warned=yes ;;
10905esac
10906 AR=$ac_ct_AR
10907 fi
cristy73bd4a52010-10-05 11:24:23 +000010908fi
10909
cristyda16f162011-02-19 23:52:17 +000010910: ${AR=ar}
10911: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
cristyda16f162011-02-19 23:52:17 +000010923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10924$as_echo_n "checking for archiver @FILE support... " >&6; }
10925if ${lt_cv_ar_at_file+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927else
10928 lt_cv_ar_at_file=no
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930/* end confdefs.h. */
10931
10932int
10933main ()
10934{
10935
10936 ;
10937 return 0;
10938}
10939_ACEOF
10940if ac_fn_c_try_compile "$LINENO"; then :
10941 echo conftest.$ac_objext > conftest.lst
10942 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10944 (eval $lt_ar_try) 2>&5
10945 ac_status=$?
10946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10947 test $ac_status = 0; }
10948 if test "$ac_status" -eq 0; then
10949 # Ensure the archiver fails upon bogus file names.
10950 rm -f conftest.$ac_objext libconftest.a
10951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10952 (eval $lt_ar_try) 2>&5
10953 ac_status=$?
10954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10955 test $ac_status = 0; }
10956 if test "$ac_status" -ne 0; then
10957 lt_cv_ar_at_file=@
10958 fi
10959 fi
10960 rm -f conftest.* libconftest.a
10961
10962fi
10963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10967$as_echo "$lt_cv_ar_at_file" >&6; }
10968
10969if test "x$lt_cv_ar_at_file" = xno; then
10970 archiver_list_spec=
10971else
10972 archiver_list_spec=$lt_cv_ar_at_file
10973fi
10974
10975
10976
10977
10978
10979
10980
cristy73bd4a52010-10-05 11:24:23 +000010981if test -n "$ac_tool_prefix"; then
10982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10983set dummy ${ac_tool_prefix}strip; ac_word=$2
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010986if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010987 $as_echo_n "(cached) " >&6
10988else
10989 if test -n "$STRIP"; then
10990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10991else
10992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003done
11004 done
11005IFS=$as_save_IFS
11006
11007fi
11008fi
11009STRIP=$ac_cv_prog_STRIP
11010if test -n "$STRIP"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11012$as_echo "$STRIP" >&6; }
11013else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016fi
11017
11018
11019fi
11020if test -z "$ac_cv_prog_STRIP"; then
11021 ac_ct_STRIP=$STRIP
11022 # Extract the first word of "strip", so it can be a program name with args.
11023set dummy strip; ac_word=$2
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011026if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011027 $as_echo_n "(cached) " >&6
11028else
11029 if test -n "$ac_ct_STRIP"; then
11030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11039 ac_cv_prog_ac_ct_STRIP="strip"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044 done
11045IFS=$as_save_IFS
11046
11047fi
11048fi
11049ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11050if test -n "$ac_ct_STRIP"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11052$as_echo "$ac_ct_STRIP" >&6; }
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
11056fi
11057
11058 if test "x$ac_ct_STRIP" = x; then
11059 STRIP=":"
11060 else
11061 case $cross_compiling:$ac_tool_warned in
11062yes:)
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11065ac_tool_warned=yes ;;
11066esac
11067 STRIP=$ac_ct_STRIP
11068 fi
11069else
11070 STRIP="$ac_cv_prog_STRIP"
11071fi
11072
11073test -z "$STRIP" && STRIP=:
11074
11075
11076
11077
11078
11079
11080if test -n "$ac_tool_prefix"; then
11081 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11082set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011085if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011086 $as_echo_n "(cached) " >&6
11087else
11088 if test -n "$RANLIB"; then
11089 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11090else
11091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11098 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102done
11103 done
11104IFS=$as_save_IFS
11105
11106fi
11107fi
11108RANLIB=$ac_cv_prog_RANLIB
11109if test -n "$RANLIB"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11111$as_echo "$RANLIB" >&6; }
11112else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
11115fi
11116
11117
11118fi
11119if test -z "$ac_cv_prog_RANLIB"; then
11120 ac_ct_RANLIB=$RANLIB
11121 # Extract the first word of "ranlib", so it can be a program name with args.
11122set dummy ranlib; ac_word=$2
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011125if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011126 $as_echo_n "(cached) " >&6
11127else
11128 if test -n "$ac_ct_RANLIB"; then
11129 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11130else
11131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132for as_dir in $PATH
11133do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 ac_cv_prog_ac_ct_RANLIB="ranlib"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11141 fi
11142done
11143 done
11144IFS=$as_save_IFS
11145
11146fi
11147fi
11148ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11149if test -n "$ac_ct_RANLIB"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11151$as_echo "$ac_ct_RANLIB" >&6; }
11152else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
11155fi
11156
11157 if test "x$ac_ct_RANLIB" = x; then
11158 RANLIB=":"
11159 else
11160 case $cross_compiling:$ac_tool_warned in
11161yes:)
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11164ac_tool_warned=yes ;;
11165esac
11166 RANLIB=$ac_ct_RANLIB
11167 fi
11168else
11169 RANLIB="$ac_cv_prog_RANLIB"
11170fi
11171
11172test -z "$RANLIB" && RANLIB=:
11173
11174
11175
11176
11177
11178
11179# Determine commands to create old-style static archives.
11180old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11181old_postinstall_cmds='chmod 644 $oldlib'
11182old_postuninstall_cmds=
11183
11184if test -n "$RANLIB"; then
11185 case $host_os in
11186 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011188 ;;
11189 *)
cristy99bd5232011-12-07 14:38:20 +000011190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011191 ;;
11192 esac
cristy99bd5232011-12-07 14:38:20 +000011193 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011194fi
11195
cristy0c60a692010-11-04 01:09:47 +000011196case $host_os in
11197 darwin*)
11198 lock_old_archive_extraction=yes ;;
11199 *)
11200 lock_old_archive_extraction=no ;;
11201esac
11202
11203
11204
11205
11206
11207
cristy73bd4a52010-10-05 11:24:23 +000011208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241# If no C compiler was specified, use CC.
11242LTCC=${LTCC-"$CC"}
11243
11244# If no C compiler flags were specified, use CFLAGS.
11245LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11246
11247# Allow CC to be a program name with arguments.
11248compiler=$CC
11249
11250
11251# Check for command to grab the raw symbol name followed by C symbol from nm.
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11253$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011254if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011255 $as_echo_n "(cached) " >&6
11256else
11257
11258# These are sane defaults that work on at least a few old systems.
11259# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11260
11261# Character class describing NM global symbol codes.
11262symcode='[BCDEGRST]'
11263
11264# Regexp to match symbols that can be accessed directly from C.
11265sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11266
11267# Define system-specific variables.
11268case $host_os in
11269aix*)
11270 symcode='[BCDT]'
11271 ;;
11272cygwin* | mingw* | pw32* | cegcc*)
11273 symcode='[ABCDGISTW]'
11274 ;;
11275hpux*)
11276 if test "$host_cpu" = ia64; then
11277 symcode='[ABCDEGRST]'
11278 fi
11279 ;;
11280irix* | nonstopux*)
11281 symcode='[BCDEGRST]'
11282 ;;
11283osf*)
11284 symcode='[BCDEGQRST]'
11285 ;;
11286solaris*)
11287 symcode='[BDRT]'
11288 ;;
11289sco3.2v5*)
11290 symcode='[DT]'
11291 ;;
11292sysv4.2uw2*)
11293 symcode='[DT]'
11294 ;;
11295sysv5* | sco5v6* | unixware* | OpenUNIX*)
11296 symcode='[ABDT]'
11297 ;;
11298sysv4)
11299 symcode='[DFNSTU]'
11300 ;;
11301esac
11302
11303# If we're using GNU nm, then use its standard symbol codes.
11304case `$NM -V 2>&1` in
11305*GNU* | *'with BFD'*)
11306 symcode='[ABCDGIRSTW]' ;;
11307esac
11308
11309# Transform an extracted symbol line into a proper C declaration.
11310# Some systems (esp. on ia64) link data and code symbols differently,
11311# so use this general approach.
11312lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11313
11314# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011315lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11316lt_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 +000011317
11318# Handle CRLF in mingw tool chain
11319opt_cr=
11320case $build_os in
11321mingw*)
11322 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11323 ;;
11324esac
11325
11326# Try without a prefix underscore, then with it.
11327for ac_symprfx in "" "_"; do
11328
11329 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11330 symxfrm="\\1 $ac_symprfx\\2 \\2"
11331
11332 # Write the raw and C identifiers.
11333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11334 # Fake it for dumpbin and say T for any non-static function
11335 # and D for any global variable.
11336 # Also find C++ and __fastcall symbols from MSVC++,
11337 # which start with @ or ?.
11338 lt_cv_sys_global_symbol_pipe="$AWK '"\
11339" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011340" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011341" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11342" \$ 0!~/External *\|/{next};"\
11343" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11344" {if(hide[section]) next};"\
11345" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11346" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11347" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11348" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11349" ' prfx=^$ac_symprfx"
11350 else
11351 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11352 fi
cristyda16f162011-02-19 23:52:17 +000011353 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011354
11355 # Check to see that the pipe works correctly.
11356 pipe_works=no
11357
11358 rm -f conftest*
11359 cat > conftest.$ac_ext <<_LT_EOF
11360#ifdef __cplusplus
11361extern "C" {
11362#endif
11363char nm_test_var;
11364void nm_test_func(void);
11365void nm_test_func(void){}
11366#ifdef __cplusplus
11367}
11368#endif
11369int main(){nm_test_var='a';nm_test_func();return(0);}
11370_LT_EOF
11371
11372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11373 (eval $ac_compile) 2>&5
11374 ac_status=$?
11375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11376 test $ac_status = 0; }; then
11377 # Now try to grab the symbols.
11378 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11380 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011381 ac_status=$?
11382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11383 test $ac_status = 0; } && test -s "$nlist"; then
11384 # Try sorting and uniquifying the output.
11385 if sort "$nlist" | uniq > "$nlist"T; then
11386 mv -f "$nlist"T "$nlist"
11387 else
11388 rm -f "$nlist"T
11389 fi
11390
11391 # Make sure that we snagged all the symbols we need.
11392 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11393 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11394 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011395/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11396#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11397/* DATA imports from DLLs on WIN32 con't be const, because runtime
11398 relocations are performed -- see ld's documentation on pseudo-relocs. */
11399# define LT_DLSYM_CONST
11400#elif defined(__osf__)
11401/* This system does not cope well with relocations in const data. */
11402# define LT_DLSYM_CONST
11403#else
11404# define LT_DLSYM_CONST const
11405#endif
11406
cristy73bd4a52010-10-05 11:24:23 +000011407#ifdef __cplusplus
11408extern "C" {
11409#endif
11410
11411_LT_EOF
11412 # Now generate the symbol file.
11413 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11414
11415 cat <<_LT_EOF >> conftest.$ac_ext
11416
11417/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011418LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011419 const char *name;
11420 void *address;
11421}
11422lt__PROGRAM__LTX_preloaded_symbols[] =
11423{
11424 { "@PROGRAM@", (void *) 0 },
11425_LT_EOF
11426 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11427 cat <<\_LT_EOF >> conftest.$ac_ext
11428 {0, (void *) 0}
11429};
11430
11431/* This works around a problem in FreeBSD linker */
11432#ifdef FREEBSD_WORKAROUND
11433static const void *lt_preloaded_setup() {
11434 return lt__PROGRAM__LTX_preloaded_symbols;
11435}
11436#endif
11437
11438#ifdef __cplusplus
11439}
11440#endif
11441_LT_EOF
11442 # Now try linking the two files.
11443 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011444 lt_globsym_save_LIBS=$LIBS
11445 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011446 LIBS="conftstm.$ac_objext"
11447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11449 (eval $ac_link) 2>&5
11450 ac_status=$?
11451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11453 pipe_works=yes
11454 fi
cristyda16f162011-02-19 23:52:17 +000011455 LIBS=$lt_globsym_save_LIBS
11456 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011457 else
11458 echo "cannot find nm_test_func in $nlist" >&5
11459 fi
11460 else
11461 echo "cannot find nm_test_var in $nlist" >&5
11462 fi
11463 else
11464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11465 fi
11466 else
11467 echo "$progname: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 fi
11470 rm -rf conftest* conftst*
11471
11472 # Do not use the global_symbol_pipe unless it works.
11473 if test "$pipe_works" = yes; then
11474 break
11475 else
11476 lt_cv_sys_global_symbol_pipe=
11477 fi
11478done
11479
11480fi
11481
11482if test -z "$lt_cv_sys_global_symbol_pipe"; then
11483 lt_cv_sys_global_symbol_to_cdecl=
11484fi
11485if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11487$as_echo "failed" >&6; }
11488else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11490$as_echo "ok" >&6; }
11491fi
11492
cristyda16f162011-02-19 23:52:17 +000011493# Response file support.
11494if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11495 nm_file_list_spec='@'
11496elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11497 nm_file_list_spec='@'
11498fi
cristy73bd4a52010-10-05 11:24:23 +000011499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
cristyda16f162011-02-19 23:52:17 +000011520
11521
11522
11523
11524
11525
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11527$as_echo_n "checking for sysroot... " >&6; }
11528
11529# Check whether --with-sysroot was given.
11530if test "${with_sysroot+set}" = set; then :
11531 withval=$with_sysroot;
11532else
11533 with_sysroot=no
11534fi
11535
11536
11537lt_sysroot=
11538case ${with_sysroot} in #(
11539 yes)
11540 if test "$GCC" = yes; then
11541 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11542 fi
11543 ;; #(
11544 /*)
11545 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11546 ;; #(
11547 no|'')
11548 ;; #(
11549 *)
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11551$as_echo "${with_sysroot}" >&6; }
11552 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11553 ;;
11554esac
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11557$as_echo "${lt_sysroot:-no}" >&6; }
11558
11559
11560
11561
11562
cristy73bd4a52010-10-05 11:24:23 +000011563# Check whether --enable-libtool-lock was given.
11564if test "${enable_libtool_lock+set}" = set; then :
11565 enableval=$enable_libtool_lock;
11566fi
11567
11568test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11569
11570# Some flags need to be propagated to the compiler or linker for good
11571# libtool support.
11572case $host in
11573ia64-*-hpux*)
11574 # Find out which ABI we are using.
11575 echo 'int i;' > conftest.$ac_ext
11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11577 (eval $ac_compile) 2>&5
11578 ac_status=$?
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; }; then
11581 case `/usr/bin/file conftest.$ac_objext` in
11582 *ELF-32*)
11583 HPUX_IA64_MODE="32"
11584 ;;
11585 *ELF-64*)
11586 HPUX_IA64_MODE="64"
11587 ;;
11588 esac
11589 fi
11590 rm -rf conftest*
11591 ;;
11592*-*-irix6*)
11593 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011594 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11596 (eval $ac_compile) 2>&5
11597 ac_status=$?
11598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599 test $ac_status = 0; }; then
11600 if test "$lt_cv_prog_gnu_ld" = yes; then
11601 case `/usr/bin/file conftest.$ac_objext` in
11602 *32-bit*)
11603 LD="${LD-ld} -melf32bsmip"
11604 ;;
11605 *N32*)
11606 LD="${LD-ld} -melf32bmipn32"
11607 ;;
11608 *64-bit*)
11609 LD="${LD-ld} -melf64bmip"
11610 ;;
11611 esac
11612 else
11613 case `/usr/bin/file conftest.$ac_objext` in
11614 *32-bit*)
11615 LD="${LD-ld} -32"
11616 ;;
11617 *N32*)
11618 LD="${LD-ld} -n32"
11619 ;;
11620 *64-bit*)
11621 LD="${LD-ld} -64"
11622 ;;
11623 esac
11624 fi
11625 fi
11626 rm -rf conftest*
11627 ;;
11628
11629x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11630s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11631 # Find out which ABI we are using.
11632 echo 'int i;' > conftest.$ac_ext
11633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11634 (eval $ac_compile) 2>&5
11635 ac_status=$?
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; }; then
11638 case `/usr/bin/file conftest.o` in
11639 *32-bit*)
11640 case $host in
11641 x86_64-*kfreebsd*-gnu)
11642 LD="${LD-ld} -m elf_i386_fbsd"
11643 ;;
11644 x86_64-*linux*)
11645 LD="${LD-ld} -m elf_i386"
11646 ;;
11647 ppc64-*linux*|powerpc64-*linux*)
11648 LD="${LD-ld} -m elf32ppclinux"
11649 ;;
11650 s390x-*linux*)
11651 LD="${LD-ld} -m elf_s390"
11652 ;;
11653 sparc64-*linux*)
11654 LD="${LD-ld} -m elf32_sparc"
11655 ;;
11656 esac
11657 ;;
11658 *64-bit*)
11659 case $host in
11660 x86_64-*kfreebsd*-gnu)
11661 LD="${LD-ld} -m elf_x86_64_fbsd"
11662 ;;
11663 x86_64-*linux*)
11664 LD="${LD-ld} -m elf_x86_64"
11665 ;;
11666 ppc*-*linux*|powerpc*-*linux*)
11667 LD="${LD-ld} -m elf64ppc"
11668 ;;
11669 s390*-*linux*|s390*-*tpf*)
11670 LD="${LD-ld} -m elf64_s390"
11671 ;;
11672 sparc*-*linux*)
11673 LD="${LD-ld} -m elf64_sparc"
11674 ;;
11675 esac
11676 ;;
11677 esac
11678 fi
11679 rm -rf conftest*
11680 ;;
11681
11682*-*-sco3.2v5*)
11683 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11684 SAVE_CFLAGS="$CFLAGS"
11685 CFLAGS="$CFLAGS -belf"
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11687$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011688if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011689 $as_echo_n "(cached) " >&6
11690else
11691 ac_ext=c
11692ac_cpp='$CPP $CPPFLAGS'
11693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695ac_compiler_gnu=$ac_cv_c_compiler_gnu
11696
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h. */
11699
11700int
11701main ()
11702{
11703
11704 ;
11705 return 0;
11706}
11707_ACEOF
11708if ac_fn_c_try_link "$LINENO"; then :
11709 lt_cv_cc_needs_belf=yes
11710else
11711 lt_cv_cc_needs_belf=no
11712fi
11713rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 ac_ext=c
11716ac_cpp='$CPP $CPPFLAGS'
11717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719ac_compiler_gnu=$ac_cv_c_compiler_gnu
11720
11721fi
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11723$as_echo "$lt_cv_cc_needs_belf" >&6; }
11724 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11725 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11726 CFLAGS="$SAVE_CFLAGS"
11727 fi
11728 ;;
cristy99bd5232011-12-07 14:38:20 +000011729*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011730 # Find out which ABI we are using.
11731 echo 'int i;' > conftest.$ac_ext
11732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11733 (eval $ac_compile) 2>&5
11734 ac_status=$?
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736 test $ac_status = 0; }; then
11737 case `/usr/bin/file conftest.o` in
11738 *64-bit*)
11739 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000011740 yes*)
11741 case $host in
11742 i?86-*-solaris*)
11743 LD="${LD-ld} -m elf_x86_64"
11744 ;;
11745 sparc*-*-solaris*)
11746 LD="${LD-ld} -m elf64_sparc"
11747 ;;
11748 esac
11749 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11750 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11751 LD="${LD-ld}_sol2"
11752 fi
11753 ;;
cristy73bd4a52010-10-05 11:24:23 +000011754 *)
11755 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11756 LD="${LD-ld} -64"
11757 fi
11758 ;;
11759 esac
11760 ;;
11761 esac
11762 fi
11763 rm -rf conftest*
11764 ;;
11765esac
11766
11767need_locks="$enable_libtool_lock"
11768
cristyda16f162011-02-19 23:52:17 +000011769if test -n "$ac_tool_prefix"; then
11770 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11771set dummy ${ac_tool_prefix}mt; ac_word=$2
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773$as_echo_n "checking for $ac_word... " >&6; }
11774if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776else
11777 if test -n "$MANIFEST_TOOL"; then
11778 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11779else
11780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
11786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11787 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11790 fi
11791done
11792 done
11793IFS=$as_save_IFS
11794
11795fi
11796fi
11797MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11798if test -n "$MANIFEST_TOOL"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11800$as_echo "$MANIFEST_TOOL" >&6; }
11801else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803$as_echo "no" >&6; }
11804fi
11805
11806
11807fi
11808if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11809 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11810 # Extract the first word of "mt", so it can be a program name with args.
11811set dummy mt; ac_word=$2
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
11814if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816else
11817 if test -n "$ac_ct_MANIFEST_TOOL"; then
11818 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11827 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11830 fi
11831done
11832 done
11833IFS=$as_save_IFS
11834
11835fi
11836fi
11837ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11838if test -n "$ac_ct_MANIFEST_TOOL"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11840$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11841else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
11844fi
11845
11846 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11847 MANIFEST_TOOL=":"
11848 else
11849 case $cross_compiling:$ac_tool_warned in
11850yes:)
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11853ac_tool_warned=yes ;;
11854esac
11855 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11856 fi
11857else
11858 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11859fi
11860
11861test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11863$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11864if ${lt_cv_path_mainfest_tool+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866else
11867 lt_cv_path_mainfest_tool=no
11868 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11869 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11870 cat conftest.err >&5
11871 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11872 lt_cv_path_mainfest_tool=yes
11873 fi
11874 rm -f conftest*
11875fi
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11877$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11878if test "x$lt_cv_path_mainfest_tool" != xyes; then
11879 MANIFEST_TOOL=:
11880fi
11881
11882
11883
11884
11885
cristy73bd4a52010-10-05 11:24:23 +000011886
11887 case $host_os in
11888 rhapsody* | darwin*)
11889 if test -n "$ac_tool_prefix"; then
11890 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11891set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011894if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011895 $as_echo_n "(cached) " >&6
11896else
11897 if test -n "$DSYMUTIL"; then
11898 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11899else
11900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901for as_dir in $PATH
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11907 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 break 2
11910 fi
11911done
11912 done
11913IFS=$as_save_IFS
11914
11915fi
11916fi
11917DSYMUTIL=$ac_cv_prog_DSYMUTIL
11918if test -n "$DSYMUTIL"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11920$as_echo "$DSYMUTIL" >&6; }
11921else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
11924fi
11925
11926
11927fi
11928if test -z "$ac_cv_prog_DSYMUTIL"; then
11929 ac_ct_DSYMUTIL=$DSYMUTIL
11930 # Extract the first word of "dsymutil", so it can be a program name with args.
11931set dummy dsymutil; ac_word=$2
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011934if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011935 $as_echo_n "(cached) " >&6
11936else
11937 if test -n "$ac_ct_DSYMUTIL"; then
11938 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11939else
11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $PATH
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11947 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 break 2
11950 fi
11951done
11952 done
11953IFS=$as_save_IFS
11954
11955fi
11956fi
11957ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11958if test -n "$ac_ct_DSYMUTIL"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11960$as_echo "$ac_ct_DSYMUTIL" >&6; }
11961else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
11964fi
11965
11966 if test "x$ac_ct_DSYMUTIL" = x; then
11967 DSYMUTIL=":"
11968 else
11969 case $cross_compiling:$ac_tool_warned in
11970yes:)
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11973ac_tool_warned=yes ;;
11974esac
11975 DSYMUTIL=$ac_ct_DSYMUTIL
11976 fi
11977else
11978 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11979fi
11980
11981 if test -n "$ac_tool_prefix"; then
11982 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11983set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011986if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011987 $as_echo_n "(cached) " >&6
11988else
11989 if test -n "$NMEDIT"; then
11990 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11991else
11992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993for as_dir in $PATH
11994do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003done
12004 done
12005IFS=$as_save_IFS
12006
12007fi
12008fi
12009NMEDIT=$ac_cv_prog_NMEDIT
12010if test -n "$NMEDIT"; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12012$as_echo "$NMEDIT" >&6; }
12013else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
12016fi
12017
12018
12019fi
12020if test -z "$ac_cv_prog_NMEDIT"; then
12021 ac_ct_NMEDIT=$NMEDIT
12022 # Extract the first word of "nmedit", so it can be a program name with args.
12023set dummy nmedit; ac_word=$2
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012026if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012027 $as_echo_n "(cached) " >&6
12028else
12029 if test -n "$ac_ct_NMEDIT"; then
12030 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12031else
12032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033for as_dir in $PATH
12034do
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 break 2
12042 fi
12043done
12044 done
12045IFS=$as_save_IFS
12046
12047fi
12048fi
12049ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12050if test -n "$ac_ct_NMEDIT"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12052$as_echo "$ac_ct_NMEDIT" >&6; }
12053else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
12056fi
12057
12058 if test "x$ac_ct_NMEDIT" = x; then
12059 NMEDIT=":"
12060 else
12061 case $cross_compiling:$ac_tool_warned in
12062yes:)
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12065ac_tool_warned=yes ;;
12066esac
12067 NMEDIT=$ac_ct_NMEDIT
12068 fi
12069else
12070 NMEDIT="$ac_cv_prog_NMEDIT"
12071fi
12072
12073 if test -n "$ac_tool_prefix"; then
12074 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12075set dummy ${ac_tool_prefix}lipo; ac_word=$2
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012078if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012079 $as_echo_n "(cached) " >&6
12080else
12081 if test -n "$LIPO"; then
12082 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12083else
12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085for as_dir in $PATH
12086do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12091 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12094 fi
12095done
12096 done
12097IFS=$as_save_IFS
12098
12099fi
12100fi
12101LIPO=$ac_cv_prog_LIPO
12102if test -n "$LIPO"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12104$as_echo "$LIPO" >&6; }
12105else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
12108fi
12109
12110
12111fi
12112if test -z "$ac_cv_prog_LIPO"; then
12113 ac_ct_LIPO=$LIPO
12114 # Extract the first word of "lipo", so it can be a program name with args.
12115set dummy lipo; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012118if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012119 $as_echo_n "(cached) " >&6
12120else
12121 if test -n "$ac_ct_LIPO"; then
12122 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_prog_ac_ct_LIPO="lipo"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135done
12136 done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12142if test -n "$ac_ct_LIPO"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12144$as_echo "$ac_ct_LIPO" >&6; }
12145else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150 if test "x$ac_ct_LIPO" = x; then
12151 LIPO=":"
12152 else
12153 case $cross_compiling:$ac_tool_warned in
12154yes:)
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12157ac_tool_warned=yes ;;
12158esac
12159 LIPO=$ac_ct_LIPO
12160 fi
12161else
12162 LIPO="$ac_cv_prog_LIPO"
12163fi
12164
12165 if test -n "$ac_tool_prefix"; then
12166 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12167set dummy ${ac_tool_prefix}otool; ac_word=$2
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012170if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012171 $as_echo_n "(cached) " >&6
12172else
12173 if test -n "$OTOOL"; then
12174 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12175else
12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177for as_dir in $PATH
12178do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12186 fi
12187done
12188 done
12189IFS=$as_save_IFS
12190
12191fi
12192fi
12193OTOOL=$ac_cv_prog_OTOOL
12194if test -n "$OTOOL"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12196$as_echo "$OTOOL" >&6; }
12197else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199$as_echo "no" >&6; }
12200fi
12201
12202
12203fi
12204if test -z "$ac_cv_prog_OTOOL"; then
12205 ac_ct_OTOOL=$OTOOL
12206 # Extract the first word of "otool", so it can be a program name with args.
12207set dummy otool; ac_word=$2
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012210if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012211 $as_echo_n "(cached) " >&6
12212else
12213 if test -n "$ac_ct_OTOOL"; then
12214 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12215else
12216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $PATH
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12223 ac_cv_prog_ac_ct_OTOOL="otool"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12226 fi
12227done
12228 done
12229IFS=$as_save_IFS
12230
12231fi
12232fi
12233ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12234if test -n "$ac_ct_OTOOL"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12236$as_echo "$ac_ct_OTOOL" >&6; }
12237else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239$as_echo "no" >&6; }
12240fi
12241
12242 if test "x$ac_ct_OTOOL" = x; then
12243 OTOOL=":"
12244 else
12245 case $cross_compiling:$ac_tool_warned in
12246yes:)
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12249ac_tool_warned=yes ;;
12250esac
12251 OTOOL=$ac_ct_OTOOL
12252 fi
12253else
12254 OTOOL="$ac_cv_prog_OTOOL"
12255fi
12256
12257 if test -n "$ac_tool_prefix"; then
12258 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12259set dummy ${ac_tool_prefix}otool64; ac_word=$2
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012262if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012263 $as_echo_n "(cached) " >&6
12264else
12265 if test -n "$OTOOL64"; then
12266 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12267else
12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in $PATH
12270do
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12278 fi
12279done
12280 done
12281IFS=$as_save_IFS
12282
12283fi
12284fi
12285OTOOL64=$ac_cv_prog_OTOOL64
12286if test -n "$OTOOL64"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12288$as_echo "$OTOOL64" >&6; }
12289else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
12292fi
12293
12294
12295fi
12296if test -z "$ac_cv_prog_OTOOL64"; then
12297 ac_ct_OTOOL64=$OTOOL64
12298 # Extract the first word of "otool64", so it can be a program name with args.
12299set dummy otool64; ac_word=$2
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012302if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012303 $as_echo_n "(cached) " >&6
12304else
12305 if test -n "$ac_ct_OTOOL64"; then
12306 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12307else
12308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309for as_dir in $PATH
12310do
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12315 ac_cv_prog_ac_ct_OTOOL64="otool64"
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12318 fi
12319done
12320 done
12321IFS=$as_save_IFS
12322
12323fi
12324fi
12325ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12326if test -n "$ac_ct_OTOOL64"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12328$as_echo "$ac_ct_OTOOL64" >&6; }
12329else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331$as_echo "no" >&6; }
12332fi
12333
12334 if test "x$ac_ct_OTOOL64" = x; then
12335 OTOOL64=":"
12336 else
12337 case $cross_compiling:$ac_tool_warned in
12338yes:)
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12341ac_tool_warned=yes ;;
12342esac
12343 OTOOL64=$ac_ct_OTOOL64
12344 fi
12345else
12346 OTOOL64="$ac_cv_prog_OTOOL64"
12347fi
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12376$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012377if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012378 $as_echo_n "(cached) " >&6
12379else
12380 lt_cv_apple_cc_single_mod=no
12381 if test -z "${LT_MULTI_MODULE}"; then
12382 # By default we will add the -single_module flag. You can override
12383 # by either setting the environment variable LT_MULTI_MODULE
12384 # non-empty at configure time, or by adding -multi_module to the
12385 # link flags.
12386 rm -rf libconftest.dylib*
12387 echo "int foo(void){return 1;}" > conftest.c
12388 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12389-dynamiclib -Wl,-single_module conftest.c" >&5
12390 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12391 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12392 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012393 # If there is a non-empty error log, and "single_module"
12394 # appears in it, assume the flag caused a linker warning
12395 if test -s conftest.err && $GREP single_module conftest.err; then
12396 cat conftest.err >&5
12397 # Otherwise, if the output was created with a 0 exit code from
12398 # the compiler, it worked.
12399 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012400 lt_cv_apple_cc_single_mod=yes
12401 else
12402 cat conftest.err >&5
12403 fi
12404 rm -rf libconftest.dylib*
12405 rm -f conftest.*
12406 fi
12407fi
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12409$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012410
cristy73bd4a52010-10-05 11:24:23 +000012411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12412$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012413if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012414 $as_echo_n "(cached) " >&6
12415else
12416 lt_cv_ld_exported_symbols_list=no
12417 save_LDFLAGS=$LDFLAGS
12418 echo "_main" > conftest.sym
12419 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421/* end confdefs.h. */
12422
12423int
12424main ()
12425{
12426
12427 ;
12428 return 0;
12429}
12430_ACEOF
12431if ac_fn_c_try_link "$LINENO"; then :
12432 lt_cv_ld_exported_symbols_list=yes
12433else
12434 lt_cv_ld_exported_symbols_list=no
12435fi
12436rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LDFLAGS="$save_LDFLAGS"
12439
12440fi
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12442$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012443
cristy0c60a692010-11-04 01:09:47 +000012444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12445$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012446if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012447 $as_echo_n "(cached) " >&6
12448else
12449 lt_cv_ld_force_load=no
12450 cat > conftest.c << _LT_EOF
12451int forced_loaded() { return 2;}
12452_LT_EOF
12453 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12454 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12455 echo "$AR cru libconftest.a conftest.o" >&5
12456 $AR cru libconftest.a conftest.o 2>&5
12457 echo "$RANLIB libconftest.a" >&5
12458 $RANLIB libconftest.a 2>&5
12459 cat > conftest.c << _LT_EOF
12460int main() { return 0;}
12461_LT_EOF
12462 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12463 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12464 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012465 if test -s conftest.err && $GREP force_load conftest.err; then
12466 cat conftest.err >&5
12467 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012468 lt_cv_ld_force_load=yes
12469 else
12470 cat conftest.err >&5
12471 fi
12472 rm -f conftest.err libconftest.a conftest conftest.c
12473 rm -rf conftest.dSYM
12474
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12477$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012478 case $host_os in
12479 rhapsody* | darwin1.[012])
12480 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12481 darwin1.*)
12482 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12483 darwin*) # darwin 5.x on
12484 # if running on 10.5 or later, the deployment target defaults
12485 # to the OS version, if on x86, and 10.4, the deployment
12486 # target defaults to 10.4. Don't you love it?
12487 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12488 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12489 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12490 10.[012]*)
12491 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12492 10.*)
12493 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12494 esac
12495 ;;
12496 esac
12497 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12498 _lt_dar_single_mod='$single_module'
12499 fi
12500 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12501 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12502 else
12503 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12504 fi
cristy0c60a692010-11-04 01:09:47 +000012505 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012506 _lt_dsymutil='~$DSYMUTIL $lib || :'
12507 else
12508 _lt_dsymutil=
12509 fi
12510 ;;
12511 esac
12512
12513for ac_header in dlfcn.h
12514do :
12515 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12516"
cristyda16f162011-02-19 23:52:17 +000012517if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012518 cat >>confdefs.h <<_ACEOF
12519#define HAVE_DLFCN_H 1
12520_ACEOF
12521
12522fi
12523
12524done
12525
12526
12527
cristy73bd4a52010-10-05 11:24:23 +000012528
cristyda16f162011-02-19 23:52:17 +000012529func_stripname_cnf ()
12530{
12531 case ${2} in
12532 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12533 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12534 esac
12535} # func_stripname_cnf
12536
12537
12538
cristy73bd4a52010-10-05 11:24:23 +000012539
12540
12541# Set options
12542enable_win32_dll=yes
12543
12544case $host in
cristy0c60a692010-11-04 01:09:47 +000012545*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012546 if test -n "$ac_tool_prefix"; then
12547 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12548set dummy ${ac_tool_prefix}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_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012552 $as_echo_n "(cached) " >&6
12553else
12554 if test -n "$AS"; then
12555 ac_cv_prog_AS="$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_AS="${ac_tool_prefix}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
12574AS=$ac_cv_prog_AS
12575if test -n "$AS"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12577$as_echo "$AS" >&6; }
12578else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583
12584fi
12585if test -z "$ac_cv_prog_AS"; then
12586 ac_ct_AS=$AS
12587 # Extract the first word of "as", so it can be a program name with args.
12588set dummy as; ac_word=$2
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012591if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012592 $as_echo_n "(cached) " >&6
12593else
12594 if test -n "$ac_ct_AS"; then
12595 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12596else
12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_prog_ac_ct_AS="as"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608done
12609 done
12610IFS=$as_save_IFS
12611
12612fi
12613fi
12614ac_ct_AS=$ac_cv_prog_ac_ct_AS
12615if test -n "$ac_ct_AS"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12617$as_echo "$ac_ct_AS" >&6; }
12618else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623 if test "x$ac_ct_AS" = x; then
12624 AS="false"
12625 else
12626 case $cross_compiling:$ac_tool_warned in
12627yes:)
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12630ac_tool_warned=yes ;;
12631esac
12632 AS=$ac_ct_AS
12633 fi
12634else
12635 AS="$ac_cv_prog_AS"
12636fi
12637
12638 if test -n "$ac_tool_prefix"; then
12639 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12640set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012644 $as_echo_n "(cached) " >&6
12645else
12646 if test -n "$DLLTOOL"; then
12647 ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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
12666DLLTOOL=$ac_cv_prog_DLLTOOL
12667if test -n "$DLLTOOL"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12669$as_echo "$DLLTOOL" >&6; }
12670else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
12673fi
12674
12675
12676fi
12677if test -z "$ac_cv_prog_DLLTOOL"; then
12678 ac_ct_DLLTOOL=$DLLTOOL
12679 # Extract the first word of "dlltool", so it can be a program name with args.
12680set dummy dlltool; ac_word=$2
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012683if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012684 $as_echo_n "(cached) " >&6
12685else
12686 if test -n "$ac_ct_DLLTOOL"; then
12687 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700done
12701 done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12707if test -n "$ac_ct_DLLTOOL"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12709$as_echo "$ac_ct_DLLTOOL" >&6; }
12710else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715 if test "x$ac_ct_DLLTOOL" = x; then
12716 DLLTOOL="false"
12717 else
12718 case $cross_compiling:$ac_tool_warned in
12719yes:)
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12722ac_tool_warned=yes ;;
12723esac
12724 DLLTOOL=$ac_ct_DLLTOOL
12725 fi
12726else
12727 DLLTOOL="$ac_cv_prog_DLLTOOL"
12728fi
12729
12730 if test -n "$ac_tool_prefix"; then
12731 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12732set dummy ${ac_tool_prefix}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_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012736 $as_echo_n "(cached) " >&6
12737else
12738 if test -n "$OBJDUMP"; then
12739 ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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
12758OBJDUMP=$ac_cv_prog_OBJDUMP
12759if test -n "$OBJDUMP"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12761$as_echo "$OBJDUMP" >&6; }
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765fi
12766
12767
12768fi
12769if test -z "$ac_cv_prog_OBJDUMP"; then
12770 ac_ct_OBJDUMP=$OBJDUMP
12771 # Extract the first word of "objdump", so it can be a program name with args.
12772set dummy objdump; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012775if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$ac_ct_OBJDUMP"; then
12779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12799if test -n "$ac_ct_OBJDUMP"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12801$as_echo "$ac_ct_OBJDUMP" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807 if test "x$ac_ct_OBJDUMP" = x; then
12808 OBJDUMP="false"
12809 else
12810 case $cross_compiling:$ac_tool_warned in
12811yes:)
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12814ac_tool_warned=yes ;;
12815esac
12816 OBJDUMP=$ac_ct_OBJDUMP
12817 fi
12818else
12819 OBJDUMP="$ac_cv_prog_OBJDUMP"
12820fi
12821
12822 ;;
12823esac
12824
12825test -z "$AS" && AS=as
12826
12827
12828
12829
12830
12831test -z "$DLLTOOL" && DLLTOOL=dlltool
12832
12833
12834
12835
12836
12837test -z "$OBJDUMP" && OBJDUMP=objdump
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847 # Check whether --enable-shared was given.
12848if test "${enable_shared+set}" = set; then :
12849 enableval=$enable_shared; p=${PACKAGE-default}
12850 case $enableval in
12851 yes) enable_shared=yes ;;
12852 no) enable_shared=no ;;
12853 *)
12854 enable_shared=no
12855 # Look at the argument we got. We use all the common list separators.
12856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12857 for pkg in $enableval; do
12858 IFS="$lt_save_ifs"
12859 if test "X$pkg" = "X$p"; then
12860 enable_shared=yes
12861 fi
12862 done
12863 IFS="$lt_save_ifs"
12864 ;;
12865 esac
12866else
12867 enable_shared=yes
12868fi
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878 # Check whether --enable-static was given.
12879if test "${enable_static+set}" = set; then :
12880 enableval=$enable_static; p=${PACKAGE-default}
12881 case $enableval in
12882 yes) enable_static=yes ;;
12883 no) enable_static=no ;;
12884 *)
12885 enable_static=no
12886 # Look at the argument we got. We use all the common list separators.
12887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12888 for pkg in $enableval; do
12889 IFS="$lt_save_ifs"
12890 if test "X$pkg" = "X$p"; then
12891 enable_static=yes
12892 fi
12893 done
12894 IFS="$lt_save_ifs"
12895 ;;
12896 esac
12897else
12898 enable_static=yes
12899fi
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910# Check whether --with-pic was given.
12911if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000012912 withval=$with_pic; lt_p=${PACKAGE-default}
12913 case $withval in
12914 yes|no) pic_mode=$withval ;;
12915 *)
12916 pic_mode=default
12917 # Look at the argument we got. We use all the common list separators.
12918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12919 for lt_pkg in $withval; do
12920 IFS="$lt_save_ifs"
12921 if test "X$lt_pkg" = "X$lt_p"; then
12922 pic_mode=yes
12923 fi
12924 done
12925 IFS="$lt_save_ifs"
12926 ;;
12927 esac
cristy73bd4a52010-10-05 11:24:23 +000012928else
12929 pic_mode=default
12930fi
12931
12932
12933test -z "$pic_mode" && pic_mode=default
12934
12935
12936
12937
12938
12939
12940
12941 # Check whether --enable-fast-install was given.
12942if test "${enable_fast_install+set}" = set; then :
12943 enableval=$enable_fast_install; p=${PACKAGE-default}
12944 case $enableval in
12945 yes) enable_fast_install=yes ;;
12946 no) enable_fast_install=no ;;
12947 *)
12948 enable_fast_install=no
12949 # Look at the argument we got. We use all the common list separators.
12950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12951 for pkg in $enableval; do
12952 IFS="$lt_save_ifs"
12953 if test "X$pkg" = "X$p"; then
12954 enable_fast_install=yes
12955 fi
12956 done
12957 IFS="$lt_save_ifs"
12958 ;;
12959 esac
12960else
12961 enable_fast_install=yes
12962fi
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974# This can be used to rebuild libtool when needed
12975LIBTOOL_DEPS="$ltmain"
12976
12977# Always use our own libtool.
12978LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
cristy0c60a692010-11-04 01:09:47 +000013004
cristy99bd5232011-12-07 14:38:20 +000013005
13006
13007
13008
cristy73bd4a52010-10-05 11:24:23 +000013009test -z "$LN_S" && LN_S="ln -s"
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024if test -n "${ZSH_VERSION+set}" ; then
13025 setopt NO_GLOB_SUBST
13026fi
13027
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13029$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013030if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013031 $as_echo_n "(cached) " >&6
13032else
13033 rm -f .libs 2>/dev/null
13034mkdir .libs 2>/dev/null
13035if test -d .libs; then
13036 lt_cv_objdir=.libs
13037else
13038 # MS-DOS does not allow filenames that begin with a dot.
13039 lt_cv_objdir=_libs
13040fi
13041rmdir .libs 2>/dev/null
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13044$as_echo "$lt_cv_objdir" >&6; }
13045objdir=$lt_cv_objdir
13046
13047
13048
13049
13050
13051cat >>confdefs.h <<_ACEOF
13052#define LT_OBJDIR "$lt_cv_objdir/"
13053_ACEOF
13054
13055
13056
13057
cristy73bd4a52010-10-05 11:24:23 +000013058case $host_os in
13059aix3*)
13060 # AIX sometimes has problems with the GCC collect2 program. For some
13061 # reason, if we set the COLLECT_NAMES environment variable, the problems
13062 # vanish in a puff of smoke.
13063 if test "X${COLLECT_NAMES+set}" != Xset; then
13064 COLLECT_NAMES=
13065 export COLLECT_NAMES
13066 fi
13067 ;;
13068esac
13069
cristy73bd4a52010-10-05 11:24:23 +000013070# Global variables:
13071ofile=libtool
13072can_build_shared=yes
13073
13074# All known linkers require a `.a' archive for static linking (except MSVC,
13075# which needs '.lib').
13076libext=a
13077
13078with_gnu_ld="$lt_cv_prog_gnu_ld"
13079
13080old_CC="$CC"
13081old_CFLAGS="$CFLAGS"
13082
13083# Set sane defaults for various variables
13084test -z "$CC" && CC=cc
13085test -z "$LTCC" && LTCC=$CC
13086test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13087test -z "$LD" && LD=ld
13088test -z "$ac_objext" && ac_objext=o
13089
13090for cc_temp in $compiler""; do
13091 case $cc_temp in
13092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13094 \-*) ;;
13095 *) break;;
13096 esac
13097done
cristy0c60a692010-11-04 01:09:47 +000013098cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013099
13100
13101# Only perform the check for file, if the check method requires it
13102test -z "$MAGIC_CMD" && MAGIC_CMD=file
13103case $deplibs_check_method in
13104file_magic*)
13105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13107$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013108if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013109 $as_echo_n "(cached) " >&6
13110else
13111 case $MAGIC_CMD in
13112[\\/*] | ?:[\\/]*)
13113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13114 ;;
13115*)
13116 lt_save_MAGIC_CMD="$MAGIC_CMD"
13117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13119 for ac_dir in $ac_dummy; do
13120 IFS="$lt_save_ifs"
13121 test -z "$ac_dir" && ac_dir=.
13122 if test -f $ac_dir/${ac_tool_prefix}file; then
13123 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13124 if test -n "$file_magic_test_file"; then
13125 case $deplibs_check_method in
13126 "file_magic "*)
13127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13130 $EGREP "$file_magic_regex" > /dev/null; then
13131 :
13132 else
13133 cat <<_LT_EOF 1>&2
13134
13135*** Warning: the command libtool uses to detect shared libraries,
13136*** $file_magic_cmd, produces output that libtool cannot recognize.
13137*** The result is that libtool may fail to recognize shared libraries
13138*** as such. This will affect the creation of libtool libraries that
13139*** depend on shared libraries, but programs linked with such libtool
13140*** libraries will work regardless of this problem. Nevertheless, you
13141*** may want to report the problem to your system manager and/or to
13142*** bug-libtool@gnu.org
13143
13144_LT_EOF
13145 fi ;;
13146 esac
13147 fi
13148 break
13149 fi
13150 done
13151 IFS="$lt_save_ifs"
13152 MAGIC_CMD="$lt_save_MAGIC_CMD"
13153 ;;
13154esac
13155fi
13156
13157MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13158if test -n "$MAGIC_CMD"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13160$as_echo "$MAGIC_CMD" >&6; }
13161else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
13164fi
13165
13166
13167
13168
13169
13170if test -z "$lt_cv_path_MAGIC_CMD"; then
13171 if test -n "$ac_tool_prefix"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13173$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013174if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013175 $as_echo_n "(cached) " >&6
13176else
13177 case $MAGIC_CMD in
13178[\\/*] | ?:[\\/]*)
13179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13180 ;;
13181*)
13182 lt_save_MAGIC_CMD="$MAGIC_CMD"
13183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13184 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13185 for ac_dir in $ac_dummy; do
13186 IFS="$lt_save_ifs"
13187 test -z "$ac_dir" && ac_dir=.
13188 if test -f $ac_dir/file; then
13189 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13190 if test -n "$file_magic_test_file"; then
13191 case $deplibs_check_method in
13192 "file_magic "*)
13193 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13195 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13196 $EGREP "$file_magic_regex" > /dev/null; then
13197 :
13198 else
13199 cat <<_LT_EOF 1>&2
13200
13201*** Warning: the command libtool uses to detect shared libraries,
13202*** $file_magic_cmd, produces output that libtool cannot recognize.
13203*** The result is that libtool may fail to recognize shared libraries
13204*** as such. This will affect the creation of libtool libraries that
13205*** depend on shared libraries, but programs linked with such libtool
13206*** libraries will work regardless of this problem. Nevertheless, you
13207*** may want to report the problem to your system manager and/or to
13208*** bug-libtool@gnu.org
13209
13210_LT_EOF
13211 fi ;;
13212 esac
13213 fi
13214 break
13215 fi
13216 done
13217 IFS="$lt_save_ifs"
13218 MAGIC_CMD="$lt_save_MAGIC_CMD"
13219 ;;
13220esac
13221fi
13222
13223MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13224if test -n "$MAGIC_CMD"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13226$as_echo "$MAGIC_CMD" >&6; }
13227else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229$as_echo "no" >&6; }
13230fi
13231
13232
13233 else
13234 MAGIC_CMD=:
13235 fi
13236fi
13237
13238 fi
13239 ;;
13240esac
13241
13242# Use C for the default configuration in the libtool script
13243
13244lt_save_CC="$CC"
13245ac_ext=c
13246ac_cpp='$CPP $CPPFLAGS'
13247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13249ac_compiler_gnu=$ac_cv_c_compiler_gnu
13250
13251
13252# Source file extension for C test sources.
13253ac_ext=c
13254
13255# Object file extension for compiled C test sources.
13256objext=o
13257objext=$objext
13258
13259# Code to be used in simple compile tests
13260lt_simple_compile_test_code="int some_variable = 0;"
13261
13262# Code to be used in simple link tests
13263lt_simple_link_test_code='int main(){return(0);}'
13264
13265
13266
13267
13268
13269
13270
13271# If no C compiler was specified, use CC.
13272LTCC=${LTCC-"$CC"}
13273
13274# If no C compiler flags were specified, use CFLAGS.
13275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13276
13277# Allow CC to be a program name with arguments.
13278compiler=$CC
13279
13280# Save the default compiler, since it gets overwritten when the other
13281# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13282compiler_DEFAULT=$CC
13283
13284# save warnings/boilerplate of simple test code
13285ac_outfile=conftest.$ac_objext
13286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13288_lt_compiler_boilerplate=`cat conftest.err`
13289$RM conftest*
13290
13291ac_outfile=conftest.$ac_objext
13292echo "$lt_simple_link_test_code" >conftest.$ac_ext
13293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13294_lt_linker_boilerplate=`cat conftest.err`
13295$RM -r conftest*
13296
13297
13298## CAVEAT EMPTOR:
13299## There is no encapsulation within the following macros, do not change
13300## the running order or otherwise move them around unless you know exactly
13301## what you are doing...
13302if test -n "$compiler"; then
13303
13304lt_prog_compiler_no_builtin_flag=
13305
13306if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013307 case $cc_basename in
13308 nvcc*)
13309 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13310 *)
13311 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13312 esac
cristy73bd4a52010-10-05 11:24:23 +000013313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13315$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013316if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013317 $as_echo_n "(cached) " >&6
13318else
13319 lt_cv_prog_compiler_rtti_exceptions=no
13320 ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13322 lt_compiler_flag="-fno-rtti -fno-exceptions"
13323 # Insert the option either (1) after the last *FLAGS variable, or
13324 # (2) before a word containing "conftest.", or (3) at the end.
13325 # Note that $ac_compile itself does not contain backslashes and begins
13326 # with a dollar sign (not a hyphen), so the echo should work correctly.
13327 # The option is referenced via a variable to avoid confusing sed.
13328 lt_compile=`echo "$ac_compile" | $SED \
13329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013333 (eval "$lt_compile" 2>conftest.err)
13334 ac_status=$?
13335 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013337 if (exit $ac_status) && test -s "$ac_outfile"; then
13338 # The compiler can only warn and ignore the option if not recognized
13339 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013340 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13343 lt_cv_prog_compiler_rtti_exceptions=yes
13344 fi
13345 fi
13346 $RM conftest*
13347
13348fi
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13350$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13351
13352if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13353 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13354else
13355 :
13356fi
13357
13358fi
13359
13360
13361
13362
13363
13364
13365 lt_prog_compiler_wl=
13366lt_prog_compiler_pic=
13367lt_prog_compiler_static=
13368
cristy73bd4a52010-10-05 11:24:23 +000013369
13370 if test "$GCC" = yes; then
13371 lt_prog_compiler_wl='-Wl,'
13372 lt_prog_compiler_static='-static'
13373
13374 case $host_os in
13375 aix*)
13376 # All AIX code is PIC.
13377 if test "$host_cpu" = ia64; then
13378 # AIX 5 now supports IA64 processor
13379 lt_prog_compiler_static='-Bstatic'
13380 fi
13381 ;;
13382
13383 amigaos*)
13384 case $host_cpu in
13385 powerpc)
13386 # see comment about AmigaOS4 .so support
13387 lt_prog_compiler_pic='-fPIC'
13388 ;;
13389 m68k)
13390 # FIXME: we need at least 68020 code to build shared libraries, but
13391 # adding the `-m68020' flag to GCC prevents building anything better,
13392 # like `-m68040'.
13393 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13394 ;;
13395 esac
13396 ;;
13397
13398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13399 # PIC is the default for these OSes.
13400 ;;
13401
13402 mingw* | cygwin* | pw32* | os2* | cegcc*)
13403 # This hack is so that the source file can tell whether it is being
13404 # built for inclusion in a dll (and should export symbols for example).
13405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13406 # (--disable-auto-import) libraries
13407 lt_prog_compiler_pic='-DDLL_EXPORT'
13408 ;;
13409
13410 darwin* | rhapsody*)
13411 # PIC is the default on this platform
13412 # Common symbols not allowed in MH_DYLIB files
13413 lt_prog_compiler_pic='-fno-common'
13414 ;;
13415
cristy0c60a692010-11-04 01:09:47 +000013416 haiku*)
13417 # PIC is the default for Haiku.
13418 # The "-static" flag exists, but is broken.
13419 lt_prog_compiler_static=
13420 ;;
13421
cristy73bd4a52010-10-05 11:24:23 +000013422 hpux*)
13423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13425 # sets the default TLS model and affects inlining.
13426 case $host_cpu in
13427 hppa*64*)
13428 # +Z the default
13429 ;;
13430 *)
13431 lt_prog_compiler_pic='-fPIC'
13432 ;;
13433 esac
13434 ;;
13435
13436 interix[3-9]*)
13437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13438 # Instead, we relocate shared libraries at runtime.
13439 ;;
13440
13441 msdosdjgpp*)
13442 # Just because we use GCC doesn't mean we suddenly get shared libraries
13443 # on systems that don't support them.
13444 lt_prog_compiler_can_build_shared=no
13445 enable_shared=no
13446 ;;
13447
13448 *nto* | *qnx*)
13449 # QNX uses GNU C++, but need to define -shared option too, otherwise
13450 # it will coredump.
13451 lt_prog_compiler_pic='-fPIC -shared'
13452 ;;
13453
13454 sysv4*MP*)
13455 if test -d /usr/nec; then
13456 lt_prog_compiler_pic=-Kconform_pic
13457 fi
13458 ;;
13459
13460 *)
13461 lt_prog_compiler_pic='-fPIC'
13462 ;;
13463 esac
cristy0c60a692010-11-04 01:09:47 +000013464
13465 case $cc_basename in
13466 nvcc*) # Cuda Compiler Driver 2.2
13467 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013468 if test -n "$lt_prog_compiler_pic"; then
13469 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13470 fi
cristy0c60a692010-11-04 01:09:47 +000013471 ;;
13472 esac
cristy73bd4a52010-10-05 11:24:23 +000013473 else
13474 # PORTME Check for flag to pass linker flags through the system compiler.
13475 case $host_os in
13476 aix*)
13477 lt_prog_compiler_wl='-Wl,'
13478 if test "$host_cpu" = ia64; then
13479 # AIX 5 now supports IA64 processor
13480 lt_prog_compiler_static='-Bstatic'
13481 else
13482 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13483 fi
13484 ;;
13485
13486 mingw* | cygwin* | pw32* | os2* | cegcc*)
13487 # This hack is so that the source file can tell whether it is being
13488 # built for inclusion in a dll (and should export symbols for example).
13489 lt_prog_compiler_pic='-DDLL_EXPORT'
13490 ;;
13491
13492 hpux9* | hpux10* | hpux11*)
13493 lt_prog_compiler_wl='-Wl,'
13494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13495 # not for PA HP-UX.
13496 case $host_cpu in
13497 hppa*64*|ia64*)
13498 # +Z the default
13499 ;;
13500 *)
13501 lt_prog_compiler_pic='+Z'
13502 ;;
13503 esac
13504 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13505 lt_prog_compiler_static='${wl}-a ${wl}archive'
13506 ;;
13507
13508 irix5* | irix6* | nonstopux*)
13509 lt_prog_compiler_wl='-Wl,'
13510 # PIC (with -KPIC) is the default.
13511 lt_prog_compiler_static='-non_shared'
13512 ;;
13513
cristy0c60a692010-11-04 01:09:47 +000013514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013515 case $cc_basename in
13516 # old Intel for x86_64 which still supported -KPIC.
13517 ecc*)
13518 lt_prog_compiler_wl='-Wl,'
13519 lt_prog_compiler_pic='-KPIC'
13520 lt_prog_compiler_static='-static'
13521 ;;
13522 # icc used to be incompatible with GCC.
13523 # ICC 10 doesn't accept -KPIC any more.
13524 icc* | ifort*)
13525 lt_prog_compiler_wl='-Wl,'
13526 lt_prog_compiler_pic='-fPIC'
13527 lt_prog_compiler_static='-static'
13528 ;;
13529 # Lahey Fortran 8.1.
13530 lf95*)
13531 lt_prog_compiler_wl='-Wl,'
13532 lt_prog_compiler_pic='--shared'
13533 lt_prog_compiler_static='--static'
13534 ;;
cristyda16f162011-02-19 23:52:17 +000013535 nagfor*)
13536 # NAG Fortran compiler
13537 lt_prog_compiler_wl='-Wl,-Wl,,'
13538 lt_prog_compiler_pic='-PIC'
13539 lt_prog_compiler_static='-Bstatic'
13540 ;;
cristy0c60a692010-11-04 01:09:47 +000013541 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013542 # Portland Group compilers (*not* the Pentium gcc compiler,
13543 # which looks to be a dead project)
13544 lt_prog_compiler_wl='-Wl,'
13545 lt_prog_compiler_pic='-fpic'
13546 lt_prog_compiler_static='-Bstatic'
13547 ;;
13548 ccc*)
13549 lt_prog_compiler_wl='-Wl,'
13550 # All Alpha code is PIC.
13551 lt_prog_compiler_static='-non_shared'
13552 ;;
cristy0c60a692010-11-04 01:09:47 +000013553 xl* | bgxl* | bgf* | mpixl*)
13554 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013555 lt_prog_compiler_wl='-Wl,'
13556 lt_prog_compiler_pic='-qpic'
13557 lt_prog_compiler_static='-qstaticlink'
13558 ;;
13559 *)
13560 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000013561 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000013562 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13563 lt_prog_compiler_pic='-KPIC'
13564 lt_prog_compiler_static='-Bstatic'
13565 lt_prog_compiler_wl=''
13566 ;;
cristy99bd5232011-12-07 14:38:20 +000013567 *Sun\ F* | *Sun*Fortran*)
13568 lt_prog_compiler_pic='-KPIC'
13569 lt_prog_compiler_static='-Bstatic'
13570 lt_prog_compiler_wl='-Qoption ld '
13571 ;;
cristy73bd4a52010-10-05 11:24:23 +000013572 *Sun\ C*)
13573 # Sun C 5.9
13574 lt_prog_compiler_pic='-KPIC'
13575 lt_prog_compiler_static='-Bstatic'
13576 lt_prog_compiler_wl='-Wl,'
13577 ;;
cristy99bd5232011-12-07 14:38:20 +000013578 *Intel*\ [CF]*Compiler*)
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_pic='-fPIC'
13581 lt_prog_compiler_static='-static'
13582 ;;
13583 *Portland\ Group*)
13584 lt_prog_compiler_wl='-Wl,'
13585 lt_prog_compiler_pic='-fpic'
13586 lt_prog_compiler_static='-Bstatic'
13587 ;;
cristy73bd4a52010-10-05 11:24:23 +000013588 esac
13589 ;;
13590 esac
13591 ;;
13592
13593 newsos6)
13594 lt_prog_compiler_pic='-KPIC'
13595 lt_prog_compiler_static='-Bstatic'
13596 ;;
13597
13598 *nto* | *qnx*)
13599 # QNX uses GNU C++, but need to define -shared option too, otherwise
13600 # it will coredump.
13601 lt_prog_compiler_pic='-fPIC -shared'
13602 ;;
13603
13604 osf3* | osf4* | osf5*)
13605 lt_prog_compiler_wl='-Wl,'
13606 # All OSF/1 code is PIC.
13607 lt_prog_compiler_static='-non_shared'
13608 ;;
13609
13610 rdos*)
13611 lt_prog_compiler_static='-non_shared'
13612 ;;
13613
13614 solaris*)
13615 lt_prog_compiler_pic='-KPIC'
13616 lt_prog_compiler_static='-Bstatic'
13617 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013618 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013619 lt_prog_compiler_wl='-Qoption ld ';;
13620 *)
13621 lt_prog_compiler_wl='-Wl,';;
13622 esac
13623 ;;
13624
13625 sunos4*)
13626 lt_prog_compiler_wl='-Qoption ld '
13627 lt_prog_compiler_pic='-PIC'
13628 lt_prog_compiler_static='-Bstatic'
13629 ;;
13630
13631 sysv4 | sysv4.2uw2* | sysv4.3*)
13632 lt_prog_compiler_wl='-Wl,'
13633 lt_prog_compiler_pic='-KPIC'
13634 lt_prog_compiler_static='-Bstatic'
13635 ;;
13636
13637 sysv4*MP*)
13638 if test -d /usr/nec ;then
13639 lt_prog_compiler_pic='-Kconform_pic'
13640 lt_prog_compiler_static='-Bstatic'
13641 fi
13642 ;;
13643
13644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13645 lt_prog_compiler_wl='-Wl,'
13646 lt_prog_compiler_pic='-KPIC'
13647 lt_prog_compiler_static='-Bstatic'
13648 ;;
13649
13650 unicos*)
13651 lt_prog_compiler_wl='-Wl,'
13652 lt_prog_compiler_can_build_shared=no
13653 ;;
13654
13655 uts4*)
13656 lt_prog_compiler_pic='-pic'
13657 lt_prog_compiler_static='-Bstatic'
13658 ;;
13659
13660 *)
13661 lt_prog_compiler_can_build_shared=no
13662 ;;
13663 esac
13664 fi
13665
13666case $host_os in
13667 # For platforms which do not support PIC, -DPIC is meaningless:
13668 *djgpp*)
13669 lt_prog_compiler_pic=
13670 ;;
13671 *)
13672 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13673 ;;
13674esac
cristy73bd4a52010-10-05 11:24:23 +000013675
cristyda16f162011-02-19 23:52:17 +000013676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13677$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13678if ${lt_cv_prog_compiler_pic+:} false; then :
13679 $as_echo_n "(cached) " >&6
13680else
13681 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13682fi
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13684$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13685lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013686
13687#
13688# Check to make sure the PIC flag actually works.
13689#
13690if test -n "$lt_prog_compiler_pic"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13692$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013693if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013694 $as_echo_n "(cached) " >&6
13695else
13696 lt_cv_prog_compiler_pic_works=no
13697 ac_outfile=conftest.$ac_objext
13698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13699 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13700 # Insert the option either (1) after the last *FLAGS variable, or
13701 # (2) before a word containing "conftest.", or (3) at the end.
13702 # Note that $ac_compile itself does not contain backslashes and begins
13703 # with a dollar sign (not a hyphen), so the echo should work correctly.
13704 # The option is referenced via a variable to avoid confusing sed.
13705 lt_compile=`echo "$ac_compile" | $SED \
13706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13708 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013710 (eval "$lt_compile" 2>conftest.err)
13711 ac_status=$?
13712 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013714 if (exit $ac_status) && test -s "$ac_outfile"; then
13715 # The compiler can only warn and ignore the option if not recognized
13716 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13720 lt_cv_prog_compiler_pic_works=yes
13721 fi
13722 fi
13723 $RM conftest*
13724
13725fi
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13727$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13728
13729if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13730 case $lt_prog_compiler_pic in
13731 "" | " "*) ;;
13732 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13733 esac
13734else
13735 lt_prog_compiler_pic=
13736 lt_prog_compiler_can_build_shared=no
13737fi
13738
13739fi
13740
13741
13742
13743
13744
13745
cristyda16f162011-02-19 23:52:17 +000013746
13747
13748
13749
13750
cristy73bd4a52010-10-05 11:24:23 +000013751#
13752# Check to make sure the static flag actually works.
13753#
13754wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13756$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013757if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013758 $as_echo_n "(cached) " >&6
13759else
13760 lt_cv_prog_compiler_static_works=no
13761 save_LDFLAGS="$LDFLAGS"
13762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13765 # The linker can only warn and ignore the option if not recognized
13766 # So say no if there are warnings
13767 if test -s conftest.err; then
13768 # Append any errors to the config.log.
13769 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13772 if diff conftest.exp conftest.er2 >/dev/null; then
13773 lt_cv_prog_compiler_static_works=yes
13774 fi
13775 else
13776 lt_cv_prog_compiler_static_works=yes
13777 fi
13778 fi
13779 $RM -r conftest*
13780 LDFLAGS="$save_LDFLAGS"
13781
13782fi
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13784$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13785
13786if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13787 :
13788else
13789 lt_prog_compiler_static=
13790fi
13791
13792
13793
13794
13795
13796
13797
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013800if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013801 $as_echo_n "(cached) " >&6
13802else
13803 lt_cv_prog_compiler_c_o=no
13804 $RM -r conftest 2>/dev/null
13805 mkdir conftest
13806 cd conftest
13807 mkdir out
13808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13809
13810 lt_compiler_flag="-o out/conftest2.$ac_objext"
13811 # Insert the option either (1) after the last *FLAGS variable, or
13812 # (2) before a word containing "conftest.", or (3) at the end.
13813 # Note that $ac_compile itself does not contain backslashes and begins
13814 # with a dollar sign (not a hyphen), so the echo should work correctly.
13815 lt_compile=`echo "$ac_compile" | $SED \
13816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13818 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013820 (eval "$lt_compile" 2>out/conftest.err)
13821 ac_status=$?
13822 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13825 then
13826 # The compiler can only warn and ignore the option if not recognized
13827 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13831 lt_cv_prog_compiler_c_o=yes
13832 fi
13833 fi
13834 chmod u+w . 2>&5
13835 $RM conftest*
13836 # SGI C++ compiler will create directory out/ii_files/ for
13837 # template instantiation
13838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13839 $RM out/* && rmdir out
13840 cd ..
13841 $RM -r conftest
13842 $RM conftest*
13843
13844fi
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13846$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13847
13848
13849
13850
13851
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13854$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013855if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013856 $as_echo_n "(cached) " >&6
13857else
13858 lt_cv_prog_compiler_c_o=no
13859 $RM -r conftest 2>/dev/null
13860 mkdir conftest
13861 cd conftest
13862 mkdir out
13863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13864
13865 lt_compiler_flag="-o out/conftest2.$ac_objext"
13866 # Insert the option either (1) after the last *FLAGS variable, or
13867 # (2) before a word containing "conftest.", or (3) at the end.
13868 # Note that $ac_compile itself does not contain backslashes and begins
13869 # with a dollar sign (not a hyphen), so the echo should work correctly.
13870 lt_compile=`echo "$ac_compile" | $SED \
13871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13873 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013875 (eval "$lt_compile" 2>out/conftest.err)
13876 ac_status=$?
13877 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013879 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13880 then
13881 # The compiler can only warn and ignore the option if not recognized
13882 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013884 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13885 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13886 lt_cv_prog_compiler_c_o=yes
13887 fi
13888 fi
13889 chmod u+w . 2>&5
13890 $RM conftest*
13891 # SGI C++ compiler will create directory out/ii_files/ for
13892 # template instantiation
13893 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13894 $RM out/* && rmdir out
13895 cd ..
13896 $RM -r conftest
13897 $RM conftest*
13898
13899fi
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13901$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13902
13903
13904
13905
13906hard_links="nottested"
13907if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13908 # do not overwrite the value of need_locks provided by the user
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13910$as_echo_n "checking if we can lock with hard links... " >&6; }
13911 hard_links=yes
13912 $RM conftest*
13913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13914 touch conftest.a
13915 ln conftest.a conftest.b 2>&5 || hard_links=no
13916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13918$as_echo "$hard_links" >&6; }
13919 if test "$hard_links" = no; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13921$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13922 need_locks=warn
13923 fi
13924else
13925 need_locks=no
13926fi
13927
13928
13929
13930
13931
13932
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13934$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13935
13936 runpath_var=
13937 allow_undefined_flag=
13938 always_export_symbols=no
13939 archive_cmds=
13940 archive_expsym_cmds=
13941 compiler_needs_object=no
13942 enable_shared_with_static_runtimes=no
13943 export_dynamic_flag_spec=
13944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13945 hardcode_automatic=no
13946 hardcode_direct=no
13947 hardcode_direct_absolute=no
13948 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000013949 hardcode_libdir_separator=
13950 hardcode_minus_L=no
13951 hardcode_shlibpath_var=unsupported
13952 inherit_rpath=no
13953 link_all_deplibs=unknown
13954 module_cmds=
13955 module_expsym_cmds=
13956 old_archive_from_new_cmds=
13957 old_archive_from_expsyms_cmds=
13958 thread_safe_flag_spec=
13959 whole_archive_flag_spec=
13960 # include_expsyms should be a list of space-separated symbols to be *always*
13961 # included in the symbol list
13962 include_expsyms=
13963 # exclude_expsyms can be an extended regexp of symbols to exclude
13964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13966 # as well as any symbol that contains `d'.
13967 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13969 # platforms (ab)use it in PIC code, but their linkers get confused if
13970 # the symbol is explicitly referenced. Since portable code cannot
13971 # rely on this symbol name, it's probably fine to never include it in
13972 # preloaded symbol tables.
13973 # Exclude shared library initialization/finalization symbols.
13974 extract_expsyms_cmds=
13975
13976 case $host_os in
13977 cygwin* | mingw* | pw32* | cegcc*)
13978 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13979 # When not using gcc, we currently assume that we are using
13980 # Microsoft Visual C++.
13981 if test "$GCC" != yes; then
13982 with_gnu_ld=no
13983 fi
13984 ;;
13985 interix*)
13986 # we just hope/assume this is gcc and not c89 (= MSVC++)
13987 with_gnu_ld=yes
13988 ;;
13989 openbsd*)
13990 with_gnu_ld=no
13991 ;;
13992 esac
13993
13994 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013995
13996 # On some targets, GNU ld is compatible enough with the native linker
13997 # that we're better off using the native interface for both.
13998 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013999 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014000 case $host_os in
14001 aix*)
14002 # The AIX port of GNU ld has always aspired to compatibility
14003 # with the native linker. However, as the warning in the GNU ld
14004 # block says, versions before 2.19.5* couldn't really create working
14005 # shared libraries, regardless of the interface used.
14006 case `$LD -v 2>&1` in
14007 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14008 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14009 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14010 *)
14011 lt_use_gnu_ld_interface=yes
14012 ;;
14013 esac
14014 ;;
14015 *)
14016 lt_use_gnu_ld_interface=yes
14017 ;;
14018 esac
14019 fi
14020
14021 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014022 # If archive_cmds runs LD, not CC, wlarc should be empty
14023 wlarc='${wl}'
14024
14025 # Set some defaults for GNU ld with shared library support. These
14026 # are reset later if shared libraries are not supported. Putting them
14027 # here allows them to be overridden if necessary.
14028 runpath_var=LD_RUN_PATH
14029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14030 export_dynamic_flag_spec='${wl}--export-dynamic'
14031 # ancient GNU ld didn't support --whole-archive et. al.
14032 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14033 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14034 else
14035 whole_archive_flag_spec=
14036 fi
14037 supports_anon_versioning=no
14038 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014039 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014040 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14041 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14042 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14043 *\ 2.11.*) ;; # other 2.11 versions
14044 *) supports_anon_versioning=yes ;;
14045 esac
14046
14047 # See if GNU ld supports shared libraries.
14048 case $host_os in
14049 aix[3-9]*)
14050 # On AIX/PPC, the GNU linker is very broken
14051 if test "$host_cpu" != ia64; then
14052 ld_shlibs=no
14053 cat <<_LT_EOF 1>&2
14054
cristy0c60a692010-11-04 01:09:47 +000014055*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014056*** to be unable to reliably create shared libraries on AIX.
14057*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014058*** really care for shared libraries, you may want to install binutils
14059*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14060*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014061
14062_LT_EOF
14063 fi
14064 ;;
14065
14066 amigaos*)
14067 case $host_cpu in
14068 powerpc)
14069 # see comment about AmigaOS4 .so support
14070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14071 archive_expsym_cmds=''
14072 ;;
14073 m68k)
14074 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)'
14075 hardcode_libdir_flag_spec='-L$libdir'
14076 hardcode_minus_L=yes
14077 ;;
14078 esac
14079 ;;
14080
14081 beos*)
14082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14083 allow_undefined_flag=unsupported
14084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14085 # support --undefined. This deserves some investigation. FIXME
14086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087 else
14088 ld_shlibs=no
14089 fi
14090 ;;
14091
14092 cygwin* | mingw* | pw32* | cegcc*)
14093 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14094 # as there is no search path for DLLs.
14095 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014096 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014097 allow_undefined_flag=unsupported
14098 always_export_symbols=no
14099 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014100 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'
14101 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 +000014102
14103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14105 # If the export-symbols file already is a .def file (1st line
14106 # is EXPORTS), use it as is; otherwise, prepend...
14107 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14108 cp $export_symbols $output_objdir/$soname.def;
14109 else
14110 echo EXPORTS > $output_objdir/$soname.def;
14111 cat $export_symbols >> $output_objdir/$soname.def;
14112 fi~
14113 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14114 else
14115 ld_shlibs=no
14116 fi
14117 ;;
14118
cristy0c60a692010-11-04 01:09:47 +000014119 haiku*)
14120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14121 link_all_deplibs=yes
14122 ;;
14123
cristy73bd4a52010-10-05 11:24:23 +000014124 interix[3-9]*)
14125 hardcode_direct=no
14126 hardcode_shlibpath_var=no
14127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14128 export_dynamic_flag_spec='${wl}-E'
14129 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14130 # Instead, shared libraries are loaded at an image base (0x10000000 by
14131 # default) and relocated if they conflict, which is a slow very memory
14132 # consuming and fragmenting process. To avoid this, we pick a random,
14133 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14134 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14136 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'
14137 ;;
14138
cristy0c60a692010-11-04 01:09:47 +000014139 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014140 tmp_diet=no
14141 if test "$host_os" = linux-dietlibc; then
14142 case $cc_basename in
14143 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14144 esac
14145 fi
14146 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14147 && test "$tmp_diet" = no
14148 then
cristyda16f162011-02-19 23:52:17 +000014149 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014150 tmp_sharedflag='-shared'
14151 case $cc_basename,$host_cpu in
14152 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014153 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 +000014154 tmp_addflag=' $pic_flag'
14155 ;;
cristy0c60a692010-11-04 01:09:47 +000014156 pgf77* | pgf90* | pgf95* | pgfortran*)
14157 # Portland Group f77 and f90 compilers
14158 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 +000014159 tmp_addflag=' $pic_flag -Mnomain' ;;
14160 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14161 tmp_addflag=' -i_dynamic' ;;
14162 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14163 tmp_addflag=' -i_dynamic -nofor_main' ;;
14164 ifc* | ifort*) # Intel Fortran compiler
14165 tmp_addflag=' -nofor_main' ;;
14166 lf95*) # Lahey Fortran 8.1
14167 whole_archive_flag_spec=
14168 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014169 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014170 tmp_sharedflag='-qmkshrobj'
14171 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014172 nvcc*) # Cuda Compiler Driver 2.2
14173 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'
14174 compiler_needs_object=yes
14175 ;;
cristy73bd4a52010-10-05 11:24:23 +000014176 esac
14177 case `$CC -V 2>&1 | sed 5q` in
14178 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014179 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 +000014180 compiler_needs_object=yes
14181 tmp_sharedflag='-G' ;;
14182 *Sun\ F*) # Sun Fortran 8.3
14183 tmp_sharedflag='-G' ;;
14184 esac
14185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14186
14187 if test "x$supports_anon_versioning" = xyes; then
14188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14190 echo "local: *; };" >> $output_objdir/$libname.ver~
14191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14192 fi
14193
14194 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014195 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014196 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14197 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014199 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014200 if test "x$supports_anon_versioning" = xyes; then
14201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14203 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014204 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014205 fi
14206 ;;
14207 esac
14208 else
14209 ld_shlibs=no
14210 fi
14211 ;;
14212
14213 netbsd*)
14214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14215 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14216 wlarc=
14217 else
cristyda16f162011-02-19 23:52:17 +000014218 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219 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 +000014220 fi
14221 ;;
14222
14223 solaris*)
14224 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14225 ld_shlibs=no
14226 cat <<_LT_EOF 1>&2
14227
14228*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14229*** create shared libraries on Solaris systems. Therefore, libtool
14230*** is disabling shared libraries support. We urge you to upgrade GNU
14231*** binutils to release 2.9.1 or newer. Another option is to modify
14232*** your PATH or compiler configuration so that the native linker is
14233*** used, and then restart.
14234
14235_LT_EOF
14236 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238 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 +000014239 else
14240 ld_shlibs=no
14241 fi
14242 ;;
14243
14244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14245 case `$LD -v 2>&1` in
14246 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14247 ld_shlibs=no
14248 cat <<_LT_EOF 1>&2
14249
14250*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14251*** reliably create shared libraries on SCO systems. Therefore, libtool
14252*** is disabling shared libraries support. We urge you to upgrade GNU
14253*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14254*** your PATH or compiler configuration so that the native linker is
14255*** used, and then restart.
14256
14257_LT_EOF
14258 ;;
14259 *)
14260 # For security reasons, it is highly recommended that you always
14261 # use absolute paths for naming shared libraries, and exclude the
14262 # DT_RUNPATH tag from executables and libraries. But doing so
14263 # requires that you compile everything twice, which is a pain.
14264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14268 else
14269 ld_shlibs=no
14270 fi
14271 ;;
14272 esac
14273 ;;
14274
14275 sunos4*)
14276 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14277 wlarc=
14278 hardcode_direct=yes
14279 hardcode_shlibpath_var=no
14280 ;;
14281
14282 *)
14283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14285 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 +000014286 else
14287 ld_shlibs=no
14288 fi
14289 ;;
14290 esac
14291
14292 if test "$ld_shlibs" = no; then
14293 runpath_var=
14294 hardcode_libdir_flag_spec=
14295 export_dynamic_flag_spec=
14296 whole_archive_flag_spec=
14297 fi
14298 else
14299 # PORTME fill in a description of your system's linker (not GNU ld)
14300 case $host_os in
14301 aix3*)
14302 allow_undefined_flag=unsupported
14303 always_export_symbols=yes
14304 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'
14305 # Note: this linker hardcodes the directories in LIBPATH if there
14306 # are no directories specified by -L.
14307 hardcode_minus_L=yes
14308 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14309 # Neither direct hardcoding nor static linking is supported with a
14310 # broken collect2.
14311 hardcode_direct=unsupported
14312 fi
14313 ;;
14314
14315 aix[4-9]*)
14316 if test "$host_cpu" = ia64; then
14317 # On IA64, the linker does run time linking by default, so we don't
14318 # have to do anything special.
14319 aix_use_runtimelinking=no
14320 exp_sym_flag='-Bexport'
14321 no_entry_flag=""
14322 else
14323 # If we're using GNU nm, then we don't want the "-C" option.
14324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014325 # Also, AIX nm treats weak defined symbols like other global
14326 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014327 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014328 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 +000014329 else
14330 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'
14331 fi
14332 aix_use_runtimelinking=no
14333
14334 # Test if we are trying to use run time linking or normal
14335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14336 # need to do runtime linking.
14337 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14338 for ld_flag in $LDFLAGS; do
14339 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14340 aix_use_runtimelinking=yes
14341 break
14342 fi
14343 done
14344 ;;
14345 esac
14346
14347 exp_sym_flag='-bexport'
14348 no_entry_flag='-bnoentry'
14349 fi
14350
14351 # When large executables or shared objects are built, AIX ld can
14352 # have problems creating the table of contents. If linking a library
14353 # or program results in "error TOC overflow" add -mminimal-toc to
14354 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14355 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14356
14357 archive_cmds=''
14358 hardcode_direct=yes
14359 hardcode_direct_absolute=yes
14360 hardcode_libdir_separator=':'
14361 link_all_deplibs=yes
14362 file_list_spec='${wl}-f,'
14363
14364 if test "$GCC" = yes; then
14365 case $host_os in aix4.[012]|aix4.[012].*)
14366 # We only want to do this on AIX 4.2 and lower, the check
14367 # below for broken collect2 doesn't work under 4.3+
14368 collect2name=`${CC} -print-prog-name=collect2`
14369 if test -f "$collect2name" &&
14370 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14371 then
14372 # We have reworked collect2
14373 :
14374 else
14375 # We have old collect2
14376 hardcode_direct=unsupported
14377 # It fails to find uninstalled libraries when the uninstalled
14378 # path is not listed in the libpath. Setting hardcode_minus_L
14379 # to unsupported forces relinking
14380 hardcode_minus_L=yes
14381 hardcode_libdir_flag_spec='-L$libdir'
14382 hardcode_libdir_separator=
14383 fi
14384 ;;
14385 esac
14386 shared_flag='-shared'
14387 if test "$aix_use_runtimelinking" = yes; then
14388 shared_flag="$shared_flag "'${wl}-G'
14389 fi
14390 else
14391 # not using gcc
14392 if test "$host_cpu" = ia64; then
14393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14394 # chokes on -Wl,-G. The following line is correct:
14395 shared_flag='-G'
14396 else
14397 if test "$aix_use_runtimelinking" = yes; then
14398 shared_flag='${wl}-G'
14399 else
14400 shared_flag='${wl}-bM:SRE'
14401 fi
14402 fi
14403 fi
14404
14405 export_dynamic_flag_spec='${wl}-bexpall'
14406 # It seems that -bexpall does not export symbols beginning with
14407 # underscore (_), so it is better to generate a list of symbols to export.
14408 always_export_symbols=yes
14409 if test "$aix_use_runtimelinking" = yes; then
14410 # Warning - without using the other runtime loading flags (-brtl),
14411 # -berok will link without error, but may produce a broken library.
14412 allow_undefined_flag='-berok'
14413 # Determine the default libpath from the value encoded in an
14414 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014415 if test "${lt_cv_aix_libpath+set}" = set; then
14416 aix_libpath=$lt_cv_aix_libpath
14417else
14418 if ${lt_cv_aix_libpath_+:} false; then :
14419 $as_echo_n "(cached) " >&6
14420else
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014422/* end confdefs.h. */
14423
14424int
14425main ()
14426{
14427
14428 ;
14429 return 0;
14430}
14431_ACEOF
14432if ac_fn_c_try_link "$LINENO"; then :
14433
cristyda16f162011-02-19 23:52:17 +000014434 lt_aix_libpath_sed='
14435 /Import File Strings/,/^$/ {
14436 /^0/ {
14437 s/^0 *\([^ ]*\) *$/\1/
14438 p
14439 }
14440 }'
14441 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14442 # Check for a 64-bit object if we didn't find anything.
14443 if test -z "$lt_cv_aix_libpath_"; then
14444 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14445 fi
cristy73bd4a52010-10-05 11:24:23 +000014446fi
14447rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014449 if test -z "$lt_cv_aix_libpath_"; then
14450 lt_cv_aix_libpath_="/usr/lib:/lib"
14451 fi
14452
14453fi
14454
14455 aix_libpath=$lt_cv_aix_libpath_
14456fi
cristy73bd4a52010-10-05 11:24:23 +000014457
14458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014459 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 +000014460 else
14461 if test "$host_cpu" = ia64; then
14462 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14463 allow_undefined_flag="-z nodefs"
14464 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"
14465 else
14466 # Determine the default libpath from the value encoded in an
14467 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014468 if test "${lt_cv_aix_libpath+set}" = set; then
14469 aix_libpath=$lt_cv_aix_libpath
14470else
14471 if ${lt_cv_aix_libpath_+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473else
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014475/* end confdefs.h. */
14476
14477int
14478main ()
14479{
14480
14481 ;
14482 return 0;
14483}
14484_ACEOF
14485if ac_fn_c_try_link "$LINENO"; then :
14486
cristyda16f162011-02-19 23:52:17 +000014487 lt_aix_libpath_sed='
14488 /Import File Strings/,/^$/ {
14489 /^0/ {
14490 s/^0 *\([^ ]*\) *$/\1/
14491 p
14492 }
14493 }'
14494 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14495 # Check for a 64-bit object if we didn't find anything.
14496 if test -z "$lt_cv_aix_libpath_"; then
14497 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14498 fi
cristy73bd4a52010-10-05 11:24:23 +000014499fi
14500rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014502 if test -z "$lt_cv_aix_libpath_"; then
14503 lt_cv_aix_libpath_="/usr/lib:/lib"
14504 fi
14505
14506fi
14507
14508 aix_libpath=$lt_cv_aix_libpath_
14509fi
cristy73bd4a52010-10-05 11:24:23 +000014510
14511 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14512 # Warning - without using the other run time loading flags,
14513 # -berok will link without error, but may produce a broken library.
14514 no_undefined_flag=' ${wl}-bernotok'
14515 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014516 if test "$with_gnu_ld" = yes; then
14517 # We only use this code for GNU lds that support --whole-archive.
14518 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14519 else
14520 # Exported symbols can be pulled into shared objects from archives
14521 whole_archive_flag_spec='$convenience'
14522 fi
cristy73bd4a52010-10-05 11:24:23 +000014523 archive_cmds_need_lc=yes
14524 # This is similar to how AIX traditionally builds its shared libraries.
14525 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'
14526 fi
14527 fi
14528 ;;
14529
14530 amigaos*)
14531 case $host_cpu in
14532 powerpc)
14533 # see comment about AmigaOS4 .so support
14534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535 archive_expsym_cmds=''
14536 ;;
14537 m68k)
14538 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)'
14539 hardcode_libdir_flag_spec='-L$libdir'
14540 hardcode_minus_L=yes
14541 ;;
14542 esac
14543 ;;
14544
14545 bsdi[45]*)
14546 export_dynamic_flag_spec=-rdynamic
14547 ;;
14548
14549 cygwin* | mingw* | pw32* | cegcc*)
14550 # When not using gcc, we currently assume that we are using
14551 # Microsoft Visual C++.
14552 # hardcode_libdir_flag_spec is actually meaningless, as there is
14553 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014554 case $cc_basename in
14555 cl*)
14556 # Native MSVC
14557 hardcode_libdir_flag_spec=' '
14558 allow_undefined_flag=unsupported
14559 always_export_symbols=yes
14560 file_list_spec='@'
14561 # Tell ltmain to make .lib files, not .a files.
14562 libext=lib
14563 # Tell ltmain to make .dll files, not .so files.
14564 shrext_cmds=".dll"
14565 # FIXME: Setting linknames here is a bad hack.
14566 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14567 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14568 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14569 else
14570 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14571 fi~
14572 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14573 linknames='
14574 # The linker will not automatically build a static lib if we build a DLL.
14575 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14576 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000014577 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000014578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14579 # Don't use ranlib
14580 old_postinstall_cmds='chmod 644 $oldlib'
14581 postlink_cmds='lt_outputfile="@OUTPUT@"~
14582 lt_tool_outputfile="@TOOL_OUTPUT@"~
14583 case $lt_outputfile in
14584 *.exe|*.EXE) ;;
14585 *)
14586 lt_outputfile="$lt_outputfile.exe"
14587 lt_tool_outputfile="$lt_tool_outputfile.exe"
14588 ;;
14589 esac~
14590 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14591 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14592 $RM "$lt_outputfile.manifest";
14593 fi'
14594 ;;
14595 *)
14596 # Assume MSVC wrapper
14597 hardcode_libdir_flag_spec=' '
14598 allow_undefined_flag=unsupported
14599 # Tell ltmain to make .lib files, not .a files.
14600 libext=lib
14601 # Tell ltmain to make .dll files, not .so files.
14602 shrext_cmds=".dll"
14603 # FIXME: Setting linknames here is a bad hack.
14604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14605 # The linker will automatically build a .lib file if we build a DLL.
14606 old_archive_from_new_cmds='true'
14607 # FIXME: Should let the user specify the lib program.
14608 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14609 enable_shared_with_static_runtimes=yes
14610 ;;
14611 esac
cristy73bd4a52010-10-05 11:24:23 +000014612 ;;
14613
14614 darwin* | rhapsody*)
14615
14616
14617 archive_cmds_need_lc=no
14618 hardcode_direct=no
14619 hardcode_automatic=yes
14620 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014621 if test "$lt_cv_ld_force_load" = "yes"; then
14622 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\"`'
cristy99bd5232011-12-07 14:38:20 +000014623
cristy0c60a692010-11-04 01:09:47 +000014624 else
14625 whole_archive_flag_spec=''
14626 fi
cristy73bd4a52010-10-05 11:24:23 +000014627 link_all_deplibs=yes
14628 allow_undefined_flag="$_lt_dar_allow_undefined"
14629 case $cc_basename in
14630 ifort*) _lt_dar_can_shared=yes ;;
14631 *) _lt_dar_can_shared=$GCC ;;
14632 esac
14633 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014634 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014635 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14636 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14637 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}"
14638 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}"
14639
14640 else
14641 ld_shlibs=no
14642 fi
14643
14644 ;;
14645
14646 dgux*)
14647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648 hardcode_libdir_flag_spec='-L$libdir'
14649 hardcode_shlibpath_var=no
14650 ;;
14651
cristy73bd4a52010-10-05 11:24:23 +000014652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14653 # support. Future versions do this automatically, but an explicit c++rt0.o
14654 # does not break anything, and helps significantly (at the cost of a little
14655 # extra space).
14656 freebsd2.2*)
14657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14658 hardcode_libdir_flag_spec='-R$libdir'
14659 hardcode_direct=yes
14660 hardcode_shlibpath_var=no
14661 ;;
14662
14663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000014664 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000014665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_direct=yes
14667 hardcode_minus_L=yes
14668 hardcode_shlibpath_var=no
14669 ;;
14670
14671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14672 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014674 hardcode_libdir_flag_spec='-R$libdir'
14675 hardcode_direct=yes
14676 hardcode_shlibpath_var=no
14677 ;;
14678
14679 hpux9*)
14680 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014681 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 +000014682 else
14683 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'
14684 fi
14685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14686 hardcode_libdir_separator=:
14687 hardcode_direct=yes
14688
14689 # hardcode_minus_L: Not really in the search PATH,
14690 # but as the default location of the library.
14691 hardcode_minus_L=yes
14692 export_dynamic_flag_spec='${wl}-E'
14693 ;;
14694
14695 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014696 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014697 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 +000014698 else
14699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14700 fi
14701 if test "$with_gnu_ld" = no; then
14702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000014703 hardcode_libdir_separator=:
14704 hardcode_direct=yes
14705 hardcode_direct_absolute=yes
14706 export_dynamic_flag_spec='${wl}-E'
14707 # hardcode_minus_L: Not really in the search PATH,
14708 # but as the default location of the library.
14709 hardcode_minus_L=yes
14710 fi
14711 ;;
14712
14713 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014714 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014715 case $host_cpu in
14716 hppa*64*)
14717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14718 ;;
14719 ia64*)
cristyda16f162011-02-19 23:52:17 +000014720 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014721 ;;
14722 *)
cristyda16f162011-02-19 23:52:17 +000014723 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 +000014724 ;;
14725 esac
14726 else
14727 case $host_cpu in
14728 hppa*64*)
14729 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14730 ;;
14731 ia64*)
14732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14733 ;;
14734 *)
cristy0c60a692010-11-04 01:09:47 +000014735
14736 # Older versions of the 11.00 compiler do not understand -b yet
14737 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14739$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014740if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014741 $as_echo_n "(cached) " >&6
14742else
14743 lt_cv_prog_compiler__b=no
14744 save_LDFLAGS="$LDFLAGS"
14745 LDFLAGS="$LDFLAGS -b"
14746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14748 # The linker can only warn and ignore the option if not recognized
14749 # So say no if there are warnings
14750 if test -s conftest.err; then
14751 # Append any errors to the config.log.
14752 cat conftest.err 1>&5
14753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14755 if diff conftest.exp conftest.er2 >/dev/null; then
14756 lt_cv_prog_compiler__b=yes
14757 fi
14758 else
14759 lt_cv_prog_compiler__b=yes
14760 fi
14761 fi
14762 $RM -r conftest*
14763 LDFLAGS="$save_LDFLAGS"
14764
14765fi
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14767$as_echo "$lt_cv_prog_compiler__b" >&6; }
14768
14769if test x"$lt_cv_prog_compiler__b" = xyes; then
14770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14771else
14772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14773fi
14774
cristy73bd4a52010-10-05 11:24:23 +000014775 ;;
14776 esac
14777 fi
14778 if test "$with_gnu_ld" = no; then
14779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14780 hardcode_libdir_separator=:
14781
14782 case $host_cpu in
14783 hppa*64*|ia64*)
14784 hardcode_direct=no
14785 hardcode_shlibpath_var=no
14786 ;;
14787 *)
14788 hardcode_direct=yes
14789 hardcode_direct_absolute=yes
14790 export_dynamic_flag_spec='${wl}-E'
14791
14792 # hardcode_minus_L: Not really in the search PATH,
14793 # but as the default location of the library.
14794 hardcode_minus_L=yes
14795 ;;
14796 esac
14797 fi
14798 ;;
14799
14800 irix5* | irix6* | nonstopux*)
14801 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014802 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 +000014803 # Try to use the -exported_symbol ld option, if it does not
14804 # work, assume that -exports_file does not work either and
14805 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014806 # This should be the same for all languages, so no per-tag cache variable.
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14808$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14809if ${lt_cv_irix_exported_symbol+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811else
14812 save_LDFLAGS="$LDFLAGS"
14813 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014815/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014816int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014817_ACEOF
14818if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014819 lt_cv_irix_exported_symbol=yes
14820else
14821 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014822fi
14823rm -f core conftest.err conftest.$ac_objext \
14824 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014825 LDFLAGS="$save_LDFLAGS"
14826fi
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14828$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14829 if test "$lt_cv_irix_exported_symbol" = yes; then
14830 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'
14831 fi
cristy73bd4a52010-10-05 11:24:23 +000014832 else
cristy0c60a692010-11-04 01:09:47 +000014833 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'
14834 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 +000014835 fi
14836 archive_cmds_need_lc='no'
14837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14838 hardcode_libdir_separator=:
14839 inherit_rpath=yes
14840 link_all_deplibs=yes
14841 ;;
14842
14843 netbsd*)
14844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14846 else
14847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14848 fi
14849 hardcode_libdir_flag_spec='-R$libdir'
14850 hardcode_direct=yes
14851 hardcode_shlibpath_var=no
14852 ;;
14853
14854 newsos6)
14855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14856 hardcode_direct=yes
14857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14858 hardcode_libdir_separator=:
14859 hardcode_shlibpath_var=no
14860 ;;
14861
14862 *nto* | *qnx*)
14863 ;;
14864
14865 openbsd*)
14866 if test -f /usr/libexec/ld.so; then
14867 hardcode_direct=yes
14868 hardcode_shlibpath_var=no
14869 hardcode_direct_absolute=yes
14870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14872 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14874 export_dynamic_flag_spec='${wl}-E'
14875 else
14876 case $host_os in
14877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14879 hardcode_libdir_flag_spec='-R$libdir'
14880 ;;
14881 *)
14882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14884 ;;
14885 esac
14886 fi
14887 else
14888 ld_shlibs=no
14889 fi
14890 ;;
14891
14892 os2*)
14893 hardcode_libdir_flag_spec='-L$libdir'
14894 hardcode_minus_L=yes
14895 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014896 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 +000014897 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14898 ;;
14899
14900 osf3*)
14901 if test "$GCC" = yes; then
14902 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014903 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 +000014904 else
14905 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014906 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 +000014907 fi
14908 archive_cmds_need_lc='no'
14909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14910 hardcode_libdir_separator=:
14911 ;;
14912
14913 osf4* | osf5*) # as osf3* with the addition of -msym flag
14914 if test "$GCC" = yes; then
14915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014916 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 +000014917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14918 else
14919 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014920 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 +000014921 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 +000014922 $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 +000014923
14924 # Both c and cxx compiler support -rpath directly
14925 hardcode_libdir_flag_spec='-rpath $libdir'
14926 fi
14927 archive_cmds_need_lc='no'
14928 hardcode_libdir_separator=:
14929 ;;
14930
14931 solaris*)
14932 no_undefined_flag=' -z defs'
14933 if test "$GCC" = yes; then
14934 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014935 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 +000014936 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 +000014937 $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 +000014938 else
14939 case `$CC -V 2>&1` in
14940 *"Compilers 5.0"*)
14941 wlarc=''
14942 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14943 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14944 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14945 ;;
14946 *)
14947 wlarc='${wl}'
14948 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14950 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14951 ;;
14952 esac
14953 fi
14954 hardcode_libdir_flag_spec='-R$libdir'
14955 hardcode_shlibpath_var=no
14956 case $host_os in
14957 solaris2.[0-5] | solaris2.[0-5].*) ;;
14958 *)
14959 # The compiler driver will combine and reorder linker options,
14960 # but understands `-z linker_flag'. GCC discards it without `$wl',
14961 # but is careful enough not to reorder.
14962 # Supported since Solaris 2.6 (maybe 2.5.1?)
14963 if test "$GCC" = yes; then
14964 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14965 else
14966 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14967 fi
14968 ;;
14969 esac
14970 link_all_deplibs=yes
14971 ;;
14972
14973 sunos4*)
14974 if test "x$host_vendor" = xsequent; then
14975 # Use $CC to link under sequent, because it throws in some extra .o
14976 # files that make .init and .fini sections work.
14977 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14978 else
14979 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14980 fi
14981 hardcode_libdir_flag_spec='-L$libdir'
14982 hardcode_direct=yes
14983 hardcode_minus_L=yes
14984 hardcode_shlibpath_var=no
14985 ;;
14986
14987 sysv4)
14988 case $host_vendor in
14989 sni)
14990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_direct=yes # is this really true???
14992 ;;
14993 siemens)
14994 ## LD is ld it makes a PLAMLIB
14995 ## CC just makes a GrossModule.
14996 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14997 reload_cmds='$CC -r -o $output$reload_objs'
14998 hardcode_direct=no
14999 ;;
15000 motorola)
15001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15003 ;;
15004 esac
15005 runpath_var='LD_RUN_PATH'
15006 hardcode_shlibpath_var=no
15007 ;;
15008
15009 sysv4.3*)
15010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011 hardcode_shlibpath_var=no
15012 export_dynamic_flag_spec='-Bexport'
15013 ;;
15014
15015 sysv4*MP*)
15016 if test -d /usr/nec; then
15017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15018 hardcode_shlibpath_var=no
15019 runpath_var=LD_RUN_PATH
15020 hardcode_runpath_var=yes
15021 ld_shlibs=yes
15022 fi
15023 ;;
15024
15025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15026 no_undefined_flag='${wl}-z,text'
15027 archive_cmds_need_lc=no
15028 hardcode_shlibpath_var=no
15029 runpath_var='LD_RUN_PATH'
15030
15031 if test "$GCC" = yes; then
15032 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15034 else
15035 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 fi
15038 ;;
15039
15040 sysv5* | sco3.2v5* | sco5v6*)
15041 # Note: We can NOT use -z defs as we might desire, because we do not
15042 # link with -lc, and that would cause any symbols used from libc to
15043 # always be unresolved, which means just about no library would
15044 # ever link correctly. If we're not using GNU ld we use -z text
15045 # though, which does catch some bad symbols but isn't as heavy-handed
15046 # as -z defs.
15047 no_undefined_flag='${wl}-z,text'
15048 allow_undefined_flag='${wl}-z,nodefs'
15049 archive_cmds_need_lc=no
15050 hardcode_shlibpath_var=no
15051 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15052 hardcode_libdir_separator=':'
15053 link_all_deplibs=yes
15054 export_dynamic_flag_spec='${wl}-Bexport'
15055 runpath_var='LD_RUN_PATH'
15056
15057 if test "$GCC" = yes; then
15058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15060 else
15061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 fi
15064 ;;
15065
15066 uts4*)
15067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_libdir_flag_spec='-L$libdir'
15069 hardcode_shlibpath_var=no
15070 ;;
15071
15072 *)
15073 ld_shlibs=no
15074 ;;
15075 esac
15076
15077 if test x$host_vendor = xsni; then
15078 case $host in
15079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15080 export_dynamic_flag_spec='${wl}-Blargedynsym'
15081 ;;
15082 esac
15083 fi
15084 fi
15085
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15087$as_echo "$ld_shlibs" >&6; }
15088test "$ld_shlibs" = no && can_build_shared=no
15089
15090with_gnu_ld=$with_gnu_ld
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106#
15107# Do we need to explicitly link libc?
15108#
15109case "x$archive_cmds_need_lc" in
15110x|xyes)
15111 # Assume -lc should be added
15112 archive_cmds_need_lc=yes
15113
15114 if test "$enable_shared" = yes && test "$GCC" = yes; then
15115 case $archive_cmds in
15116 *'~'*)
15117 # FIXME: we may have to deal with multi-command sequences.
15118 ;;
15119 '$CC '*)
15120 # Test whether the compiler implicitly links with -lc since on some
15121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15122 # to ld, don't add -lc before -lgcc.
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15124$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015125if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015126 $as_echo_n "(cached) " >&6
15127else
15128 $RM conftest*
15129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015130
cristy0c60a692010-11-04 01:09:47 +000015131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015132 (eval $ac_compile) 2>&5
15133 ac_status=$?
15134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15135 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015136 soname=conftest
15137 lib=conftest
15138 libobjs=conftest.$ac_objext
15139 deplibs=
15140 wl=$lt_prog_compiler_wl
15141 pic_flag=$lt_prog_compiler_pic
15142 compiler_flags=-v
15143 linker_flags=-v
15144 verstring=
15145 output_objdir=.
15146 libname=conftest
15147 lt_save_allow_undefined_flag=$allow_undefined_flag
15148 allow_undefined_flag=
15149 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 +000015150 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15151 ac_status=$?
15152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15153 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015154 then
15155 lt_cv_archive_cmds_need_lc=no
15156 else
15157 lt_cv_archive_cmds_need_lc=yes
15158 fi
15159 allow_undefined_flag=$lt_save_allow_undefined_flag
15160 else
15161 cat conftest.err 1>&5
15162 fi
15163 $RM conftest*
15164
15165fi
15166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15167$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15168 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015169 ;;
15170 esac
15171 fi
15172 ;;
15173esac
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
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
cristy73bd4a52010-10-05 11:24:23 +000015326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15327$as_echo_n "checking dynamic linker characteristics... " >&6; }
15328
15329if test "$GCC" = yes; then
15330 case $host_os in
15331 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15332 *) lt_awk_arg="/^libraries:/" ;;
15333 esac
cristy0c60a692010-11-04 01:09:47 +000015334 case $host_os in
15335 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15336 *) lt_sed_strip_eq="s,=/,/,g" ;;
15337 esac
15338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15339 case $lt_search_path_spec in
15340 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015341 # if the path contains ";" then we assume it to be the separator
15342 # otherwise default to the standard path separator (i.e. ":") - it is
15343 # assumed that no part of a normal pathname contains ";" but that should
15344 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15346 ;;
15347 *)
15348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15349 ;;
15350 esac
cristy73bd4a52010-10-05 11:24:23 +000015351 # Ok, now we have the path, separated by spaces, we can step through it
15352 # and add multilib dir if necessary.
15353 lt_tmp_lt_search_path_spec=
15354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15355 for lt_sys_path in $lt_search_path_spec; do
15356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15358 else
15359 test -d "$lt_sys_path" && \
15360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15361 fi
15362 done
cristy0c60a692010-11-04 01:09:47 +000015363 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015364BEGIN {RS=" "; FS="/|\n";} {
15365 lt_foo="";
15366 lt_count=0;
15367 for (lt_i = NF; lt_i > 0; lt_i--) {
15368 if ($lt_i != "" && $lt_i != ".") {
15369 if ($lt_i == "..") {
15370 lt_count++;
15371 } else {
15372 if (lt_count == 0) {
15373 lt_foo="/" $lt_i lt_foo;
15374 } else {
15375 lt_count--;
15376 }
15377 }
15378 }
15379 }
15380 if (lt_foo != "") { lt_freq[lt_foo]++; }
15381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15382}'`
cristy0c60a692010-11-04 01:09:47 +000015383 # AWK program above erroneously prepends '/' to C:/dos/paths
15384 # for these hosts.
15385 case $host_os in
15386 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15387 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15388 esac
15389 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015390else
15391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15392fi
15393library_names_spec=
15394libname_spec='lib$name'
15395soname_spec=
15396shrext_cmds=".so"
15397postinstall_cmds=
15398postuninstall_cmds=
15399finish_cmds=
15400finish_eval=
15401shlibpath_var=
15402shlibpath_overrides_runpath=unknown
15403version_type=none
15404dynamic_linker="$host_os ld.so"
15405sys_lib_dlsearch_path_spec="/lib /usr/lib"
15406need_lib_prefix=unknown
15407hardcode_into_libs=no
15408
15409# when you set need_version to no, make sure it does not cause -set_version
15410# flags to be left without arguments
15411need_version=unknown
15412
15413case $host_os in
15414aix3*)
cristy99bd5232011-12-07 14:38:20 +000015415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15417 shlibpath_var=LIBPATH
15418
15419 # AIX 3 has no versioning support, so we append a major version to the name.
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 ;;
15422
15423aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015424 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015425 need_lib_prefix=no
15426 need_version=no
15427 hardcode_into_libs=yes
15428 if test "$host_cpu" = ia64; then
15429 # AIX 5 supports IA64
15430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 else
15433 # With GCC up to 2.95.x, collect2 would create an import file
15434 # for dependence libraries. The import file would start with
15435 # the line `#! .'. This would cause the generated library to
15436 # depend on `.', always an invalid library. This was fixed in
15437 # development snapshots of GCC prior to 3.0.
15438 case $host_os in
15439 aix4 | aix4.[01] | aix4.[01].*)
15440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15441 echo ' yes '
15442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15443 :
15444 else
15445 can_build_shared=no
15446 fi
15447 ;;
15448 esac
15449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15450 # soname into executable. Probably we can add versioning support to
15451 # collect2, so additional links can be useful in future.
15452 if test "$aix_use_runtimelinking" = yes; then
15453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15454 # instead of lib<name>.a to let people know that these are not
15455 # typical AIX shared libraries.
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 else
15458 # We preserve .a as extension for shared libraries through AIX4.2
15459 # and later when we are not doing run time linking.
15460 library_names_spec='${libname}${release}.a $libname.a'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 fi
15463 shlibpath_var=LIBPATH
15464 fi
15465 ;;
15466
15467amigaos*)
15468 case $host_cpu in
15469 powerpc)
15470 # Since July 2007 AmigaOS4 officially supports .so libraries.
15471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 ;;
15474 m68k)
15475 library_names_spec='$libname.ixlibrary $libname.a'
15476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015477 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 +000015478 ;;
15479 esac
15480 ;;
15481
15482beos*)
15483 library_names_spec='${libname}${shared_ext}'
15484 dynamic_linker="$host_os ld.so"
15485 shlibpath_var=LIBRARY_PATH
15486 ;;
15487
15488bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015489 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015490 need_version=no
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15497 # the default ld.so.conf also contains /usr/contrib/lib and
15498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15499 # libtool to hard-code these into programs
15500 ;;
15501
15502cygwin* | mingw* | pw32* | cegcc*)
15503 version_type=windows
15504 shrext_cmds=".dll"
15505 need_version=no
15506 need_lib_prefix=no
15507
cristyda16f162011-02-19 23:52:17 +000015508 case $GCC,$cc_basename in
15509 yes,*)
15510 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015511 library_names_spec='$libname.dll.a'
15512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15513 postinstall_cmds='base_file=`basename \${file}`~
15514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15515 dldir=$destdir/`dirname \$dlpath`~
15516 test -d \$dldir || mkdir -p \$dldir~
15517 $install_prog $dir/$dlname \$dldir/$dlname~
15518 chmod a+x \$dldir/$dlname~
15519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15521 fi'
15522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15523 dlpath=$dir/\$dldll~
15524 $RM \$dlpath'
15525 shlibpath_overrides_runpath=yes
15526
15527 case $host_os in
15528 cygwin*)
15529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015531
15532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015533 ;;
15534 mingw* | cegcc*)
15535 # MinGW DLLs use traditional 'lib' prefix
15536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015537 ;;
15538 pw32*)
15539 # pw32 DLLs use 'pw' prefix rather than 'lib'
15540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15541 ;;
15542 esac
cristyda16f162011-02-19 23:52:17 +000015543 dynamic_linker='Win32 ld.exe'
15544 ;;
15545
15546 *,cl*)
15547 # Native MSVC
15548 libname_spec='$name'
15549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15550 library_names_spec='${libname}.dll.lib'
15551
15552 case $build_os in
15553 mingw*)
15554 sys_lib_search_path_spec=
15555 lt_save_ifs=$IFS
15556 IFS=';'
15557 for lt_path in $LIB
15558 do
15559 IFS=$lt_save_ifs
15560 # Let DOS variable expansion print the short 8.3 style file name.
15561 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15562 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15563 done
15564 IFS=$lt_save_ifs
15565 # Convert to MSYS style.
15566 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15567 ;;
15568 cygwin*)
15569 # Convert to unix form, then to dos form, then back to unix form
15570 # but this time dos style (no spaces!) so that the unix form looks
15571 # like /cygdrive/c/PROGRA~1:/cygdr...
15572 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15573 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15574 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15575 ;;
15576 *)
15577 sys_lib_search_path_spec="$LIB"
15578 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15579 # It is most probably a Windows format PATH.
15580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15581 else
15582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15583 fi
15584 # FIXME: find the short name or the path components, as spaces are
15585 # common. (e.g. "Program Files" -> "PROGRA~1")
15586 ;;
15587 esac
15588
15589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15590 postinstall_cmds='base_file=`basename \${file}`~
15591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15592 dldir=$destdir/`dirname \$dlpath`~
15593 test -d \$dldir || mkdir -p \$dldir~
15594 $install_prog $dir/$dlname \$dldir/$dlname'
15595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15596 dlpath=$dir/\$dldll~
15597 $RM \$dlpath'
15598 shlibpath_overrides_runpath=yes
15599 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015600 ;;
15601
15602 *)
cristyda16f162011-02-19 23:52:17 +000015603 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015605 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015606 ;;
15607 esac
cristy73bd4a52010-10-05 11:24:23 +000015608 # FIXME: first we should search . and the directory the executable is in
15609 shlibpath_var=PATH
15610 ;;
15611
15612darwin* | rhapsody*)
15613 dynamic_linker="$host_os dyld"
15614 version_type=darwin
15615 need_lib_prefix=no
15616 need_version=no
15617 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15618 soname_spec='${libname}${release}${major}$shared_ext'
15619 shlibpath_overrides_runpath=yes
15620 shlibpath_var=DYLD_LIBRARY_PATH
15621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15622
15623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15625 ;;
15626
15627dgux*)
cristy99bd5232011-12-07 14:38:20 +000015628 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015629 need_lib_prefix=no
15630 need_version=no
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 ;;
15635
cristy73bd4a52010-10-05 11:24:23 +000015636freebsd* | dragonfly*)
15637 # DragonFly does not have aout. When/if they implement a new
15638 # versioning mechanism, adjust this.
15639 if test -x /usr/bin/objformat; then
15640 objformat=`/usr/bin/objformat`
15641 else
15642 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015643 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000015644 *) objformat=elf ;;
15645 esac
15646 fi
15647 version_type=freebsd-$objformat
15648 case $version_type in
15649 freebsd-elf*)
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15651 need_version=no
15652 need_lib_prefix=no
15653 ;;
15654 freebsd-*)
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15656 need_version=yes
15657 ;;
15658 esac
15659 shlibpath_var=LD_LIBRARY_PATH
15660 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015661 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015662 shlibpath_overrides_runpath=yes
15663 ;;
15664 freebsd3.[01]* | freebsdelf3.[01]*)
15665 shlibpath_overrides_runpath=yes
15666 hardcode_into_libs=yes
15667 ;;
15668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15670 shlibpath_overrides_runpath=no
15671 hardcode_into_libs=yes
15672 ;;
15673 *) # from 4.6 on, and DragonFly
15674 shlibpath_overrides_runpath=yes
15675 hardcode_into_libs=yes
15676 ;;
15677 esac
15678 ;;
15679
15680gnu*)
cristy99bd5232011-12-07 14:38:20 +000015681 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015682 need_lib_prefix=no
15683 need_version=no
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000015687 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000015688 hardcode_into_libs=yes
15689 ;;
15690
cristy0c60a692010-11-04 01:09:47 +000015691haiku*)
cristy99bd5232011-12-07 14:38:20 +000015692 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000015693 need_lib_prefix=no
15694 need_version=no
15695 dynamic_linker="$host_os runtime_loader"
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15701 hardcode_into_libs=yes
15702 ;;
15703
cristy73bd4a52010-10-05 11:24:23 +000015704hpux9* | hpux10* | hpux11*)
15705 # Give a soname corresponding to the major version so that dld.sl refuses to
15706 # link against other versions.
15707 version_type=sunos
15708 need_lib_prefix=no
15709 need_version=no
15710 case $host_cpu in
15711 ia64*)
15712 shrext_cmds='.so'
15713 hardcode_into_libs=yes
15714 dynamic_linker="$host_os dld.so"
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 if test "X$HPUX_IA64_MODE" = X32; then
15720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15721 else
15722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15723 fi
15724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15725 ;;
15726 hppa*64*)
15727 shrext_cmds='.sl'
15728 hardcode_into_libs=yes
15729 dynamic_linker="$host_os dld.sl"
15730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15736 ;;
15737 *)
15738 shrext_cmds='.sl'
15739 dynamic_linker="$host_os dld.sl"
15740 shlibpath_var=SHLIB_PATH
15741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 ;;
15745 esac
cristy0c60a692010-11-04 01:09:47 +000015746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015747 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015748 # or fails outright, so override atomically:
15749 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015750 ;;
15751
15752interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000015753 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=no
15761 hardcode_into_libs=yes
15762 ;;
15763
15764irix5* | irix6* | nonstopux*)
15765 case $host_os in
15766 nonstopux*) version_type=nonstopux ;;
15767 *)
15768 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000015769 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015770 else
15771 version_type=irix
15772 fi ;;
15773 esac
15774 need_lib_prefix=no
15775 need_version=no
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15778 case $host_os in
15779 irix5* | nonstopux*)
15780 libsuff= shlibsuff=
15781 ;;
15782 *)
15783 case $LD in # libtool.m4 will add one of these switches to LD
15784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15785 libsuff= shlibsuff= libmagic=32-bit;;
15786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15787 libsuff=32 shlibsuff=N32 libmagic=N32;;
15788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15790 *) libsuff= shlibsuff= libmagic=never-match;;
15791 esac
15792 ;;
15793 esac
15794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15795 shlibpath_overrides_runpath=no
15796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15798 hardcode_into_libs=yes
15799 ;;
15800
15801# No shared lib support for Linux oldld, aout, or coff.
15802linux*oldld* | linux*aout* | linux*coff*)
15803 dynamic_linker=no
15804 ;;
15805
cristy99bd5232011-12-07 14:38:20 +000015806# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000015807linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000015808 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015809 need_lib_prefix=no
15810 need_version=no
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015816
cristy73bd4a52010-10-05 11:24:23 +000015817 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015819 $as_echo_n "(cached) " >&6
15820else
15821 lt_cv_shlibpath_overrides_runpath=no
15822 save_LDFLAGS=$LDFLAGS
15823 save_libdir=$libdir
15824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015827/* end confdefs.h. */
15828
15829int
15830main ()
15831{
15832
15833 ;
15834 return 0;
15835}
15836_ACEOF
15837if ac_fn_c_try_link "$LINENO"; then :
15838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015839 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015840fi
15841fi
15842rm -f core conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015844 LDFLAGS=$save_LDFLAGS
15845 libdir=$save_libdir
15846
15847fi
15848
15849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015850
15851 # This implies no fast_install, which is unacceptable.
15852 # Some rework will be needed to allow for fast_install
15853 # before this can be enabled.
15854 hardcode_into_libs=yes
15855
15856 # Add ABI-specific directories to the system library path.
15857 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15858
15859 # Append ld.so.conf contents to the search path
15860 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015861 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 +000015862 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015863
cristy73bd4a52010-10-05 11:24:23 +000015864 fi
15865
15866 # We used to test for /lib/ld.so.1 and disable shared libraries on
15867 # powerpc, because MkLinux only supported shared libraries with the
15868 # GNU dynamic linker. Since this was broken with cross compilers,
15869 # most powerpc-linux boxes support dynamic linking these days and
15870 # people can always --disable-shared, the test was removed, and we
15871 # assume the GNU/Linux dynamic linker is in use.
15872 dynamic_linker='GNU/Linux ld.so'
15873 ;;
15874
15875netbsd*)
15876 version_type=sunos
15877 need_lib_prefix=no
15878 need_version=no
15879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15882 dynamic_linker='NetBSD (a.out) ld.so'
15883 else
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15885 soname_spec='${libname}${release}${shared_ext}$major'
15886 dynamic_linker='NetBSD ld.elf_so'
15887 fi
15888 shlibpath_var=LD_LIBRARY_PATH
15889 shlibpath_overrides_runpath=yes
15890 hardcode_into_libs=yes
15891 ;;
15892
15893newsos6)
cristy99bd5232011-12-07 14:38:20 +000015894 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 shlibpath_var=LD_LIBRARY_PATH
15897 shlibpath_overrides_runpath=yes
15898 ;;
15899
15900*nto* | *qnx*)
15901 version_type=qnx
15902 need_lib_prefix=no
15903 need_version=no
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 shlibpath_var=LD_LIBRARY_PATH
15907 shlibpath_overrides_runpath=no
15908 hardcode_into_libs=yes
15909 dynamic_linker='ldqnx.so'
15910 ;;
15911
15912openbsd*)
15913 version_type=sunos
15914 sys_lib_dlsearch_path_spec="/usr/lib"
15915 need_lib_prefix=no
15916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15917 case $host_os in
15918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15919 *) need_version=no ;;
15920 esac
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15925 case $host_os in
15926 openbsd2.[89] | openbsd2.[89].*)
15927 shlibpath_overrides_runpath=no
15928 ;;
15929 *)
15930 shlibpath_overrides_runpath=yes
15931 ;;
15932 esac
15933 else
15934 shlibpath_overrides_runpath=yes
15935 fi
15936 ;;
15937
15938os2*)
15939 libname_spec='$name'
15940 shrext_cmds=".dll"
15941 need_lib_prefix=no
15942 library_names_spec='$libname${shared_ext} $libname.a'
15943 dynamic_linker='OS/2 ld.exe'
15944 shlibpath_var=LIBPATH
15945 ;;
15946
15947osf3* | osf4* | osf5*)
15948 version_type=osf
15949 need_lib_prefix=no
15950 need_version=no
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15956 ;;
15957
15958rdos*)
15959 dynamic_linker=no
15960 ;;
15961
15962solaris*)
cristy99bd5232011-12-07 14:38:20 +000015963 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015964 need_lib_prefix=no
15965 need_version=no
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 soname_spec='${libname}${release}${shared_ext}$major'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 shlibpath_overrides_runpath=yes
15970 hardcode_into_libs=yes
15971 # ldd complains unless libraries are executable
15972 postinstall_cmds='chmod +x $lib'
15973 ;;
15974
15975sunos4*)
15976 version_type=sunos
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath=yes
15981 if test "$with_gnu_ld" = yes; then
15982 need_lib_prefix=no
15983 fi
15984 need_version=yes
15985 ;;
15986
15987sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000015988 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 case $host_vendor in
15993 sni)
15994 shlibpath_overrides_runpath=no
15995 need_lib_prefix=no
15996 runpath_var=LD_RUN_PATH
15997 ;;
15998 siemens)
15999 need_lib_prefix=no
16000 ;;
16001 motorola)
16002 need_lib_prefix=no
16003 need_version=no
16004 shlibpath_overrides_runpath=no
16005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16006 ;;
16007 esac
16008 ;;
16009
16010sysv4*MP*)
16011 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016012 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16014 soname_spec='$libname${shared_ext}.$major'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 fi
16017 ;;
16018
16019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16020 version_type=freebsd-elf
16021 need_lib_prefix=no
16022 need_version=no
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16024 soname_spec='${libname}${release}${shared_ext}$major'
16025 shlibpath_var=LD_LIBRARY_PATH
16026 shlibpath_overrides_runpath=yes
16027 hardcode_into_libs=yes
16028 if test "$with_gnu_ld" = yes; then
16029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16030 else
16031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16032 case $host_os in
16033 sco3.2v5*)
16034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16035 ;;
16036 esac
16037 fi
16038 sys_lib_dlsearch_path_spec='/usr/lib'
16039 ;;
16040
16041tpf*)
16042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016043 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016044 need_lib_prefix=no
16045 need_version=no
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16050 ;;
16051
16052uts4*)
cristy99bd5232011-12-07 14:38:20 +000016053 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 ;;
16058
16059*)
16060 dynamic_linker=no
16061 ;;
16062esac
16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16064$as_echo "$dynamic_linker" >&6; }
16065test "$dynamic_linker" = no && can_build_shared=no
16066
16067variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16068if test "$GCC" = yes; then
16069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16070fi
16071
16072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16074fi
16075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16077fi
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
cristy0c60a692010-11-04 01:09:47 +000016165
16166
16167
16168
16169
cristy73bd4a52010-10-05 11:24:23 +000016170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16172hardcode_action=
16173if test -n "$hardcode_libdir_flag_spec" ||
16174 test -n "$runpath_var" ||
16175 test "X$hardcode_automatic" = "Xyes" ; then
16176
16177 # We can hardcode non-existent directories.
16178 if test "$hardcode_direct" != no &&
16179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16180 # have to relink, otherwise we might link with an installed library
16181 # when we should be linking with a yet-to-be-installed one
16182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16183 test "$hardcode_minus_L" != no; then
16184 # Linking always hardcodes the temporary library directory.
16185 hardcode_action=relink
16186 else
16187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16188 hardcode_action=immediate
16189 fi
16190else
16191 # We cannot hardcode anything, or else we can only hardcode existing
16192 # directories.
16193 hardcode_action=unsupported
16194fi
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16196$as_echo "$hardcode_action" >&6; }
16197
16198if test "$hardcode_action" = relink ||
16199 test "$inherit_rpath" = yes; then
16200 # Fast installation is not supported
16201 enable_fast_install=no
16202elif test "$shlibpath_overrides_runpath" = yes ||
16203 test "$enable_shared" = no; then
16204 # Fast installation is not necessary
16205 enable_fast_install=needless
16206fi
16207
16208
16209
16210
16211
16212
16213 if test "x$enable_dlopen" != xyes; then
16214 enable_dlopen=unknown
16215 enable_dlopen_self=unknown
16216 enable_dlopen_self_static=unknown
16217else
16218 lt_cv_dlopen=no
16219 lt_cv_dlopen_libs=
16220
16221 case $host_os in
16222 beos*)
16223 lt_cv_dlopen="load_add_on"
16224 lt_cv_dlopen_libs=
16225 lt_cv_dlopen_self=yes
16226 ;;
16227
16228 mingw* | pw32* | cegcc*)
16229 lt_cv_dlopen="LoadLibrary"
16230 lt_cv_dlopen_libs=
16231 ;;
16232
16233 cygwin*)
16234 lt_cv_dlopen="dlopen"
16235 lt_cv_dlopen_libs=
16236 ;;
16237
16238 darwin*)
16239 # if libdl is installed we need to link against it
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16241$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016242if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016243 $as_echo_n "(cached) " >&6
16244else
16245 ac_check_lib_save_LIBS=$LIBS
16246LIBS="-ldl $LIBS"
16247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h. */
16249
16250/* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16253#ifdef __cplusplus
16254extern "C"
16255#endif
16256char dlopen ();
16257int
16258main ()
16259{
16260return dlopen ();
16261 ;
16262 return 0;
16263}
16264_ACEOF
16265if ac_fn_c_try_link "$LINENO"; then :
16266 ac_cv_lib_dl_dlopen=yes
16267else
16268 ac_cv_lib_dl_dlopen=no
16269fi
16270rm -f core conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16272LIBS=$ac_check_lib_save_LIBS
16273fi
16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016276if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16278else
16279
16280 lt_cv_dlopen="dyld"
16281 lt_cv_dlopen_libs=
16282 lt_cv_dlopen_self=yes
16283
16284fi
16285
16286 ;;
16287
16288 *)
16289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016290if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016291 lt_cv_dlopen="shl_load"
16292else
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16294$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016295if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016296 $as_echo_n "(cached) " >&6
16297else
16298 ac_check_lib_save_LIBS=$LIBS
16299LIBS="-ldld $LIBS"
16300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301/* end confdefs.h. */
16302
16303/* Override any GCC internal prototype to avoid an error.
16304 Use char because int might match the return type of a GCC
16305 builtin and then its argument prototype would still apply. */
16306#ifdef __cplusplus
16307extern "C"
16308#endif
16309char shl_load ();
16310int
16311main ()
16312{
16313return shl_load ();
16314 ;
16315 return 0;
16316}
16317_ACEOF
16318if ac_fn_c_try_link "$LINENO"; then :
16319 ac_cv_lib_dld_shl_load=yes
16320else
16321 ac_cv_lib_dld_shl_load=no
16322fi
16323rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16325LIBS=$ac_check_lib_save_LIBS
16326fi
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16328$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016329if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16331else
16332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016333if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016334 lt_cv_dlopen="dlopen"
16335else
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16337$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016338if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016339 $as_echo_n "(cached) " >&6
16340else
16341 ac_check_lib_save_LIBS=$LIBS
16342LIBS="-ldl $LIBS"
16343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h. */
16345
16346/* Override any GCC internal prototype to avoid an error.
16347 Use char because int might match the return type of a GCC
16348 builtin and then its argument prototype would still apply. */
16349#ifdef __cplusplus
16350extern "C"
16351#endif
16352char dlopen ();
16353int
16354main ()
16355{
16356return dlopen ();
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361if ac_fn_c_try_link "$LINENO"; then :
16362 ac_cv_lib_dl_dlopen=yes
16363else
16364 ac_cv_lib_dl_dlopen=no
16365fi
16366rm -f core conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16368LIBS=$ac_check_lib_save_LIBS
16369fi
16370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16374else
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16376$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016377if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016378 $as_echo_n "(cached) " >&6
16379else
16380 ac_check_lib_save_LIBS=$LIBS
16381LIBS="-lsvld $LIBS"
16382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h. */
16384
16385/* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16388#ifdef __cplusplus
16389extern "C"
16390#endif
16391char dlopen ();
16392int
16393main ()
16394{
16395return dlopen ();
16396 ;
16397 return 0;
16398}
16399_ACEOF
16400if ac_fn_c_try_link "$LINENO"; then :
16401 ac_cv_lib_svld_dlopen=yes
16402else
16403 ac_cv_lib_svld_dlopen=no
16404fi
16405rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16407LIBS=$ac_check_lib_save_LIBS
16408fi
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16410$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016411if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16413else
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16415$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016416if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016417 $as_echo_n "(cached) " >&6
16418else
16419 ac_check_lib_save_LIBS=$LIBS
16420LIBS="-ldld $LIBS"
16421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422/* end confdefs.h. */
16423
16424/* Override any GCC internal prototype to avoid an error.
16425 Use char because int might match the return type of a GCC
16426 builtin and then its argument prototype would still apply. */
16427#ifdef __cplusplus
16428extern "C"
16429#endif
16430char dld_link ();
16431int
16432main ()
16433{
16434return dld_link ();
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_link "$LINENO"; then :
16440 ac_cv_lib_dld_dld_link=yes
16441else
16442 ac_cv_lib_dld_dld_link=no
16443fi
16444rm -f core conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
16446LIBS=$ac_check_lib_save_LIBS
16447fi
16448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16449$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016450if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16452fi
16453
16454
16455fi
16456
16457
16458fi
16459
16460
16461fi
16462
16463
16464fi
16465
16466
16467fi
16468
16469 ;;
16470 esac
16471
16472 if test "x$lt_cv_dlopen" != xno; then
16473 enable_dlopen=yes
16474 else
16475 enable_dlopen=no
16476 fi
16477
16478 case $lt_cv_dlopen in
16479 dlopen)
16480 save_CPPFLAGS="$CPPFLAGS"
16481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16482
16483 save_LDFLAGS="$LDFLAGS"
16484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16485
16486 save_LIBS="$LIBS"
16487 LIBS="$lt_cv_dlopen_libs $LIBS"
16488
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16490$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016491if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016492 $as_echo_n "(cached) " >&6
16493else
16494 if test "$cross_compiling" = yes; then :
16495 lt_cv_dlopen_self=cross
16496else
16497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16498 lt_status=$lt_dlunknown
16499 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016500#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016501#include "confdefs.h"
16502
16503#if HAVE_DLFCN_H
16504#include <dlfcn.h>
16505#endif
16506
16507#include <stdio.h>
16508
16509#ifdef RTLD_GLOBAL
16510# define LT_DLGLOBAL RTLD_GLOBAL
16511#else
16512# ifdef DL_GLOBAL
16513# define LT_DLGLOBAL DL_GLOBAL
16514# else
16515# define LT_DLGLOBAL 0
16516# endif
16517#endif
16518
16519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16520 find out it does not work in some platform. */
16521#ifndef LT_DLLAZY_OR_NOW
16522# ifdef RTLD_LAZY
16523# define LT_DLLAZY_OR_NOW RTLD_LAZY
16524# else
16525# ifdef DL_LAZY
16526# define LT_DLLAZY_OR_NOW DL_LAZY
16527# else
16528# ifdef RTLD_NOW
16529# define LT_DLLAZY_OR_NOW RTLD_NOW
16530# else
16531# ifdef DL_NOW
16532# define LT_DLLAZY_OR_NOW DL_NOW
16533# else
16534# define LT_DLLAZY_OR_NOW 0
16535# endif
16536# endif
16537# endif
16538# endif
16539#endif
16540
cristy0c60a692010-11-04 01:09:47 +000016541/* When -fvisbility=hidden is used, assume the code has been annotated
16542 correspondingly for the symbols needed. */
16543#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016544int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016545#endif
16546
cristyda16f162011-02-19 23:52:17 +000016547int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016548int main ()
16549{
16550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16551 int status = $lt_dlunknown;
16552
16553 if (self)
16554 {
16555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016556 else
16557 {
16558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16559 else puts (dlerror ());
16560 }
cristy73bd4a52010-10-05 11:24:23 +000016561 /* dlclose (self); */
16562 }
16563 else
16564 puts (dlerror ());
16565
16566 return status;
16567}
16568_LT_EOF
16569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16570 (eval $ac_link) 2>&5
16571 ac_status=$?
16572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16574 (./conftest; exit; ) >&5 2>/dev/null
16575 lt_status=$?
16576 case x$lt_status in
16577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16580 esac
16581 else :
16582 # compilation failed
16583 lt_cv_dlopen_self=no
16584 fi
16585fi
16586rm -fr conftest*
16587
16588
16589fi
16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16591$as_echo "$lt_cv_dlopen_self" >&6; }
16592
16593 if test "x$lt_cv_dlopen_self" = xyes; then
16594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16596$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016597if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016598 $as_echo_n "(cached) " >&6
16599else
16600 if test "$cross_compiling" = yes; then :
16601 lt_cv_dlopen_self_static=cross
16602else
16603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16604 lt_status=$lt_dlunknown
16605 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016606#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016607#include "confdefs.h"
16608
16609#if HAVE_DLFCN_H
16610#include <dlfcn.h>
16611#endif
16612
16613#include <stdio.h>
16614
16615#ifdef RTLD_GLOBAL
16616# define LT_DLGLOBAL RTLD_GLOBAL
16617#else
16618# ifdef DL_GLOBAL
16619# define LT_DLGLOBAL DL_GLOBAL
16620# else
16621# define LT_DLGLOBAL 0
16622# endif
16623#endif
16624
16625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16626 find out it does not work in some platform. */
16627#ifndef LT_DLLAZY_OR_NOW
16628# ifdef RTLD_LAZY
16629# define LT_DLLAZY_OR_NOW RTLD_LAZY
16630# else
16631# ifdef DL_LAZY
16632# define LT_DLLAZY_OR_NOW DL_LAZY
16633# else
16634# ifdef RTLD_NOW
16635# define LT_DLLAZY_OR_NOW RTLD_NOW
16636# else
16637# ifdef DL_NOW
16638# define LT_DLLAZY_OR_NOW DL_NOW
16639# else
16640# define LT_DLLAZY_OR_NOW 0
16641# endif
16642# endif
16643# endif
16644# endif
16645#endif
16646
cristy0c60a692010-11-04 01:09:47 +000016647/* When -fvisbility=hidden is used, assume the code has been annotated
16648 correspondingly for the symbols needed. */
16649#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016650int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016651#endif
16652
cristyda16f162011-02-19 23:52:17 +000016653int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016654int main ()
16655{
16656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16657 int status = $lt_dlunknown;
16658
16659 if (self)
16660 {
16661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016662 else
16663 {
16664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16665 else puts (dlerror ());
16666 }
cristy73bd4a52010-10-05 11:24:23 +000016667 /* dlclose (self); */
16668 }
16669 else
16670 puts (dlerror ());
16671
16672 return status;
16673}
16674_LT_EOF
16675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16676 (eval $ac_link) 2>&5
16677 ac_status=$?
16678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16679 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16680 (./conftest; exit; ) >&5 2>/dev/null
16681 lt_status=$?
16682 case x$lt_status in
16683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16686 esac
16687 else :
16688 # compilation failed
16689 lt_cv_dlopen_self_static=no
16690 fi
16691fi
16692rm -fr conftest*
16693
16694
16695fi
16696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16697$as_echo "$lt_cv_dlopen_self_static" >&6; }
16698 fi
16699
16700 CPPFLAGS="$save_CPPFLAGS"
16701 LDFLAGS="$save_LDFLAGS"
16702 LIBS="$save_LIBS"
16703 ;;
16704 esac
16705
16706 case $lt_cv_dlopen_self in
16707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16708 *) enable_dlopen_self=unknown ;;
16709 esac
16710
16711 case $lt_cv_dlopen_self_static in
16712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16713 *) enable_dlopen_self_static=unknown ;;
16714 esac
16715fi
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733striplib=
16734old_striplib=
16735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16736$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16737if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16741$as_echo "yes" >&6; }
16742else
16743# FIXME - insert some real tests, host_os isn't really good enough
16744 case $host_os in
16745 darwin*)
16746 if test -n "$STRIP" ; then
16747 striplib="$STRIP -x"
16748 old_striplib="$STRIP -S"
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750$as_echo "yes" >&6; }
16751 else
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753$as_echo "no" >&6; }
16754 fi
16755 ;;
16756 *)
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16758$as_echo "no" >&6; }
16759 ;;
16760 esac
16761fi
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774 # Report which library types will actually be built
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16776$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16778$as_echo "$can_build_shared" >&6; }
16779
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16781$as_echo_n "checking whether to build shared libraries... " >&6; }
16782 test "$can_build_shared" = "no" && enable_shared=no
16783
16784 # On AIX, shared libraries and static libraries use the same namespace, and
16785 # are all built from PIC.
16786 case $host_os in
16787 aix3*)
16788 test "$enable_shared" = yes && enable_static=no
16789 if test -n "$RANLIB"; then
16790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16791 postinstall_cmds='$RANLIB $lib'
16792 fi
16793 ;;
16794
16795 aix[4-9]*)
16796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16797 test "$enable_shared" = yes && enable_static=no
16798 fi
16799 ;;
16800 esac
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16802$as_echo "$enable_shared" >&6; }
16803
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16805$as_echo_n "checking whether to build static libraries... " >&6; }
16806 # Make sure either enable_shared or enable_static is yes.
16807 test "$enable_shared" = yes || enable_static=yes
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16809$as_echo "$enable_static" >&6; }
16810
16811
16812
16813
16814fi
16815ac_ext=c
16816ac_cpp='$CPP $CPPFLAGS'
16817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16819ac_compiler_gnu=$ac_cv_c_compiler_gnu
16820
16821CC="$lt_save_CC"
16822
cristy0c60a692010-11-04 01:09:47 +000016823 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16824 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16825 (test "X$CXX" != "Xg++"))) ; then
16826 ac_ext=cpp
16827ac_cpp='$CXXCPP $CPPFLAGS'
16828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16832$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16833if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016834 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016835 $as_echo_n "(cached) " >&6
16836else
16837 # Double quotes because CXXCPP needs to be expanded
16838 for CXXCPP in "$CXX -E" "/lib/cpp"
16839 do
16840 ac_preproc_ok=false
16841for ac_cxx_preproc_warn_flag in '' yes
16842do
16843 # Use a header file that comes with gcc, so configuring glibc
16844 # with a fresh cross-compiler works.
16845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 # <limits.h> exists even on freestanding compilers.
16847 # On the NeXT, cc -E runs the code through the compiler's parser,
16848 # not just through cpp. "Syntax error" is here to catch this case.
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850/* end confdefs.h. */
16851#ifdef __STDC__
16852# include <limits.h>
16853#else
16854# include <assert.h>
16855#endif
16856 Syntax error
16857_ACEOF
16858if ac_fn_cxx_try_cpp "$LINENO"; then :
16859
16860else
16861 # Broken: fails on valid input.
16862continue
16863fi
cristyda16f162011-02-19 23:52:17 +000016864rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016865
16866 # OK, works on sane cases. Now check whether nonexistent headers
16867 # can be detected and how.
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h. */
16870#include <ac_nonexistent.h>
16871_ACEOF
16872if ac_fn_cxx_try_cpp "$LINENO"; then :
16873 # Broken: success on invalid input.
16874continue
16875else
16876 # Passes both tests.
16877ac_preproc_ok=:
16878break
16879fi
cristyda16f162011-02-19 23:52:17 +000016880rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016881
16882done
16883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016884rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016885if $ac_preproc_ok; then :
16886 break
16887fi
16888
16889 done
16890 ac_cv_prog_CXXCPP=$CXXCPP
16891
16892fi
16893 CXXCPP=$ac_cv_prog_CXXCPP
16894else
16895 ac_cv_prog_CXXCPP=$CXXCPP
16896fi
16897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16898$as_echo "$CXXCPP" >&6; }
16899ac_preproc_ok=false
16900for ac_cxx_preproc_warn_flag in '' yes
16901do
16902 # Use a header file that comes with gcc, so configuring glibc
16903 # with a fresh cross-compiler works.
16904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16905 # <limits.h> exists even on freestanding compilers.
16906 # On the NeXT, cc -E runs the code through the compiler's parser,
16907 # not just through cpp. "Syntax error" is here to catch this case.
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909/* end confdefs.h. */
16910#ifdef __STDC__
16911# include <limits.h>
16912#else
16913# include <assert.h>
16914#endif
16915 Syntax error
16916_ACEOF
16917if ac_fn_cxx_try_cpp "$LINENO"; then :
16918
16919else
16920 # Broken: fails on valid input.
16921continue
16922fi
cristyda16f162011-02-19 23:52:17 +000016923rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016924
16925 # OK, works on sane cases. Now check whether nonexistent headers
16926 # can be detected and how.
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928/* end confdefs.h. */
16929#include <ac_nonexistent.h>
16930_ACEOF
16931if ac_fn_cxx_try_cpp "$LINENO"; then :
16932 # Broken: success on invalid input.
16933continue
16934else
16935 # Passes both tests.
16936ac_preproc_ok=:
16937break
16938fi
cristyda16f162011-02-19 23:52:17 +000016939rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016940
16941done
16942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016943rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016944if $ac_preproc_ok; then :
16945
16946else
16947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16949as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16950See \`config.log' for more details" "$LINENO" 5; }
16951fi
16952
16953ac_ext=c
16954ac_cpp='$CPP $CPPFLAGS'
16955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16957ac_compiler_gnu=$ac_cv_c_compiler_gnu
16958
16959else
16960 _lt_caught_CXX_error=yes
16961fi
cristy73bd4a52010-10-05 11:24:23 +000016962
16963ac_ext=cpp
16964ac_cpp='$CXXCPP $CPPFLAGS'
16965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16968
16969archive_cmds_need_lc_CXX=no
16970allow_undefined_flag_CXX=
16971always_export_symbols_CXX=no
16972archive_expsym_cmds_CXX=
16973compiler_needs_object_CXX=no
16974export_dynamic_flag_spec_CXX=
16975hardcode_direct_CXX=no
16976hardcode_direct_absolute_CXX=no
16977hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000016978hardcode_libdir_separator_CXX=
16979hardcode_minus_L_CXX=no
16980hardcode_shlibpath_var_CXX=unsupported
16981hardcode_automatic_CXX=no
16982inherit_rpath_CXX=no
16983module_cmds_CXX=
16984module_expsym_cmds_CXX=
16985link_all_deplibs_CXX=unknown
16986old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016987reload_flag_CXX=$reload_flag
16988reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016989no_undefined_flag_CXX=
16990whole_archive_flag_spec_CXX=
16991enable_shared_with_static_runtimes_CXX=no
16992
16993# Source file extension for C++ test sources.
16994ac_ext=cpp
16995
16996# Object file extension for compiled C++ test sources.
16997objext=o
16998objext_CXX=$objext
16999
17000# No sense in running all these tests if we already determined that
17001# the CXX compiler isn't working. Some variables (like enable_shared)
17002# are currently assumed to apply to all compilers on this platform,
17003# and will be corrupted by setting them based on a non-working compiler.
17004if test "$_lt_caught_CXX_error" != yes; then
17005 # Code to be used in simple compile tests
17006 lt_simple_compile_test_code="int some_variable = 0;"
17007
17008 # Code to be used in simple link tests
17009 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17010
17011 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17012
17013
17014
17015
17016
17017
17018# If no C compiler was specified, use CC.
17019LTCC=${LTCC-"$CC"}
17020
17021# If no C compiler flags were specified, use CFLAGS.
17022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17023
17024# Allow CC to be a program name with arguments.
17025compiler=$CC
17026
17027
17028 # save warnings/boilerplate of simple test code
17029 ac_outfile=conftest.$ac_objext
17030echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17031eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17032_lt_compiler_boilerplate=`cat conftest.err`
17033$RM conftest*
17034
17035 ac_outfile=conftest.$ac_objext
17036echo "$lt_simple_link_test_code" >conftest.$ac_ext
17037eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17038_lt_linker_boilerplate=`cat conftest.err`
17039$RM -r conftest*
17040
17041
17042 # Allow CC to be a program name with arguments.
17043 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017044 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017045 lt_save_LD=$LD
17046 lt_save_GCC=$GCC
17047 GCC=$GXX
17048 lt_save_with_gnu_ld=$with_gnu_ld
17049 lt_save_path_LD=$lt_cv_path_LD
17050 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17051 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17052 else
17053 $as_unset lt_cv_prog_gnu_ld
17054 fi
17055 if test -n "${lt_cv_path_LDCXX+set}"; then
17056 lt_cv_path_LD=$lt_cv_path_LDCXX
17057 else
17058 $as_unset lt_cv_path_LD
17059 fi
17060 test -z "${LDCXX+set}" || LD=$LDCXX
17061 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017062 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017063 compiler=$CC
17064 compiler_CXX=$CC
17065 for cc_temp in $compiler""; do
17066 case $cc_temp in
17067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17069 \-*) ;;
17070 *) break;;
17071 esac
17072done
cristy0c60a692010-11-04 01:09:47 +000017073cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017074
17075
17076 if test -n "$compiler"; then
17077 # We don't want -fno-exception when compiling C++ code, so set the
17078 # no_builtin_flag separately
17079 if test "$GXX" = yes; then
17080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17081 else
17082 lt_prog_compiler_no_builtin_flag_CXX=
17083 fi
17084
17085 if test "$GXX" = yes; then
17086 # Set up default GNU C++ configuration
17087
17088
17089
17090# Check whether --with-gnu-ld was given.
17091if test "${with_gnu_ld+set}" = set; then :
17092 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17093else
17094 with_gnu_ld=no
17095fi
17096
17097ac_prog=ld
17098if test "$GCC" = yes; then
17099 # Check if gcc -print-prog-name=ld gives a path.
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17101$as_echo_n "checking for ld used by $CC... " >&6; }
17102 case $host in
17103 *-*-mingw*)
17104 # gcc leaves a trailing carriage return which upsets mingw
17105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17106 *)
17107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17108 esac
17109 case $ac_prog in
17110 # Accept absolute paths.
17111 [\\/]* | ?:[\\/]*)
17112 re_direlt='/[^/][^/]*/\.\./'
17113 # Canonicalize the pathname of ld
17114 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17115 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17116 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17117 done
17118 test -z "$LD" && LD="$ac_prog"
17119 ;;
17120 "")
17121 # If it fails, then pretend we aren't using GCC.
17122 ac_prog=ld
17123 ;;
17124 *)
17125 # If it is relative, then search for the first ld in PATH.
17126 with_gnu_ld=unknown
17127 ;;
17128 esac
17129elif test "$with_gnu_ld" = yes; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17131$as_echo_n "checking for GNU ld... " >&6; }
17132else
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17134$as_echo_n "checking for non-GNU ld... " >&6; }
17135fi
cristyda16f162011-02-19 23:52:17 +000017136if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017137 $as_echo_n "(cached) " >&6
17138else
17139 if test -z "$LD"; then
17140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17141 for ac_dir in $PATH; do
17142 IFS="$lt_save_ifs"
17143 test -z "$ac_dir" && ac_dir=.
17144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17145 lt_cv_path_LD="$ac_dir/$ac_prog"
17146 # Check to see if the program is GNU ld. I'd rather use --version,
17147 # but apparently some variants of GNU ld only accept -v.
17148 # Break only if it was the GNU/non-GNU ld that we prefer.
17149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17150 *GNU* | *'with BFD'*)
17151 test "$with_gnu_ld" != no && break
17152 ;;
17153 *)
17154 test "$with_gnu_ld" != yes && break
17155 ;;
17156 esac
17157 fi
17158 done
17159 IFS="$lt_save_ifs"
17160else
17161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17162fi
17163fi
17164
17165LD="$lt_cv_path_LD"
17166if test -n "$LD"; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17168$as_echo "$LD" >&6; }
17169else
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17171$as_echo "no" >&6; }
17172fi
cristy98dddb52010-11-04 00:30:15 +000017173test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17175$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017176if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017177 $as_echo_n "(cached) " >&6
17178else
17179 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17180case `$LD -v 2>&1 </dev/null` in
17181*GNU* | *'with BFD'*)
17182 lt_cv_prog_gnu_ld=yes
17183 ;;
17184*)
17185 lt_cv_prog_gnu_ld=no
17186 ;;
17187esac
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17190$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17191with_gnu_ld=$lt_cv_prog_gnu_ld
17192
17193
17194
17195
17196
17197
17198
17199 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17200 # archiving commands below assume that GNU ld is being used.
17201 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017202 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17203 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 +000017204
17205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17207
17208 # If archive_cmds runs LD, not CC, wlarc should be empty
17209 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17210 # investigate it a little bit more. (MM)
17211 wlarc='${wl}'
17212
17213 # ancient GNU ld didn't support --whole-archive et. al.
17214 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17215 $GREP 'no-whole-archive' > /dev/null; then
17216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17217 else
17218 whole_archive_flag_spec_CXX=
17219 fi
17220 else
17221 with_gnu_ld=no
17222 wlarc=
17223
17224 # A generic and very simple default shared library creation
17225 # command for GNU C++ for the case where it uses the native
17226 # linker, instead of GNU ld. If possible, this setting should
17227 # overridden to take advantage of the native linker features on
17228 # the platform it is being used on.
17229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17230 fi
17231
17232 # Commands to make compiler produce verbose output that lists
17233 # what "hidden" libraries, object files and flags are used when
17234 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017236
17237 else
17238 GXX=no
17239 with_gnu_ld=no
17240 wlarc=
17241 fi
17242
17243 # PORTME: fill in a description of your system's C++ link characteristics
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17245$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17246 ld_shlibs_CXX=yes
17247 case $host_os in
17248 aix3*)
17249 # FIXME: insert proper C++ library support
17250 ld_shlibs_CXX=no
17251 ;;
17252 aix[4-9]*)
17253 if test "$host_cpu" = ia64; then
17254 # On IA64, the linker does run time linking by default, so we don't
17255 # have to do anything special.
17256 aix_use_runtimelinking=no
17257 exp_sym_flag='-Bexport'
17258 no_entry_flag=""
17259 else
17260 aix_use_runtimelinking=no
17261
17262 # Test if we are trying to use run time linking or normal
17263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17264 # need to do runtime linking.
17265 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17266 for ld_flag in $LDFLAGS; do
17267 case $ld_flag in
17268 *-brtl*)
17269 aix_use_runtimelinking=yes
17270 break
17271 ;;
17272 esac
17273 done
17274 ;;
17275 esac
17276
17277 exp_sym_flag='-bexport'
17278 no_entry_flag='-bnoentry'
17279 fi
17280
17281 # When large executables or shared objects are built, AIX ld can
17282 # have problems creating the table of contents. If linking a library
17283 # or program results in "error TOC overflow" add -mminimal-toc to
17284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17286
17287 archive_cmds_CXX=''
17288 hardcode_direct_CXX=yes
17289 hardcode_direct_absolute_CXX=yes
17290 hardcode_libdir_separator_CXX=':'
17291 link_all_deplibs_CXX=yes
17292 file_list_spec_CXX='${wl}-f,'
17293
17294 if test "$GXX" = yes; then
17295 case $host_os in aix4.[012]|aix4.[012].*)
17296 # We only want to do this on AIX 4.2 and lower, the check
17297 # below for broken collect2 doesn't work under 4.3+
17298 collect2name=`${CC} -print-prog-name=collect2`
17299 if test -f "$collect2name" &&
17300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17301 then
17302 # We have reworked collect2
17303 :
17304 else
17305 # We have old collect2
17306 hardcode_direct_CXX=unsupported
17307 # It fails to find uninstalled libraries when the uninstalled
17308 # path is not listed in the libpath. Setting hardcode_minus_L
17309 # to unsupported forces relinking
17310 hardcode_minus_L_CXX=yes
17311 hardcode_libdir_flag_spec_CXX='-L$libdir'
17312 hardcode_libdir_separator_CXX=
17313 fi
17314 esac
17315 shared_flag='-shared'
17316 if test "$aix_use_runtimelinking" = yes; then
17317 shared_flag="$shared_flag "'${wl}-G'
17318 fi
17319 else
17320 # not using gcc
17321 if test "$host_cpu" = ia64; then
17322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17323 # chokes on -Wl,-G. The following line is correct:
17324 shared_flag='-G'
17325 else
17326 if test "$aix_use_runtimelinking" = yes; then
17327 shared_flag='${wl}-G'
17328 else
17329 shared_flag='${wl}-bM:SRE'
17330 fi
17331 fi
17332 fi
17333
17334 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17335 # It seems that -bexpall does not export symbols beginning with
17336 # underscore (_), so it is better to generate a list of symbols to
17337 # export.
17338 always_export_symbols_CXX=yes
17339 if test "$aix_use_runtimelinking" = yes; then
17340 # Warning - without using the other runtime loading flags (-brtl),
17341 # -berok will link without error, but may produce a broken library.
17342 allow_undefined_flag_CXX='-berok'
17343 # Determine the default libpath from the value encoded in an empty
17344 # executable.
cristyda16f162011-02-19 23:52:17 +000017345 if test "${lt_cv_aix_libpath+set}" = set; then
17346 aix_libpath=$lt_cv_aix_libpath
17347else
17348 if ${lt_cv_aix_libpath__CXX+:} false; then :
17349 $as_echo_n "(cached) " >&6
17350else
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017352/* end confdefs.h. */
17353
17354int
17355main ()
17356{
17357
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362if ac_fn_cxx_try_link "$LINENO"; then :
17363
cristyda16f162011-02-19 23:52:17 +000017364 lt_aix_libpath_sed='
17365 /Import File Strings/,/^$/ {
17366 /^0/ {
17367 s/^0 *\([^ ]*\) *$/\1/
17368 p
17369 }
17370 }'
17371 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17372 # Check for a 64-bit object if we didn't find anything.
17373 if test -z "$lt_cv_aix_libpath__CXX"; then
17374 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17375 fi
cristy73bd4a52010-10-05 11:24:23 +000017376fi
17377rm -f core conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017379 if test -z "$lt_cv_aix_libpath__CXX"; then
17380 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17381 fi
17382
17383fi
17384
17385 aix_libpath=$lt_cv_aix_libpath__CXX
17386fi
cristy73bd4a52010-10-05 11:24:23 +000017387
17388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17389
cristy0c60a692010-11-04 01:09:47 +000017390 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 +000017391 else
17392 if test "$host_cpu" = ia64; then
17393 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17394 allow_undefined_flag_CXX="-z nodefs"
17395 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"
17396 else
17397 # Determine the default libpath from the value encoded in an
17398 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017399 if test "${lt_cv_aix_libpath+set}" = set; then
17400 aix_libpath=$lt_cv_aix_libpath
17401else
17402 if ${lt_cv_aix_libpath__CXX+:} false; then :
17403 $as_echo_n "(cached) " >&6
17404else
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017406/* end confdefs.h. */
17407
17408int
17409main ()
17410{
17411
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416if ac_fn_cxx_try_link "$LINENO"; then :
17417
cristyda16f162011-02-19 23:52:17 +000017418 lt_aix_libpath_sed='
17419 /Import File Strings/,/^$/ {
17420 /^0/ {
17421 s/^0 *\([^ ]*\) *$/\1/
17422 p
17423 }
17424 }'
17425 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17426 # Check for a 64-bit object if we didn't find anything.
17427 if test -z "$lt_cv_aix_libpath__CXX"; then
17428 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17429 fi
cristy73bd4a52010-10-05 11:24:23 +000017430fi
17431rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017433 if test -z "$lt_cv_aix_libpath__CXX"; then
17434 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17435 fi
17436
17437fi
17438
17439 aix_libpath=$lt_cv_aix_libpath__CXX
17440fi
cristy73bd4a52010-10-05 11:24:23 +000017441
17442 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17443 # Warning - without using the other run time loading flags,
17444 # -berok will link without error, but may produce a broken library.
17445 no_undefined_flag_CXX=' ${wl}-bernotok'
17446 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017447 if test "$with_gnu_ld" = yes; then
17448 # We only use this code for GNU lds that support --whole-archive.
17449 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17450 else
17451 # Exported symbols can be pulled into shared objects from archives
17452 whole_archive_flag_spec_CXX='$convenience'
17453 fi
cristy73bd4a52010-10-05 11:24:23 +000017454 archive_cmds_need_lc_CXX=yes
17455 # This is similar to how AIX traditionally builds its shared
17456 # libraries.
17457 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'
17458 fi
17459 fi
17460 ;;
17461
17462 beos*)
17463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17464 allow_undefined_flag_CXX=unsupported
17465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17466 # support --undefined. This deserves some investigation. FIXME
17467 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17468 else
17469 ld_shlibs_CXX=no
17470 fi
17471 ;;
17472
17473 chorus*)
17474 case $cc_basename in
17475 *)
17476 # FIXME: insert proper C++ library support
17477 ld_shlibs_CXX=no
17478 ;;
17479 esac
17480 ;;
17481
17482 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017483 case $GXX,$cc_basename in
17484 ,cl* | no,cl*)
17485 # Native MSVC
17486 # hardcode_libdir_flag_spec is actually meaningless, as there is
17487 # no search path for DLLs.
17488 hardcode_libdir_flag_spec_CXX=' '
17489 allow_undefined_flag_CXX=unsupported
17490 always_export_symbols_CXX=yes
17491 file_list_spec_CXX='@'
17492 # Tell ltmain to make .lib files, not .a files.
17493 libext=lib
17494 # Tell ltmain to make .dll files, not .so files.
17495 shrext_cmds=".dll"
17496 # FIXME: Setting linknames here is a bad hack.
17497 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17498 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17499 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17500 else
17501 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17502 fi~
17503 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17504 linknames='
17505 # The linker will not automatically build a static lib if we build a DLL.
17506 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17507 enable_shared_with_static_runtimes_CXX=yes
17508 # Don't use ranlib
17509 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17510 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17511 lt_tool_outputfile="@TOOL_OUTPUT@"~
17512 case $lt_outputfile in
17513 *.exe|*.EXE) ;;
17514 *)
17515 lt_outputfile="$lt_outputfile.exe"
17516 lt_tool_outputfile="$lt_tool_outputfile.exe"
17517 ;;
17518 esac~
17519 func_to_tool_file "$lt_outputfile"~
17520 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17521 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17522 $RM "$lt_outputfile.manifest";
17523 fi'
17524 ;;
17525 *)
17526 # g++
17527 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17528 # as there is no search path for DLLs.
17529 hardcode_libdir_flag_spec_CXX='-L$libdir'
17530 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17531 allow_undefined_flag_CXX=unsupported
17532 always_export_symbols_CXX=no
17533 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017534
cristyda16f162011-02-19 23:52:17 +000017535 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17536 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'
17537 # If the export-symbols file already is a .def file (1st line
17538 # is EXPORTS), use it as is; otherwise, prepend...
17539 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17540 cp $export_symbols $output_objdir/$soname.def;
17541 else
17542 echo EXPORTS > $output_objdir/$soname.def;
17543 cat $export_symbols >> $output_objdir/$soname.def;
17544 fi~
17545 $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'
17546 else
17547 ld_shlibs_CXX=no
17548 fi
17549 ;;
17550 esac
17551 ;;
cristy73bd4a52010-10-05 11:24:23 +000017552 darwin* | rhapsody*)
17553
17554
17555 archive_cmds_need_lc_CXX=no
17556 hardcode_direct_CXX=no
17557 hardcode_automatic_CXX=yes
17558 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017559 if test "$lt_cv_ld_force_load" = "yes"; then
17560 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\"`'
cristy99bd5232011-12-07 14:38:20 +000017561
cristy0c60a692010-11-04 01:09:47 +000017562 else
17563 whole_archive_flag_spec_CXX=''
17564 fi
cristy73bd4a52010-10-05 11:24:23 +000017565 link_all_deplibs_CXX=yes
17566 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17567 case $cc_basename in
17568 ifort*) _lt_dar_can_shared=yes ;;
17569 *) _lt_dar_can_shared=$GCC ;;
17570 esac
17571 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017572 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017573 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}"
17574 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17575 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}"
17576 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}"
17577 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17578 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}"
17579 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}"
17580 fi
17581
17582 else
17583 ld_shlibs_CXX=no
17584 fi
17585
17586 ;;
17587
17588 dgux*)
17589 case $cc_basename in
17590 ec++*)
17591 # FIXME: insert proper C++ library support
17592 ld_shlibs_CXX=no
17593 ;;
17594 ghcx*)
17595 # Green Hills C++ Compiler
17596 # FIXME: insert proper C++ library support
17597 ld_shlibs_CXX=no
17598 ;;
17599 *)
17600 # FIXME: insert proper C++ library support
17601 ld_shlibs_CXX=no
17602 ;;
17603 esac
17604 ;;
17605
cristy99bd5232011-12-07 14:38:20 +000017606 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017607 # C++ shared libraries reported to be fairly broken before
17608 # switch to ELF
17609 ld_shlibs_CXX=no
17610 ;;
17611
17612 freebsd-elf*)
17613 archive_cmds_need_lc_CXX=no
17614 ;;
17615
17616 freebsd* | dragonfly*)
17617 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17618 # conventions
17619 ld_shlibs_CXX=yes
17620 ;;
17621
17622 gnu*)
17623 ;;
17624
cristy0c60a692010-11-04 01:09:47 +000017625 haiku*)
17626 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627 link_all_deplibs_CXX=yes
17628 ;;
17629
cristy73bd4a52010-10-05 11:24:23 +000017630 hpux9*)
17631 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17632 hardcode_libdir_separator_CXX=:
17633 export_dynamic_flag_spec_CXX='${wl}-E'
17634 hardcode_direct_CXX=yes
17635 hardcode_minus_L_CXX=yes # Not in the search PATH,
17636 # but as the default
17637 # location of the library.
17638
17639 case $cc_basename in
17640 CC*)
17641 # FIXME: insert proper C++ library support
17642 ld_shlibs_CXX=no
17643 ;;
17644 aCC*)
17645 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'
17646 # Commands to make compiler produce verbose output that lists
17647 # what "hidden" libraries, object files and flags are used when
17648 # linking a shared library.
17649 #
17650 # There doesn't appear to be a way to prevent this compiler from
17651 # explicitly linking system object files so we need to strip them
17652 # from the output so that they don't get included in the library
17653 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017654 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 +000017655 ;;
17656 *)
17657 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017658 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 +000017659 else
17660 # FIXME: insert proper C++ library support
17661 ld_shlibs_CXX=no
17662 fi
17663 ;;
17664 esac
17665 ;;
17666
17667 hpux10*|hpux11*)
17668 if test $with_gnu_ld = no; then
17669 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17670 hardcode_libdir_separator_CXX=:
17671
17672 case $host_cpu in
17673 hppa*64*|ia64*)
17674 ;;
17675 *)
17676 export_dynamic_flag_spec_CXX='${wl}-E'
17677 ;;
17678 esac
17679 fi
17680 case $host_cpu in
17681 hppa*64*|ia64*)
17682 hardcode_direct_CXX=no
17683 hardcode_shlibpath_var_CXX=no
17684 ;;
17685 *)
17686 hardcode_direct_CXX=yes
17687 hardcode_direct_absolute_CXX=yes
17688 hardcode_minus_L_CXX=yes # Not in the search PATH,
17689 # but as the default
17690 # location of the library.
17691 ;;
17692 esac
17693
17694 case $cc_basename in
17695 CC*)
17696 # FIXME: insert proper C++ library support
17697 ld_shlibs_CXX=no
17698 ;;
17699 aCC*)
17700 case $host_cpu in
17701 hppa*64*)
17702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17703 ;;
17704 ia64*)
17705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17706 ;;
17707 *)
17708 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17709 ;;
17710 esac
17711 # Commands to make compiler produce verbose output that lists
17712 # what "hidden" libraries, object files and flags are used when
17713 # linking a shared library.
17714 #
17715 # There doesn't appear to be a way to prevent this compiler from
17716 # explicitly linking system object files so we need to strip them
17717 # from the output so that they don't get included in the library
17718 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017719 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 +000017720 ;;
17721 *)
17722 if test "$GXX" = yes; then
17723 if test $with_gnu_ld = no; then
17724 case $host_cpu in
17725 hppa*64*)
17726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17727 ;;
17728 ia64*)
cristyda16f162011-02-19 23:52:17 +000017729 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 +000017730 ;;
17731 *)
cristyda16f162011-02-19 23:52:17 +000017732 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 +000017733 ;;
17734 esac
17735 fi
17736 else
17737 # FIXME: insert proper C++ library support
17738 ld_shlibs_CXX=no
17739 fi
17740 ;;
17741 esac
17742 ;;
17743
17744 interix[3-9]*)
17745 hardcode_direct_CXX=no
17746 hardcode_shlibpath_var_CXX=no
17747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17748 export_dynamic_flag_spec_CXX='${wl}-E'
17749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17750 # Instead, shared libraries are loaded at an image base (0x10000000 by
17751 # default) and relocated if they conflict, which is a slow very memory
17752 # consuming and fragmenting process. To avoid this, we pick a random,
17753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17755 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'
17756 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'
17757 ;;
17758 irix5* | irix6*)
17759 case $cc_basename in
17760 CC*)
17761 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017762 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 +000017763
17764 # Archives containing C++ object files must be created using
17765 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17766 # necessary to make sure instantiated templates are included
17767 # in the archive.
17768 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17769 ;;
17770 *)
17771 if test "$GXX" = yes; then
17772 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017773 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 +000017774 else
cristyda16f162011-02-19 23:52:17 +000017775 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 +000017776 fi
17777 fi
17778 link_all_deplibs_CXX=yes
17779 ;;
17780 esac
17781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17782 hardcode_libdir_separator_CXX=:
17783 inherit_rpath_CXX=yes
17784 ;;
17785
cristy0c60a692010-11-04 01:09:47 +000017786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017787 case $cc_basename in
17788 KCC*)
17789 # Kuck and Associates, Inc. (KAI) C++ Compiler
17790
17791 # KCC will only create a shared library if the output file
17792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17793 # to its proper name (with version) after linking.
17794 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'
17795 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'
17796 # Commands to make compiler produce verbose output that lists
17797 # what "hidden" libraries, object files and flags are used when
17798 # linking a shared library.
17799 #
17800 # There doesn't appear to be a way to prevent this compiler from
17801 # explicitly linking system object files so we need to strip them
17802 # from the output so that they don't get included in the library
17803 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017804 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 +000017805
17806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17808
17809 # Archives containing C++ object files must be created using
17810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17812 ;;
17813 icpc* | ecpc* )
17814 # Intel C++
17815 with_gnu_ld=yes
17816 # version 8.0 and above of icpc choke on multiply defined symbols
17817 # if we add $predep_objects and $postdep_objects, however 7.1 and
17818 # earlier do not add the objects themselves.
17819 case `$CC -V 2>&1` in
17820 *"Version 7."*)
17821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17822 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'
17823 ;;
17824 *) # Version 8.0 or newer
17825 tmp_idyn=
17826 case $host_cpu in
17827 ia64*) tmp_idyn=' -i_dynamic';;
17828 esac
17829 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17830 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'
17831 ;;
17832 esac
17833 archive_cmds_need_lc_CXX=no
17834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17836 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17837 ;;
17838 pgCC* | pgcpp*)
17839 # Portland Group C++ compiler
17840 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017841 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017842 prelink_cmds_CXX='tpldir=Template.dir~
17843 rm -rf $tpldir~
17844 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017845 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017846 old_archive_cmds_CXX='tpldir=Template.dir~
17847 rm -rf $tpldir~
17848 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017849 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017850 $RANLIB $oldlib'
17851 archive_cmds_CXX='tpldir=Template.dir~
17852 rm -rf $tpldir~
17853 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017854 $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 +000017855 archive_expsym_cmds_CXX='tpldir=Template.dir~
17856 rm -rf $tpldir~
17857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017858 $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 +000017859 ;;
cristy0c60a692010-11-04 01:09:47 +000017860 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17862 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'
17863 ;;
17864 esac
17865
17866 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17867 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017868 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 +000017869 ;;
17870 cxx*)
17871 # Compaq C++
17872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17873 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'
17874
17875 runpath_var=LD_RUN_PATH
17876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17877 hardcode_libdir_separator_CXX=:
17878
17879 # Commands to make compiler produce verbose output that lists
17880 # what "hidden" libraries, object files and flags are used when
17881 # linking a shared library.
17882 #
17883 # There doesn't appear to be a way to prevent this compiler from
17884 # explicitly linking system object files so we need to strip them
17885 # from the output so that they don't get included in the library
17886 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017887 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 +000017888 ;;
cristy0c60a692010-11-04 01:09:47 +000017889 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017890 # IBM XL 8.0 on PPC, with GNU ld
17891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17893 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17894 if test "x$supports_anon_versioning" = xyes; then
17895 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17897 echo "local: *; };" >> $output_objdir/$libname.ver~
17898 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17899 fi
17900 ;;
17901 *)
17902 case `$CC -V 2>&1 | sed 5q` in
17903 *Sun\ C*)
17904 # Sun C++ 5.9
17905 no_undefined_flag_CXX=' -zdefs'
17906 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17907 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'
17908 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017909 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 +000017910 compiler_needs_object_CXX=yes
17911
17912 # Not sure whether something based on
17913 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17914 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017915 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017916
17917 # Archives containing C++ object files must be created using
17918 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17919 # necessary to make sure instantiated templates are included
17920 # in the archive.
17921 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17922 ;;
17923 esac
17924 ;;
17925 esac
17926 ;;
17927
17928 lynxos*)
17929 # FIXME: insert proper C++ library support
17930 ld_shlibs_CXX=no
17931 ;;
17932
17933 m88k*)
17934 # FIXME: insert proper C++ library support
17935 ld_shlibs_CXX=no
17936 ;;
17937
17938 mvs*)
17939 case $cc_basename in
17940 cxx*)
17941 # FIXME: insert proper C++ library support
17942 ld_shlibs_CXX=no
17943 ;;
17944 *)
17945 # FIXME: insert proper C++ library support
17946 ld_shlibs_CXX=no
17947 ;;
17948 esac
17949 ;;
17950
17951 netbsd*)
17952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17953 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17954 wlarc=
17955 hardcode_libdir_flag_spec_CXX='-R$libdir'
17956 hardcode_direct_CXX=yes
17957 hardcode_shlibpath_var_CXX=no
17958 fi
17959 # Workaround some broken pre-1.5 toolchains
17960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17961 ;;
17962
17963 *nto* | *qnx*)
17964 ld_shlibs_CXX=yes
17965 ;;
17966
17967 openbsd2*)
17968 # C++ shared libraries are fairly broken
17969 ld_shlibs_CXX=no
17970 ;;
17971
17972 openbsd*)
17973 if test -f /usr/libexec/ld.so; then
17974 hardcode_direct_CXX=yes
17975 hardcode_shlibpath_var_CXX=no
17976 hardcode_direct_absolute_CXX=yes
17977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17980 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17981 export_dynamic_flag_spec_CXX='${wl}-E'
17982 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17983 fi
cristy0c60a692010-11-04 01:09:47 +000017984 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017985 else
17986 ld_shlibs_CXX=no
17987 fi
17988 ;;
17989
17990 osf3* | osf4* | osf5*)
17991 case $cc_basename in
17992 KCC*)
17993 # Kuck and Associates, Inc. (KAI) C++ Compiler
17994
17995 # KCC will only create a shared library if the output file
17996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17997 # to its proper name (with version) after linking.
17998 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'
17999
18000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18001 hardcode_libdir_separator_CXX=:
18002
18003 # Archives containing C++ object files must be created using
18004 # the KAI C++ compiler.
18005 case $host in
18006 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18007 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18008 esac
18009 ;;
18010 RCC*)
18011 # Rational C++ 2.4.1
18012 # FIXME: insert proper C++ library support
18013 ld_shlibs_CXX=no
18014 ;;
18015 cxx*)
18016 case $host in
18017 osf3*)
18018 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018019 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 +000018020 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18021 ;;
18022 *)
18023 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018024 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 +000018025 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18026 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018027 $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 +000018028 $RM $lib.exp'
18029 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18030 ;;
18031 esac
18032
18033 hardcode_libdir_separator_CXX=:
18034
18035 # Commands to make compiler produce verbose output that lists
18036 # what "hidden" libraries, object files and flags are used when
18037 # linking a shared library.
18038 #
18039 # There doesn't appear to be a way to prevent this compiler from
18040 # explicitly linking system object files so we need to strip them
18041 # from the output so that they don't get included in the library
18042 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018043 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 +000018044 ;;
18045 *)
18046 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18047 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18048 case $host in
18049 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018050 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 +000018051 ;;
18052 *)
cristyda16f162011-02-19 23:52:17 +000018053 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 +000018054 ;;
18055 esac
18056
18057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18058 hardcode_libdir_separator_CXX=:
18059
18060 # Commands to make compiler produce verbose output that lists
18061 # what "hidden" libraries, object files and flags are used when
18062 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018064
18065 else
18066 # FIXME: insert proper C++ library support
18067 ld_shlibs_CXX=no
18068 fi
18069 ;;
18070 esac
18071 ;;
18072
18073 psos*)
18074 # FIXME: insert proper C++ library support
18075 ld_shlibs_CXX=no
18076 ;;
18077
18078 sunos4*)
18079 case $cc_basename in
18080 CC*)
18081 # Sun C++ 4.x
18082 # FIXME: insert proper C++ library support
18083 ld_shlibs_CXX=no
18084 ;;
18085 lcc*)
18086 # Lucid
18087 # FIXME: insert proper C++ library support
18088 ld_shlibs_CXX=no
18089 ;;
18090 *)
18091 # FIXME: insert proper C++ library support
18092 ld_shlibs_CXX=no
18093 ;;
18094 esac
18095 ;;
18096
18097 solaris*)
18098 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018099 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018100 # Sun C++ 4.2, 5.x and Centerline C++
18101 archive_cmds_need_lc_CXX=yes
18102 no_undefined_flag_CXX=' -zdefs'
18103 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18104 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18105 $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'
18106
18107 hardcode_libdir_flag_spec_CXX='-R$libdir'
18108 hardcode_shlibpath_var_CXX=no
18109 case $host_os in
18110 solaris2.[0-5] | solaris2.[0-5].*) ;;
18111 *)
18112 # The compiler driver will combine and reorder linker options,
18113 # but understands `-z linker_flag'.
18114 # Supported since Solaris 2.6 (maybe 2.5.1?)
18115 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18116 ;;
18117 esac
18118 link_all_deplibs_CXX=yes
18119
cristy0c60a692010-11-04 01:09:47 +000018120 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018121
18122 # Archives containing C++ object files must be created using
18123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18124 # necessary to make sure instantiated templates are included
18125 # in the archive.
18126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18127 ;;
18128 gcx*)
18129 # Green Hills C++ Compiler
18130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18131
18132 # The C++ compiler must be used to create the archive.
18133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18134 ;;
18135 *)
18136 # GNU C++ compiler with Solaris linker
18137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18139 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018140 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 +000018141 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 +000018142 $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 +000018143
18144 # Commands to make compiler produce verbose output that lists
18145 # what "hidden" libraries, object files and flags are used when
18146 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018148 else
18149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18150 # platform.
18151 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18152 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18153 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18154
18155 # Commands to make compiler produce verbose output that lists
18156 # what "hidden" libraries, object files and flags are used when
18157 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018158 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018159 fi
18160
18161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18162 case $host_os in
18163 solaris2.[0-5] | solaris2.[0-5].*) ;;
18164 *)
18165 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18166 ;;
18167 esac
18168 fi
18169 ;;
18170 esac
18171 ;;
18172
18173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18174 no_undefined_flag_CXX='${wl}-z,text'
18175 archive_cmds_need_lc_CXX=no
18176 hardcode_shlibpath_var_CXX=no
18177 runpath_var='LD_RUN_PATH'
18178
18179 case $cc_basename in
18180 CC*)
18181 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 ;;
18184 *)
18185 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18186 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 ;;
18188 esac
18189 ;;
18190
18191 sysv5* | sco3.2v5* | sco5v6*)
18192 # Note: We can NOT use -z defs as we might desire, because we do not
18193 # link with -lc, and that would cause any symbols used from libc to
18194 # always be unresolved, which means just about no library would
18195 # ever link correctly. If we're not using GNU ld we use -z text
18196 # though, which does catch some bad symbols but isn't as heavy-handed
18197 # as -z defs.
18198 no_undefined_flag_CXX='${wl}-z,text'
18199 allow_undefined_flag_CXX='${wl}-z,nodefs'
18200 archive_cmds_need_lc_CXX=no
18201 hardcode_shlibpath_var_CXX=no
18202 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18203 hardcode_libdir_separator_CXX=':'
18204 link_all_deplibs_CXX=yes
18205 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18206 runpath_var='LD_RUN_PATH'
18207
18208 case $cc_basename in
18209 CC*)
18210 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18211 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 +000018212 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18213 '"$old_archive_cmds_CXX"
18214 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18215 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018216 ;;
18217 *)
18218 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18220 ;;
18221 esac
18222 ;;
18223
18224 tandem*)
18225 case $cc_basename in
18226 NCC*)
18227 # NonStop-UX NCC 3.20
18228 # FIXME: insert proper C++ library support
18229 ld_shlibs_CXX=no
18230 ;;
18231 *)
18232 # FIXME: insert proper C++ library support
18233 ld_shlibs_CXX=no
18234 ;;
18235 esac
18236 ;;
18237
18238 vxworks*)
18239 # FIXME: insert proper C++ library support
18240 ld_shlibs_CXX=no
18241 ;;
18242
18243 *)
18244 # FIXME: insert proper C++ library support
18245 ld_shlibs_CXX=no
18246 ;;
18247 esac
18248
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18250$as_echo "$ld_shlibs_CXX" >&6; }
18251 test "$ld_shlibs_CXX" = no && can_build_shared=no
18252
18253 GCC_CXX="$GXX"
18254 LD_CXX="$LD"
18255
18256 ## CAVEAT EMPTOR:
18257 ## There is no encapsulation within the following macros, do not change
18258 ## the running order or otherwise move them around unless you know exactly
18259 ## what you are doing...
18260 # Dependencies to place before and after the object being linked:
18261predep_objects_CXX=
18262postdep_objects_CXX=
18263predeps_CXX=
18264postdeps_CXX=
18265compiler_lib_search_path_CXX=
18266
18267cat > conftest.$ac_ext <<_LT_EOF
18268class Foo
18269{
18270public:
18271 Foo (void) { a = 0; }
18272private:
18273 int a;
18274};
18275_LT_EOF
18276
cristyda16f162011-02-19 23:52:17 +000018277
18278_lt_libdeps_save_CFLAGS=$CFLAGS
18279case "$CC $CFLAGS " in #(
18280*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18281*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018282*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018283esac
18284
cristy73bd4a52010-10-05 11:24:23 +000018285if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18286 (eval $ac_compile) 2>&5
18287 ac_status=$?
18288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18289 test $ac_status = 0; }; then
18290 # Parse the compiler output and extract the necessary
18291 # objects, libraries and library flags.
18292
18293 # Sentinel used to keep track of whether or not we are before
18294 # the conftest object file.
18295 pre_test_object_deps_done=no
18296
18297 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018298 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018299
18300 -L* | -R* | -l*)
18301 # Some compilers place space between "-{L,R}" and the path.
18302 # Remove the space.
18303 if test $p = "-L" ||
18304 test $p = "-R"; then
18305 prev=$p
18306 continue
cristy73bd4a52010-10-05 11:24:23 +000018307 fi
18308
cristyda16f162011-02-19 23:52:17 +000018309 # Expand the sysroot to ease extracting the directories later.
18310 if test -z "$prev"; then
18311 case $p in
18312 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18313 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18314 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18315 esac
18316 fi
18317 case $p in
18318 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18319 esac
cristy73bd4a52010-10-05 11:24:23 +000018320 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018321 case ${prev} in
18322 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018323 # Internal compiler library paths should come after those
18324 # provided the user. The postdeps already come after the
18325 # user supplied libs so there is no need to process them.
18326 if test -z "$compiler_lib_search_path_CXX"; then
18327 compiler_lib_search_path_CXX="${prev}${p}"
18328 else
18329 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18330 fi
18331 ;;
18332 # The "-l" case would never come before the object being
18333 # linked, so don't bother handling this case.
18334 esac
18335 else
18336 if test -z "$postdeps_CXX"; then
18337 postdeps_CXX="${prev}${p}"
18338 else
18339 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18340 fi
18341 fi
cristyda16f162011-02-19 23:52:17 +000018342 prev=
cristy73bd4a52010-10-05 11:24:23 +000018343 ;;
18344
cristyda16f162011-02-19 23:52:17 +000018345 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018346 *.$objext)
18347 # This assumes that the test object file only shows up
18348 # once in the compiler output.
18349 if test "$p" = "conftest.$objext"; then
18350 pre_test_object_deps_done=yes
18351 continue
18352 fi
18353
18354 if test "$pre_test_object_deps_done" = no; then
18355 if test -z "$predep_objects_CXX"; then
18356 predep_objects_CXX="$p"
18357 else
18358 predep_objects_CXX="$predep_objects_CXX $p"
18359 fi
18360 else
18361 if test -z "$postdep_objects_CXX"; then
18362 postdep_objects_CXX="$p"
18363 else
18364 postdep_objects_CXX="$postdep_objects_CXX $p"
18365 fi
18366 fi
18367 ;;
18368
18369 *) ;; # Ignore the rest.
18370
18371 esac
18372 done
18373
18374 # Clean up.
18375 rm -f a.out a.exe
18376else
18377 echo "libtool.m4: error: problem compiling CXX test program"
18378fi
18379
18380$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018381CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018382
18383# PORTME: override above test on systems where it is broken
18384case $host_os in
18385interix[3-9]*)
18386 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18387 # hack all around it, let's just trust "g++" to DTRT.
18388 predep_objects_CXX=
18389 postdep_objects_CXX=
18390 postdeps_CXX=
18391 ;;
18392
18393linux*)
18394 case `$CC -V 2>&1 | sed 5q` in
18395 *Sun\ C*)
18396 # Sun C++ 5.9
18397
18398 # The more standards-conforming stlport4 library is
18399 # incompatible with the Cstd library. Avoid specifying
18400 # it if it's in CXXFLAGS. Ignore libCrun as
18401 # -library=stlport4 depends on it.
18402 case " $CXX $CXXFLAGS " in
18403 *" -library=stlport4 "*)
18404 solaris_use_stlport4=yes
18405 ;;
18406 esac
18407
18408 if test "$solaris_use_stlport4" != yes; then
18409 postdeps_CXX='-library=Cstd -library=Crun'
18410 fi
18411 ;;
18412 esac
18413 ;;
18414
18415solaris*)
18416 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018417 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018418 # The more standards-conforming stlport4 library is
18419 # incompatible with the Cstd library. Avoid specifying
18420 # it if it's in CXXFLAGS. Ignore libCrun as
18421 # -library=stlport4 depends on it.
18422 case " $CXX $CXXFLAGS " in
18423 *" -library=stlport4 "*)
18424 solaris_use_stlport4=yes
18425 ;;
18426 esac
18427
18428 # Adding this requires a known-good setup of shared libraries for
18429 # Sun compiler versions before 5.6, else PIC objects from an old
18430 # archive will be linked into the output, leading to subtle bugs.
18431 if test "$solaris_use_stlport4" != yes; then
18432 postdeps_CXX='-library=Cstd -library=Crun'
18433 fi
18434 ;;
18435 esac
18436 ;;
18437esac
18438
18439
18440case " $postdeps_CXX " in
18441*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18442esac
18443 compiler_lib_search_dirs_CXX=
18444if test -n "${compiler_lib_search_path_CXX}"; then
18445 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18446fi
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478 lt_prog_compiler_wl_CXX=
18479lt_prog_compiler_pic_CXX=
18480lt_prog_compiler_static_CXX=
18481
cristy73bd4a52010-10-05 11:24:23 +000018482
18483 # C++ specific cases for pic, static, wl, etc.
18484 if test "$GXX" = yes; then
18485 lt_prog_compiler_wl_CXX='-Wl,'
18486 lt_prog_compiler_static_CXX='-static'
18487
18488 case $host_os in
18489 aix*)
18490 # All AIX code is PIC.
18491 if test "$host_cpu" = ia64; then
18492 # AIX 5 now supports IA64 processor
18493 lt_prog_compiler_static_CXX='-Bstatic'
18494 fi
18495 ;;
18496
18497 amigaos*)
18498 case $host_cpu in
18499 powerpc)
18500 # see comment about AmigaOS4 .so support
18501 lt_prog_compiler_pic_CXX='-fPIC'
18502 ;;
18503 m68k)
18504 # FIXME: we need at least 68020 code to build shared libraries, but
18505 # adding the `-m68020' flag to GCC prevents building anything better,
18506 # like `-m68040'.
18507 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18508 ;;
18509 esac
18510 ;;
18511
18512 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18513 # PIC is the default for these OSes.
18514 ;;
18515 mingw* | cygwin* | os2* | pw32* | cegcc*)
18516 # This hack is so that the source file can tell whether it is being
18517 # built for inclusion in a dll (and should export symbols for example).
18518 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18519 # (--disable-auto-import) libraries
18520 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18521 ;;
18522 darwin* | rhapsody*)
18523 # PIC is the default on this platform
18524 # Common symbols not allowed in MH_DYLIB files
18525 lt_prog_compiler_pic_CXX='-fno-common'
18526 ;;
18527 *djgpp*)
18528 # DJGPP does not support shared libraries at all
18529 lt_prog_compiler_pic_CXX=
18530 ;;
cristy0c60a692010-11-04 01:09:47 +000018531 haiku*)
18532 # PIC is the default for Haiku.
18533 # The "-static" flag exists, but is broken.
18534 lt_prog_compiler_static_CXX=
18535 ;;
cristy73bd4a52010-10-05 11:24:23 +000018536 interix[3-9]*)
18537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18538 # Instead, we relocate shared libraries at runtime.
18539 ;;
18540 sysv4*MP*)
18541 if test -d /usr/nec; then
18542 lt_prog_compiler_pic_CXX=-Kconform_pic
18543 fi
18544 ;;
18545 hpux*)
18546 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18547 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18548 # sets the default TLS model and affects inlining.
18549 case $host_cpu in
18550 hppa*64*)
18551 ;;
18552 *)
18553 lt_prog_compiler_pic_CXX='-fPIC'
18554 ;;
18555 esac
18556 ;;
18557 *qnx* | *nto*)
18558 # QNX uses GNU C++, but need to define -shared option too, otherwise
18559 # it will coredump.
18560 lt_prog_compiler_pic_CXX='-fPIC -shared'
18561 ;;
18562 *)
18563 lt_prog_compiler_pic_CXX='-fPIC'
18564 ;;
18565 esac
18566 else
18567 case $host_os in
18568 aix[4-9]*)
18569 # All AIX code is PIC.
18570 if test "$host_cpu" = ia64; then
18571 # AIX 5 now supports IA64 processor
18572 lt_prog_compiler_static_CXX='-Bstatic'
18573 else
18574 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18575 fi
18576 ;;
18577 chorus*)
18578 case $cc_basename in
18579 cxch68*)
18580 # Green Hills C++ Compiler
18581 # _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"
18582 ;;
18583 esac
18584 ;;
cristyda16f162011-02-19 23:52:17 +000018585 mingw* | cygwin* | os2* | pw32* | cegcc*)
18586 # This hack is so that the source file can tell whether it is being
18587 # built for inclusion in a dll (and should export symbols for example).
18588 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18589 ;;
cristy73bd4a52010-10-05 11:24:23 +000018590 dgux*)
18591 case $cc_basename in
18592 ec++*)
18593 lt_prog_compiler_pic_CXX='-KPIC'
18594 ;;
18595 ghcx*)
18596 # Green Hills C++ Compiler
18597 lt_prog_compiler_pic_CXX='-pic'
18598 ;;
18599 *)
18600 ;;
18601 esac
18602 ;;
18603 freebsd* | dragonfly*)
18604 # FreeBSD uses GNU C++
18605 ;;
18606 hpux9* | hpux10* | hpux11*)
18607 case $cc_basename in
18608 CC*)
18609 lt_prog_compiler_wl_CXX='-Wl,'
18610 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18611 if test "$host_cpu" != ia64; then
18612 lt_prog_compiler_pic_CXX='+Z'
18613 fi
18614 ;;
18615 aCC*)
18616 lt_prog_compiler_wl_CXX='-Wl,'
18617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18618 case $host_cpu in
18619 hppa*64*|ia64*)
18620 # +Z the default
18621 ;;
18622 *)
18623 lt_prog_compiler_pic_CXX='+Z'
18624 ;;
18625 esac
18626 ;;
18627 *)
18628 ;;
18629 esac
18630 ;;
18631 interix*)
18632 # This is c89, which is MS Visual C++ (no shared libs)
18633 # Anyone wants to do a port?
18634 ;;
18635 irix5* | irix6* | nonstopux*)
18636 case $cc_basename in
18637 CC*)
18638 lt_prog_compiler_wl_CXX='-Wl,'
18639 lt_prog_compiler_static_CXX='-non_shared'
18640 # CC pic flag -KPIC is the default.
18641 ;;
18642 *)
18643 ;;
18644 esac
18645 ;;
cristy0c60a692010-11-04 01:09:47 +000018646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018647 case $cc_basename in
18648 KCC*)
18649 # KAI C++ Compiler
18650 lt_prog_compiler_wl_CXX='--backend -Wl,'
18651 lt_prog_compiler_pic_CXX='-fPIC'
18652 ;;
18653 ecpc* )
18654 # old Intel C++ for x86_64 which still supported -KPIC.
18655 lt_prog_compiler_wl_CXX='-Wl,'
18656 lt_prog_compiler_pic_CXX='-KPIC'
18657 lt_prog_compiler_static_CXX='-static'
18658 ;;
18659 icpc* )
18660 # Intel C++, used to be incompatible with GCC.
18661 # ICC 10 doesn't accept -KPIC any more.
18662 lt_prog_compiler_wl_CXX='-Wl,'
18663 lt_prog_compiler_pic_CXX='-fPIC'
18664 lt_prog_compiler_static_CXX='-static'
18665 ;;
18666 pgCC* | pgcpp*)
18667 # Portland Group C++ compiler
18668 lt_prog_compiler_wl_CXX='-Wl,'
18669 lt_prog_compiler_pic_CXX='-fpic'
18670 lt_prog_compiler_static_CXX='-Bstatic'
18671 ;;
18672 cxx*)
18673 # Compaq C++
18674 # Make sure the PIC flag is empty. It appears that all Alpha
18675 # Linux and Compaq Tru64 Unix objects are PIC.
18676 lt_prog_compiler_pic_CXX=
18677 lt_prog_compiler_static_CXX='-non_shared'
18678 ;;
cristy0c60a692010-11-04 01:09:47 +000018679 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18680 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018681 lt_prog_compiler_wl_CXX='-Wl,'
18682 lt_prog_compiler_pic_CXX='-qpic'
18683 lt_prog_compiler_static_CXX='-qstaticlink'
18684 ;;
18685 *)
18686 case `$CC -V 2>&1 | sed 5q` in
18687 *Sun\ C*)
18688 # Sun C++ 5.9
18689 lt_prog_compiler_pic_CXX='-KPIC'
18690 lt_prog_compiler_static_CXX='-Bstatic'
18691 lt_prog_compiler_wl_CXX='-Qoption ld '
18692 ;;
18693 esac
18694 ;;
18695 esac
18696 ;;
18697 lynxos*)
18698 ;;
18699 m88k*)
18700 ;;
18701 mvs*)
18702 case $cc_basename in
18703 cxx*)
18704 lt_prog_compiler_pic_CXX='-W c,exportall'
18705 ;;
18706 *)
18707 ;;
18708 esac
18709 ;;
18710 netbsd*)
18711 ;;
18712 *qnx* | *nto*)
18713 # QNX uses GNU C++, but need to define -shared option too, otherwise
18714 # it will coredump.
18715 lt_prog_compiler_pic_CXX='-fPIC -shared'
18716 ;;
18717 osf3* | osf4* | osf5*)
18718 case $cc_basename in
18719 KCC*)
18720 lt_prog_compiler_wl_CXX='--backend -Wl,'
18721 ;;
18722 RCC*)
18723 # Rational C++ 2.4.1
18724 lt_prog_compiler_pic_CXX='-pic'
18725 ;;
18726 cxx*)
18727 # Digital/Compaq C++
18728 lt_prog_compiler_wl_CXX='-Wl,'
18729 # Make sure the PIC flag is empty. It appears that all Alpha
18730 # Linux and Compaq Tru64 Unix objects are PIC.
18731 lt_prog_compiler_pic_CXX=
18732 lt_prog_compiler_static_CXX='-non_shared'
18733 ;;
18734 *)
18735 ;;
18736 esac
18737 ;;
18738 psos*)
18739 ;;
18740 solaris*)
18741 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018742 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018743 # Sun C++ 4.2, 5.x and Centerline C++
18744 lt_prog_compiler_pic_CXX='-KPIC'
18745 lt_prog_compiler_static_CXX='-Bstatic'
18746 lt_prog_compiler_wl_CXX='-Qoption ld '
18747 ;;
18748 gcx*)
18749 # Green Hills C++ Compiler
18750 lt_prog_compiler_pic_CXX='-PIC'
18751 ;;
18752 *)
18753 ;;
18754 esac
18755 ;;
18756 sunos4*)
18757 case $cc_basename in
18758 CC*)
18759 # Sun C++ 4.x
18760 lt_prog_compiler_pic_CXX='-pic'
18761 lt_prog_compiler_static_CXX='-Bstatic'
18762 ;;
18763 lcc*)
18764 # Lucid
18765 lt_prog_compiler_pic_CXX='-pic'
18766 ;;
18767 *)
18768 ;;
18769 esac
18770 ;;
18771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18772 case $cc_basename in
18773 CC*)
18774 lt_prog_compiler_wl_CXX='-Wl,'
18775 lt_prog_compiler_pic_CXX='-KPIC'
18776 lt_prog_compiler_static_CXX='-Bstatic'
18777 ;;
18778 esac
18779 ;;
18780 tandem*)
18781 case $cc_basename in
18782 NCC*)
18783 # NonStop-UX NCC 3.20
18784 lt_prog_compiler_pic_CXX='-KPIC'
18785 ;;
18786 *)
18787 ;;
18788 esac
18789 ;;
18790 vxworks*)
18791 ;;
18792 *)
18793 lt_prog_compiler_can_build_shared_CXX=no
18794 ;;
18795 esac
18796 fi
18797
18798case $host_os in
18799 # For platforms which do not support PIC, -DPIC is meaningless:
18800 *djgpp*)
18801 lt_prog_compiler_pic_CXX=
18802 ;;
18803 *)
18804 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18805 ;;
18806esac
cristy73bd4a52010-10-05 11:24:23 +000018807
cristyda16f162011-02-19 23:52:17 +000018808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18809$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18810if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18811 $as_echo_n "(cached) " >&6
18812else
18813 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18814fi
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18816$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18817lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018818
18819#
18820# Check to make sure the PIC flag actually works.
18821#
18822if test -n "$lt_prog_compiler_pic_CXX"; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18824$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018825if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018826 $as_echo_n "(cached) " >&6
18827else
18828 lt_cv_prog_compiler_pic_works_CXX=no
18829 ac_outfile=conftest.$ac_objext
18830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18831 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18832 # Insert the option either (1) after the last *FLAGS variable, or
18833 # (2) before a word containing "conftest.", or (3) at the end.
18834 # Note that $ac_compile itself does not contain backslashes and begins
18835 # with a dollar sign (not a hyphen), so the echo should work correctly.
18836 # The option is referenced via a variable to avoid confusing sed.
18837 lt_compile=`echo "$ac_compile" | $SED \
18838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18840 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018842 (eval "$lt_compile" 2>conftest.err)
18843 ac_status=$?
18844 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018846 if (exit $ac_status) && test -s "$ac_outfile"; then
18847 # The compiler can only warn and ignore the option if not recognized
18848 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18852 lt_cv_prog_compiler_pic_works_CXX=yes
18853 fi
18854 fi
18855 $RM conftest*
18856
18857fi
18858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18859$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18860
18861if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18862 case $lt_prog_compiler_pic_CXX in
18863 "" | " "*) ;;
18864 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18865 esac
18866else
18867 lt_prog_compiler_pic_CXX=
18868 lt_prog_compiler_can_build_shared_CXX=no
18869fi
18870
18871fi
18872
18873
18874
cristyda16f162011-02-19 23:52:17 +000018875
18876
cristy73bd4a52010-10-05 11:24:23 +000018877#
18878# Check to make sure the static flag actually works.
18879#
18880wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18882$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018883if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018884 $as_echo_n "(cached) " >&6
18885else
18886 lt_cv_prog_compiler_static_works_CXX=no
18887 save_LDFLAGS="$LDFLAGS"
18888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18889 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18891 # The linker can only warn and ignore the option if not recognized
18892 # So say no if there are warnings
18893 if test -s conftest.err; then
18894 # Append any errors to the config.log.
18895 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018896 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18898 if diff conftest.exp conftest.er2 >/dev/null; then
18899 lt_cv_prog_compiler_static_works_CXX=yes
18900 fi
18901 else
18902 lt_cv_prog_compiler_static_works_CXX=yes
18903 fi
18904 fi
18905 $RM -r conftest*
18906 LDFLAGS="$save_LDFLAGS"
18907
18908fi
18909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18910$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18911
18912if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18913 :
18914else
18915 lt_prog_compiler_static_CXX=
18916fi
18917
18918
18919
18920
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18922$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018923if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018924 $as_echo_n "(cached) " >&6
18925else
18926 lt_cv_prog_compiler_c_o_CXX=no
18927 $RM -r conftest 2>/dev/null
18928 mkdir conftest
18929 cd conftest
18930 mkdir out
18931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18932
18933 lt_compiler_flag="-o out/conftest2.$ac_objext"
18934 # Insert the option either (1) after the last *FLAGS variable, or
18935 # (2) before a word containing "conftest.", or (3) at the end.
18936 # Note that $ac_compile itself does not contain backslashes and begins
18937 # with a dollar sign (not a hyphen), so the echo should work correctly.
18938 lt_compile=`echo "$ac_compile" | $SED \
18939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18941 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018943 (eval "$lt_compile" 2>out/conftest.err)
18944 ac_status=$?
18945 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18948 then
18949 # The compiler can only warn and ignore the option if not recognized
18950 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18954 lt_cv_prog_compiler_c_o_CXX=yes
18955 fi
18956 fi
18957 chmod u+w . 2>&5
18958 $RM conftest*
18959 # SGI C++ compiler will create directory out/ii_files/ for
18960 # template instantiation
18961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18962 $RM out/* && rmdir out
18963 cd ..
18964 $RM -r conftest
18965 $RM conftest*
18966
18967fi
18968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18969$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18970
18971
18972
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18974$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018975if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018976 $as_echo_n "(cached) " >&6
18977else
18978 lt_cv_prog_compiler_c_o_CXX=no
18979 $RM -r conftest 2>/dev/null
18980 mkdir conftest
18981 cd conftest
18982 mkdir out
18983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18984
18985 lt_compiler_flag="-o out/conftest2.$ac_objext"
18986 # Insert the option either (1) after the last *FLAGS variable, or
18987 # (2) before a word containing "conftest.", or (3) at the end.
18988 # Note that $ac_compile itself does not contain backslashes and begins
18989 # with a dollar sign (not a hyphen), so the echo should work correctly.
18990 lt_compile=`echo "$ac_compile" | $SED \
18991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18993 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018995 (eval "$lt_compile" 2>out/conftest.err)
18996 ac_status=$?
18997 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19000 then
19001 # The compiler can only warn and ignore the option if not recognized
19002 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19006 lt_cv_prog_compiler_c_o_CXX=yes
19007 fi
19008 fi
19009 chmod u+w . 2>&5
19010 $RM conftest*
19011 # SGI C++ compiler will create directory out/ii_files/ for
19012 # template instantiation
19013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19014 $RM out/* && rmdir out
19015 cd ..
19016 $RM -r conftest
19017 $RM conftest*
19018
19019fi
19020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19021$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19022
19023
19024
19025
19026hard_links="nottested"
19027if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19028 # do not overwrite the value of need_locks provided by the user
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19030$as_echo_n "checking if we can lock with hard links... " >&6; }
19031 hard_links=yes
19032 $RM conftest*
19033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19034 touch conftest.a
19035 ln conftest.a conftest.b 2>&5 || hard_links=no
19036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19038$as_echo "$hard_links" >&6; }
19039 if test "$hard_links" = no; then
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19041$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19042 need_locks=warn
19043 fi
19044else
19045 need_locks=no
19046fi
19047
19048
19049
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19051$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19052
19053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019054 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019055 case $host_os in
19056 aix[4-9]*)
19057 # If we're using GNU nm, then we don't want the "-C" option.
19058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019059 # Also, AIX nm treats weak defined symbols like other global defined
19060 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019061 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019062 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 +000019063 else
19064 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'
19065 fi
19066 ;;
19067 pw32*)
19068 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019069 ;;
cristy73bd4a52010-10-05 11:24:23 +000019070 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019071 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019072 cl*)
19073 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19074 ;;
cristyda16f162011-02-19 23:52:17 +000019075 *)
19076 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'
19077 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19078 ;;
19079 esac
19080 ;;
cristy73bd4a52010-10-05 11:24:23 +000019081 *)
19082 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019083 ;;
cristy73bd4a52010-10-05 11:24:23 +000019084 esac
cristy73bd4a52010-10-05 11:24:23 +000019085
19086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19087$as_echo "$ld_shlibs_CXX" >&6; }
19088test "$ld_shlibs_CXX" = no && can_build_shared=no
19089
19090with_gnu_ld_CXX=$with_gnu_ld
19091
19092
19093
19094
19095
19096
19097#
19098# Do we need to explicitly link libc?
19099#
19100case "x$archive_cmds_need_lc_CXX" in
19101x|xyes)
19102 # Assume -lc should be added
19103 archive_cmds_need_lc_CXX=yes
19104
19105 if test "$enable_shared" = yes && test "$GCC" = yes; then
19106 case $archive_cmds_CXX in
19107 *'~'*)
19108 # FIXME: we may have to deal with multi-command sequences.
19109 ;;
19110 '$CC '*)
19111 # Test whether the compiler implicitly links with -lc since on some
19112 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19113 # to ld, don't add -lc before -lgcc.
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19115$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019116if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019117 $as_echo_n "(cached) " >&6
19118else
19119 $RM conftest*
19120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019121
cristy0c60a692010-11-04 01:09:47 +000019122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019123 (eval $ac_compile) 2>&5
19124 ac_status=$?
19125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19126 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019127 soname=conftest
19128 lib=conftest
19129 libobjs=conftest.$ac_objext
19130 deplibs=
19131 wl=$lt_prog_compiler_wl_CXX
19132 pic_flag=$lt_prog_compiler_pic_CXX
19133 compiler_flags=-v
19134 linker_flags=-v
19135 verstring=
19136 output_objdir=.
19137 libname=conftest
19138 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19139 allow_undefined_flag_CXX=
19140 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 +000019141 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19142 ac_status=$?
19143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19144 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019145 then
19146 lt_cv_archive_cmds_need_lc_CXX=no
19147 else
19148 lt_cv_archive_cmds_need_lc_CXX=yes
19149 fi
19150 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19151 else
19152 cat conftest.err 1>&5
19153 fi
19154 $RM conftest*
19155
19156fi
19157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19158$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19159 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019160 ;;
19161 esac
19162 fi
19163 ;;
19164esac
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
cristy73bd4a52010-10-05 11:24:23 +000019227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19228$as_echo_n "checking dynamic linker characteristics... " >&6; }
19229
19230library_names_spec=
19231libname_spec='lib$name'
19232soname_spec=
19233shrext_cmds=".so"
19234postinstall_cmds=
19235postuninstall_cmds=
19236finish_cmds=
19237finish_eval=
19238shlibpath_var=
19239shlibpath_overrides_runpath=unknown
19240version_type=none
19241dynamic_linker="$host_os ld.so"
19242sys_lib_dlsearch_path_spec="/lib /usr/lib"
19243need_lib_prefix=unknown
19244hardcode_into_libs=no
19245
19246# when you set need_version to no, make sure it does not cause -set_version
19247# flags to be left without arguments
19248need_version=unknown
19249
19250case $host_os in
19251aix3*)
cristy99bd5232011-12-07 14:38:20 +000019252 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19254 shlibpath_var=LIBPATH
19255
19256 # AIX 3 has no versioning support, so we append a major version to the name.
19257 soname_spec='${libname}${release}${shared_ext}$major'
19258 ;;
19259
19260aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019261 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019262 need_lib_prefix=no
19263 need_version=no
19264 hardcode_into_libs=yes
19265 if test "$host_cpu" = ia64; then
19266 # AIX 5 supports IA64
19267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19268 shlibpath_var=LD_LIBRARY_PATH
19269 else
19270 # With GCC up to 2.95.x, collect2 would create an import file
19271 # for dependence libraries. The import file would start with
19272 # the line `#! .'. This would cause the generated library to
19273 # depend on `.', always an invalid library. This was fixed in
19274 # development snapshots of GCC prior to 3.0.
19275 case $host_os in
19276 aix4 | aix4.[01] | aix4.[01].*)
19277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19278 echo ' yes '
19279 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19280 :
19281 else
19282 can_build_shared=no
19283 fi
19284 ;;
19285 esac
19286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19287 # soname into executable. Probably we can add versioning support to
19288 # collect2, so additional links can be useful in future.
19289 if test "$aix_use_runtimelinking" = yes; then
19290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19291 # instead of lib<name>.a to let people know that these are not
19292 # typical AIX shared libraries.
19293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19294 else
19295 # We preserve .a as extension for shared libraries through AIX4.2
19296 # and later when we are not doing run time linking.
19297 library_names_spec='${libname}${release}.a $libname.a'
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 fi
19300 shlibpath_var=LIBPATH
19301 fi
19302 ;;
19303
19304amigaos*)
19305 case $host_cpu in
19306 powerpc)
19307 # Since July 2007 AmigaOS4 officially supports .so libraries.
19308 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 ;;
19311 m68k)
19312 library_names_spec='$libname.ixlibrary $libname.a'
19313 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019314 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 +000019315 ;;
19316 esac
19317 ;;
19318
19319beos*)
19320 library_names_spec='${libname}${shared_ext}'
19321 dynamic_linker="$host_os ld.so"
19322 shlibpath_var=LIBRARY_PATH
19323 ;;
19324
19325bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019326 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019327 need_version=no
19328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19329 soname_spec='${libname}${release}${shared_ext}$major'
19330 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19331 shlibpath_var=LD_LIBRARY_PATH
19332 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19333 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19334 # the default ld.so.conf also contains /usr/contrib/lib and
19335 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19336 # libtool to hard-code these into programs
19337 ;;
19338
19339cygwin* | mingw* | pw32* | cegcc*)
19340 version_type=windows
19341 shrext_cmds=".dll"
19342 need_version=no
19343 need_lib_prefix=no
19344
cristyda16f162011-02-19 23:52:17 +000019345 case $GCC,$cc_basename in
19346 yes,*)
19347 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019348 library_names_spec='$libname.dll.a'
19349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19350 postinstall_cmds='base_file=`basename \${file}`~
19351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19352 dldir=$destdir/`dirname \$dlpath`~
19353 test -d \$dldir || mkdir -p \$dldir~
19354 $install_prog $dir/$dlname \$dldir/$dlname~
19355 chmod a+x \$dldir/$dlname~
19356 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19357 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19358 fi'
19359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19360 dlpath=$dir/\$dldll~
19361 $RM \$dlpath'
19362 shlibpath_overrides_runpath=yes
19363
19364 case $host_os in
19365 cygwin*)
19366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019368
cristy73bd4a52010-10-05 11:24:23 +000019369 ;;
19370 mingw* | cegcc*)
19371 # MinGW DLLs use traditional 'lib' prefix
19372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019373 ;;
19374 pw32*)
19375 # pw32 DLLs use 'pw' prefix rather than 'lib'
19376 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19377 ;;
19378 esac
cristyda16f162011-02-19 23:52:17 +000019379 dynamic_linker='Win32 ld.exe'
19380 ;;
19381
19382 *,cl*)
19383 # Native MSVC
19384 libname_spec='$name'
19385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19386 library_names_spec='${libname}.dll.lib'
19387
19388 case $build_os in
19389 mingw*)
19390 sys_lib_search_path_spec=
19391 lt_save_ifs=$IFS
19392 IFS=';'
19393 for lt_path in $LIB
19394 do
19395 IFS=$lt_save_ifs
19396 # Let DOS variable expansion print the short 8.3 style file name.
19397 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19398 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19399 done
19400 IFS=$lt_save_ifs
19401 # Convert to MSYS style.
19402 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19403 ;;
19404 cygwin*)
19405 # Convert to unix form, then to dos form, then back to unix form
19406 # but this time dos style (no spaces!) so that the unix form looks
19407 # like /cygdrive/c/PROGRA~1:/cygdr...
19408 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19409 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19410 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19411 ;;
19412 *)
19413 sys_lib_search_path_spec="$LIB"
19414 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19415 # It is most probably a Windows format PATH.
19416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19417 else
19418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19419 fi
19420 # FIXME: find the short name or the path components, as spaces are
19421 # common. (e.g. "Program Files" -> "PROGRA~1")
19422 ;;
19423 esac
19424
19425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19426 postinstall_cmds='base_file=`basename \${file}`~
19427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19428 dldir=$destdir/`dirname \$dlpath`~
19429 test -d \$dldir || mkdir -p \$dldir~
19430 $install_prog $dir/$dlname \$dldir/$dlname'
19431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19432 dlpath=$dir/\$dldll~
19433 $RM \$dlpath'
19434 shlibpath_overrides_runpath=yes
19435 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019436 ;;
19437
19438 *)
cristyda16f162011-02-19 23:52:17 +000019439 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019441 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019442 ;;
19443 esac
cristy73bd4a52010-10-05 11:24:23 +000019444 # FIXME: first we should search . and the directory the executable is in
19445 shlibpath_var=PATH
19446 ;;
19447
19448darwin* | rhapsody*)
19449 dynamic_linker="$host_os dyld"
19450 version_type=darwin
19451 need_lib_prefix=no
19452 need_version=no
19453 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19454 soname_spec='${libname}${release}${major}$shared_ext'
19455 shlibpath_overrides_runpath=yes
19456 shlibpath_var=DYLD_LIBRARY_PATH
19457 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19458
19459 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19460 ;;
19461
19462dgux*)
cristy99bd5232011-12-07 14:38:20 +000019463 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019464 need_lib_prefix=no
19465 need_version=no
19466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19467 soname_spec='${libname}${release}${shared_ext}$major'
19468 shlibpath_var=LD_LIBRARY_PATH
19469 ;;
19470
cristy73bd4a52010-10-05 11:24:23 +000019471freebsd* | dragonfly*)
19472 # DragonFly does not have aout. When/if they implement a new
19473 # versioning mechanism, adjust this.
19474 if test -x /usr/bin/objformat; then
19475 objformat=`/usr/bin/objformat`
19476 else
19477 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019478 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019479 *) objformat=elf ;;
19480 esac
19481 fi
19482 version_type=freebsd-$objformat
19483 case $version_type in
19484 freebsd-elf*)
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19486 need_version=no
19487 need_lib_prefix=no
19488 ;;
19489 freebsd-*)
19490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19491 need_version=yes
19492 ;;
19493 esac
19494 shlibpath_var=LD_LIBRARY_PATH
19495 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019496 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019497 shlibpath_overrides_runpath=yes
19498 ;;
19499 freebsd3.[01]* | freebsdelf3.[01]*)
19500 shlibpath_overrides_runpath=yes
19501 hardcode_into_libs=yes
19502 ;;
19503 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19504 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19505 shlibpath_overrides_runpath=no
19506 hardcode_into_libs=yes
19507 ;;
19508 *) # from 4.6 on, and DragonFly
19509 shlibpath_overrides_runpath=yes
19510 hardcode_into_libs=yes
19511 ;;
19512 esac
19513 ;;
19514
19515gnu*)
cristy99bd5232011-12-07 14:38:20 +000019516 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019517 need_lib_prefix=no
19518 need_version=no
19519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19520 soname_spec='${libname}${release}${shared_ext}$major'
19521 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019522 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019523 hardcode_into_libs=yes
19524 ;;
19525
cristy0c60a692010-11-04 01:09:47 +000019526haiku*)
cristy99bd5232011-12-07 14:38:20 +000019527 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019528 need_lib_prefix=no
19529 need_version=no
19530 dynamic_linker="$host_os runtime_loader"
19531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19532 soname_spec='${libname}${release}${shared_ext}$major'
19533 shlibpath_var=LIBRARY_PATH
19534 shlibpath_overrides_runpath=yes
19535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19536 hardcode_into_libs=yes
19537 ;;
19538
cristy73bd4a52010-10-05 11:24:23 +000019539hpux9* | hpux10* | hpux11*)
19540 # Give a soname corresponding to the major version so that dld.sl refuses to
19541 # link against other versions.
19542 version_type=sunos
19543 need_lib_prefix=no
19544 need_version=no
19545 case $host_cpu in
19546 ia64*)
19547 shrext_cmds='.so'
19548 hardcode_into_libs=yes
19549 dynamic_linker="$host_os dld.so"
19550 shlibpath_var=LD_LIBRARY_PATH
19551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19553 soname_spec='${libname}${release}${shared_ext}$major'
19554 if test "X$HPUX_IA64_MODE" = X32; then
19555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19556 else
19557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19558 fi
19559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19560 ;;
19561 hppa*64*)
19562 shrext_cmds='.sl'
19563 hardcode_into_libs=yes
19564 dynamic_linker="$host_os dld.sl"
19565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19568 soname_spec='${libname}${release}${shared_ext}$major'
19569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19571 ;;
19572 *)
19573 shrext_cmds='.sl'
19574 dynamic_linker="$host_os dld.sl"
19575 shlibpath_var=SHLIB_PATH
19576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19578 soname_spec='${libname}${release}${shared_ext}$major'
19579 ;;
19580 esac
cristy0c60a692010-11-04 01:09:47 +000019581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019582 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019583 # or fails outright, so override atomically:
19584 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019585 ;;
19586
19587interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019588 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019589 need_lib_prefix=no
19590 need_version=no
19591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19592 soname_spec='${libname}${release}${shared_ext}$major'
19593 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19594 shlibpath_var=LD_LIBRARY_PATH
19595 shlibpath_overrides_runpath=no
19596 hardcode_into_libs=yes
19597 ;;
19598
19599irix5* | irix6* | nonstopux*)
19600 case $host_os in
19601 nonstopux*) version_type=nonstopux ;;
19602 *)
19603 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000019604 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019605 else
19606 version_type=irix
19607 fi ;;
19608 esac
19609 need_lib_prefix=no
19610 need_version=no
19611 soname_spec='${libname}${release}${shared_ext}$major'
19612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19613 case $host_os in
19614 irix5* | nonstopux*)
19615 libsuff= shlibsuff=
19616 ;;
19617 *)
19618 case $LD in # libtool.m4 will add one of these switches to LD
19619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19620 libsuff= shlibsuff= libmagic=32-bit;;
19621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19622 libsuff=32 shlibsuff=N32 libmagic=N32;;
19623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19625 *) libsuff= shlibsuff= libmagic=never-match;;
19626 esac
19627 ;;
19628 esac
19629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19630 shlibpath_overrides_runpath=no
19631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19633 hardcode_into_libs=yes
19634 ;;
19635
19636# No shared lib support for Linux oldld, aout, or coff.
19637linux*oldld* | linux*aout* | linux*coff*)
19638 dynamic_linker=no
19639 ;;
19640
cristy99bd5232011-12-07 14:38:20 +000019641# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000019642linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000019643 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019644 need_lib_prefix=no
19645 need_version=no
19646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19647 soname_spec='${libname}${release}${shared_ext}$major'
19648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19649 shlibpath_var=LD_LIBRARY_PATH
19650 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019651
cristy73bd4a52010-10-05 11:24:23 +000019652 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019653 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019654 $as_echo_n "(cached) " >&6
19655else
19656 lt_cv_shlibpath_overrides_runpath=no
19657 save_LDFLAGS=$LDFLAGS
19658 save_libdir=$libdir
19659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019662/* end confdefs.h. */
19663
19664int
19665main ()
19666{
19667
19668 ;
19669 return 0;
19670}
19671_ACEOF
19672if ac_fn_cxx_try_link "$LINENO"; then :
19673 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019674 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019675fi
19676fi
19677rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019679 LDFLAGS=$save_LDFLAGS
19680 libdir=$save_libdir
19681
19682fi
19683
19684 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019685
19686 # This implies no fast_install, which is unacceptable.
19687 # Some rework will be needed to allow for fast_install
19688 # before this can be enabled.
19689 hardcode_into_libs=yes
19690
19691 # Add ABI-specific directories to the system library path.
19692 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19693
19694 # Append ld.so.conf contents to the search path
19695 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019696 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 +000019697 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019698
cristy73bd4a52010-10-05 11:24:23 +000019699 fi
19700
19701 # We used to test for /lib/ld.so.1 and disable shared libraries on
19702 # powerpc, because MkLinux only supported shared libraries with the
19703 # GNU dynamic linker. Since this was broken with cross compilers,
19704 # most powerpc-linux boxes support dynamic linking these days and
19705 # people can always --disable-shared, the test was removed, and we
19706 # assume the GNU/Linux dynamic linker is in use.
19707 dynamic_linker='GNU/Linux ld.so'
19708 ;;
19709
19710netbsd*)
19711 version_type=sunos
19712 need_lib_prefix=no
19713 need_version=no
19714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19717 dynamic_linker='NetBSD (a.out) ld.so'
19718 else
19719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19720 soname_spec='${libname}${release}${shared_ext}$major'
19721 dynamic_linker='NetBSD ld.elf_so'
19722 fi
19723 shlibpath_var=LD_LIBRARY_PATH
19724 shlibpath_overrides_runpath=yes
19725 hardcode_into_libs=yes
19726 ;;
19727
19728newsos6)
cristy99bd5232011-12-07 14:38:20 +000019729 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19731 shlibpath_var=LD_LIBRARY_PATH
19732 shlibpath_overrides_runpath=yes
19733 ;;
19734
19735*nto* | *qnx*)
19736 version_type=qnx
19737 need_lib_prefix=no
19738 need_version=no
19739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19740 soname_spec='${libname}${release}${shared_ext}$major'
19741 shlibpath_var=LD_LIBRARY_PATH
19742 shlibpath_overrides_runpath=no
19743 hardcode_into_libs=yes
19744 dynamic_linker='ldqnx.so'
19745 ;;
19746
19747openbsd*)
19748 version_type=sunos
19749 sys_lib_dlsearch_path_spec="/usr/lib"
19750 need_lib_prefix=no
19751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19752 case $host_os in
19753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19754 *) need_version=no ;;
19755 esac
19756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19758 shlibpath_var=LD_LIBRARY_PATH
19759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19760 case $host_os in
19761 openbsd2.[89] | openbsd2.[89].*)
19762 shlibpath_overrides_runpath=no
19763 ;;
19764 *)
19765 shlibpath_overrides_runpath=yes
19766 ;;
19767 esac
19768 else
19769 shlibpath_overrides_runpath=yes
19770 fi
19771 ;;
19772
19773os2*)
19774 libname_spec='$name'
19775 shrext_cmds=".dll"
19776 need_lib_prefix=no
19777 library_names_spec='$libname${shared_ext} $libname.a'
19778 dynamic_linker='OS/2 ld.exe'
19779 shlibpath_var=LIBPATH
19780 ;;
19781
19782osf3* | osf4* | osf5*)
19783 version_type=osf
19784 need_lib_prefix=no
19785 need_version=no
19786 soname_spec='${libname}${release}${shared_ext}$major'
19787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19788 shlibpath_var=LD_LIBRARY_PATH
19789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19791 ;;
19792
19793rdos*)
19794 dynamic_linker=no
19795 ;;
19796
19797solaris*)
cristy99bd5232011-12-07 14:38:20 +000019798 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019799 need_lib_prefix=no
19800 need_version=no
19801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19802 soname_spec='${libname}${release}${shared_ext}$major'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 shlibpath_overrides_runpath=yes
19805 hardcode_into_libs=yes
19806 # ldd complains unless libraries are executable
19807 postinstall_cmds='chmod +x $lib'
19808 ;;
19809
19810sunos4*)
19811 version_type=sunos
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19814 shlibpath_var=LD_LIBRARY_PATH
19815 shlibpath_overrides_runpath=yes
19816 if test "$with_gnu_ld" = yes; then
19817 need_lib_prefix=no
19818 fi
19819 need_version=yes
19820 ;;
19821
19822sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019823 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 soname_spec='${libname}${release}${shared_ext}$major'
19826 shlibpath_var=LD_LIBRARY_PATH
19827 case $host_vendor in
19828 sni)
19829 shlibpath_overrides_runpath=no
19830 need_lib_prefix=no
19831 runpath_var=LD_RUN_PATH
19832 ;;
19833 siemens)
19834 need_lib_prefix=no
19835 ;;
19836 motorola)
19837 need_lib_prefix=no
19838 need_version=no
19839 shlibpath_overrides_runpath=no
19840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19841 ;;
19842 esac
19843 ;;
19844
19845sysv4*MP*)
19846 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000019847 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19849 soname_spec='$libname${shared_ext}.$major'
19850 shlibpath_var=LD_LIBRARY_PATH
19851 fi
19852 ;;
19853
19854sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19855 version_type=freebsd-elf
19856 need_lib_prefix=no
19857 need_version=no
19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19859 soname_spec='${libname}${release}${shared_ext}$major'
19860 shlibpath_var=LD_LIBRARY_PATH
19861 shlibpath_overrides_runpath=yes
19862 hardcode_into_libs=yes
19863 if test "$with_gnu_ld" = yes; then
19864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19865 else
19866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19867 case $host_os in
19868 sco3.2v5*)
19869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19870 ;;
19871 esac
19872 fi
19873 sys_lib_dlsearch_path_spec='/usr/lib'
19874 ;;
19875
19876tpf*)
19877 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019878 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019879 need_lib_prefix=no
19880 need_version=no
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 shlibpath_overrides_runpath=no
19884 hardcode_into_libs=yes
19885 ;;
19886
19887uts4*)
cristy99bd5232011-12-07 14:38:20 +000019888 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19890 soname_spec='${libname}${release}${shared_ext}$major'
19891 shlibpath_var=LD_LIBRARY_PATH
19892 ;;
19893
19894*)
19895 dynamic_linker=no
19896 ;;
19897esac
19898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19899$as_echo "$dynamic_linker" >&6; }
19900test "$dynamic_linker" = no && can_build_shared=no
19901
19902variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19903if test "$GCC" = yes; then
19904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19905fi
19906
19907if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19909fi
19910if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19912fi
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
cristy0c60a692010-11-04 01:09:47 +000019949
19950
cristy73bd4a52010-10-05 11:24:23 +000019951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19952$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19953hardcode_action_CXX=
19954if test -n "$hardcode_libdir_flag_spec_CXX" ||
19955 test -n "$runpath_var_CXX" ||
19956 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19957
19958 # We can hardcode non-existent directories.
19959 if test "$hardcode_direct_CXX" != no &&
19960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19961 # have to relink, otherwise we might link with an installed library
19962 # when we should be linking with a yet-to-be-installed one
19963 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19964 test "$hardcode_minus_L_CXX" != no; then
19965 # Linking always hardcodes the temporary library directory.
19966 hardcode_action_CXX=relink
19967 else
19968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19969 hardcode_action_CXX=immediate
19970 fi
19971else
19972 # We cannot hardcode anything, or else we can only hardcode existing
19973 # directories.
19974 hardcode_action_CXX=unsupported
19975fi
19976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19977$as_echo "$hardcode_action_CXX" >&6; }
19978
19979if test "$hardcode_action_CXX" = relink ||
19980 test "$inherit_rpath_CXX" = yes; then
19981 # Fast installation is not supported
19982 enable_fast_install=no
19983elif test "$shlibpath_overrides_runpath" = yes ||
19984 test "$enable_shared" = no; then
19985 # Fast installation is not necessary
19986 enable_fast_install=needless
19987fi
19988
19989
19990
19991
19992
19993
19994
19995 fi # test -n "$compiler"
19996
19997 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019998 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019999 LDCXX=$LD
20000 LD=$lt_save_LD
20001 GCC=$lt_save_GCC
20002 with_gnu_ld=$lt_save_with_gnu_ld
20003 lt_cv_path_LDCXX=$lt_cv_path_LD
20004 lt_cv_path_LD=$lt_save_path_LD
20005 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20006 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20007fi # test "$_lt_caught_CXX_error" != yes
20008
20009ac_ext=c
20010ac_cpp='$CPP $CPPFLAGS'
20011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
cristy99bd5232011-12-07 14:38:20 +000020027
20028
cristy73bd4a52010-10-05 11:24:23 +000020029 ac_config_commands="$ac_config_commands libtool"
20030
20031
20032
20033
20034# Only expand once:
20035
20036
20037
cristy3ed852e2009-09-05 21:47:34 +000020038
20039
20040# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020041
20042
20043
20044
20045
20046
20047
cristy73bd4a52010-10-05 11:24:23 +000020048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20049$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020050if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020051 $as_echo_n "(cached) " >&6
20052else
20053
20054module=yes
20055eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020056module=no
20057eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020058
20059fi
20060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20061$as_echo "$libltdl_cv_shlibext" >&6; }
20062if test -n "$libltdl_cv_shlibext"; then
20063
20064cat >>confdefs.h <<_ACEOF
20065#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20066_ACEOF
20067
20068fi
cristy99bd5232011-12-07 14:38:20 +000020069if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20070
20071cat >>confdefs.h <<_ACEOF
20072#define LT_SHARED_EXT "$libltdl_cv_shrext"
20073_ACEOF
20074
20075fi
cristy73bd4a52010-10-05 11:24:23 +000020076
20077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20078$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020079if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020080 $as_echo_n "(cached) " >&6
20081else
20082 lt_cv_module_path_var="$shlibpath_var"
20083fi
20084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20085$as_echo "$lt_cv_module_path_var" >&6; }
20086if test -n "$lt_cv_module_path_var"; then
20087
20088cat >>confdefs.h <<_ACEOF
20089#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20090_ACEOF
20091
20092fi
20093
20094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20095$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020096if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020097 $as_echo_n "(cached) " >&6
20098else
20099 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20100fi
20101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20102$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20103if test -n "$lt_cv_sys_dlsearch_path"; then
20104 sys_dlsearch_path=
20105 for dir in $lt_cv_sys_dlsearch_path; do
20106 if test -z "$sys_dlsearch_path"; then
20107 sys_dlsearch_path="$dir"
20108 else
20109 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20110 fi
20111 done
20112
20113cat >>confdefs.h <<_ACEOF
20114#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20115_ACEOF
20116
20117fi
20118
20119
20120LT_DLLOADERS=
20121
20122
20123ac_ext=c
20124ac_cpp='$CPP $CPPFLAGS'
20125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128
20129
20130LIBADD_DLOPEN=
20131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20132$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020133if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020134 $as_echo_n "(cached) " >&6
20135else
20136 ac_func_search_save_LIBS=$LIBS
20137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138/* end confdefs.h. */
20139
20140/* Override any GCC internal prototype to avoid an error.
20141 Use char because int might match the return type of a GCC
20142 builtin and then its argument prototype would still apply. */
20143#ifdef __cplusplus
20144extern "C"
20145#endif
20146char dlopen ();
20147int
20148main ()
20149{
20150return dlopen ();
20151 ;
20152 return 0;
20153}
20154_ACEOF
20155for ac_lib in '' dl; do
20156 if test -z "$ac_lib"; then
20157 ac_res="none required"
20158 else
20159 ac_res=-l$ac_lib
20160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20161 fi
20162 if ac_fn_c_try_link "$LINENO"; then :
20163 ac_cv_search_dlopen=$ac_res
20164fi
20165rm -f core conftest.err conftest.$ac_objext \
20166 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020167 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020168 break
20169fi
20170done
cristyda16f162011-02-19 23:52:17 +000020171if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020172
20173else
20174 ac_cv_search_dlopen=no
20175fi
20176rm conftest.$ac_ext
20177LIBS=$ac_func_search_save_LIBS
20178fi
20179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20180$as_echo "$ac_cv_search_dlopen" >&6; }
20181ac_res=$ac_cv_search_dlopen
20182if test "$ac_res" != no; then :
20183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20184
20185$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20186
20187 if test "$ac_cv_search_dlopen" != "none required" ; then
20188 LIBADD_DLOPEN="-ldl"
20189 fi
20190 libltdl_cv_lib_dl_dlopen="yes"
20191 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20192else
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194/* end confdefs.h. */
20195#if HAVE_DLFCN_H
20196# include <dlfcn.h>
20197#endif
20198
20199int
20200main ()
20201{
20202dlopen(0, 0);
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207if ac_fn_c_try_link "$LINENO"; then :
20208
20209$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20210
20211 libltdl_cv_func_dlopen="yes"
20212 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20213else
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20215$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020216if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020217 $as_echo_n "(cached) " >&6
20218else
20219 ac_check_lib_save_LIBS=$LIBS
20220LIBS="-lsvld $LIBS"
20221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222/* end confdefs.h. */
20223
20224/* Override any GCC internal prototype to avoid an error.
20225 Use char because int might match the return type of a GCC
20226 builtin and then its argument prototype would still apply. */
20227#ifdef __cplusplus
20228extern "C"
20229#endif
20230char dlopen ();
20231int
20232main ()
20233{
20234return dlopen ();
20235 ;
20236 return 0;
20237}
20238_ACEOF
20239if ac_fn_c_try_link "$LINENO"; then :
20240 ac_cv_lib_svld_dlopen=yes
20241else
20242 ac_cv_lib_svld_dlopen=no
20243fi
20244rm -f core conftest.err conftest.$ac_objext \
20245 conftest$ac_exeext conftest.$ac_ext
20246LIBS=$ac_check_lib_save_LIBS
20247fi
20248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20249$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020250if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020251
20252$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20253
20254 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20255 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20256fi
20257
20258fi
20259rm -f core conftest.err conftest.$ac_objext \
20260 conftest$ac_exeext conftest.$ac_ext
20261fi
20262
20263if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20264then
20265 lt_save_LIBS="$LIBS"
20266 LIBS="$LIBS $LIBADD_DLOPEN"
20267 for ac_func in dlerror
20268do :
20269 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020270if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020271 cat >>confdefs.h <<_ACEOF
20272#define HAVE_DLERROR 1
20273_ACEOF
20274
20275fi
20276done
20277
20278 LIBS="$lt_save_LIBS"
20279fi
20280
20281
20282LIBADD_SHL_LOAD=
20283ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020284if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020285
20286$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20287
20288 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20289else
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20291$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020292if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020293 $as_echo_n "(cached) " >&6
20294else
20295 ac_check_lib_save_LIBS=$LIBS
20296LIBS="-ldld $LIBS"
20297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298/* end confdefs.h. */
20299
20300/* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20303#ifdef __cplusplus
20304extern "C"
20305#endif
20306char shl_load ();
20307int
20308main ()
20309{
20310return shl_load ();
20311 ;
20312 return 0;
20313}
20314_ACEOF
20315if ac_fn_c_try_link "$LINENO"; then :
20316 ac_cv_lib_dld_shl_load=yes
20317else
20318 ac_cv_lib_dld_shl_load=no
20319fi
20320rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322LIBS=$ac_check_lib_save_LIBS
20323fi
20324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20325$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020326if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020327
20328$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20329
20330 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20331 LIBADD_SHL_LOAD="-ldld"
20332fi
20333
20334fi
20335
20336
20337
20338case $host_os in
20339darwin[1567].*)
20340# We only want this for pre-Mac OS X 10.4.
20341 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020342if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020343
20344$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20345
20346 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20347fi
20348
20349 ;;
20350beos*)
20351 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20352 ;;
20353cygwin* | mingw* | os2* | pw32*)
20354 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20355"
cristyda16f162011-02-19 23:52:17 +000020356if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020357 ac_have_decl=1
20358else
20359 ac_have_decl=0
20360fi
20361
20362cat >>confdefs.h <<_ACEOF
20363#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20364_ACEOF
20365
20366 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20367 ;;
20368esac
20369
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20371$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020372if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020373 $as_echo_n "(cached) " >&6
20374else
20375 ac_check_lib_save_LIBS=$LIBS
20376LIBS="-ldld $LIBS"
20377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378/* end confdefs.h. */
20379
20380/* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20383#ifdef __cplusplus
20384extern "C"
20385#endif
20386char dld_link ();
20387int
20388main ()
20389{
20390return dld_link ();
20391 ;
20392 return 0;
20393}
20394_ACEOF
20395if ac_fn_c_try_link "$LINENO"; then :
20396 ac_cv_lib_dld_dld_link=yes
20397else
20398 ac_cv_lib_dld_dld_link=no
20399fi
20400rm -f core conftest.err conftest.$ac_objext \
20401 conftest$ac_exeext conftest.$ac_ext
20402LIBS=$ac_check_lib_save_LIBS
20403fi
20404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20405$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020406if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020407
20408$as_echo "#define HAVE_DLD 1" >>confdefs.h
20409
20410 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20411fi
20412
20413
20414
20415
20416LT_DLPREOPEN=
20417if test -n "$LT_DLLOADERS"
20418then
20419 for lt_loader in $LT_DLLOADERS; do
20420 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20421 done
20422
20423$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20424
20425fi
20426
20427
20428LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20429
20430
20431ac_ext=c
20432ac_cpp='$CPP $CPPFLAGS'
20433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435ac_compiler_gnu=$ac_cv_c_compiler_gnu
20436
20437
20438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20439$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020440if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020441 $as_echo_n "(cached) " >&6
20442else
20443 lt_cv_sys_symbol_underscore=no
20444 cat > conftest.$ac_ext <<_LT_EOF
20445void nm_test_func(){}
20446int main(){nm_test_func;return 0;}
20447_LT_EOF
20448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20449 (eval $ac_compile) 2>&5
20450 ac_status=$?
20451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20452 test $ac_status = 0; }; then
20453 # Now try to grab the symbols.
20454 ac_nlist=conftest.nm
20455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20457 ac_status=$?
20458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20459 test $ac_status = 0; } && test -s "$ac_nlist"; then
20460 # See whether the symbols have a leading underscore.
20461 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20462 lt_cv_sys_symbol_underscore=yes
20463 else
20464 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20465 :
20466 else
20467 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20468 fi
20469 fi
20470 else
20471 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20472 fi
20473 else
20474 echo "configure: failed program was:" >&5
20475 cat conftest.c >&5
20476 fi
20477 rm -rf conftest*
20478
20479fi
20480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20481$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20482 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20483
20484
20485if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20486 if test x"$libltdl_cv_func_dlopen" = xyes ||
20487 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20489$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020490if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020491 $as_echo_n "(cached) " >&6
20492else
20493 libltdl_cv_need_uscore=unknown
20494 save_LIBS="$LIBS"
20495 LIBS="$LIBS $LIBADD_DLOPEN"
20496 if test "$cross_compiling" = yes; then :
20497 libltdl_cv_need_uscore=cross
20498else
20499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20500 lt_status=$lt_dlunknown
20501 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020502#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020503#include "confdefs.h"
20504
20505#if HAVE_DLFCN_H
20506#include <dlfcn.h>
20507#endif
20508
20509#include <stdio.h>
20510
20511#ifdef RTLD_GLOBAL
20512# define LT_DLGLOBAL RTLD_GLOBAL
20513#else
20514# ifdef DL_GLOBAL
20515# define LT_DLGLOBAL DL_GLOBAL
20516# else
20517# define LT_DLGLOBAL 0
20518# endif
20519#endif
20520
20521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20522 find out it does not work in some platform. */
20523#ifndef LT_DLLAZY_OR_NOW
20524# ifdef RTLD_LAZY
20525# define LT_DLLAZY_OR_NOW RTLD_LAZY
20526# else
20527# ifdef DL_LAZY
20528# define LT_DLLAZY_OR_NOW DL_LAZY
20529# else
20530# ifdef RTLD_NOW
20531# define LT_DLLAZY_OR_NOW RTLD_NOW
20532# else
20533# ifdef DL_NOW
20534# define LT_DLLAZY_OR_NOW DL_NOW
20535# else
20536# define LT_DLLAZY_OR_NOW 0
20537# endif
20538# endif
20539# endif
20540# endif
20541#endif
20542
cristy0c60a692010-11-04 01:09:47 +000020543/* When -fvisbility=hidden is used, assume the code has been annotated
20544 correspondingly for the symbols needed. */
20545#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020546int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020547#endif
20548
cristyda16f162011-02-19 23:52:17 +000020549int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020550int main ()
20551{
20552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20553 int status = $lt_dlunknown;
20554
20555 if (self)
20556 {
20557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020558 else
20559 {
20560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20561 else puts (dlerror ());
20562 }
cristy73bd4a52010-10-05 11:24:23 +000020563 /* dlclose (self); */
20564 }
20565 else
20566 puts (dlerror ());
20567
20568 return status;
20569}
20570_LT_EOF
20571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20572 (eval $ac_link) 2>&5
20573 ac_status=$?
20574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20576 (./conftest; exit; ) >&5 2>/dev/null
20577 lt_status=$?
20578 case x$lt_status in
20579 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20580 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20581 x$lt_dlunknown|x*) ;;
20582 esac
20583 else :
20584 # compilation failed
20585
20586 fi
20587fi
20588rm -fr conftest*
20589
20590 LIBS="$save_LIBS"
20591
20592fi
20593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20594$as_echo "$libltdl_cv_need_uscore" >&6; }
20595 fi
20596fi
20597
20598if test x"$libltdl_cv_need_uscore" = xyes; then
20599
20600$as_echo "#define NEED_USCORE 1" >>confdefs.h
20601
20602fi
20603
20604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20605$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020606if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020607 $as_echo_n "(cached) " >&6
20608else
20609 # PORTME does your system automatically load deplibs for dlopen?
20610 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20611 # For now, we just catch OSes we know something about -- in the
20612 # future, we'll try test this programmatically.
20613 lt_cv_sys_dlopen_deplibs=unknown
20614 case $host_os in
20615 aix3*|aix4.1.*|aix4.2.*)
20616 # Unknown whether this is true for these versions of AIX, but
20617 # we want this `case' here to explicitly catch those versions.
20618 lt_cv_sys_dlopen_deplibs=unknown
20619 ;;
20620 aix[4-9]*)
20621 lt_cv_sys_dlopen_deplibs=yes
20622 ;;
20623 amigaos*)
20624 case $host_cpu in
20625 powerpc)
20626 lt_cv_sys_dlopen_deplibs=no
20627 ;;
20628 esac
20629 ;;
20630 darwin*)
20631 # Assuming the user has installed a libdl from somewhere, this is true
20632 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20633 lt_cv_sys_dlopen_deplibs=yes
20634 ;;
20635 freebsd* | dragonfly*)
20636 lt_cv_sys_dlopen_deplibs=yes
20637 ;;
cristy0c60a692010-11-04 01:09:47 +000020638 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020639 # GNU and its variants, using gnu ld.so (Glibc)
20640 lt_cv_sys_dlopen_deplibs=yes
20641 ;;
20642 hpux10*|hpux11*)
20643 lt_cv_sys_dlopen_deplibs=yes
20644 ;;
20645 interix*)
20646 lt_cv_sys_dlopen_deplibs=yes
20647 ;;
20648 irix[12345]*|irix6.[01]*)
20649 # Catch all versions of IRIX before 6.2, and indicate that we don't
20650 # know how it worked for any of those versions.
20651 lt_cv_sys_dlopen_deplibs=unknown
20652 ;;
20653 irix*)
20654 # The case above catches anything before 6.2, and it's known that
20655 # at 6.2 and later dlopen does load deplibs.
20656 lt_cv_sys_dlopen_deplibs=yes
20657 ;;
20658 netbsd*)
20659 lt_cv_sys_dlopen_deplibs=yes
20660 ;;
20661 openbsd*)
20662 lt_cv_sys_dlopen_deplibs=yes
20663 ;;
20664 osf[1234]*)
20665 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20666 # it did *not* use an RPATH in a shared library to find objects the
20667 # library depends on, so we explicitly say `no'.
20668 lt_cv_sys_dlopen_deplibs=no
20669 ;;
20670 osf5.0|osf5.0a|osf5.1)
20671 # dlopen *does* load deplibs and with the right loader patch applied
20672 # it even uses RPATH in a shared library to search for shared objects
20673 # that the library depends on, but there's no easy way to know if that
20674 # patch is installed. Since this is the case, all we can really
20675 # say is unknown -- it depends on the patch being installed. If
20676 # it is, this changes to `yes'. Without it, it would be `no'.
20677 lt_cv_sys_dlopen_deplibs=unknown
20678 ;;
20679 osf*)
20680 # the two cases above should catch all versions of osf <= 5.1. Read
20681 # the comments above for what we know about them.
20682 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20683 # is used to find them so we can finally say `yes'.
20684 lt_cv_sys_dlopen_deplibs=yes
20685 ;;
20686 qnx*)
20687 lt_cv_sys_dlopen_deplibs=yes
20688 ;;
20689 solaris*)
20690 lt_cv_sys_dlopen_deplibs=yes
20691 ;;
20692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20693 libltdl_cv_sys_dlopen_deplibs=yes
20694 ;;
20695 esac
20696
20697fi
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20699$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20700if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20701
20702$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20703
20704fi
20705
20706:
20707
20708for ac_header in argz.h
20709do :
20710 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20711"
cristyda16f162011-02-19 23:52:17 +000020712if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020713 cat >>confdefs.h <<_ACEOF
20714#define HAVE_ARGZ_H 1
20715_ACEOF
20716
20717fi
20718
20719done
20720
20721
20722ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20723# include <argz.h>
20724#endif
20725"
cristyda16f162011-02-19 23:52:17 +000020726if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020727
20728cat >>confdefs.h <<_ACEOF
20729#define HAVE_ERROR_T 1
20730_ACEOF
20731
20732
20733else
20734
20735$as_echo "#define error_t int" >>confdefs.h
20736
20737
20738$as_echo "#define __error_t_defined 1" >>confdefs.h
20739
20740fi
20741
20742
20743ARGZ_H=
20744for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20745 argz_next argz_stringify
20746do :
20747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020750 cat >>confdefs.h <<_ACEOF
20751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20752_ACEOF
20753
20754else
20755 ARGZ_H=argz.h;
20756
20757 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20758
20759fi
20760done
20761
20762
20763if test -z "$ARGZ_H"; then :
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20765$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020766if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020767 $as_echo_n "(cached) " >&6
20768else
20769 case $host_os in #(
20770 *cygwin*)
20771 lt_cv_sys_argz_works=no
20772 if test "$cross_compiling" != no; then
20773 lt_cv_sys_argz_works="guessing no"
20774 else
20775 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20776 save_IFS=$IFS
20777 IFS=-.
20778 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20779 IFS=$save_IFS
20780 lt_os_major=${2-0}
20781 lt_os_minor=${3-0}
20782 lt_os_micro=${4-0}
20783 if test "$lt_os_major" -gt 1 \
20784 || { test "$lt_os_major" -eq 1 \
20785 && { test "$lt_os_minor" -gt 5 \
20786 || { test "$lt_os_minor" -eq 5 \
20787 && test "$lt_os_micro" -gt 24; }; }; }; then
20788 lt_cv_sys_argz_works=yes
20789 fi
20790 fi
20791 ;; #(
20792 *) lt_cv_sys_argz_works=yes ;;
20793 esac
20794fi
20795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20796$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020797 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020798
20799$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20800
20801else
20802 ARGZ_H=argz.h
20803
20804
20805 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20806
20807fi
20808fi
20809
20810
20811
20812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20813$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020814if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020815 $as_echo_n "(cached) " >&6
20816else
20817 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20818 libltdl_cv_preloaded_symbols=yes
20819 else
20820 libltdl_cv_preloaded_symbols=no
20821 fi
20822
20823fi
20824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20825$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20826if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20827
20828$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20829
20830fi
20831
20832# Set options
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844# Check whether --with-included_ltdl was given.
20845if test "${with_included_ltdl+set}" = set; then :
20846 withval=$with_included_ltdl;
20847fi
20848
20849
20850if test "x$with_included_ltdl" != xyes; then
20851 # We are not being forced to use the included libltdl sources, so
20852 # decide whether there is a useful installed version we can use.
20853 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20854
20855"
cristyda16f162011-02-19 23:52:17 +000020856if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020857 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20858 #include <ltdl.h>
20859"
cristyda16f162011-02-19 23:52:17 +000020860if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20862$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020863if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020864 $as_echo_n "(cached) " >&6
20865else
20866 ac_check_lib_save_LIBS=$LIBS
20867LIBS="-lltdl $LIBS"
20868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869/* end confdefs.h. */
20870
20871/* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20874#ifdef __cplusplus
20875extern "C"
20876#endif
20877char lt_dladvise_preload ();
20878int
20879main ()
20880{
20881return lt_dladvise_preload ();
20882 ;
20883 return 0;
20884}
20885_ACEOF
20886if ac_fn_c_try_link "$LINENO"; then :
20887 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20888else
20889 ac_cv_lib_ltdl_lt_dladvise_preload=no
20890fi
20891rm -f core conftest.err conftest.$ac_objext \
20892 conftest$ac_exeext conftest.$ac_ext
20893LIBS=$ac_check_lib_save_LIBS
20894fi
20895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20896$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020897if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020898 with_included_ltdl=no
20899else
20900 with_included_ltdl=yes
20901fi
20902
20903else
20904 with_included_ltdl=yes
20905fi
20906
20907else
20908 with_included_ltdl=yes
20909fi
20910
20911
20912fi
20913
20914
20915
20916
20917# Check whether --with-ltdl_include was given.
20918if test "${with_ltdl_include+set}" = set; then :
20919 withval=$with_ltdl_include;
20920fi
20921
20922
20923if test -n "$with_ltdl_include"; then
20924 if test -f "$with_ltdl_include/ltdl.h"; then :
20925 else
cristy98dddb52010-11-04 00:30:15 +000020926 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020927 fi
20928else
20929 with_ltdl_include=no
20930fi
20931
20932
20933# Check whether --with-ltdl_lib was given.
20934if test "${with_ltdl_lib+set}" = set; then :
20935 withval=$with_ltdl_lib;
20936fi
20937
20938
20939if test -n "$with_ltdl_lib"; then
20940 if test -f "$with_ltdl_lib/libltdl.la"; then :
20941 else
cristy98dddb52010-11-04 00:30:15 +000020942 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020943 fi
20944else
20945 with_ltdl_lib=no
20946fi
20947
20948case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20949 ,yes,no,no,)
20950 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020951 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020952 "") enable_ltdl_convenience=yes
20953 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20954esac
20955LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20956LTDLDEPS=$LIBLTDL
20957LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20958
20959
20960
20961
20962
20963# For backwards non-gettext consistent compatibility...
20964INCLTDL="$LTDLINCL"
20965
20966
20967 ;;
20968 ,no,no,no,)
20969 # If the included ltdl is not to be used, then use the
20970 # preinstalled libltdl we found.
20971
20972$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20973
20974 LIBLTDL=-lltdl
20975 LTDLDEPS=
20976 LTDLINCL=
20977 ;;
20978 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020979 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020980 ;;
20981 *) with_included_ltdl=no
20982 LIBLTDL="-L$with_ltdl_lib -lltdl"
20983 LTDLDEPS=
20984 LTDLINCL="-I$with_ltdl_include"
20985 ;;
20986esac
20987INCLTDL="$LTDLINCL"
20988
20989# Report our decision...
20990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20991$as_echo_n "checking where to find libltdl headers... " >&6; }
20992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20993$as_echo "$LTDLINCL" >&6; }
20994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20995$as_echo_n "checking where to find libltdl library... " >&6; }
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20997$as_echo "$LIBLTDL" >&6; }
20998
20999
21000
21001# Check whether --enable-ltdl-install was given.
21002if test "${enable_ltdl_install+set}" = set; then :
21003 enableval=$enable_ltdl_install;
21004fi
21005
21006
21007case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21008 *yes*) ;;
21009 *) enable_ltdl_convenience=yes ;;
21010esac
21011
21012 if test x"${enable_ltdl_install-no}" != xno; then
21013 INSTALL_LTDL_TRUE=
21014 INSTALL_LTDL_FALSE='#'
21015else
21016 INSTALL_LTDL_TRUE='#'
21017 INSTALL_LTDL_FALSE=
21018fi
21019
21020 if test x"${enable_ltdl_convenience-no}" != xno; then
21021 CONVENIENCE_LTDL_TRUE=
21022 CONVENIENCE_LTDL_FALSE='#'
21023else
21024 CONVENIENCE_LTDL_TRUE='#'
21025 CONVENIENCE_LTDL_FALSE=
21026fi
21027
21028
21029
21030
21031
21032
cristy73bd4a52010-10-05 11:24:23 +000021033# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21034# the user used. This is so that ltdl.h can pick up the parent projects
21035# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21036# definitions required by ltdl.c.
21037# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21038
21039
21040
21041for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21042do :
21043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21044ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21045"
cristy98dddb52010-11-04 00:30:15 +000021046if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021047 cat >>confdefs.h <<_ACEOF
21048#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21049_ACEOF
21050
21051fi
21052
21053done
21054
21055
21056for ac_func in closedir opendir readdir
21057do :
21058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021060if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021061 cat >>confdefs.h <<_ACEOF
21062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21063_ACEOF
21064
21065else
21066
21067
21068 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21069
21070fi
21071done
21072
21073for ac_func in strlcat strlcpy
21074do :
21075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021077if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021078 cat >>confdefs.h <<_ACEOF
21079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21080_ACEOF
21081
21082else
21083
21084
21085 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21086
21087fi
21088done
21089
21090
21091
21092cat >>confdefs.h <<_ACEOF
21093#define LT_LIBEXT "$libext"
21094_ACEOF
21095
21096
cristyda16f162011-02-19 23:52:17 +000021097name=
21098eval "lt_libprefix=\"$libname_spec\""
21099
21100cat >>confdefs.h <<_ACEOF
21101#define LT_LIBPREFIX "$lt_libprefix"
21102_ACEOF
21103
21104
cristy73bd4a52010-10-05 11:24:23 +000021105name=ltdl
cristyda16f162011-02-19 23:52:17 +000021106eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021107
21108
21109
21110
21111
21112
21113
21114
21115# Only expand once:
21116
21117
cristy3ed852e2009-09-05 21:47:34 +000021118
21119# Check to see if building shared libraries
21120libtool_build_shared_libs='no'
21121if test "$enable_shared" = 'yes'; then
21122 libtool_build_shared_libs='yes'
21123fi
21124
21125# Check to see if building static libraries
21126libtool_build_static_libs='no'
21127if test "$enable_static" = 'yes'; then
21128 libtool_build_static_libs='yes'
21129fi
21130
cristy73bd4a52010-10-05 11:24:23 +000021131 if test "${libtool_build_shared_libs}" = 'yes'; then
21132 WITH_SHARED_LIBS_TRUE=
21133 WITH_SHARED_LIBS_FALSE='#'
21134else
21135 WITH_SHARED_LIBS_TRUE='#'
21136 WITH_SHARED_LIBS_FALSE=
21137fi
21138
cristy3ed852e2009-09-05 21:47:34 +000021139#
21140# Enable support for building loadable modules
21141#
21142
21143# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021144if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021145 withval=$with_modules; with_modules=$withval
21146else
cristy5a1cefd2010-01-06 20:42:35 +000021147 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021148fi
21149
21150
21151# Only allow building loadable modules if we are building shared libraries
21152if test "$with_modules" != 'no' ; then
21153 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021154 { $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 +000021155$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21156 with_modules='no'
21157 fi
21158fi
21159if test "$with_modules" != 'no'; then
21160
cristy8b350f62009-11-15 23:12:43 +000021161$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021162
21163fi
cristy73bd4a52010-10-05 11:24:23 +000021164 if test "$with_modules" != 'no'; then
21165 WITH_MODULES_TRUE=
21166 WITH_MODULES_FALSE='#'
21167else
21168 WITH_MODULES_TRUE='#'
21169 WITH_MODULES_FALSE=
21170fi
21171
cristy3ed852e2009-09-05 21:47:34 +000021172
21173# Enable building/use of libltdl if we are building shared libraries regardless
21174# of whether modules are built or not.
21175with_ltdl='no'
21176if test "$libtool_build_shared_libs" != 'no'; then
21177 with_ltdl='yes'
21178fi
21179
cristy73bd4a52010-10-05 11:24:23 +000021180 if test "$with_ltdl" != 'no'; then
21181 WITH_LTDL_TRUE=
21182 WITH_LTDL_FALSE='#'
21183else
21184 WITH_LTDL_TRUE='#'
21185 WITH_LTDL_FALSE=
21186fi
21187
cristy3ed852e2009-09-05 21:47:34 +000021188if test "$with_ltdl" != 'no'; then
21189
cristy8b350f62009-11-15 23:12:43 +000021190$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021191
21192
21193 # Set DLLDFLAGS
21194 if test X"$enable_shared" = Xyes; then
21195 DLLDFLAGS=-export-dynamic
21196
21197 fi
21198fi
21199
21200# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021201# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021202# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021203if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021204 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21205else
21206 enable_delegate_build='no'
21207fi
21208
21209
21210# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021211if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021212 enableval=$enable_deprecated; enable_deprecated=$enableval
21213else
21214 enable_deprecated='no'
21215fi
21216
21217
21218if test "$enable_deprecated" = 'yes'; then
21219
cristy8b350f62009-11-15 23:12:43 +000021220$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021221
21222else
21223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21224fi
21225
21226# Build a version of ImageMagick which operates uninstalled.
21227# Used to build distributions located via MAGICK_HOME / executable path
21228# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021229if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021230 enableval=$enable_installed; enable_installed=$enableval
21231else
21232 enable_installed='yes'
21233fi
21234
21235
21236if test "$enable_installed" = 'yes'; then
21237
cristy8b350f62009-11-15 23:12:43 +000021238$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021239
21240else
21241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21242fi
21243
21244# Permit enciphering and deciphering image pixels.
21245# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021246if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021247 enableval=$enable_cipher; enable_cipher=$enableval
21248else
21249 enable_cipher='yes'
21250fi
21251
21252
21253if test "$enable_cipher" = 'yes'; then
21254
cristy8b350f62009-11-15 23:12:43 +000021255$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021256
21257fi
21258
cristy6e3607c2011-09-13 13:59:17 +000021259# Build a zero-configuration version of ImageMagick.
21260# Check whether --enable-zero-configuration was given.
21261if test "${enable_zero_configuration+set}" = set; then :
21262 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021263else
cristy6e3607c2011-09-13 13:59:17 +000021264 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021265fi
21266
21267
cristy6e3607c2011-09-13 13:59:17 +000021268if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021269
cristy6e3607c2011-09-13 13:59:17 +000021270$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021271
cristy81af5702011-09-13 14:20:58 +000021272 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021273fi
21274
21275# Build a high dynamic range version of ImageMagick.
21276# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021277if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021278 enableval=$enable_hdri; enable_hdri=$enableval
21279else
21280 enable_hdri='no'
21281fi
21282
21283
21284MAGICK_HDRI=""
21285if test "$enable_hdri" = 'yes'; then
21286 MAGICK_HDRI="HDRI"
21287
cristy8b350f62009-11-15 23:12:43 +000021288$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021289
cristyfd9dcd42010-08-08 18:07:02 +000021290 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021291fi
21292
cristy3ed852e2009-09-05 21:47:34 +000021293# Build a version of ImageMagick with assert statements.
21294# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021295if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021296 enableval=$enable_assert; enable_assert=$enableval
21297else
21298 enable_assert='yes'
21299fi
21300
21301
21302if test "$enable_assert" = 'no'; then
21303
cristy8b350f62009-11-15 23:12:43 +000021304$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021305
21306fi
21307
cristya448bd22011-10-14 12:38:13 +000021308# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021309
21310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21311$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21312 # Check whether --enable-maintainer-mode was given.
21313if test "${enable_maintainer_mode+set}" = set; then :
21314 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21315else
21316 USE_MAINTAINER_MODE=no
21317fi
21318
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21320$as_echo "$USE_MAINTAINER_MODE" >&6; }
21321 if test $USE_MAINTAINER_MODE = yes; then
21322 MAINTAINER_MODE_TRUE=
21323 MAINTAINER_MODE_FALSE='#'
21324else
21325 MAINTAINER_MODE_TRUE='#'
21326 MAINTAINER_MODE_FALSE=
21327fi
21328
21329 MAINT=$MAINTAINER_MODE_TRUE
21330
21331
cristy3ed852e2009-09-05 21:47:34 +000021332
cristy3ed852e2009-09-05 21:47:34 +000021333# Enable ccmalloc memory debugging support
21334# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021335if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021336 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21337else
21338 enable_ccmalloc='no'
21339fi
21340
21341
21342# Enable Electric Fence memory debugging support
21343# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021344if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 enableval=$enable_efence; enable_efence=$enableval
21346else
21347 enable_efence='no'
21348fi
21349
21350
21351# Enable prof-based profiling support
21352# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021353if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021354 enableval=$enable_prof; enable_prof=$enableval
21355else
21356 enable_prof='no'
21357fi
21358
21359
21360# Enable gprof-based profiling support
21361# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021362if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 enableval=$enable_gprof; enable_gprof=$enableval
21364else
21365 enable_gprof='no'
21366fi
21367
21368
21369# Enable gcov-based profiling support
21370# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021371if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021372 enableval=$enable_gcov; enable_gcov=$enableval
21373else
21374 enable_gcov='no'
21375fi
21376
21377
21378enable_profiling='no'
21379if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21380 enable_profiling='yes'
21381 if test "$libtool_build_shared_libs" = 'yes'; then
21382 echo "Warning: Can not profile code using shared libraries"
21383 fi
21384fi
21385
21386# Magick API method prefix
21387
21388# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021389if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021390 withval=$with_method_prefix; with_method_prefix=$enableval
21391else
21392 with_method_prefix=''
21393fi
21394
21395
21396if test "$with_method_prefix" != ''; then
21397
21398cat >>confdefs.h <<_ACEOF
21399#define NAMESPACE_PREFIX $with_method_prefix
21400_ACEOF
21401
21402fi
21403
21404# Number of bits in a Quantum
21405
21406# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021407if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021408 withval=$with_quantum_depth; with_quantum_depth=$withval
21409else
21410 with_quantum_depth=16
21411fi
21412
21413
21414if test "$with_quantum_depth" != '8'; then
21415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21416fi
21417
21418case "${with_quantum_depth}" in
21419 8 ) ;;
21420 16 ) ;;
21421 32 ) ;;
21422 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021423 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021424esac
21425QUANTUM_DEPTH="$with_quantum_depth"
21426
21427cat >>confdefs.h <<_ACEOF
21428#define QUANTUM_DEPTH $QUANTUM_DEPTH
21429_ACEOF
21430
21431
21432# Set pixel cache threshold
21433
21434# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021435if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021436 withval=$with_cache; with_cache=$withval
21437else
21438 with_cache=''
21439fi
21440
21441
21442if test "$with_cache" != ''; then
21443
21444cat >>confdefs.h <<_ACEOF
21445#define PixelCacheThreshold $with_cache
21446_ACEOF
21447
21448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21449fi
21450
21451# Disable/Enable support for full delegate paths
21452
21453# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021454if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 withval=$with_frozenpaths; with_frozenpaths=$withval
21456else
21457 with_frozenpaths='no'
21458fi
21459
21460
21461# Enable build/install of Magick++
21462
21463# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021464if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21466else
21467 with_magick_plus_plus='yes'
21468fi
21469
21470
21471# Disable build/install of PerlMagick.
21472
21473# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021474if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021475 withval=$with_perl; with_perl=$withval
21476else
cristyb5f4e2f2010-04-25 00:49:11 +000021477 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021478fi
21479
21480
21481# Options to pass when configuring PerlMagick
21482
21483# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021484if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021485 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021486fi
21487
21488
cristy3ed852e2009-09-05 21:47:34 +000021489
21490# Enable umem, object-caching memory allocation library.
21491
21492# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021493if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021494 withval=$with_umem; with_umem=$withval
21495else
21496 with_umem='no'
21497fi
21498
21499if test "$with_umem" != 'yes' ; then
21500 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21501fi
21502
21503#
21504# Specify path to shared libstdc++ if not in normal location
21505#
21506
21507# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021508if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021509 withval=$with_libstdc; with_libstdc=$withval
21510else
21511 with_libstdc=''
21512fi
21513
21514
21515if test "$with_libstdc" != ''; then
21516 if test -d "$with_libstdc"; then
21517 LIBSTDCLDFLAGS="-L$with_libstdc"
21518 fi
21519fi
21520
21521
21522# Does gcc required -traditional?
21523if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021525$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021526if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021527 $as_echo_n "(cached) " >&6
21528else
21529 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021531/* end confdefs.h. */
21532#include <sgtty.h>
21533Autoconf TIOCGETP
21534_ACEOF
21535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021536 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 ac_cv_prog_gcc_traditional=yes
21538else
21539 ac_cv_prog_gcc_traditional=no
21540fi
21541rm -f conftest*
21542
21543
21544 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021546/* end confdefs.h. */
21547#include <termio.h>
21548Autoconf TCGETA
21549_ACEOF
21550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021551 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 ac_cv_prog_gcc_traditional=yes
21553fi
21554rm -f conftest*
21555
21556 fi
21557fi
cristy8b350f62009-11-15 23:12:43 +000021558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021559$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21560 if test $ac_cv_prog_gcc_traditional = yes; then
21561 CC="$CC -traditional"
21562 fi
21563fi
21564
21565
21566########
21567#
21568# Set defines required to build DLLs and modules using MinGW
21569#
21570########
21571# These options are set for multi-thread DLL module build
21572# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21573# module: _DLL
21574# executable/Magick++: _DLL _MAGICKMOD_
21575MODULE_EXTRA_CPPFLAGS=''
21576LIBRARY_EXTRA_CPPFLAGS=''
21577if test "${native_win32_build}" = 'yes'; then
21578 if test "${libtool_build_shared_libs}" = 'yes'; then
21579 CPPFLAGS="$CPPFLAGS -D_DLL"
21580 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21581 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21582 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21583 if test "$with_modules" = 'yes'; then
21584 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21585 else
21586 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21587 fi
21588 else
21589 CPPFLAGS="$CPPFLAGS -D_LIB"
21590 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21591 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21592 fi
21593 if test "$with_threads" = 'yes'; then
21594 CPPFLAGS="$CPPFLAGS -D_MT"
21595 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21596 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21597 fi
21598fi
21599
21600
21601
21602# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021604$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021605if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 $as_echo_n "(cached) " >&6
21607else
cristy8b350f62009-11-15 23:12:43 +000021608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021609/* end confdefs.h. */
21610#include <stdlib.h>
21611#include <stdarg.h>
21612#include <string.h>
21613#include <float.h>
21614
21615int
21616main ()
21617{
21618
21619 ;
21620 return 0;
21621}
21622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021623if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021624 ac_cv_header_stdc=yes
21625else
cristy8b350f62009-11-15 23:12:43 +000021626 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021627fi
cristy3ed852e2009-09-05 21:47:34 +000021628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629
21630if test $ac_cv_header_stdc = yes; then
21631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021633/* end confdefs.h. */
21634#include <string.h>
21635
21636_ACEOF
21637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021638 $EGREP "memchr" >/dev/null 2>&1; then :
21639
cristy3ed852e2009-09-05 21:47:34 +000021640else
21641 ac_cv_header_stdc=no
21642fi
21643rm -f conftest*
21644
21645fi
21646
21647if test $ac_cv_header_stdc = yes; then
21648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021650/* end confdefs.h. */
21651#include <stdlib.h>
21652
21653_ACEOF
21654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021655 $EGREP "free" >/dev/null 2>&1; then :
21656
cristy3ed852e2009-09-05 21:47:34 +000021657else
21658 ac_cv_header_stdc=no
21659fi
21660rm -f conftest*
21661
21662fi
21663
21664if test $ac_cv_header_stdc = yes; then
21665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021666 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 :
21668else
cristy8b350f62009-11-15 23:12:43 +000021669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021670/* end confdefs.h. */
21671#include <ctype.h>
21672#include <stdlib.h>
21673#if ((' ' & 0x0FF) == 0x020)
21674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21676#else
21677# define ISLOWER(c) \
21678 (('a' <= (c) && (c) <= 'i') \
21679 || ('j' <= (c) && (c) <= 'r') \
21680 || ('s' <= (c) && (c) <= 'z'))
21681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21682#endif
21683
21684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21685int
21686main ()
21687{
21688 int i;
21689 for (i = 0; i < 256; i++)
21690 if (XOR (islower (i), ISLOWER (i))
21691 || toupper (i) != TOUPPER (i))
21692 return 2;
21693 return 0;
21694}
21695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021696if ac_fn_c_try_run "$LINENO"; then :
21697
cristy3ed852e2009-09-05 21:47:34 +000021698else
cristy8b350f62009-11-15 23:12:43 +000021699 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021700fi
cristy8b350f62009-11-15 23:12:43 +000021701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21702 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021703fi
21704
cristy3ed852e2009-09-05 21:47:34 +000021705fi
21706fi
cristy8b350f62009-11-15 23:12:43 +000021707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021708$as_echo "$ac_cv_header_stdc" >&6; }
21709if test $ac_cv_header_stdc = yes; then
21710
cristy8b350f62009-11-15 23:12:43 +000021711$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021712
21713fi
21714
21715if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021716 { $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 +000021717 header files. Compilation cannot proceed. Please install the ANSI C
21718 headers and rerun this script." >&5
21719$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21720 header files. Compilation cannot proceed. Please install the ANSI C
21721 headers and rerun this script." >&2;};
21722fi
cristya0b81c32010-01-22 02:54:33 +000021723
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21725$as_echo_n "checking whether to enable assertions... " >&6; }
21726 # Check whether --enable-assert was given.
21727if test "${enable_assert+set}" = set; then :
21728 enableval=$enable_assert; ac_enable_assert=$enableval
21729 if test "x$enableval" = xno; then :
21730
21731$as_echo "#define NDEBUG 1" >>confdefs.h
21732
21733elif test "x$enableval" != xyes; then :
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21735$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21736 ac_enable_assert=yes
21737fi
21738else
21739 ac_enable_assert=yes
21740fi
21741
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21743$as_echo "$ac_enable_assert" >&6; }
21744
cristy3ed852e2009-09-05 21:47:34 +000021745ac_header_dirent=no
21746for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21747 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021749$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021750if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021751 $as_echo_n "(cached) " >&6
21752else
cristy8b350f62009-11-15 23:12:43 +000021753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021754/* end confdefs.h. */
21755#include <sys/types.h>
21756#include <$ac_hdr>
21757
21758int
21759main ()
21760{
21761if ((DIR *) 0)
21762return 0;
21763 ;
21764 return 0;
21765}
21766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021767if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021768 eval "$as_ac_Header=yes"
21769else
cristy8b350f62009-11-15 23:12:43 +000021770 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021771fi
cristy3ed852e2009-09-05 21:47:34 +000021772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773fi
cristy8b350f62009-11-15 23:12:43 +000021774eval ac_res=\$$as_ac_Header
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021776$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 cat >>confdefs.h <<_ACEOF
21779#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21780_ACEOF
21781
21782ac_header_dirent=$ac_hdr; break
21783fi
21784
21785done
21786# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21787if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021789$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021790if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021791 $as_echo_n "(cached) " >&6
21792else
21793 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021795/* end confdefs.h. */
21796
21797/* Override any GCC internal prototype to avoid an error.
21798 Use char because int might match the return type of a GCC
21799 builtin and then its argument prototype would still apply. */
21800#ifdef __cplusplus
21801extern "C"
21802#endif
21803char opendir ();
21804int
21805main ()
21806{
21807return opendir ();
21808 ;
21809 return 0;
21810}
21811_ACEOF
21812for ac_lib in '' dir; do
21813 if test -z "$ac_lib"; then
21814 ac_res="none required"
21815 else
21816 ac_res=-l$ac_lib
21817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21818 fi
cristy8b350f62009-11-15 23:12:43 +000021819 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021821fi
cristy8b350f62009-11-15 23:12:43 +000021822rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021824 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 break
21826fi
21827done
cristyda16f162011-02-19 23:52:17 +000021828if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021829
cristy3ed852e2009-09-05 21:47:34 +000021830else
21831 ac_cv_search_opendir=no
21832fi
21833rm conftest.$ac_ext
21834LIBS=$ac_func_search_save_LIBS
21835fi
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo "$ac_cv_search_opendir" >&6; }
21838ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021839if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21841
21842fi
21843
21844else
cristy8b350f62009-11-15 23:12:43 +000021845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021846$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021847if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021848 $as_echo_n "(cached) " >&6
21849else
21850 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021852/* end confdefs.h. */
21853
21854/* Override any GCC internal prototype to avoid an error.
21855 Use char because int might match the return type of a GCC
21856 builtin and then its argument prototype would still apply. */
21857#ifdef __cplusplus
21858extern "C"
21859#endif
21860char opendir ();
21861int
21862main ()
21863{
21864return opendir ();
21865 ;
21866 return 0;
21867}
21868_ACEOF
21869for ac_lib in '' x; do
21870 if test -z "$ac_lib"; then
21871 ac_res="none required"
21872 else
21873 ac_res=-l$ac_lib
21874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21875 fi
cristy8b350f62009-11-15 23:12:43 +000021876 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021877 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021878fi
cristy8b350f62009-11-15 23:12:43 +000021879rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021881 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021882 break
21883fi
21884done
cristyda16f162011-02-19 23:52:17 +000021885if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021886
cristy3ed852e2009-09-05 21:47:34 +000021887else
21888 ac_cv_search_opendir=no
21889fi
21890rm conftest.$ac_ext
21891LIBS=$ac_func_search_save_LIBS
21892fi
cristy8b350f62009-11-15 23:12:43 +000021893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021894$as_echo "$ac_cv_search_opendir" >&6; }
21895ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021896if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21898
21899fi
21900
21901fi
21902
21903
21904# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021905for 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 +000021906do :
21907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21908ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021909if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 cat >>confdefs.h <<_ACEOF
21911#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21912_ACEOF
21913
21914fi
21915
21916done
21917
21918
21919########
21920#
21921# Checks for typedefs, structures, and compiler characteristics.
21922#
21923########
21924
cristy8b350f62009-11-15 23:12:43 +000021925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021926$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021927if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021928 $as_echo_n "(cached) " >&6
21929else
cristy8b350f62009-11-15 23:12:43 +000021930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021931/* end confdefs.h. */
21932
21933#include <stdbool.h>
21934#ifndef bool
21935 "error: bool is not defined"
21936#endif
21937#ifndef false
21938 "error: false is not defined"
21939#endif
21940#if false
21941 "error: false is not 0"
21942#endif
21943#ifndef true
21944 "error: true is not defined"
21945#endif
21946#if true != 1
21947 "error: true is not 1"
21948#endif
21949#ifndef __bool_true_false_are_defined
21950 "error: __bool_true_false_are_defined is not defined"
21951#endif
21952
21953 struct s { _Bool s: 1; _Bool t; } s;
21954
21955 char a[true == 1 ? 1 : -1];
21956 char b[false == 0 ? 1 : -1];
21957 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21958 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021959 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021960 char f[(_Bool) 0.0 == false ? 1 : -1];
21961 char g[true];
21962 char h[sizeof (_Bool)];
21963 char i[sizeof s.t];
21964 enum { j = false, k = true, l = false * true, m = true * 256 };
21965 /* The following fails for
21966 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21967 _Bool n[m];
21968 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21969 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021970 /* Catch a bug in an HP-UX C compiler. See
21971 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21972 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21973 */
21974 _Bool q = true;
21975 _Bool *pq = &q;
21976
21977int
21978main ()
21979{
21980
cristyda16f162011-02-19 23:52:17 +000021981 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021982 *pq |= q;
21983 *pq |= ! q;
21984 /* Refer to every declared value, to avoid compiler optimizations. */
21985 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21986 + !m + !n + !o + !p + !q + !pq);
21987
21988 ;
21989 return 0;
21990}
21991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021992if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021993 ac_cv_header_stdbool_h=yes
21994else
cristy8b350f62009-11-15 23:12:43 +000021995 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021996fi
cristy3ed852e2009-09-05 21:47:34 +000021997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21998fi
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022001ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022002if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022003
22004cat >>confdefs.h <<_ACEOF
22005#define HAVE__BOOL 1
22006_ACEOF
22007
22008
22009fi
22010
22011if test $ac_cv_header_stdbool_h = yes; then
22012
cristy8b350f62009-11-15 23:12:43 +000022013$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022014
22015fi
22016
cristy8b350f62009-11-15 23:12:43 +000022017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022018$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022019if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022020 $as_echo_n "(cached) " >&6
22021else
cristy8b350f62009-11-15 23:12:43 +000022022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022023/* end confdefs.h. */
22024
22025int
22026main ()
22027{
22028
22029volatile int x;
22030int * volatile y = (int *) 0;
22031return !x && !y;
22032 ;
22033 return 0;
22034}
22035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022036if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022037 ac_cv_c_volatile=yes
22038else
cristy8b350f62009-11-15 23:12:43 +000022039 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022040fi
cristy3ed852e2009-09-05 21:47:34 +000022041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042fi
cristy8b350f62009-11-15 23:12:43 +000022043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022044$as_echo "$ac_cv_c_volatile" >&6; }
22045if test $ac_cv_c_volatile = no; then
22046
cristy8b350f62009-11-15 23:12:43 +000022047$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022048
22049fi
22050
cristy8b350f62009-11-15 23:12:43 +000022051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022052$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022053if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022054 $as_echo_n "(cached) " >&6
22055else
cristy8b350f62009-11-15 23:12:43 +000022056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022057/* end confdefs.h. */
22058#define x(y) #y
22059
22060char *s = x(teststring);
22061_ACEOF
22062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022063 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022064 ac_cv_c_stringize=no
22065else
22066 ac_cv_c_stringize=yes
22067fi
22068rm -f conftest*
22069
22070fi
cristy8b350f62009-11-15 23:12:43 +000022071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022072$as_echo "$ac_cv_c_stringize" >&6; }
22073if test $ac_cv_c_stringize = yes; then
22074
cristy8b350f62009-11-15 23:12:43 +000022075$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022076
22077fi
22078
cristy8b350f62009-11-15 23:12:43 +000022079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022080$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022081if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022082 $as_echo_n "(cached) " >&6
22083else
cristy8b350f62009-11-15 23:12:43 +000022084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022085/* end confdefs.h. */
22086#include <sys/types.h>
22087#include <sys/stat.h>
22088
22089#if defined S_ISBLK && defined S_IFDIR
22090extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22091#endif
22092
22093#if defined S_ISBLK && defined S_IFCHR
22094extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22095#endif
22096
22097#if defined S_ISLNK && defined S_IFREG
22098extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22099#endif
22100
22101#if defined S_ISSOCK && defined S_IFREG
22102extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22103#endif
22104
22105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022106if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022107 ac_cv_header_stat_broken=no
22108else
cristy8b350f62009-11-15 23:12:43 +000022109 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022110fi
cristy3ed852e2009-09-05 21:47:34 +000022111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112fi
cristy8b350f62009-11-15 23:12:43 +000022113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo "$ac_cv_header_stat_broken" >&6; }
22115if test $ac_cv_header_stat_broken = yes; then
22116
cristy8b350f62009-11-15 23:12:43 +000022117$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022118
22119fi
22120
cristy8b350f62009-11-15 23:12:43 +000022121{ $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 +000022122$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022123if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022124 $as_echo_n "(cached) " >&6
22125else
cristy8b350f62009-11-15 23:12:43 +000022126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022127/* end confdefs.h. */
22128#include <sys/types.h>
22129#include <sys/time.h>
22130#include <time.h>
22131
22132int
22133main ()
22134{
22135if ((struct tm *) 0)
22136return 0;
22137 ;
22138 return 0;
22139}
22140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022141if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022142 ac_cv_header_time=yes
22143else
cristy8b350f62009-11-15 23:12:43 +000022144 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022145fi
cristy3ed852e2009-09-05 21:47:34 +000022146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147fi
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo "$ac_cv_header_time" >&6; }
22150if test $ac_cv_header_time = yes; then
22151
cristy8b350f62009-11-15 23:12:43 +000022152$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022153
22154fi
22155
cristy8b350f62009-11-15 23:12:43 +000022156{ $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 +000022157$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022158if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022159 $as_echo_n "(cached) " >&6
22160else
cristy8b350f62009-11-15 23:12:43 +000022161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022162/* end confdefs.h. */
22163#include <sys/types.h>
22164#include <time.h>
22165
22166int
22167main ()
22168{
22169struct tm tm;
22170 int *p = &tm.tm_sec;
22171 return !p;
22172 ;
22173 return 0;
22174}
22175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022176if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022177 ac_cv_struct_tm=time.h
22178else
cristy8b350f62009-11-15 23:12:43 +000022179 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022180fi
cristy3ed852e2009-09-05 21:47:34 +000022181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182fi
cristy8b350f62009-11-15 23:12:43 +000022183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022184$as_echo "$ac_cv_struct_tm" >&6; }
22185if test $ac_cv_struct_tm = sys/time.h; then
22186
cristy8b350f62009-11-15 23:12:43 +000022187$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022188
22189fi
22190
cristy92703d82010-04-26 00:18:18 +000022191ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22192#include <$ac_cv_struct_tm>
22193
22194"
cristyda16f162011-02-19 23:52:17 +000022195if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022196
22197cat >>confdefs.h <<_ACEOF
22198#define HAVE_STRUCT_TM_TM_ZONE 1
22199_ACEOF
22200
22201
22202fi
22203
22204if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22205
22206$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22207
22208else
22209 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22210"
cristyda16f162011-02-19 23:52:17 +000022211if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022212 ac_have_decl=1
22213else
22214 ac_have_decl=0
22215fi
22216
22217cat >>confdefs.h <<_ACEOF
22218#define HAVE_DECL_TZNAME $ac_have_decl
22219_ACEOF
22220
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22222$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022223if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022224 $as_echo_n "(cached) " >&6
22225else
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227/* end confdefs.h. */
22228#include <time.h>
22229#if !HAVE_DECL_TZNAME
22230extern char *tzname[];
22231#endif
22232
22233int
22234main ()
22235{
22236return tzname[0][0];
22237 ;
22238 return 0;
22239}
22240_ACEOF
22241if ac_fn_c_try_link "$LINENO"; then :
22242 ac_cv_var_tzname=yes
22243else
22244 ac_cv_var_tzname=no
22245fi
22246rm -f core conftest.err conftest.$ac_objext \
22247 conftest$ac_exeext conftest.$ac_ext
22248fi
22249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22250$as_echo "$ac_cv_var_tzname" >&6; }
22251 if test $ac_cv_var_tzname = yes; then
22252
22253$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22254
22255 fi
22256fi
22257
cristy8b350f62009-11-15 23:12:43 +000022258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022259$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022260if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 $as_echo_n "(cached) " >&6
22262else
22263 echo '#! /bin/cat
22264exit 69
22265' >conftest
22266chmod u+x conftest
22267(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22268if test $? -ne 69; then
22269 ac_cv_sys_interpreter=yes
22270else
22271 ac_cv_sys_interpreter=no
22272fi
22273rm -f conftest
22274fi
cristy8b350f62009-11-15 23:12:43 +000022275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022276$as_echo "$ac_cv_sys_interpreter" >&6; }
22277interpval=$ac_cv_sys_interpreter
22278
22279
cristy3ed852e2009-09-05 21:47:34 +000022280# If the C compiler supports the keyword inline, do nothing. Otherwise
22281# define inline to __inline__ or __inline if it accepts one of those,
22282# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022284$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022285if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022286 $as_echo_n "(cached) " >&6
22287else
22288 ac_cv_c_inline=no
22289for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022291/* end confdefs.h. */
22292#ifndef __cplusplus
22293typedef int foo_t;
22294static $ac_kw foo_t static_foo () {return 0; }
22295$ac_kw foo_t foo () {return 0; }
22296#endif
22297
22298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022300 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022301fi
cristy3ed852e2009-09-05 21:47:34 +000022302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 test "$ac_cv_c_inline" != no && break
22304done
22305
22306fi
cristy8b350f62009-11-15 23:12:43 +000022307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022308$as_echo "$ac_cv_c_inline" >&6; }
22309
cristy3ed852e2009-09-05 21:47:34 +000022310case $ac_cv_c_inline in
22311 inline | yes) ;;
22312 *)
22313 case $ac_cv_c_inline in
22314 no) ac_val=;;
22315 *) ac_val=$ac_cv_c_inline;;
22316 esac
22317 cat >>confdefs.h <<_ACEOF
22318#ifndef __cplusplus
22319#define inline $ac_val
22320#endif
22321_ACEOF
22322 ;;
22323esac
22324
22325
22326# If the C compiler supports the keyword restrict, do nothing. Otherwise
22327# define restrict to __restrict__ or __restrict if it accepts one of those,
22328# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022330$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022331if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022332 $as_echo_n "(cached) " >&6
22333else
22334 ac_cv_c_restrict=no
22335 # The order here caters to the fact that C++ does not require restrict.
22336 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022338/* end confdefs.h. */
22339typedef int * int_ptr;
22340 int foo (int_ptr $ac_kw ip) {
22341 return ip[0];
22342 }
22343int
22344main ()
22345{
22346int s[1];
22347 int * $ac_kw t = s;
22348 t[0] = 0;
22349 return foo(t)
22350 ;
22351 return 0;
22352}
22353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022354if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022355 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022356fi
cristy3ed852e2009-09-05 21:47:34 +000022357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 test "$ac_cv_c_restrict" != no && break
22359 done
22360
22361fi
cristy8b350f62009-11-15 23:12:43 +000022362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022363$as_echo "$ac_cv_c_restrict" >&6; }
22364
cristy3ed852e2009-09-05 21:47:34 +000022365 case $ac_cv_c_restrict in
22366 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022367 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022368 ;;
22369 *) cat >>confdefs.h <<_ACEOF
22370#define restrict $ac_cv_c_restrict
22371_ACEOF
22372 ;;
22373 esac
22374
22375
22376# If words are stored with the most significant byte first (like
22377# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022379$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022380if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022381 $as_echo_n "(cached) " >&6
22382else
22383 ac_cv_c_bigendian=unknown
22384 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022386/* end confdefs.h. */
22387#ifndef __APPLE_CC__
22388 not a universal capable compiler
22389 #endif
22390 typedef int dummy;
22391
22392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022393if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022394
22395 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022396 # there are at least two -arch flags with different values.
22397 ac_arch=
22398 ac_prev=
22399 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22400 if test -n "$ac_prev"; then
22401 case $ac_word in
22402 i?86 | x86_64 | ppc | ppc64)
22403 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22404 ac_arch=$ac_word
22405 else
22406 ac_cv_c_bigendian=universal
22407 break
22408 fi
22409 ;;
22410 esac
22411 ac_prev=
22412 elif test "x$ac_word" = "x-arch"; then
22413 ac_prev=arch
22414 fi
22415 done
cristy3ed852e2009-09-05 21:47:34 +000022416fi
cristy3ed852e2009-09-05 21:47:34 +000022417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418 if test $ac_cv_c_bigendian = unknown; then
22419 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022421/* end confdefs.h. */
22422#include <sys/types.h>
22423 #include <sys/param.h>
22424
22425int
22426main ()
22427{
22428#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22429 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22430 && LITTLE_ENDIAN)
22431 bogus endian macros
22432 #endif
22433
22434 ;
22435 return 0;
22436}
22437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022438if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022439 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022441/* end confdefs.h. */
22442#include <sys/types.h>
22443 #include <sys/param.h>
22444
22445int
22446main ()
22447{
22448#if BYTE_ORDER != BIG_ENDIAN
22449 not big endian
22450 #endif
22451
22452 ;
22453 return 0;
22454}
22455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022456if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022457 ac_cv_c_bigendian=yes
22458else
cristy8b350f62009-11-15 23:12:43 +000022459 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022460fi
cristy3ed852e2009-09-05 21:47:34 +000022461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022462fi
cristy3ed852e2009-09-05 21:47:34 +000022463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22464 fi
22465 if test $ac_cv_c_bigendian = unknown; then
22466 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022468/* end confdefs.h. */
22469#include <limits.h>
22470
22471int
22472main ()
22473{
22474#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22475 bogus endian macros
22476 #endif
22477
22478 ;
22479 return 0;
22480}
22481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022482if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022483 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022485/* end confdefs.h. */
22486#include <limits.h>
22487
22488int
22489main ()
22490{
22491#ifndef _BIG_ENDIAN
22492 not big endian
22493 #endif
22494
22495 ;
22496 return 0;
22497}
22498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022499if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 ac_cv_c_bigendian=yes
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022503fi
cristy3ed852e2009-09-05 21:47:34 +000022504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022505fi
cristy3ed852e2009-09-05 21:47:34 +000022506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 fi
22508 if test $ac_cv_c_bigendian = unknown; then
22509 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022510 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022511 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022513/* end confdefs.h. */
22514short int ascii_mm[] =
22515 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22516 short int ascii_ii[] =
22517 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22518 int use_ascii (int i) {
22519 return ascii_mm[i] + ascii_ii[i];
22520 }
22521 short int ebcdic_ii[] =
22522 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22523 short int ebcdic_mm[] =
22524 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22525 int use_ebcdic (int i) {
22526 return ebcdic_mm[i] + ebcdic_ii[i];
22527 }
22528 extern int foo;
22529
22530int
22531main ()
22532{
22533return use_ascii (foo) == use_ebcdic (foo);
22534 ;
22535 return 0;
22536}
22537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022538if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022539 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22540 ac_cv_c_bigendian=yes
22541 fi
22542 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22543 if test "$ac_cv_c_bigendian" = unknown; then
22544 ac_cv_c_bigendian=no
22545 else
22546 # finding both strings is unlikely to happen, but who knows?
22547 ac_cv_c_bigendian=unknown
22548 fi
22549 fi
cristy3ed852e2009-09-05 21:47:34 +000022550fi
cristy3ed852e2009-09-05 21:47:34 +000022551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552else
cristy8b350f62009-11-15 23:12:43 +000022553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022554/* end confdefs.h. */
22555$ac_includes_default
22556int
22557main ()
22558{
22559
22560 /* Are we little or big endian? From Harbison&Steele. */
22561 union
22562 {
22563 long int l;
22564 char c[sizeof (long int)];
22565 } u;
22566 u.l = 1;
22567 return u.c[sizeof (long int) - 1] == 1;
22568
22569 ;
22570 return 0;
22571}
22572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022573if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 ac_cv_c_bigendian=no
22575else
cristy8b350f62009-11-15 23:12:43 +000022576 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022577fi
cristy8b350f62009-11-15 23:12:43 +000022578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22579 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022580fi
22581
cristy3ed852e2009-09-05 21:47:34 +000022582 fi
22583fi
cristy8b350f62009-11-15 23:12:43 +000022584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022585$as_echo "$ac_cv_c_bigendian" >&6; }
22586 case $ac_cv_c_bigendian in #(
22587 yes)
cristy8b350f62009-11-15 23:12:43 +000022588 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022589;; #(
22590 no)
22591 ;; #(
22592 universal)
22593
cristy8b350f62009-11-15 23:12:43 +000022594$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022595
22596 ;; #(
22597 *)
cristy98dddb52010-11-04 00:30:15 +000022598 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022599 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022600 esac
22601
22602
cristy501c8042011-05-26 17:46:28 +000022603# Define to a suitable type, if standard headers do not define it.
22604ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22605case $ac_cv_c_int8_t in #(
22606 no|yes) ;; #(
22607 *)
cristy3ed852e2009-09-05 21:47:34 +000022608
22609cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022610#define int8_t $ac_cv_c_int8_t
22611_ACEOF
22612;;
22613esac
22614
22615ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22616case $ac_cv_c_int16_t in #(
22617 no|yes) ;; #(
22618 *)
22619
22620cat >>confdefs.h <<_ACEOF
22621#define int16_t $ac_cv_c_int16_t
22622_ACEOF
22623;;
22624esac
22625
22626ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22627case $ac_cv_c_int32_t in #(
22628 no|yes) ;; #(
22629 *)
22630
22631cat >>confdefs.h <<_ACEOF
22632#define int32_t $ac_cv_c_int32_t
22633_ACEOF
22634;;
22635esac
22636
22637ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22638case $ac_cv_c_int64_t in #(
22639 no|yes) ;; #(
22640 *)
22641
22642cat >>confdefs.h <<_ACEOF
22643#define int64_t $ac_cv_c_int64_t
22644_ACEOF
22645;;
22646esac
22647
22648
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22650$as_echo_n "checking for long long int... " >&6; }
22651if ${ac_cv_type_long_long_int+:} false; then :
22652 $as_echo_n "(cached) " >&6
22653else
22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655/* end confdefs.h. */
22656
22657 /* For now, do not test the preprocessor; as of 2007 there are too many
22658 implementations with broken preprocessors. Perhaps this can
22659 be revisited in 2012. In the meantime, code should not expect
22660 #if to work with literals wider than 32 bits. */
22661 /* Test literals. */
22662 long long int ll = 9223372036854775807ll;
22663 long long int nll = -9223372036854775807LL;
22664 unsigned long long int ull = 18446744073709551615ULL;
22665 /* Test constant expressions. */
22666 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22667 ? 1 : -1)];
22668 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22669 ? 1 : -1)];
22670 int i = 63;
22671int
22672main ()
22673{
22674/* Test availability of runtime routines for shift and division. */
22675 long long int llmax = 9223372036854775807ll;
22676 unsigned long long int ullmax = 18446744073709551615ull;
22677 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22678 | (llmax / ll) | (llmax % ll)
22679 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22680 | (ullmax / ull) | (ullmax % ull));
22681 ;
22682 return 0;
22683}
22684
22685_ACEOF
22686if ac_fn_c_try_link "$LINENO"; then :
22687 if test "$cross_compiling" = yes; then :
22688 ac_cv_type_long_long_int=yes
22689else
22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691/* end confdefs.h. */
22692#include <limits.h>
22693 #ifndef LLONG_MAX
22694 # define HALF \
22695 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22696 # define LLONG_MAX (HALF - 1 + HALF)
22697 #endif
22698int
22699main ()
22700{
22701long long int n = 1;
22702 int i;
22703 for (i = 0; ; i++)
22704 {
22705 long long int m = n << i;
22706 if (m >> i != n)
22707 return 1;
22708 if (LLONG_MAX / 2 < m)
22709 break;
22710 }
22711 return 0;
22712 ;
22713 return 0;
22714}
22715_ACEOF
22716if ac_fn_c_try_run "$LINENO"; then :
22717 ac_cv_type_long_long_int=yes
22718else
22719 ac_cv_type_long_long_int=no
22720fi
22721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22722 conftest.$ac_objext conftest.beam conftest.$ac_ext
22723fi
22724
22725else
22726 ac_cv_type_long_long_int=no
22727fi
22728rm -f core conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
22730fi
22731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22732$as_echo "$ac_cv_type_long_long_int" >&6; }
22733 if test $ac_cv_type_long_long_int = yes; then
22734
22735$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22736
22737 fi
22738
22739
22740
22741 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22742if test "x$ac_cv_type_intmax_t" = xyes; then :
22743
22744$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22745
22746else
22747 test $ac_cv_type_long_long_int = yes \
22748 && ac_type='long long int' \
22749 || ac_type='long int'
22750
22751cat >>confdefs.h <<_ACEOF
22752#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022753_ACEOF
22754
22755fi
22756
22757
cristy501c8042011-05-26 17:46:28 +000022758
22759 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22760if test "x$ac_cv_type_intptr_t" = xyes; then :
22761
22762$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022763
cristy3ed852e2009-09-05 21:47:34 +000022764else
cristy501c8042011-05-26 17:46:28 +000022765 for ac_type in 'int' 'long int' 'long long int'; do
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767/* end confdefs.h. */
22768$ac_includes_default
22769int
22770main ()
22771{
22772static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22773test_array [0] = 0
22774
22775 ;
22776 return 0;
22777}
22778_ACEOF
22779if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022780
22781cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022782#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022783_ACEOF
22784
cristy501c8042011-05-26 17:46:28 +000022785 ac_type=
22786fi
22787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22788 test -z "$ac_type" && break
22789 done
cristy3ed852e2009-09-05 21:47:34 +000022790fi
22791
22792
cristy3ed852e2009-09-05 21:47:34 +000022793
cristy501c8042011-05-26 17:46:28 +000022794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22795$as_echo_n "checking for long double... " >&6; }
22796if ${ac_cv_type_long_double+:} false; then :
22797 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022798else
cristy501c8042011-05-26 17:46:28 +000022799 if test "$GCC" = yes; then
22800 ac_cv_type_long_double=yes
22801 else
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803/* end confdefs.h. */
22804/* The Stardent Vistra knows sizeof (long double), but does
22805 not support it. */
22806 long double foo = 0.0L;
22807int
22808main ()
22809{
22810static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22811 sizeof (double) <= sizeof (long double))];
22812test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022813
cristy501c8042011-05-26 17:46:28 +000022814 ;
22815 return 0;
22816}
cristy3ed852e2009-09-05 21:47:34 +000022817_ACEOF
cristy501c8042011-05-26 17:46:28 +000022818if ac_fn_c_try_compile "$LINENO"; then :
22819 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022820else
cristy501c8042011-05-26 17:46:28 +000022821 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022822fi
cristy501c8042011-05-26 17:46:28 +000022823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824 fi
cristy3ed852e2009-09-05 21:47:34 +000022825fi
cristy501c8042011-05-26 17:46:28 +000022826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22827$as_echo "$ac_cv_type_long_double" >&6; }
22828 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022829
cristy501c8042011-05-26 17:46:28 +000022830$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022831
cristy501c8042011-05-26 17:46:28 +000022832 fi
22833
cristy3ed852e2009-09-05 21:47:34 +000022834
cristy8b350f62009-11-15 23:12:43 +000022835 { $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 +000022836$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022837if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022838 $as_echo_n "(cached) " >&6
22839else
cristy8b350f62009-11-15 23:12:43 +000022840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022841/* end confdefs.h. */
22842#include <float.h>
22843 long double const a[] =
22844 {
22845 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22846 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22847 };
22848 long double
22849 f (long double x)
22850 {
22851 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22852 + (x ? f (x) : 'c'));
22853 }
22854
22855int
22856main ()
22857{
22858static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22859 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22860 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22861 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22862 && (int) LDBL_EPSILON == 0
22863 )];
22864test_array [0] = 0
22865
22866 ;
22867 return 0;
22868}
22869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022870if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022871 ac_cv_type_long_double_wider=yes
22872else
cristy8b350f62009-11-15 23:12:43 +000022873 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022874fi
cristy3ed852e2009-09-05 21:47:34 +000022875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876fi
cristy8b350f62009-11-15 23:12:43 +000022877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022878$as_echo "$ac_cv_type_long_double_wider" >&6; }
22879 if test $ac_cv_type_long_double_wider = yes; then
22880
cristy8b350f62009-11-15 23:12:43 +000022881$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022882
22883 fi
22884
22885
cristy501c8042011-05-26 17:46:28 +000022886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22887$as_echo_n "checking for long long int... " >&6; }
22888if ${ac_cv_type_long_long_int+:} false; then :
22889 $as_echo_n "(cached) " >&6
22890else
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892/* end confdefs.h. */
22893
22894 /* For now, do not test the preprocessor; as of 2007 there are too many
22895 implementations with broken preprocessors. Perhaps this can
22896 be revisited in 2012. In the meantime, code should not expect
22897 #if to work with literals wider than 32 bits. */
22898 /* Test literals. */
22899 long long int ll = 9223372036854775807ll;
22900 long long int nll = -9223372036854775807LL;
22901 unsigned long long int ull = 18446744073709551615ULL;
22902 /* Test constant expressions. */
22903 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22904 ? 1 : -1)];
22905 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22906 ? 1 : -1)];
22907 int i = 63;
22908int
22909main ()
22910{
22911/* Test availability of runtime routines for shift and division. */
22912 long long int llmax = 9223372036854775807ll;
22913 unsigned long long int ullmax = 18446744073709551615ull;
22914 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22915 | (llmax / ll) | (llmax % ll)
22916 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22917 | (ullmax / ull) | (ullmax % ull));
22918 ;
22919 return 0;
22920}
22921
22922_ACEOF
22923if ac_fn_c_try_link "$LINENO"; then :
22924 if test "$cross_compiling" = yes; then :
22925 ac_cv_type_long_long_int=yes
22926else
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928/* end confdefs.h. */
22929#include <limits.h>
22930 #ifndef LLONG_MAX
22931 # define HALF \
22932 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22933 # define LLONG_MAX (HALF - 1 + HALF)
22934 #endif
22935int
22936main ()
22937{
22938long long int n = 1;
22939 int i;
22940 for (i = 0; ; i++)
22941 {
22942 long long int m = n << i;
22943 if (m >> i != n)
22944 return 1;
22945 if (LLONG_MAX / 2 < m)
22946 break;
22947 }
22948 return 0;
22949 ;
22950 return 0;
22951}
22952_ACEOF
22953if ac_fn_c_try_run "$LINENO"; then :
22954 ac_cv_type_long_long_int=yes
22955else
22956 ac_cv_type_long_long_int=no
22957fi
22958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959 conftest.$ac_objext conftest.beam conftest.$ac_ext
22960fi
22961
22962else
22963 ac_cv_type_long_long_int=no
22964fi
22965rm -f core conftest.err conftest.$ac_objext \
22966 conftest$ac_exeext conftest.$ac_ext
22967fi
22968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22969$as_echo "$ac_cv_type_long_long_int" >&6; }
22970 if test $ac_cv_type_long_long_int = yes; then
22971
22972$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22973
22974 fi
22975
22976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22977$as_echo_n "checking for mbstate_t... " >&6; }
22978if ${ac_cv_type_mbstate_t+:} false; then :
22979 $as_echo_n "(cached) " >&6
22980else
22981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22982/* end confdefs.h. */
22983$ac_includes_default
22984# include <wchar.h>
22985int
22986main ()
22987{
22988mbstate_t x; return sizeof x;
22989 ;
22990 return 0;
22991}
22992_ACEOF
22993if ac_fn_c_try_compile "$LINENO"; then :
22994 ac_cv_type_mbstate_t=yes
22995else
22996 ac_cv_type_mbstate_t=no
22997fi
22998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999fi
23000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23001$as_echo "$ac_cv_type_mbstate_t" >&6; }
23002 if test $ac_cv_type_mbstate_t = yes; then
23003
23004$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23005
23006 else
23007
23008$as_echo "#define mbstate_t int" >>confdefs.h
23009
23010 fi
23011ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23012if test "x$ac_cv_type_mode_t" = xyes; then :
23013
23014else
23015
23016cat >>confdefs.h <<_ACEOF
23017#define mode_t int
23018_ACEOF
23019
23020fi
23021
23022ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23023if test "x$ac_cv_type_off_t" = xyes; then :
23024
23025else
23026
23027cat >>confdefs.h <<_ACEOF
23028#define off_t long int
23029_ACEOF
23030
23031fi
23032
23033ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23034if test "x$ac_cv_type_pid_t" = xyes; then :
23035
23036else
23037
23038cat >>confdefs.h <<_ACEOF
23039#define pid_t int
23040_ACEOF
23041
23042fi
23043
23044ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23045if test "x$ac_cv_type_size_t" = xyes; then :
23046
23047else
23048
23049cat >>confdefs.h <<_ACEOF
23050#define size_t unsigned int
23051_ACEOF
23052
23053fi
23054
23055ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23056if test "x$ac_cv_type_ssize_t" = xyes; then :
23057
23058else
23059
23060cat >>confdefs.h <<_ACEOF
23061#define ssize_t int
23062_ACEOF
23063
23064fi
23065
23066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23067$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23068if ${ac_cv_type_uid_t+:} false; then :
23069 $as_echo_n "(cached) " >&6
23070else
23071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23072/* end confdefs.h. */
23073#include <sys/types.h>
23074
23075_ACEOF
23076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23077 $EGREP "uid_t" >/dev/null 2>&1; then :
23078 ac_cv_type_uid_t=yes
23079else
23080 ac_cv_type_uid_t=no
23081fi
23082rm -f conftest*
23083
23084fi
23085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23086$as_echo "$ac_cv_type_uid_t" >&6; }
23087if test $ac_cv_type_uid_t = no; then
23088
23089$as_echo "#define uid_t int" >>confdefs.h
23090
23091
23092$as_echo "#define gid_t int" >>confdefs.h
23093
23094fi
23095
23096ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23097case $ac_cv_c_uint8_t in #(
23098 no|yes) ;; #(
23099 *)
23100
23101$as_echo "#define _UINT8_T 1" >>confdefs.h
23102
23103
23104cat >>confdefs.h <<_ACEOF
23105#define uint8_t $ac_cv_c_uint8_t
23106_ACEOF
23107;;
23108 esac
23109
23110ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23111case $ac_cv_c_uint16_t in #(
23112 no|yes) ;; #(
23113 *)
23114
23115
23116cat >>confdefs.h <<_ACEOF
23117#define uint16_t $ac_cv_c_uint16_t
23118_ACEOF
23119;;
23120 esac
23121
23122ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23123case $ac_cv_c_uint32_t in #(
23124 no|yes) ;; #(
23125 *)
23126
23127$as_echo "#define _UINT32_T 1" >>confdefs.h
23128
23129
23130cat >>confdefs.h <<_ACEOF
23131#define uint32_t $ac_cv_c_uint32_t
23132_ACEOF
23133;;
23134 esac
23135
23136ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23137case $ac_cv_c_uint64_t in #(
23138 no|yes) ;; #(
23139 *)
23140
23141$as_echo "#define _UINT64_T 1" >>confdefs.h
23142
23143
23144cat >>confdefs.h <<_ACEOF
23145#define uint64_t $ac_cv_c_uint64_t
23146_ACEOF
23147;;
23148 esac
23149
23150
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23152$as_echo_n "checking for unsigned long long int... " >&6; }
23153if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23154 $as_echo_n "(cached) " >&6
23155else
23156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23157/* end confdefs.h. */
23158
23159 /* For now, do not test the preprocessor; as of 2007 there are too many
23160 implementations with broken preprocessors. Perhaps this can
23161 be revisited in 2012. In the meantime, code should not expect
23162 #if to work with literals wider than 32 bits. */
23163 /* Test literals. */
23164 long long int ll = 9223372036854775807ll;
23165 long long int nll = -9223372036854775807LL;
23166 unsigned long long int ull = 18446744073709551615ULL;
23167 /* Test constant expressions. */
23168 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23169 ? 1 : -1)];
23170 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23171 ? 1 : -1)];
23172 int i = 63;
23173int
23174main ()
23175{
23176/* Test availability of runtime routines for shift and division. */
23177 long long int llmax = 9223372036854775807ll;
23178 unsigned long long int ullmax = 18446744073709551615ull;
23179 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23180 | (llmax / ll) | (llmax % ll)
23181 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23182 | (ullmax / ull) | (ullmax % ull));
23183 ;
23184 return 0;
23185}
23186
23187_ACEOF
23188if ac_fn_c_try_link "$LINENO"; then :
23189 ac_cv_type_unsigned_long_long_int=yes
23190else
23191 ac_cv_type_unsigned_long_long_int=no
23192fi
23193rm -f core conftest.err conftest.$ac_objext \
23194 conftest$ac_exeext conftest.$ac_ext
23195fi
23196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23197$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23198 if test $ac_cv_type_unsigned_long_long_int = yes; then
23199
23200$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23201
23202 fi
23203
23204
23205
23206 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23207if test "x$ac_cv_type_uintmax_t" = xyes; then :
23208
23209$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23210
23211else
23212 test $ac_cv_type_unsigned_long_long_int = yes \
23213 && ac_type='unsigned long long int' \
23214 || ac_type='unsigned long int'
23215
23216cat >>confdefs.h <<_ACEOF
23217#define uintmax_t $ac_type
23218_ACEOF
23219
23220fi
23221
23222
23223
23224 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23225if test "x$ac_cv_type_uintptr_t" = xyes; then :
23226
23227$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23228
23229else
23230 for ac_type in 'unsigned int' 'unsigned long int' \
23231 'unsigned long long int'; do
23232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233/* end confdefs.h. */
23234$ac_includes_default
23235int
23236main ()
23237{
23238static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23239test_array [0] = 0
23240
23241 ;
23242 return 0;
23243}
23244_ACEOF
23245if ac_fn_c_try_compile "$LINENO"; then :
23246
23247cat >>confdefs.h <<_ACEOF
23248#define uintptr_t $ac_type
23249_ACEOF
23250
23251 ac_type=
23252fi
23253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 test -z "$ac_type" && break
23255 done
23256fi
23257
23258
23259
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23261$as_echo_n "checking for unsigned long long int... " >&6; }
23262if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23263 $as_echo_n "(cached) " >&6
23264else
23265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266/* end confdefs.h. */
23267
23268 /* For now, do not test the preprocessor; as of 2007 there are too many
23269 implementations with broken preprocessors. Perhaps this can
23270 be revisited in 2012. In the meantime, code should not expect
23271 #if to work with literals wider than 32 bits. */
23272 /* Test literals. */
23273 long long int ll = 9223372036854775807ll;
23274 long long int nll = -9223372036854775807LL;
23275 unsigned long long int ull = 18446744073709551615ULL;
23276 /* Test constant expressions. */
23277 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23278 ? 1 : -1)];
23279 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23280 ? 1 : -1)];
23281 int i = 63;
23282int
23283main ()
23284{
23285/* Test availability of runtime routines for shift and division. */
23286 long long int llmax = 9223372036854775807ll;
23287 unsigned long long int ullmax = 18446744073709551615ull;
23288 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23289 | (llmax / ll) | (llmax % ll)
23290 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23291 | (ullmax / ull) | (ullmax % ull));
23292 ;
23293 return 0;
23294}
23295
23296_ACEOF
23297if ac_fn_c_try_link "$LINENO"; then :
23298 ac_cv_type_unsigned_long_long_int=yes
23299else
23300 ac_cv_type_unsigned_long_long_int=no
23301fi
23302rm -f core conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext conftest.$ac_ext
23304fi
23305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23306$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23307 if test $ac_cv_type_unsigned_long_long_int = yes; then
23308
23309$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23310
23311 fi
23312
23313
cristy3ed852e2009-09-05 21:47:34 +000023314# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23315# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023317$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023318if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023319 $as_echo_n "(cached) " >&6
23320else
cristy8b350f62009-11-15 23:12:43 +000023321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023322/* end confdefs.h. */
23323$ac_includes_default
23324int
23325main ()
23326{
23327static int test_array [1 - 2 * !(((char) -1) < 0)];
23328test_array [0] = 0
23329
23330 ;
23331 return 0;
23332}
23333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023334if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023335 ac_cv_c_char_unsigned=no
23336else
cristy8b350f62009-11-15 23:12:43 +000023337 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023338fi
cristy3ed852e2009-09-05 21:47:34 +000023339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23340fi
cristy8b350f62009-11-15 23:12:43 +000023341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023342$as_echo "$ac_cv_c_char_unsigned" >&6; }
23343if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023344 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023345
23346fi
23347
23348
23349# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23350# The cast to long int works around a bug in the HP C Compiler
23351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23353# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023355$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023356if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023357 $as_echo_n "(cached) " >&6
23358else
cristy8b350f62009-11-15 23:12:43 +000023359 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 +000023360
cristy3ed852e2009-09-05 21:47:34 +000023361else
cristy8b350f62009-11-15 23:12:43 +000023362 if test "$ac_cv_type_signed_short" = yes; then
23363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023365as_fn_error 77 "cannot compute sizeof (signed short)
23366See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023367 else
23368 ac_cv_sizeof_signed_short=0
23369 fi
23370fi
cristy8b350f62009-11-15 23:12:43 +000023371
cristy3ed852e2009-09-05 21:47:34 +000023372fi
cristy8b350f62009-11-15 23:12:43 +000023373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23375
23376
23377
23378cat >>confdefs.h <<_ACEOF
23379#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23380_ACEOF
23381
23382
23383
23384# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23385# The cast to long int works around a bug in the HP C Compiler
23386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23388# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023391if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 $as_echo_n "(cached) " >&6
23393else
cristy8b350f62009-11-15 23:12:43 +000023394 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 +000023395
cristy3ed852e2009-09-05 21:47:34 +000023396else
cristy8b350f62009-11-15 23:12:43 +000023397 if test "$ac_cv_type_unsigned_short" = yes; then
23398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023400as_fn_error 77 "cannot compute sizeof (unsigned short)
23401See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023402 else
23403 ac_cv_sizeof_unsigned_short=0
23404 fi
23405fi
cristy8b350f62009-11-15 23:12:43 +000023406
cristy3ed852e2009-09-05 21:47:34 +000023407fi
cristy8b350f62009-11-15 23:12:43 +000023408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23410
23411
23412
23413cat >>confdefs.h <<_ACEOF
23414#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23415_ACEOF
23416
23417
23418
23419# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23420# The cast to long int works around a bug in the HP C Compiler
23421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23423# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023426if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 $as_echo_n "(cached) " >&6
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 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 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431else
cristy8b350f62009-11-15 23:12:43 +000023432 if test "$ac_cv_type_signed_int" = yes; then
23433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023435as_fn_error 77 "cannot compute sizeof (signed int)
23436See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023437 else
23438 ac_cv_sizeof_signed_int=0
23439 fi
23440fi
cristy8b350f62009-11-15 23:12:43 +000023441
cristy3ed852e2009-09-05 21:47:34 +000023442fi
cristy8b350f62009-11-15 23:12:43 +000023443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23445
23446
23447
23448cat >>confdefs.h <<_ACEOF
23449#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23450_ACEOF
23451
23452
23453
23454# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23455# The cast to long int works around a bug in the HP C Compiler
23456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23458# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023461if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 $as_echo_n "(cached) " >&6
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 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 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466else
cristy8b350f62009-11-15 23:12:43 +000023467 if test "$ac_cv_type_unsigned_int" = yes; then
23468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023470as_fn_error 77 "cannot compute sizeof (unsigned int)
23471See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023472 else
23473 ac_cv_sizeof_unsigned_int=0
23474 fi
23475fi
cristy8b350f62009-11-15 23:12:43 +000023476
cristy3ed852e2009-09-05 21:47:34 +000023477fi
cristy8b350f62009-11-15 23:12:43 +000023478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23480
23481
23482
23483cat >>confdefs.h <<_ACEOF
23484#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23485_ACEOF
23486
23487
23488
23489# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23490# The cast to long int works around a bug in the HP C Compiler
23491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023495$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023496if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023497 $as_echo_n "(cached) " >&6
23498else
cristy8b350f62009-11-15 23:12:43 +000023499 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 +000023500
cristy3ed852e2009-09-05 21:47:34 +000023501else
cristy8b350f62009-11-15 23:12:43 +000023502 if test "$ac_cv_type_signed_long" = yes; then
23503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023505as_fn_error 77 "cannot compute sizeof (signed long)
23506See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023507 else
23508 ac_cv_sizeof_signed_long=0
23509 fi
23510fi
cristy8b350f62009-11-15 23:12:43 +000023511
cristy3ed852e2009-09-05 21:47:34 +000023512fi
cristy8b350f62009-11-15 23:12:43 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23515
23516
23517
23518cat >>confdefs.h <<_ACEOF
23519#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23520_ACEOF
23521
23522
23523
23524# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23525# The cast to long int works around a bug in the HP C Compiler
23526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23528# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023530$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023531if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023532 $as_echo_n "(cached) " >&6
23533else
cristy8b350f62009-11-15 23:12:43 +000023534 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 +000023535
cristy3ed852e2009-09-05 21:47:34 +000023536else
cristy8b350f62009-11-15 23:12:43 +000023537 if test "$ac_cv_type_unsigned_long" = yes; then
23538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023540as_fn_error 77 "cannot compute sizeof (unsigned long)
23541See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023542 else
23543 ac_cv_sizeof_unsigned_long=0
23544 fi
23545fi
cristy8b350f62009-11-15 23:12:43 +000023546
cristy3ed852e2009-09-05 21:47:34 +000023547fi
cristy8b350f62009-11-15 23:12:43 +000023548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023549$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23550
23551
23552
23553cat >>confdefs.h <<_ACEOF
23554#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23555_ACEOF
23556
23557
23558
23559# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23560# 'signed long long' is not supported then the value defined is zero.
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 signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023567if ${ac_cv_sizeof_signed_long_long+:} 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 (signed long long))" "ac_cv_sizeof_signed_long_long" "$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_signed_long_long" = 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 (signed long long)
23577See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023578 else
23579 ac_cv_sizeof_signed_long_long=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_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23586
23587
23588
23589cat >>confdefs.h <<_ACEOF
23590#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23591_ACEOF
23592
23593
23594
23595# Obtain size of a 'unsigned long long' and define as
23596# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23597# supported then the value defined is zero.
23598# The cast to long int works around a bug in the HP C Compiler
23599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23601# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023604if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023605 $as_echo_n "(cached) " >&6
23606else
cristy8b350f62009-11-15 23:12:43 +000023607 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 +000023608
cristy3ed852e2009-09-05 21:47:34 +000023609else
cristy8b350f62009-11-15 23:12:43 +000023610 if test "$ac_cv_type_unsigned_long_long" = yes; then
23611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023613as_fn_error 77 "cannot compute sizeof (unsigned long long)
23614See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023615 else
23616 ac_cv_sizeof_unsigned_long_long=0
23617 fi
23618fi
cristy8b350f62009-11-15 23:12:43 +000023619
cristy3ed852e2009-09-05 21:47:34 +000023620fi
cristy8b350f62009-11-15 23:12:43 +000023621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023622$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23623
23624
23625
23626cat >>confdefs.h <<_ACEOF
23627#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23628_ACEOF
23629
23630
23631
23632# Obtain size of off_t and define as SIZEOF_OFF_T
23633# The cast to long int works around a bug in the HP C Compiler
23634# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23635# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23636# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023638$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023639if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023640 $as_echo_n "(cached) " >&6
23641else
cristy8b350f62009-11-15 23:12:43 +000023642 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 +000023643
cristy3ed852e2009-09-05 21:47:34 +000023644else
cristy8b350f62009-11-15 23:12:43 +000023645 if test "$ac_cv_type_off_t" = yes; then
23646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023648as_fn_error 77 "cannot compute sizeof (off_t)
23649See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023650 else
23651 ac_cv_sizeof_off_t=0
23652 fi
23653fi
cristy8b350f62009-11-15 23:12:43 +000023654
cristy3ed852e2009-09-05 21:47:34 +000023655fi
cristy8b350f62009-11-15 23:12:43 +000023656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023657$as_echo "$ac_cv_sizeof_off_t" >&6; }
23658
23659
23660
23661cat >>confdefs.h <<_ACEOF
23662#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23663_ACEOF
23664
23665
23666
23667# Obtain size of size_t and define as SIZEOF_SIZE_T
23668# The cast to long int works around a bug in the HP C Compiler
23669# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23670# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23671# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023673$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023674if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023675 $as_echo_n "(cached) " >&6
23676else
cristy8b350f62009-11-15 23:12:43 +000023677 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 +000023678
cristy3ed852e2009-09-05 21:47:34 +000023679else
cristy8b350f62009-11-15 23:12:43 +000023680 if test "$ac_cv_type_size_t" = yes; then
23681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023683as_fn_error 77 "cannot compute sizeof (size_t)
23684See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023685 else
23686 ac_cv_sizeof_size_t=0
23687 fi
23688fi
cristy8b350f62009-11-15 23:12:43 +000023689
cristy3ed852e2009-09-05 21:47:34 +000023690fi
cristy8b350f62009-11-15 23:12:43 +000023691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023692$as_echo "$ac_cv_sizeof_size_t" >&6; }
23693
23694
23695
23696cat >>confdefs.h <<_ACEOF
23697#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23698_ACEOF
23699
23700
23701
cristy330e9352010-06-01 18:42:49 +000023702# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23703# The cast to long int works around a bug in the HP C Compiler
23704# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23705# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23706# This bug is HP SR number 8606223364.
23707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23708$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023709if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023710 $as_echo_n "(cached) " >&6
23711else
23712 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23713
23714else
23715 if test "$ac_cv_type_ssize_t" = yes; then
23716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023718as_fn_error 77 "cannot compute sizeof (ssize_t)
23719See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023720 else
23721 ac_cv_sizeof_ssize_t=0
23722 fi
23723fi
23724
23725fi
23726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23727$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23728
23729
23730
23731cat >>confdefs.h <<_ACEOF
23732#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23733_ACEOF
23734
23735
23736
cristy3ed852e2009-09-05 21:47:34 +000023737# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23738# The cast to long int works around a bug in the HP C Compiler
23739# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23740# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23741# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023743$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023744if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023745 $as_echo_n "(cached) " >&6
23746else
cristy8b350f62009-11-15 23:12:43 +000023747 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 +000023748
cristy3ed852e2009-09-05 21:47:34 +000023749else
cristy8b350f62009-11-15 23:12:43 +000023750 if test "$ac_cv_type_unsigned_intp" = yes; then
23751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023753as_fn_error 77 "cannot compute sizeof (unsigned int*)
23754See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023755 else
23756 ac_cv_sizeof_unsigned_intp=0
23757 fi
23758fi
cristy8b350f62009-11-15 23:12:43 +000023759
cristy3ed852e2009-09-05 21:47:34 +000023760fi
cristy8b350f62009-11-15 23:12:43 +000023761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23763
23764
23765
23766cat >>confdefs.h <<_ACEOF
23767#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23768_ACEOF
23769
23770
23771
23772#
23773# Compute sized types for current CPU and compiler options.
23774#
23775
cristy8b350f62009-11-15 23:12:43 +000023776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023777$as_echo_n "checking for signed 8-bit type... " >&6; }
23778INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23780$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023781
23782
cristy8b350f62009-11-15 23:12:43 +000023783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023784$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23785UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23787$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023788
23789
cristy8b350f62009-11-15 23:12:43 +000023790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023791$as_echo_n "checking for signed 16-bit type... " >&6; }
23792INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023793{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23794$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023795
23796
cristy8b350f62009-11-15 23:12:43 +000023797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023798$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23799UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023800{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23801$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023802
23803
cristy8b350f62009-11-15 23:12:43 +000023804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023805$as_echo_n "checking for signed 32-bit type... " >&6; }
23806INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023807INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023808if test $ac_cv_sizeof_signed_int -eq 4; then
23809 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023810 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023811elif test $ac_cv_sizeof_signed_long -eq 4; then
23812 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023813 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023814fi
cristy09b53e12011-10-14 12:47:22 +000023815{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23816$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023817
23818
cristy6d5e20f2011-04-25 13:48:54 +000023819
cristy8b350f62009-11-15 23:12:43 +000023820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23822UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023823UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023824if test $ac_cv_sizeof_unsigned_int -eq 4; then
23825 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023826 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023827elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23828 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023829 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023830fi
cristy09b53e12011-10-14 12:47:22 +000023831{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23832$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023833
23834
cristy6d5e20f2011-04-25 13:48:54 +000023835
cristy8b350f62009-11-15 23:12:43 +000023836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023837$as_echo_n "checking for signed 64-bit type... " >&6; }
23838INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023839INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023840if test $ac_cv_sizeof_signed_long -eq 8; then
23841 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023842 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023843elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23844 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023845 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023846fi
cristy3a99dcf2011-12-17 01:29:40 +000023847case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023848 mingw* )
23849 INT64_F='"I64"'
23850 ;;
23851esac
cristy09b53e12011-10-14 12:47:22 +000023852{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23853$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023854
23855
cristy6d5e20f2011-04-25 13:48:54 +000023856
cristy8b350f62009-11-15 23:12:43 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023858$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23859UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023860UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023861if test $ac_cv_sizeof_unsigned_long -eq 8; then
23862 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023863 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023864elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23865 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023866 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023867fi
cristy3a99dcf2011-12-17 01:29:40 +000023868case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023869 mingw* )
23870 UINT64_F='"I64"'
23871 ;;
23872esac
cristy09b53e12011-10-14 12:47:22 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23874$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023875
23876
cristy6d5e20f2011-04-25 13:48:54 +000023877
cristy8b350f62009-11-15 23:12:43 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023879$as_echo_n "checking for unsigned maximum type... " >&6; }
23880UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023881UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023882if test "$UINT64_T" != 'none'; then
23883 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023884 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023885elif test "$UINT32_T" != 'none'; then
23886 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023887 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023888fi
cristy09b53e12011-10-14 12:47:22 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23890$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023891
23892
cristy6d5e20f2011-04-25 13:48:54 +000023893
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo_n "checking for pointer difference type... " >&6; }
23896UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023897UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023898if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23899 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023900 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023901elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23902 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023903 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023904fi
cristy09b53e12011-10-14 12:47:22 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23906$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023907
23908
cristy6d5e20f2011-04-25 13:48:54 +000023909
cristy8b350f62009-11-15 23:12:43 +000023910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023911$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023913/* end confdefs.h. */
23914
23915int
23916main ()
23917{
23918{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23919 ;
23920 return 0;
23921}
23922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023923if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023924 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23925$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023926else
cristy09b53e12011-10-14 12:47:22 +000023927 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23928$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023930$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023932/* end confdefs.h. */
23933
23934int
23935main ()
23936{
23937{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23938 ;
23939 return 0;
23940}
23941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023942if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023943 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23944$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023945
cristy8b350f62009-11-15 23:12:43 +000023946$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023947
23948else
cristy09b53e12011-10-14 12:47:22 +000023949 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23950$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023951
cristy8b350f62009-11-15 23:12:43 +000023952$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023953
23954fi
cristy3ed852e2009-09-05 21:47:34 +000023955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956fi
cristy3ed852e2009-09-05 21:47:34 +000023957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958
23959########
23960#
23961# Check for functions
23962#
23963########
cristy73bd4a52010-10-05 11:24:23 +000023964for ac_header in stdlib.h unistd.h
23965do :
23966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23967ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023969 cat >>confdefs.h <<_ACEOF
23970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23971_ACEOF
23972
23973fi
23974
23975done
23976
23977for ac_func in getpagesize
23978do :
23979 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023980if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023981 cat >>confdefs.h <<_ACEOF
23982#define HAVE_GETPAGESIZE 1
23983_ACEOF
23984
23985fi
23986done
23987
23988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23989$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023990if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023991 $as_echo_n "(cached) " >&6
23992else
23993 if test "$cross_compiling" = yes; then :
23994 magick_cv_func_mmap_fileio=no
23995else
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997/* end confdefs.h. */
23998$ac_includes_default
23999/* malloc might have been renamed as rpl_malloc. */
24000#undef malloc
24001
24002/*
24003 This test is derived from GNU Autoconf's similar macro.
24004 The purpose of this test is to verify that files may be memory
24005 mapped, and that memory mapping and file I/O are coherent.
24006
24007 The test creates a test file, memory maps the file, updates
24008 the file using the memory map, and then reads the file using
24009 file I/O to verify that the file contains the updates.
24010*/
24011
24012#include <fcntl.h>
24013#include <sys/mman.h>
24014
24015#if !STDC_HEADERS && !HAVE_STDLIB_H
24016char *malloc ();
24017#endif
24018
24019/* This mess was copied from the GNU getpagesize.h. */
24020#if !HAVE_GETPAGESIZE
24021/* Assume that all systems that can run configure have sys/param.h. */
24022# if !HAVE_SYS_PARAM_H
24023# define HAVE_SYS_PARAM_H 1
24024# endif
24025
24026# ifdef _SC_PAGESIZE
24027# define getpagesize() sysconf(_SC_PAGESIZE)
24028# else /* no _SC_PAGESIZE */
24029# if HAVE_SYS_PARAM_H
24030# include <sys/param.h>
24031# ifdef EXEC_PAGESIZE
24032# define getpagesize() EXEC_PAGESIZE
24033# else /* no EXEC_PAGESIZE */
24034# ifdef NBPG
24035# define getpagesize() NBPG * CLSIZE
24036# ifndef CLSIZE
24037# define CLSIZE 1
24038# endif /* no CLSIZE */
24039# else /* no NBPG */
24040# ifdef NBPC
24041# define getpagesize() NBPC
24042# else /* no NBPC */
24043# ifdef PAGESIZE
24044# define getpagesize() PAGESIZE
24045# endif /* PAGESIZE */
24046# endif /* no NBPC */
24047# endif /* no NBPG */
24048# endif /* no EXEC_PAGESIZE */
24049# else /* no HAVE_SYS_PARAM_H */
24050# define getpagesize() 8192 /* punt totally */
24051# endif /* no HAVE_SYS_PARAM_H */
24052# endif /* no _SC_PAGESIZE */
24053
24054#endif /* no HAVE_GETPAGESIZE */
24055
24056int
24057main ()
24058{
24059 char *data, *data2, *data3;
24060 int i, pagesize;
24061 int fd;
24062
24063 pagesize = getpagesize ();
24064
24065 /* First, make a file with some known garbage in it. */
24066 data = (char *) malloc (pagesize);
24067 if (!data)
24068 exit (1);
24069 for (i = 0; i < pagesize; ++i)
24070 *(data + i) = rand ();
24071 umask (0);
24072 fd = creat ("conftest.mmap", 0600);
24073 if (fd < 0)
24074 exit (1);
24075 if (write (fd, data, pagesize) != pagesize)
24076 exit (1);
24077 close (fd);
24078
24079 /* Mmap the file as read/write/shared and verify that we see the
24080 same garbage. */
24081 fd = open ("conftest.mmap", O_RDWR);
24082 if (fd < 0)
24083 exit (1);
24084 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24085 if (data2 == 0)
24086 exit (1);
24087 for (i = 0; i < pagesize; ++i)
24088 if (*(data + i) != *(data2 + i))
24089 exit (1);
24090
24091 /* Finally, make sure that changes to the mapped area
24092 percolate back to the file as seen by read(). */
24093 for (i = 0; i < pagesize; ++i)
24094 *(data2 + i) = *(data2 + i) + 1;
24095 data3 = (char *) malloc (pagesize);
24096 if (!data3)
24097 exit (1);
24098 if (read (fd, data3, pagesize) != pagesize)
24099 exit (1);
24100 for (i = 0; i < pagesize; ++i)
24101 if (*(data2 + i) != *(data3 + i))
24102 exit (1);
24103 close (fd);
24104 exit (0);
24105}
24106_ACEOF
24107if ac_fn_c_try_run "$LINENO"; then :
24108 magick_cv_func_mmap_fileio=yes
24109else
24110 magick_cv_func_mmap_fileio=no
24111fi
24112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24113 conftest.$ac_objext conftest.beam conftest.$ac_ext
24114fi
24115
24116fi
24117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24118$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24119if test $magick_cv_func_mmap_fileio = yes; then
24120
24121$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24122
24123fi
24124rm -f conftest.mmap
24125
cristy8b350f62009-11-15 23:12:43 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024128if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024129 $as_echo_n "(cached) " >&6
24130else
cristy8b350f62009-11-15 23:12:43 +000024131 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024132 ac_cv_func_closedir_void=yes
24133else
cristy8b350f62009-11-15 23:12:43 +000024134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024135/* end confdefs.h. */
24136$ac_includes_default
24137#include <$ac_header_dirent>
24138#ifndef __cplusplus
24139int closedir ();
24140#endif
24141
24142int
24143main ()
24144{
24145return closedir (opendir (".")) != 0;
24146 ;
24147 return 0;
24148}
24149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024150if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024151 ac_cv_func_closedir_void=no
24152else
cristy8b350f62009-11-15 23:12:43 +000024153 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024154fi
cristy8b350f62009-11-15 23:12:43 +000024155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24156 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024157fi
24158
cristy3ed852e2009-09-05 21:47:34 +000024159fi
cristy8b350f62009-11-15 23:12:43 +000024160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024161$as_echo "$ac_cv_func_closedir_void" >&6; }
24162if test $ac_cv_func_closedir_void = yes; then
24163
cristy8b350f62009-11-15 23:12:43 +000024164$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024165
24166fi
24167
cristycd4c5312009-11-22 01:19:08 +000024168
24169
24170
24171 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024172do :
24173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024174ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24175"
cristy98dddb52010-11-04 00:30:15 +000024176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 cat >>confdefs.h <<_ACEOF
24178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24179_ACEOF
24180
24181fi
24182
24183done
24184
cristycd4c5312009-11-22 01:19:08 +000024185
24186
24187
24188
24189
24190
24191
cristy3ed852e2009-09-05 21:47:34 +000024192for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024193do :
24194 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024195if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024196 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024197#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024198_ACEOF
24199
24200fi
24201done
24202
cristy8b350f62009-11-15 23:12:43 +000024203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024204$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024205if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024206 $as_echo_n "(cached) " >&6
24207else
cristy8b350f62009-11-15 23:12:43 +000024208 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024209 ac_cv_func_mmap_fixed_mapped=no
24210else
cristy8b350f62009-11-15 23:12:43 +000024211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024212/* end confdefs.h. */
24213$ac_includes_default
24214/* malloc might have been renamed as rpl_malloc. */
24215#undef malloc
24216
24217/* Thanks to Mike Haertel and Jim Avera for this test.
24218 Here is a matrix of mmap possibilities:
24219 mmap private not fixed
24220 mmap private fixed at somewhere currently unmapped
24221 mmap private fixed at somewhere already mapped
24222 mmap shared not fixed
24223 mmap shared fixed at somewhere currently unmapped
24224 mmap shared fixed at somewhere already mapped
24225 For private mappings, we should verify that changes cannot be read()
24226 back from the file, nor mmap's back from the file at a different
24227 address. (There have been systems where private was not correctly
24228 implemented like the infamous i386 svr4.0, and systems where the
24229 VM page cache was not coherent with the file system buffer cache
24230 like early versions of FreeBSD and possibly contemporary NetBSD.)
24231 For shared mappings, we should conversely verify that changes get
24232 propagated back to all the places they're supposed to be.
24233
24234 Grep wants private fixed already mapped.
24235 The main things grep needs to know about mmap are:
24236 * does it exist and is it safe to write into the mmap'd area
24237 * how to use it (BSD variants) */
24238
24239#include <fcntl.h>
24240#include <sys/mman.h>
24241
24242#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24243char *malloc ();
24244#endif
24245
24246/* This mess was copied from the GNU getpagesize.h. */
24247#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024248# ifdef _SC_PAGESIZE
24249# define getpagesize() sysconf(_SC_PAGESIZE)
24250# else /* no _SC_PAGESIZE */
24251# ifdef HAVE_SYS_PARAM_H
24252# include <sys/param.h>
24253# ifdef EXEC_PAGESIZE
24254# define getpagesize() EXEC_PAGESIZE
24255# else /* no EXEC_PAGESIZE */
24256# ifdef NBPG
24257# define getpagesize() NBPG * CLSIZE
24258# ifndef CLSIZE
24259# define CLSIZE 1
24260# endif /* no CLSIZE */
24261# else /* no NBPG */
24262# ifdef NBPC
24263# define getpagesize() NBPC
24264# else /* no NBPC */
24265# ifdef PAGESIZE
24266# define getpagesize() PAGESIZE
24267# endif /* PAGESIZE */
24268# endif /* no NBPC */
24269# endif /* no NBPG */
24270# endif /* no EXEC_PAGESIZE */
24271# else /* no HAVE_SYS_PARAM_H */
24272# define getpagesize() 8192 /* punt totally */
24273# endif /* no HAVE_SYS_PARAM_H */
24274# endif /* no _SC_PAGESIZE */
24275
24276#endif /* no HAVE_GETPAGESIZE */
24277
24278int
24279main ()
24280{
24281 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024282 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024283 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024284 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024285
24286 pagesize = getpagesize ();
24287
24288 /* First, make a file with some known garbage in it. */
24289 data = (char *) malloc (pagesize);
24290 if (!data)
24291 return 1;
24292 for (i = 0; i < pagesize; ++i)
24293 *(data + i) = rand ();
24294 umask (0);
24295 fd = creat ("conftest.mmap", 0600);
24296 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024297 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024298 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024299 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024300 close (fd);
24301
cristycd4c5312009-11-22 01:19:08 +000024302 /* Next, check that the tail of a page is zero-filled. File must have
24303 non-zero length, otherwise we risk SIGBUS for entire page. */
24304 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24305 if (fd2 < 0)
24306 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024307 cdata2 = "";
24308 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024309 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024310 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024311 if (data2 == MAP_FAILED)
24312 return 6;
24313 for (i = 0; i < pagesize; ++i)
24314 if (*(data2 + i))
24315 return 7;
24316 close (fd2);
24317 if (munmap (data2, pagesize))
24318 return 8;
24319
cristy3ed852e2009-09-05 21:47:34 +000024320 /* Next, try to mmap the file at a fixed address which already has
24321 something else allocated at it. If we can, also make sure that
24322 we see the same garbage. */
24323 fd = open ("conftest.mmap", O_RDWR);
24324 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024325 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024326 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24327 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024328 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024329 for (i = 0; i < pagesize; ++i)
24330 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024331 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024332
24333 /* Finally, make sure that changes to the mapped area do not
24334 percolate back to the file as seen by read(). (This is a bug on
24335 some variants of i386 svr4.0.) */
24336 for (i = 0; i < pagesize; ++i)
24337 *(data2 + i) = *(data2 + i) + 1;
24338 data3 = (char *) malloc (pagesize);
24339 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024340 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024341 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024342 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024343 for (i = 0; i < pagesize; ++i)
24344 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024345 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024346 close (fd);
24347 return 0;
24348}
24349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024350if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024351 ac_cv_func_mmap_fixed_mapped=yes
24352else
cristy8b350f62009-11-15 23:12:43 +000024353 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy8b350f62009-11-15 23:12:43 +000024355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24356 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357fi
24358
cristy3ed852e2009-09-05 21:47:34 +000024359fi
cristy8b350f62009-11-15 23:12:43 +000024360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24362if test $ac_cv_func_mmap_fixed_mapped = yes; then
24363
cristy8b350f62009-11-15 23:12:43 +000024364$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024365
24366fi
cristycd4c5312009-11-22 01:19:08 +000024367rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024368
cristy3ed852e2009-09-05 21:47:34 +000024369for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024370do :
24371 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024372if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024373 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024374#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024375_ACEOF
24376
24377fi
24378
24379done
24380
cristy3ed852e2009-09-05 21:47:34 +000024381for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024382do :
24383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24384ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024385if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 cat >>confdefs.h <<_ACEOF
24387#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24388_ACEOF
24389
24390fi
24391done
24392
24393if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024395$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024396if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024397 $as_echo_n "(cached) " >&6
24398else
cristy8b350f62009-11-15 23:12:43 +000024399 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 ac_cv_func_fork_works=cross
24401else
cristy8b350f62009-11-15 23:12:43 +000024402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024403/* end confdefs.h. */
24404$ac_includes_default
24405int
24406main ()
24407{
24408
24409 /* By Ruediger Kuhlmann. */
24410 return fork () < 0;
24411
24412 ;
24413 return 0;
24414}
24415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024416if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024417 ac_cv_func_fork_works=yes
24418else
cristy8b350f62009-11-15 23:12:43 +000024419 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024420fi
cristy8b350f62009-11-15 23:12:43 +000024421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24422 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024423fi
24424
cristy3ed852e2009-09-05 21:47:34 +000024425fi
cristy8b350f62009-11-15 23:12:43 +000024426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024427$as_echo "$ac_cv_func_fork_works" >&6; }
24428
24429else
24430 ac_cv_func_fork_works=$ac_cv_func_fork
24431fi
24432if test "x$ac_cv_func_fork_works" = xcross; then
24433 case $host in
24434 *-*-amigaos* | *-*-msdosdjgpp*)
24435 # Override, as these systems have only a dummy fork() stub
24436 ac_cv_func_fork_works=no
24437 ;;
24438 *)
24439 ac_cv_func_fork_works=yes
24440 ;;
24441 esac
cristy8b350f62009-11-15 23:12:43 +000024442 { $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 +000024443$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24444fi
24445ac_cv_func_vfork_works=$ac_cv_func_vfork
24446if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024448$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024449if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024450 $as_echo_n "(cached) " >&6
24451else
cristy8b350f62009-11-15 23:12:43 +000024452 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 ac_cv_func_vfork_works=cross
24454else
cristy8b350f62009-11-15 23:12:43 +000024455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024456/* end confdefs.h. */
24457/* Thanks to Paul Eggert for this test. */
24458$ac_includes_default
24459#include <sys/wait.h>
24460#ifdef HAVE_VFORK_H
24461# include <vfork.h>
24462#endif
24463/* On some sparc systems, changes by the child to local and incoming
24464 argument registers are propagated back to the parent. The compiler
24465 is told about this with #include <vfork.h>, but some compilers
24466 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24467 static variable whose address is put into a register that is
24468 clobbered by the vfork. */
24469static void
24470#ifdef __cplusplus
24471sparc_address_test (int arg)
24472# else
24473sparc_address_test (arg) int arg;
24474#endif
24475{
24476 static pid_t child;
24477 if (!child) {
24478 child = vfork ();
24479 if (child < 0) {
24480 perror ("vfork");
24481 _exit(2);
24482 }
24483 if (!child) {
24484 arg = getpid();
24485 write(-1, "", 0);
24486 _exit (arg);
24487 }
24488 }
24489}
24490
24491int
24492main ()
24493{
24494 pid_t parent = getpid ();
24495 pid_t child;
24496
24497 sparc_address_test (0);
24498
24499 child = vfork ();
24500
24501 if (child == 0) {
24502 /* Here is another test for sparc vfork register problems. This
24503 test uses lots of local variables, at least as many local
24504 variables as main has allocated so far including compiler
24505 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24506 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24507 reuse the register of parent for one of the local variables,
24508 since it will think that parent can't possibly be used any more
24509 in this routine. Assigning to the local variable will thus
24510 munge parent in the parent process. */
24511 pid_t
24512 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24513 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24514 /* Convince the compiler that p..p7 are live; otherwise, it might
24515 use the same hardware register for all 8 local variables. */
24516 if (p != p1 || p != p2 || p != p3 || p != p4
24517 || p != p5 || p != p6 || p != p7)
24518 _exit(1);
24519
24520 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24521 from child file descriptors. If the child closes a descriptor
24522 before it execs or exits, this munges the parent's descriptor
24523 as well. Test for this by closing stdout in the child. */
24524 _exit(close(fileno(stdout)) != 0);
24525 } else {
24526 int status;
24527 struct stat st;
24528
24529 while (wait(&status) != child)
24530 ;
24531 return (
24532 /* Was there some problem with vforking? */
24533 child < 0
24534
24535 /* Did the child fail? (This shouldn't happen.) */
24536 || status
24537
24538 /* Did the vfork/compiler bug occur? */
24539 || parent != getpid()
24540
24541 /* Did the file descriptor bug occur? */
24542 || fstat(fileno(stdout), &st) != 0
24543 );
24544 }
24545}
24546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024547if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024548 ac_cv_func_vfork_works=yes
24549else
cristy8b350f62009-11-15 23:12:43 +000024550 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024551fi
cristy8b350f62009-11-15 23:12:43 +000024552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24553 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024554fi
24555
cristy3ed852e2009-09-05 21:47:34 +000024556fi
cristy8b350f62009-11-15 23:12:43 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024558$as_echo "$ac_cv_func_vfork_works" >&6; }
24559
24560fi;
24561if test "x$ac_cv_func_fork_works" = xcross; then
24562 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024563 { $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 +000024564$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24565fi
24566
24567if test "x$ac_cv_func_vfork_works" = xyes; then
24568
cristy8b350f62009-11-15 23:12:43 +000024569$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024570
24571else
24572
cristy8b350f62009-11-15 23:12:43 +000024573$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024574
24575fi
24576if test "x$ac_cv_func_fork_works" = xyes; then
24577
cristy8b350f62009-11-15 23:12:43 +000024578$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024579
24580fi
24581
cristy8b350f62009-11-15 23:12:43 +000024582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024583$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024584if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024585 $as_echo_n "(cached) " >&6
24586else
cristy8b350f62009-11-15 23:12:43 +000024587 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024588 ac_cv_func_memcmp_working=no
24589else
cristy8b350f62009-11-15 23:12:43 +000024590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024591/* end confdefs.h. */
24592$ac_includes_default
24593int
24594main ()
24595{
24596
24597 /* Some versions of memcmp are not 8-bit clean. */
24598 char c0 = '\100', c1 = '\200', c2 = '\201';
24599 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24600 return 1;
24601
24602 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24603 or more and with at least one buffer not starting on a 4-byte boundary.
24604 William Lewis provided this test program. */
24605 {
24606 char foo[21];
24607 char bar[21];
24608 int i;
24609 for (i = 0; i < 4; i++)
24610 {
24611 char *a = foo + i;
24612 char *b = bar + i;
24613 strcpy (a, "--------01111111");
24614 strcpy (b, "--------10000000");
24615 if (memcmp (a, b, 16) >= 0)
24616 return 1;
24617 }
24618 return 0;
24619 }
24620
24621 ;
24622 return 0;
24623}
24624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024625if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024626 ac_cv_func_memcmp_working=yes
24627else
cristy8b350f62009-11-15 23:12:43 +000024628 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024629fi
cristy8b350f62009-11-15 23:12:43 +000024630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24631 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024632fi
24633
cristy3ed852e2009-09-05 21:47:34 +000024634fi
cristy8b350f62009-11-15 23:12:43 +000024635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024636$as_echo "$ac_cv_func_memcmp_working" >&6; }
24637test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24638 *" memcmp.$ac_objext "* ) ;;
24639 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24640 ;;
24641esac
24642
24643
cristy3ed852e2009-09-05 21:47:34 +000024644for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024645do :
24646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24647ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 cat >>confdefs.h <<_ACEOF
24650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24651_ACEOF
24652
24653fi
24654
24655done
24656
cristy8b350f62009-11-15 23:12:43 +000024657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024658$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024659if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024660 $as_echo_n "(cached) " >&6
24661else
24662 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24663 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24664 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024666/* end confdefs.h. */
24667$ac_includes_default
24668#ifdef HAVE_SYS_SELECT_H
24669# include <sys/select.h>
24670#endif
24671#ifdef HAVE_SYS_SOCKET_H
24672# include <sys/socket.h>
24673#endif
24674
24675int
24676main ()
24677{
24678extern int select ($ac_arg1,
24679 $ac_arg234, $ac_arg234, $ac_arg234,
24680 $ac_arg5);
24681 ;
24682 return 0;
24683}
24684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024687fi
cristy3ed852e2009-09-05 21:47:34 +000024688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689 done
24690 done
24691done
24692# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024693: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024694
24695fi
cristy8b350f62009-11-15 23:12:43 +000024696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024697$as_echo "$ac_cv_func_select_args" >&6; }
24698ac_save_IFS=$IFS; IFS=','
24699set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24700IFS=$ac_save_IFS
24701shift
24702
24703cat >>confdefs.h <<_ACEOF
24704#define SELECT_TYPE_ARG1 $1
24705_ACEOF
24706
24707
24708cat >>confdefs.h <<_ACEOF
24709#define SELECT_TYPE_ARG234 ($2)
24710_ACEOF
24711
24712
24713cat >>confdefs.h <<_ACEOF
24714#define SELECT_TYPE_ARG5 ($3)
24715_ACEOF
24716
24717rm -f conftest*
24718
cristyda16f162011-02-19 23:52:17 +000024719if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 $as_echo_n "(cached) " >&6
24721else
24722 ac_cv_func_setvbuf_reversed=no
24723fi
24724
24725
cristy8b350f62009-11-15 23:12:43 +000024726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024728if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 $as_echo_n "(cached) " >&6
24730else
cristy8b350f62009-11-15 23:12:43 +000024731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024732/* end confdefs.h. */
24733#include <sys/types.h>
24734#include <signal.h>
24735
24736int
24737main ()
24738{
24739return *(signal (0, 0)) (0) == 1;
24740 ;
24741 return 0;
24742}
24743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024744if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024745 ac_cv_type_signal=int
24746else
cristy8b350f62009-11-15 23:12:43 +000024747 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024748fi
cristy3ed852e2009-09-05 21:47:34 +000024749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750fi
cristy8b350f62009-11-15 23:12:43 +000024751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024752$as_echo "$ac_cv_type_signal" >&6; }
24753
24754cat >>confdefs.h <<_ACEOF
24755#define RETSIGTYPE $ac_cv_type_signal
24756_ACEOF
24757
24758
cristy8b350f62009-11-15 23:12:43 +000024759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024760$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024761if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024762 $as_echo_n "(cached) " >&6
24763else
cristy8b350f62009-11-15 23:12:43 +000024764 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_func_strtod=no
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024768/* end confdefs.h. */
24769
24770$ac_includes_default
24771#ifndef strtod
24772double strtod ();
24773#endif
24774int
24775main()
24776{
24777 {
24778 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24779 char *string = " +69";
24780 char *term;
24781 double value;
24782 value = strtod (string, &term);
24783 if (value != 69 || term != (string + 4))
24784 return 1;
24785 }
24786
24787 {
24788 /* Under Solaris 2.4, strtod returns the wrong value for the
24789 terminating character under some conditions. */
24790 char *string = "NaN";
24791 char *term;
24792 strtod (string, &term);
24793 if (term != string && *(term - 1) == 0)
24794 return 1;
24795 }
24796 return 0;
24797}
24798
24799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024800if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024801 ac_cv_func_strtod=yes
24802else
cristy8b350f62009-11-15 23:12:43 +000024803 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024804fi
cristy8b350f62009-11-15 23:12:43 +000024805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24806 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024807fi
24808
cristy3ed852e2009-09-05 21:47:34 +000024809fi
cristy8b350f62009-11-15 23:12:43 +000024810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024811$as_echo "$ac_cv_func_strtod" >&6; }
24812if test $ac_cv_func_strtod = no; then
24813 case " $LIBOBJS " in
24814 *" strtod.$ac_objext "* ) ;;
24815 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24816 ;;
24817esac
24818
cristy8b350f62009-11-15 23:12:43 +000024819ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024820if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024821
cristy3ed852e2009-09-05 21:47:34 +000024822fi
24823
cristy3ed852e2009-09-05 21:47:34 +000024824if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024827if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 $as_echo_n "(cached) " >&6
24829else
24830 ac_check_lib_save_LIBS=$LIBS
24831LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024833/* end confdefs.h. */
24834
24835/* Override any GCC internal prototype to avoid an error.
24836 Use char because int might match the return type of a GCC
24837 builtin and then its argument prototype would still apply. */
24838#ifdef __cplusplus
24839extern "C"
24840#endif
24841char pow ();
24842int
24843main ()
24844{
24845return pow ();
24846 ;
24847 return 0;
24848}
24849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024851 ac_cv_lib_m_pow=yes
24852else
cristy8b350f62009-11-15 23:12:43 +000024853 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024854fi
cristy8b350f62009-11-15 23:12:43 +000024855rm -f core conftest.err conftest.$ac_objext \
24856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024857LIBS=$ac_check_lib_save_LIBS
24858fi
cristy8b350f62009-11-15 23:12:43 +000024859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024860$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024861if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024862 POW_LIB=-lm
24863else
cristy8b350f62009-11-15 23:12:43 +000024864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024865$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24866fi
24867
24868fi
24869
24870fi
24871
cristy7d4a1d62011-10-13 15:54:12 +000024872ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24873if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24874 ac_have_decl=1
24875else
24876 ac_have_decl=0
24877fi
24878
24879cat >>confdefs.h <<_ACEOF
24880#define HAVE_DECL_STRERROR_R $ac_have_decl
24881_ACEOF
24882
24883for ac_func in strerror_r
24884do :
24885 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24886if test "x$ac_cv_func_strerror_r" = xyes; then :
24887 cat >>confdefs.h <<_ACEOF
24888#define HAVE_STRERROR_R 1
24889_ACEOF
24890
24891fi
24892done
24893
24894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24895$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24896if ${ac_cv_func_strerror_r_char_p+:} false; then :
24897 $as_echo_n "(cached) " >&6
24898else
24899
24900 ac_cv_func_strerror_r_char_p=no
24901 if test $ac_cv_have_decl_strerror_r = yes; then
24902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24903/* end confdefs.h. */
24904$ac_includes_default
24905int
24906main ()
24907{
24908
24909 char buf[100];
24910 char x = *strerror_r (0, buf, sizeof buf);
24911 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024912 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024913
24914 ;
24915 return 0;
24916}
24917_ACEOF
24918if ac_fn_c_try_compile "$LINENO"; then :
24919 ac_cv_func_strerror_r_char_p=yes
24920fi
24921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 else
24923 # strerror_r is not declared. Choose between
24924 # systems that have relatively inaccessible declarations for the
24925 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24926 # former has a strerror_r that returns char*, while the latter
24927 # has a strerror_r that returns `int'.
24928 # This test should segfault on the DEC system.
24929 if test "$cross_compiling" = yes; then :
24930 :
24931else
24932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24933/* end confdefs.h. */
24934$ac_includes_default
24935 extern char *strerror_r ();
24936int
24937main ()
24938{
24939char buf[100];
24940 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024941 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024942 ;
24943 return 0;
24944}
24945_ACEOF
24946if ac_fn_c_try_run "$LINENO"; then :
24947 ac_cv_func_strerror_r_char_p=yes
24948fi
24949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24950 conftest.$ac_objext conftest.beam conftest.$ac_ext
24951fi
24952
24953 fi
24954
24955fi
24956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24957$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24958if test $ac_cv_func_strerror_r_char_p = yes; then
24959
24960$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24961
24962fi
24963
cristy3ed852e2009-09-05 21:47:34 +000024964for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024965do :
24966 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024967if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024969#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024970_ACEOF
24971
cristy8b350f62009-11-15 23:12:43 +000024972ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024973if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024974
cristy8b350f62009-11-15 23:12:43 +000024975$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024976
24977fi
24978
24979fi
24980done
24981
24982
24983
cristy161b9262010-03-20 19:34:32 +000024984#
24985# Find math library
24986#
24987MATH_LIBS=''
24988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24989$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024990if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024991 $as_echo_n "(cached) " >&6
24992else
24993 ac_check_lib_save_LIBS=$LIBS
24994LIBS="-lm $LIBS"
24995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996/* end confdefs.h. */
24997
24998/* Override any GCC internal prototype to avoid an error.
24999 Use char because int might match the return type of a GCC
25000 builtin and then its argument prototype would still apply. */
25001#ifdef __cplusplus
25002extern "C"
25003#endif
25004char sqrt ();
25005int
25006main ()
25007{
25008return sqrt ();
25009 ;
25010 return 0;
25011}
25012_ACEOF
25013if ac_fn_c_try_link "$LINENO"; then :
25014 ac_cv_lib_m_sqrt=yes
25015else
25016 ac_cv_lib_m_sqrt=no
25017fi
25018rm -f core conftest.err conftest.$ac_objext \
25019 conftest$ac_exeext conftest.$ac_ext
25020LIBS=$ac_check_lib_save_LIBS
25021fi
25022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25023$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025024if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025025 MATH_LIBS="-lm"
25026fi
25027
25028LIBS="$MATH_LIBS $LIBS"
25029
25030
cristy82b20722011-11-05 21:52:36 +000025031for 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 isnan 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 +000025032do :
25033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025035if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025036 cat >>confdefs.h <<_ACEOF
25037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25038_ACEOF
25039
25040fi
25041done
25042
25043
cristye43a45e2009-09-28 14:49:00 +000025044#
25045# Check for clock_gettime().
25046#
cristy8b350f62009-11-15 23:12:43 +000025047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025048$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025049if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025050 $as_echo_n "(cached) " >&6
25051else
25052 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025054/* end confdefs.h. */
25055
25056/* Override any GCC internal prototype to avoid an error.
25057 Use char because int might match the return type of a GCC
25058 builtin and then its argument prototype would still apply. */
25059#ifdef __cplusplus
25060extern "C"
25061#endif
25062char clock_gettime ();
25063int
25064main ()
25065{
25066return clock_gettime ();
25067 ;
25068 return 0;
25069}
25070_ACEOF
25071for ac_lib in '' rt; do
25072 if test -z "$ac_lib"; then
25073 ac_res="none required"
25074 else
25075 ac_res=-l$ac_lib
25076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25077 fi
cristy8b350f62009-11-15 23:12:43 +000025078 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025079 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025080fi
cristy8b350f62009-11-15 23:12:43 +000025081rm -f core conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025083 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025084 break
25085fi
25086done
cristyda16f162011-02-19 23:52:17 +000025087if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025088
cristye43a45e2009-09-28 14:49:00 +000025089else
25090 ac_cv_search_clock_gettime=no
25091fi
25092rm conftest.$ac_ext
25093LIBS=$ac_func_search_save_LIBS
25094fi
cristy8b350f62009-11-15 23:12:43 +000025095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025096$as_echo "$ac_cv_search_clock_gettime" >&6; }
25097ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025098if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25100
25101
cristy8b350f62009-11-15 23:12:43 +000025102$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025103
cristy8b350f62009-11-15 23:12:43 +000025104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025105$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025107/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025108
25109 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025110int
25111main ()
25112{
25113clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025114 ;
25115 return 0;
25116}
25117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025118if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025119
cristy09b53e12011-10-14 12:47:22 +000025120 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25121$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025122
cristy8b350f62009-11-15 23:12:43 +000025123$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025124
25125
25126else
cristy09b53e12011-10-14 12:47:22 +000025127 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25128$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025129
25130fi
cristye43a45e2009-09-28 14:49:00 +000025131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25132
25133else
25134
cristy8b350f62009-11-15 23:12:43 +000025135 for ac_func in gettimeofday ftime
25136do :
25137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025140 cat >>confdefs.h <<_ACEOF
25141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25142_ACEOF
25143 break
25144fi
25145done
25146
25147
25148
25149fi
25150
25151
cristy3ed852e2009-09-05 21:47:34 +000025152########
25153#
25154# Check for function prototypes
25155#
25156########
25157
cristy8b350f62009-11-15 23:12:43 +000025158ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025159#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025160"
cristyda16f162011-02-19 23:52:17 +000025161if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025162 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025163else
cristy8b350f62009-11-15 23:12:43 +000025164 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025165fi
25166
cristy3ed852e2009-09-05 21:47:34 +000025167cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025168#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025170ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025171#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025172"
cristyda16f162011-02-19 23:52:17 +000025173if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025174 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025175else
cristy8b350f62009-11-15 23:12:43 +000025176 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025177fi
25178
cristy3ed852e2009-09-05 21:47:34 +000025179cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025181_ACEOF
25182
25183
cristy8b350f62009-11-15 23:12:43 +000025184ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025185#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025186"
cristyda16f162011-02-19 23:52:17 +000025187if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025188 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025189else
cristy8b350f62009-11-15 23:12:43 +000025190 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025191fi
25192
cristy3ed852e2009-09-05 21:47:34 +000025193cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025194#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025195_ACEOF
25196
25197
cristy8b350f62009-11-15 23:12:43 +000025198ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025199#include <stdio.h>
25200#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025201"
cristyda16f162011-02-19 23:52:17 +000025202if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025203 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025204else
cristy8b350f62009-11-15 23:12:43 +000025205 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025206fi
25207
cristy3ed852e2009-09-05 21:47:34 +000025208cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025209#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025210_ACEOF
25211
25212
cristy3ed852e2009-09-05 21:47:34 +000025213########
25214#
25215# C++ Support Tests (For Magick++)
25216#
25217########
25218have_magick_plus_plus='no'
25219if test "$with_magick_plus_plus" = 'yes'; then
25220 OLIBS="$LIBS"
25221 LIBS=''
25222 ac_ext=cpp
25223ac_cpp='$CXXCPP $CPPFLAGS'
25224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25227
25228
25229 # Full set of headers used...
25230 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25231 # functional iomanip iosfwd iostream iterator list string strstream utility
25232 ac_ext=cpp
25233ac_cpp='$CXXCPP $CPPFLAGS'
25234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25237
25238 ac_ext=cpp
25239ac_cpp='$CXXCPP $CPPFLAGS'
25240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25243if test -z "$CXX"; then
25244 if test -n "$CCC"; then
25245 CXX=$CCC
25246 else
25247 if test -n "$ac_tool_prefix"; then
25248 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25249 do
25250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025254if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025255 $as_echo_n "(cached) " >&6
25256else
25257 if test -n "$CXX"; then
25258 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25259else
25260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25261for as_dir in $PATH
25262do
25263 IFS=$as_save_IFS
25264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25267 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025269 break 2
25270 fi
25271done
cristy8b350f62009-11-15 23:12:43 +000025272 done
cristy3ed852e2009-09-05 21:47:34 +000025273IFS=$as_save_IFS
25274
25275fi
25276fi
25277CXX=$ac_cv_prog_CXX
25278if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025280$as_echo "$CXX" >&6; }
25281else
cristy8b350f62009-11-15 23:12:43 +000025282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025283$as_echo "no" >&6; }
25284fi
25285
25286
25287 test -n "$CXX" && break
25288 done
25289fi
25290if test -z "$CXX"; then
25291 ac_ct_CXX=$CXX
25292 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25293do
25294 # Extract the first word of "$ac_prog", so it can be a program name with args.
25295set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025298if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025299 $as_echo_n "(cached) " >&6
25300else
25301 if test -n "$ac_ct_CXX"; then
25302 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25303else
25304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25305for as_dir in $PATH
25306do
25307 IFS=$as_save_IFS
25308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25311 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025313 break 2
25314 fi
25315done
cristy8b350f62009-11-15 23:12:43 +000025316 done
cristy3ed852e2009-09-05 21:47:34 +000025317IFS=$as_save_IFS
25318
25319fi
25320fi
25321ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25322if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025324$as_echo "$ac_ct_CXX" >&6; }
25325else
cristy8b350f62009-11-15 23:12:43 +000025326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025327$as_echo "no" >&6; }
25328fi
25329
25330
25331 test -n "$ac_ct_CXX" && break
25332done
25333
25334 if test "x$ac_ct_CXX" = x; then
25335 CXX="g++"
25336 else
25337 case $cross_compiling:$ac_tool_warned in
25338yes:)
cristy8b350f62009-11-15 23:12:43 +000025339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25341ac_tool_warned=yes ;;
25342esac
25343 CXX=$ac_ct_CXX
25344 fi
25345fi
25346
25347 fi
25348fi
25349# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025350$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025351set X $ac_compile
25352ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025353for ac_option in --version -v -V -qversion; do
25354 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025355case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25358esac
cristy8b350f62009-11-15 23:12:43 +000025359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25360$as_echo "$ac_try_echo"; } >&5
25361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025362 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025363 if test -s conftest.err; then
25364 sed '10a\
25365... rest of stderr output deleted ...
25366 10q' conftest.err >conftest.er1
25367 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025368 fi
cristycd4c5312009-11-22 01:19:08 +000025369 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }
25372done
cristy3ed852e2009-09-05 21:47:34 +000025373
cristy8b350f62009-11-15 23:12:43 +000025374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025375$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025376if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025377 $as_echo_n "(cached) " >&6
25378else
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#ifndef __GNUC__
25386 choke me
25387#endif
25388
25389 ;
25390 return 0;
25391}
25392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025393if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025394 ac_compiler_gnu=yes
25395else
cristy8b350f62009-11-15 23:12:43 +000025396 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025397fi
cristy3ed852e2009-09-05 21:47:34 +000025398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25399ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25400
25401fi
cristy8b350f62009-11-15 23:12:43 +000025402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25404if test $ac_compiler_gnu = yes; then
25405 GXX=yes
25406else
25407 GXX=
25408fi
25409ac_test_CXXFLAGS=${CXXFLAGS+set}
25410ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025412$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025413if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025414 $as_echo_n "(cached) " >&6
25415else
25416 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25417 ac_cxx_werror_flag=yes
25418 ac_cv_prog_cxx_g=no
25419 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025421/* end confdefs.h. */
25422
25423int
25424main ()
25425{
25426
25427 ;
25428 return 0;
25429}
25430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025431if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025432 ac_cv_prog_cxx_g=yes
25433else
cristy8b350f62009-11-15 23:12:43 +000025434 CXXFLAGS=""
25435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025436/* end confdefs.h. */
25437
25438int
25439main ()
25440{
25441
25442 ;
25443 return 0;
25444}
25445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025446if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025447
cristy8b350f62009-11-15 23:12:43 +000025448else
25449 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025450 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025452/* end confdefs.h. */
25453
25454int
25455main ()
25456{
25457
25458 ;
25459 return 0;
25460}
25461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025462if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025464fi
cristy3ed852e2009-09-05 21:47:34 +000025465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466fi
cristy3ed852e2009-09-05 21:47:34 +000025467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468fi
cristy3ed852e2009-09-05 21:47:34 +000025469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25471fi
cristy8b350f62009-11-15 23:12:43 +000025472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025473$as_echo "$ac_cv_prog_cxx_g" >&6; }
25474if test "$ac_test_CXXFLAGS" = set; then
25475 CXXFLAGS=$ac_save_CXXFLAGS
25476elif test $ac_cv_prog_cxx_g = yes; then
25477 if test "$GXX" = yes; then
25478 CXXFLAGS="-g -O2"
25479 else
25480 CXXFLAGS="-g"
25481 fi
25482else
25483 if test "$GXX" = yes; then
25484 CXXFLAGS="-O2"
25485 else
25486 CXXFLAGS=
25487 fi
25488fi
25489ac_ext=cpp
25490ac_cpp='$CXXCPP $CPPFLAGS'
25491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25494
cristy73bd4a52010-10-05 11:24:23 +000025495depcc="$CXX" am_compiler_list=
25496
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25498$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025499if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025500 $as_echo_n "(cached) " >&6
25501else
25502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25503 # We make a subdir and do the tests there. Otherwise we can end up
25504 # making bogus files that we don't know about and never remove. For
25505 # instance it was reported that on HP-UX the gcc test will end up
25506 # making a dummy file named `D' -- because `-MD' means `put the output
25507 # in D'.
cristy7247bba2012-02-05 16:37:27 +000025508 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025509 mkdir conftest.dir
25510 # Copy depcomp to subdir because otherwise we won't find it if we're
25511 # using a relative directory.
25512 cp "$am_depcomp" conftest.dir
25513 cd conftest.dir
25514 # We will build objects and dependencies in a subdirectory because
25515 # it helps to detect inapplicable dependency modes. For instance
25516 # both Tru64's cc and ICC support -MD to output dependencies as a
25517 # side effect of compilation, but ICC will put the dependencies in
25518 # the current directory while Tru64 will put them in the object
25519 # directory.
25520 mkdir sub
25521
25522 am_cv_CXX_dependencies_compiler_type=none
25523 if test "$am_compiler_list" = ""; then
25524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25525 fi
25526 am__universal=false
25527 case " $depcc " in #(
25528 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25529 esac
25530
25531 for depmode in $am_compiler_list; do
25532 # Setup a source with many dependencies, because some compilers
25533 # like to wrap large dependency lists on column 80 (with \), and
25534 # we should not choose a depcomp mode which is confused by this.
25535 #
25536 # We need to recreate these files for each test, as the compiler may
25537 # overwrite some of them when testing with obscure command lines.
25538 # This happens at least with the AIX C compiler.
25539 : > sub/conftest.c
25540 for i in 1 2 3 4 5 6; do
25541 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25542 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25543 # Solaris 8's {/usr,}/bin/sh.
25544 touch sub/conftst$i.h
25545 done
25546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25547
25548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25549 # mode. It turns out that the SunPro C++ compiler does not properly
25550 # handle `-M -o', and we need to detect this. Also, some Intel
25551 # versions had trouble with output in subdirs
25552 am__obj=sub/conftest.${OBJEXT-o}
25553 am__minus_obj="-o $am__obj"
25554 case $depmode in
25555 gcc)
25556 # This depmode causes a compiler race in universal mode.
25557 test "$am__universal" = false || continue
25558 ;;
25559 nosideeffect)
25560 # after this tag, mechanisms are not by side-effect, so they'll
25561 # only be used when explicitly requested
25562 if test "x$enable_dependency_tracking" = xyes; then
25563 continue
25564 else
25565 break
25566 fi
25567 ;;
cristy7247bba2012-02-05 16:37:27 +000025568 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000025569 # This compiler won't grok `-c -o', but also, the minuso test has
25570 # not run yet. These depmodes are late enough in the game, and
25571 # so weak that their functioning should not be impacted.
25572 am__obj=conftest.${OBJEXT-o}
25573 am__minus_obj=
25574 ;;
25575 none) break ;;
25576 esac
25577 if depmode=$depmode \
25578 source=sub/conftest.c object=$am__obj \
25579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25581 >/dev/null 2>conftest.err &&
25582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25586 # icc doesn't choke on unknown options, it will just issue warnings
25587 # or remarks (even with -Werror). So we grep stderr for any message
25588 # that says an option was ignored or not supported.
25589 # When given -MP, icc 7.0 and 7.1 complain thusly:
25590 # icc: Command line warning: ignoring option '-M'; no argument required
25591 # The diagnosis changed in icc 8.0:
25592 # icc: Command line remark: option '-MP' not supported
25593 if (grep 'ignoring option' conftest.err ||
25594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25595 am_cv_CXX_dependencies_compiler_type=$depmode
25596 break
25597 fi
25598 fi
25599 done
25600
25601 cd ..
25602 rm -rf conftest.dir
25603else
25604 am_cv_CXX_dependencies_compiler_type=none
25605fi
25606
25607fi
25608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25609$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25610CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25611
25612 if
25613 test "x$enable_dependency_tracking" != xno \
25614 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25615 am__fastdepCXX_TRUE=
25616 am__fastdepCXX_FALSE='#'
25617else
25618 am__fastdepCXX_TRUE='#'
25619 am__fastdepCXX_FALSE=
25620fi
25621
25622
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25624$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025625if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025626 $as_echo_n "(cached) " >&6
25627else
25628
25629 ac_ext=cpp
25630ac_cpp='$CXXCPP $CPPFLAGS'
25631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25634
25635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25636/* end confdefs.h. */
25637
25638int f(int x){return 1;}
25639int f(char x){return 1;}
25640int f(bool x){return 1;}
25641
25642int
25643main ()
25644{
25645bool b = true; return f(b);
25646 ;
25647 return 0;
25648}
25649_ACEOF
25650if ac_fn_cxx_try_compile "$LINENO"; then :
25651 ax_cv_cxx_bool=yes
25652else
25653 ax_cv_cxx_bool=no
25654fi
25655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656 ac_ext=cpp
25657ac_cpp='$CXXCPP $CPPFLAGS'
25658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25661
25662
25663fi
25664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25665$as_echo "$ax_cv_cxx_bool" >&6; }
25666if test "$ax_cv_cxx_bool" = yes; then
25667
25668$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25669
25670fi
25671
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25673$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025674if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025675 $as_echo_n "(cached) " >&6
25676else
25677
25678 ac_ext=cpp
25679ac_cpp='$CXXCPP $CPPFLAGS'
25680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25683
25684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25685/* end confdefs.h. */
25686namespace Outer { namespace Inner { int i = 0; }}
25687int
25688main ()
25689{
25690using namespace Outer::Inner; return i;
25691 ;
25692 return 0;
25693}
25694_ACEOF
25695if ac_fn_cxx_try_compile "$LINENO"; then :
25696 ax_cv_cxx_namespaces=yes
25697else
25698 ax_cv_cxx_namespaces=no
25699fi
25700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25701 ac_ext=cpp
25702ac_cpp='$CXXCPP $CPPFLAGS'
25703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25706
25707
25708fi
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25710$as_echo "$ax_cv_cxx_namespaces" >&6; }
25711if test "$ax_cv_cxx_namespaces" = yes; then
25712
25713$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25714
25715fi
25716
25717
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25719$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025720if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025721 $as_echo_n "(cached) " >&6
25722else
25723
25724 ac_ext=cpp
25725ac_cpp='$CXXCPP $CPPFLAGS'
25726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25729
25730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731/* end confdefs.h. */
25732#include <iostream>
25733 std::istream& is = std::cin;
25734int
25735main ()
25736{
25737
25738 ;
25739 return 0;
25740}
25741_ACEOF
25742if ac_fn_cxx_try_compile "$LINENO"; then :
25743 ax_cv_cxx_have_std_namespace=yes
25744else
25745 ax_cv_cxx_have_std_namespace=no
25746fi
25747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25748 ac_ext=cpp
25749ac_cpp='$CXXCPP $CPPFLAGS'
25750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25753
25754
25755fi
25756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25757$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25758 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25759
25760$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25761
25762 fi
25763
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25765$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025766if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025767 $as_echo_n "(cached) " >&6
25768else
25769
25770
25771 ac_ext=cpp
25772ac_cpp='$CXXCPP $CPPFLAGS'
25773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25776
25777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778/* end confdefs.h. */
25779#include <iostream>
25780#include <map>
25781#include <iomanip>
25782#include <cmath>
25783#ifdef HAVE_NAMESPACES
25784using namespace std;
25785#endif
25786int
25787main ()
25788{
25789return 0;
25790 ;
25791 return 0;
25792}
25793_ACEOF
25794if ac_fn_cxx_try_compile "$LINENO"; then :
25795 ac_cv_cxx_have_std_libs=yes
25796else
25797 ac_cv_cxx_have_std_libs=no
25798fi
25799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 ac_ext=cpp
25801ac_cpp='$CXXCPP $CPPFLAGS'
25802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25805
25806
25807fi
25808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25809$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25810if test "$ac_cv_cxx_have_std_libs" = yes; then
25811
25812$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25813
25814fi
25815
cristy3ed852e2009-09-05 21:47:34 +000025816
25817 OPENMP_CXXFLAGS=
25818 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025819if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025820 enableval=$enable_openmp;
25821fi
25822
25823 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25825$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025826if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025827 $as_echo_n "(cached) " >&6
25828else
cristy8b350f62009-11-15 23:12:43 +000025829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25830/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025831
25832#ifndef _OPENMP
25833 choke me
25834#endif
25835#include <omp.h>
25836int main () { return omp_get_num_threads (); }
25837
25838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025839if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025840 ac_cv_prog_cxx_openmp='none needed'
25841else
cristy8b350f62009-11-15 23:12:43 +000025842 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025843 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25844 ac_save_CXXFLAGS=$CXXFLAGS
25845 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25847/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025848
25849#ifndef _OPENMP
25850 choke me
25851#endif
25852#include <omp.h>
25853int main () { return omp_get_num_threads (); }
25854
25855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025856if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025857 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025858fi
cristy8b350f62009-11-15 23:12:43 +000025859rm -f core conftest.err conftest.$ac_objext \
25860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025861 CXXFLAGS=$ac_save_CXXFLAGS
25862 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25863 break
25864 fi
25865 done
25866fi
cristy8b350f62009-11-15 23:12:43 +000025867rm -f core conftest.err conftest.$ac_objext \
25868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025869fi
cristy8b350f62009-11-15 23:12:43 +000025870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25872 case $ac_cv_prog_cxx_openmp in #(
25873 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025874 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025875 *)
cristy8b350f62009-11-15 23:12:43 +000025876 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025877 esac
25878 fi
25879
25880
25881 ac_ext=c
25882ac_cpp='$CPP $CPPFLAGS'
25883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25885ac_compiler_gnu=$ac_cv_c_compiler_gnu
25886
25887
cristy8b350f62009-11-15 23:12:43 +000025888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25890 if \
cristy964cb7f2010-04-25 23:18:00 +000025891 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025892 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025893 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025894 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025895 have_magick_plus_plus='yes'
25896 else
25897 have_magick_plus_plus='no (failed tests)'
25898 fi
cristy09b53e12011-10-14 12:47:22 +000025899 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25900$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025901 LIBS="$OLIBS"
25902fi
cristy73bd4a52010-10-05 11:24:23 +000025903 if test "$have_magick_plus_plus" = 'yes'; then
25904 WITH_MAGICK_PLUS_PLUS_TRUE=
25905 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25906else
25907 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25908 WITH_MAGICK_PLUS_PLUS_FALSE=
25909fi
25910
cristy3ed852e2009-09-05 21:47:34 +000025911
25912# Only check for delegate libraries in subdirectories if requested.
25913if test "$enable_delegate_build" != 'no'; then
25914 # Check for delegate sub-directories and add -I & -L options as required.
25915 # This presumes that delegates are installed as detailed in the ImageMagick
25916 # README. If delegates are installed in a standard location where the
25917 # compiler will automatically find them then these options should not be
25918 # required.
25919
25920 #
25921 # Most delegates have includes in the same directory as the library, but not all...
25922 #
25923 # Includes
cristy2542fc62011-12-06 17:50:25 +000025924 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 webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025925 if test -d "$builddir/$dir"; then
25926 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25927 else
25928 if test -d "$srcdirfull/$dir"; then
25929 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25930 fi
25931 fi
25932 done
25933
25934 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025935 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 webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025936 if test -d "$builddir/$dir/.libs"; then
25937 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25938 else
25939 if test -d "$srcdirfull/$dir/.libs"; then
25940 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25941 fi
25942 fi
25943 if test -d "$builddir/$dir"; then
25944 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25945 else
25946 if test -d "$srcdirfull/$dir"; then
25947 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25948 fi
25949 fi
25950 done
25951fi
25952
25953# Assume that delegate headers reside under same directory as ImageMagick
25954# installation prefix.
25955MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25956
25957#
25958# Find the X11 RGB database
25959#
cristy8b350f62009-11-15 23:12:43 +000025960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025962if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025963 $as_echo_n "(cached) " >&6
25964else
25965 # Look for the header file in a standard set of common directories.
25966# Check X11 before X11Rn because it is often a symlink to the current release.
25967 for ac_dir in \
25968 /lib/usr/lib/X11 \
25969 /usr/X11/lib \
25970 /usr/X11R4/lib \
25971 /usr/X11R5/lib \
25972 /usr/X11R6/lib \
25973 /usr/X11R7/lib \
25974 /usr/X386/lib \
25975 /usr/XFree86/lib/X11 \
25976 /usr/athena/lib \
25977 /usr/lib \
25978 /usr/lib/X11 \
25979 /usr/lib/X11R4 \
25980 /usr/lib/X11R5 \
25981 /usr/lib/X11R6 \
25982 /usr/lib/X11R7 \
25983 /usr/local/X11/lib \
25984 /usr/local/X11R4/lib \
25985 /usr/local/X11R5/lib \
25986 /usr/local/X11R6/lib \
25987 /usr/local/lib \
25988 /usr/local/lib/X11 \
25989 /usr/local/lib/X11R4 \
25990 /usr/local/lib/X11R5 \
25991 /usr/local/lib/X11R6 \
25992 /usr/local/lib/X11R7 \
25993 /usr/local/x11r5/lib \
25994 /usr/lpp/Xamples/lib \
25995 /usr/openwin/lib \
25996 /usr/openwin/share/lib \
25997 /usr/unsupported/lib \
25998 /usr/x386/lib \
25999 ; do
26000 if test -f "$ac_dir/X11/rgb.txt"; then
26001 im_cv_x_configure="$ac_dir/X11/"
26002 break
26003 elif test -f "$ac_dir/rgb.txt"; then
26004 im_cv_x_configure="$ac_dir/"
26005 break
26006 fi
26007
26008 done
26009fi
cristy8b350f62009-11-15 23:12:43 +000026010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026011$as_echo "$im_cv_x_configure" >&6; }
26012X11_CONFIGURE_PATH="$im_cv_x_configure"
26013case "${build_os}" in
26014 mingw* )
26015 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26016 ;;
26017esac
26018
26019cat >>confdefs.h <<_ACEOF
26020#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26021_ACEOF
26022
26023
26024#
26025# Find OpenMP library
26026#
26027GOMP_LIBS=''
26028if test "$enable_openmp" != 'no'; then
26029 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026030 # Open64 (passes for GCC but uses different OpenMP implementation)
26031 if test "x$GOMP_LIBS" = x ; then
26032 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26034$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26035if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26036 $as_echo_n "(cached) " >&6
26037else
26038 ac_check_lib_save_LIBS=$LIBS
26039LIBS="-lopenmp $LIBS"
26040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041/* end confdefs.h. */
26042
26043/* Override any GCC internal prototype to avoid an error.
26044 Use char because int might match the return type of a GCC
26045 builtin and then its argument prototype would still apply. */
26046#ifdef __cplusplus
26047extern "C"
26048#endif
26049char omp_get_num_procs ();
26050int
26051main ()
26052{
26053return omp_get_num_procs ();
26054 ;
26055 return 0;
26056}
26057_ACEOF
26058if ac_fn_c_try_link "$LINENO"; then :
26059 ac_cv_lib_openmp_omp_get_num_procs=yes
26060else
26061 ac_cv_lib_openmp_omp_get_num_procs=no
26062fi
26063rm -f core conftest.err conftest.$ac_objext \
26064 conftest$ac_exeext conftest.$ac_ext
26065LIBS=$ac_check_lib_save_LIBS
26066fi
26067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26068$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26069if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26070 GOMP_LIBS="-lopenmp"
26071fi
26072
26073 fi
26074 fi
26075 # GCC
26076 if test "x$GOMP_LIBS" = x ; then
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026078$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026079if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026080 $as_echo_n "(cached) " >&6
26081else
26082 ac_check_lib_save_LIBS=$LIBS
26083LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026085/* end confdefs.h. */
26086
26087/* Override any GCC internal prototype to avoid an error.
26088 Use char because int might match the return type of a GCC
26089 builtin and then its argument prototype would still apply. */
26090#ifdef __cplusplus
26091extern "C"
26092#endif
26093char GOMP_parallel_start ();
26094int
26095main ()
26096{
26097return GOMP_parallel_start ();
26098 ;
26099 return 0;
26100}
26101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026103 ac_cv_lib_gomp_GOMP_parallel_start=yes
26104else
cristy8b350f62009-11-15 23:12:43 +000026105 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026106fi
cristy8b350f62009-11-15 23:12:43 +000026107rm -f core conftest.err conftest.$ac_objext \
26108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026109LIBS=$ac_check_lib_save_LIBS
26110fi
cristy8b350f62009-11-15 23:12:43 +000026111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026113if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 GOMP_LIBS="-lgomp"
26115fi
cristy18307f12011-12-30 01:20:16 +000026116
26117 fi
cristy3ed852e2009-09-05 21:47:34 +000026118 else
cristy18307f12011-12-30 01:20:16 +000026119 # Sun CC
26120 if test "x$GOMP_LIBS" = x ; then
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026122$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026123if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026124 $as_echo_n "(cached) " >&6
26125else
26126 ac_check_lib_save_LIBS=$LIBS
26127LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026129/* end confdefs.h. */
26130
26131/* Override any GCC internal prototype to avoid an error.
26132 Use char because int might match the return type of a GCC
26133 builtin and then its argument prototype would still apply. */
26134#ifdef __cplusplus
26135extern "C"
26136#endif
26137char sunw_mp_register_warn ();
26138int
26139main ()
26140{
26141return sunw_mp_register_warn ();
26142 ;
26143 return 0;
26144}
26145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026147 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26148else
cristy8b350f62009-11-15 23:12:43 +000026149 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026150fi
cristy8b350f62009-11-15 23:12:43 +000026151rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026153LIBS=$ac_check_lib_save_LIBS
26154fi
cristy8b350f62009-11-15 23:12:43 +000026155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026156$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026157if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026158 GOMP_LIBS="-lmtsk"
26159fi
cristy18307f12011-12-30 01:20:16 +000026160
26161 fi
26162 # AIX xlc
26163 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026166if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 $as_echo_n "(cached) " >&6
26168else
26169 ac_check_lib_save_LIBS=$LIBS
26170LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026172/* end confdefs.h. */
26173
26174/* Override any GCC internal prototype to avoid an error.
26175 Use char because int might match the return type of a GCC
26176 builtin and then its argument prototype would still apply. */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180char _xlsmpFlush ();
26181int
26182main ()
26183{
26184return _xlsmpFlush ();
26185 ;
26186 return 0;
26187}
26188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 ac_cv_lib_xlsmp__xlsmpFlush=yes
26191else
cristy8b350f62009-11-15 23:12:43 +000026192 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026193fi
cristy8b350f62009-11-15 23:12:43 +000026194rm -f core conftest.err conftest.$ac_objext \
26195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026196LIBS=$ac_check_lib_save_LIBS
26197fi
cristy8b350f62009-11-15 23:12:43 +000026198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026200if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 GOMP_LIBS="-lxlsmp"
26202fi
cristy18307f12011-12-30 01:20:16 +000026203
26204 fi
26205 # SGI IRIX 6.5 MIPSpro C/C++
26206 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026209if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026210 $as_echo_n "(cached) " >&6
26211else
26212 ac_check_lib_save_LIBS=$LIBS
26213LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026215/* end confdefs.h. */
26216
26217/* Override any GCC internal prototype to avoid an error.
26218 Use char because int might match the return type of a GCC
26219 builtin and then its argument prototype would still apply. */
26220#ifdef __cplusplus
26221extern "C"
26222#endif
26223char mp_destroy ();
26224int
26225main ()
26226{
26227return mp_destroy ();
26228 ;
26229 return 0;
26230}
26231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026233 ac_cv_lib_mp_mp_destroy=yes
26234else
cristy8b350f62009-11-15 23:12:43 +000026235 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026236fi
cristy8b350f62009-11-15 23:12:43 +000026237rm -f core conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026239LIBS=$ac_check_lib_save_LIBS
26240fi
cristy8b350f62009-11-15 23:12:43 +000026241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026242$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026243if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026244 GOMP_LIBS="-lmp"
26245fi
cristy18307f12011-12-30 01:20:16 +000026246
26247 fi
cristy3ed852e2009-09-05 21:47:34 +000026248 fi
26249 LIBS="$GOMP_LIBS $LIBS"
26250fi
26251
26252
26253#
26254# Find Posix threads library
26255#
26256THREAD_LIBS=''
26257if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26258
26259 if test "x$PTHREAD_LIBS" = "x"; then
26260 case "${host_cpu}-${host_os}" in
26261 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026262
26263
26264
26265ac_ext=c
26266ac_cpp='$CPP $CPPFLAGS'
26267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26269ac_compiler_gnu=$ac_cv_c_compiler_gnu
26270
26271magick_pthread_lib_ok=no
26272
26273LIB=-lc_r
26274save_LIBS="$LIBS"
26275LIBS="$LIBS $LIB"
26276
26277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26278$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280/* end confdefs.h. */
26281#include <pthread.h>
26282int
26283main ()
26284{
26285 pthread_t th;
26286 pthread_join(th, 0);
26287 pthread_attr_init(0);
26288 pthread_cleanup_push(0, 0);
26289 pthread_create(0,0,0,0);
26290 pthread_cleanup_pop(0);
26291 ;
26292 return 0;
26293}
26294_ACEOF
26295if ac_fn_c_try_link "$LINENO"; then :
26296 magick_pthread_lib_ok=yes
26297fi
26298rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
26300
26301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26302$as_echo "${magick_pthread_lib_ok}" >&6; }
26303if test "$magick_pthread_lib_ok" = yes
26304then
26305 PTHREAD_LIBS=-lc_r
26306 :
26307else
26308
26309 :
26310fi
26311
26312LIBS="$save_LIBS"
26313
26314ac_ext=c
26315ac_cpp='$CPP $CPPFLAGS'
26316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26318ac_compiler_gnu=$ac_cv_c_compiler_gnu
26319
26320 ;;
cristy3ed852e2009-09-05 21:47:34 +000026321 esac
26322 fi
26323
26324 for lib in pthread pthreads; do
26325 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026326
26327
26328
26329ac_ext=c
26330ac_cpp='$CPP $CPPFLAGS'
26331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26333ac_compiler_gnu=$ac_cv_c_compiler_gnu
26334
26335magick_pthread_lib_ok=no
26336
26337LIB=-l$lib
26338save_LIBS="$LIBS"
26339LIBS="$LIBS $LIB"
26340
26341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26342$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26344/* end confdefs.h. */
26345#include <pthread.h>
26346int
26347main ()
26348{
26349 pthread_t th;
26350 pthread_join(th, 0);
26351 pthread_attr_init(0);
26352 pthread_cleanup_push(0, 0);
26353 pthread_create(0,0,0,0);
26354 pthread_cleanup_pop(0);
26355 ;
26356 return 0;
26357}
26358_ACEOF
26359if ac_fn_c_try_link "$LINENO"; then :
26360 magick_pthread_lib_ok=yes
26361fi
26362rm -f core conftest.err conftest.$ac_objext \
26363 conftest$ac_exeext conftest.$ac_ext
26364
26365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26366$as_echo "${magick_pthread_lib_ok}" >&6; }
26367if test "$magick_pthread_lib_ok" = yes
26368then
26369 PTHREAD_LIBS=-l$lib
26370 :
26371else
26372
26373 :
26374fi
26375
26376LIBS="$save_LIBS"
26377
26378ac_ext=c
26379ac_cpp='$CPP $CPPFLAGS'
26380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26382ac_compiler_gnu=$ac_cv_c_compiler_gnu
26383
26384
cristy3ed852e2009-09-05 21:47:34 +000026385 fi
26386 done
26387
26388 THREAD_LIBS="$PTHREAD_LIBS"
26389 LIBS="$LIBS $THREAD_LIBS"
26390fi
26391
26392
26393#
26394# Check for umem.
26395#
26396have_umem='no'
26397UMEM_LIBS=''
26398if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026400$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26402$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026403 failed=0
26404 passed=0
cristy8b350f62009-11-15 23:12:43 +000026405 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026406if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026407 passed=`expr $passed + 1`
26408else
26409 failed=`expr $failed + 1`
26410fi
26411
26412
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026415if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 $as_echo_n "(cached) " >&6
26417else
26418 ac_check_lib_save_LIBS=$LIBS
26419LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026421/* end confdefs.h. */
26422
26423/* Override any GCC internal prototype to avoid an error.
26424 Use char because int might match the return type of a GCC
26425 builtin and then its argument prototype would still apply. */
26426#ifdef __cplusplus
26427extern "C"
26428#endif
26429char umem_alloc ();
26430int
26431main ()
26432{
26433return umem_alloc ();
26434 ;
26435 return 0;
26436}
26437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026439 ac_cv_lib_umem_umem_alloc=yes
26440else
cristy8b350f62009-11-15 23:12:43 +000026441 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026442fi
cristy8b350f62009-11-15 23:12:43 +000026443rm -f core conftest.err conftest.$ac_objext \
26444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026445LIBS=$ac_check_lib_save_LIBS
26446fi
cristy8b350f62009-11-15 23:12:43 +000026447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026448$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026449if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026450 passed=`expr $passed + 1`
26451else
26452 failed=`expr $failed + 1`
26453fi
26454
cristy8b350f62009-11-15 23:12:43 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026457if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026458 $as_echo_n "(cached) " >&6
26459else
26460 ac_check_lib_save_LIBS=$LIBS
26461LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026463/* end confdefs.h. */
26464
26465/* Override any GCC internal prototype to avoid an error.
26466 Use char because int might match the return type of a GCC
26467 builtin and then its argument prototype would still apply. */
26468#ifdef __cplusplus
26469extern "C"
26470#endif
26471char umem_free ();
26472int
26473main ()
26474{
26475return umem_free ();
26476 ;
26477 return 0;
26478}
26479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 ac_cv_lib_umem_umem_free=yes
26482else
cristy8b350f62009-11-15 23:12:43 +000026483 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026484fi
cristy8b350f62009-11-15 23:12:43 +000026485rm -f core conftest.err conftest.$ac_objext \
26486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026487LIBS=$ac_check_lib_save_LIBS
26488fi
cristy8b350f62009-11-15 23:12:43 +000026489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026491if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 passed=`expr $passed + 1`
26493else
26494 failed=`expr $failed + 1`
26495fi
26496
cristy8b350f62009-11-15 23:12:43 +000026497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026498$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26499 if test $passed -gt 0; then
26500 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026501 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26502$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026503 have_umem='no (failed tests)'
26504 else
26505 UMEM_LIBS='-lumem'
26506 LIBS="$UMEM_LIBS $LIBS"
26507
cristy8b350f62009-11-15 23:12:43 +000026508$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026509
cristy09b53e12011-10-14 12:47:22 +000026510 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26511$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026512 have_umem='yes'
26513 fi
26514 else
cristy09b53e12011-10-14 12:47:22 +000026515 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26516$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026517 fi
26518fi
cristy73bd4a52010-10-05 11:24:23 +000026519 if test "$have_umem" = 'yes'; then
26520 HasUMEM_TRUE=
26521 HasUMEM_FALSE='#'
26522else
26523 HasUMEM_TRUE='#'
26524 HasUMEM_FALSE=
26525fi
26526
cristy3ed852e2009-09-05 21:47:34 +000026527
26528
26529#
26530# Add support for ccmalloc memory debugging library if requested
26531#
26532have_ccmalloc='no'
26533CCMALLOC_LIBS=''
26534if test "$enable_ccmalloc" = 'yes'; then
26535 # Extract the first word of "ccmalloc", so it can be a program name with args.
26536set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026539if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 $as_echo_n "(cached) " >&6
26541else
26542 case $CCMALLOCDelegate in
26543 [\\/]* | ?:[\\/]*)
26544 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26545 ;;
26546 *)
26547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26548for as_dir in $PATH
26549do
26550 IFS=$as_save_IFS
26551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26554 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556 break 2
26557 fi
26558done
cristy8b350f62009-11-15 23:12:43 +000026559 done
cristy3ed852e2009-09-05 21:47:34 +000026560IFS=$as_save_IFS
26561
26562 ;;
26563esac
26564fi
26565CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26566if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo "$CCMALLOCDelegate" >&6; }
26569else
cristy8b350f62009-11-15 23:12:43 +000026570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026571$as_echo "no" >&6; }
26572fi
26573
26574
26575 if test -n "$CCMALLOCDelegate"; then
26576 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26577 OLIBS="$LIBS"
26578 # Assume that gcc is used with ccmalloc.
26579 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026582if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026583 $as_echo_n "(cached) " >&6
26584else
26585 ac_check_lib_save_LIBS=$LIBS
26586LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026588/* end confdefs.h. */
26589
26590/* Override any GCC internal prototype to avoid an error.
26591 Use char because int might match the return type of a GCC
26592 builtin and then its argument prototype would still apply. */
26593#ifdef __cplusplus
26594extern "C"
26595#endif
26596char ccmalloc_malloc ();
26597int
26598main ()
26599{
26600return ccmalloc_malloc ();
26601 ;
26602 return 0;
26603}
26604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26607else
cristy8b350f62009-11-15 23:12:43 +000026608 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026609fi
cristy8b350f62009-11-15 23:12:43 +000026610rm -f core conftest.err conftest.$ac_objext \
26611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026612LIBS=$ac_check_lib_save_LIBS
26613fi
cristy8b350f62009-11-15 23:12:43 +000026614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026616if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26618fi
26619
26620 if test -n "$CCMALLOC_LIBS"; then
26621 LIBS="$OLIBS"
26622 LIBS="$LIBS $CCMALLOC_LIBS"
26623 have_ccmalloc='yes'
26624 else
26625 LIBS="$OLIBS"
26626 fi
26627 fi
26628fi
26629
26630#
26631# Add support for efence memory debugging library if requested
26632#
26633if test "$enable_efence" = 'yes'; then
26634 EFENCE_LIBS='-lefence'
26635 LIBS="$EFENCE_LIBS $LIBS"
26636fi
26637
cristy3ed852e2009-09-05 21:47:34 +000026638
26639#
26640# Check for BZLIB
26641#
26642
26643
26644# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026645if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 withval=$with_bzlib; with_bzlib=$withval
26647else
26648 with_bzlib='yes'
26649fi
26650
26651
26652if test "$with_bzlib" != 'yes'; then
26653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26654fi
26655
26656have_bzlib='no'
26657if test "$with_bzlib" != 'no'; then
26658 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026659 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26660$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026662$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026663 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26664$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026665 failed=0
26666 passed=0
26667 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026668 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026669if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 passed=`expr $passed + 1`
26671else
26672 failed=`expr $failed + 1`
26673fi
26674
26675
cristy8b350f62009-11-15 23:12:43 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026678if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026679 $as_echo_n "(cached) " >&6
26680else
26681 ac_check_lib_save_LIBS=$LIBS
26682LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026684/* end confdefs.h. */
26685
26686/* Override any GCC internal prototype to avoid an error.
26687 Use char because int might match the return type of a GCC
26688 builtin and then its argument prototype would still apply. */
26689#ifdef __cplusplus
26690extern "C"
26691#endif
26692char BZ2_bzDecompress ();
26693int
26694main ()
26695{
26696return BZ2_bzDecompress ();
26697 ;
26698 return 0;
26699}
26700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26703else
cristy8b350f62009-11-15 23:12:43 +000026704 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026705fi
cristy8b350f62009-11-15 23:12:43 +000026706rm -f core conftest.err conftest.$ac_objext \
26707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026708LIBS=$ac_check_lib_save_LIBS
26709fi
cristy8b350f62009-11-15 23:12:43 +000026710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026712if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 found_libbz=`expr $found_libbz + 1`
26714fi
26715
26716 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026718$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026719if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026720 $as_echo_n "(cached) " >&6
26721else
26722 ac_check_lib_save_LIBS=$LIBS
26723LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026725/* end confdefs.h. */
26726
26727/* Override any GCC internal prototype to avoid an error.
26728 Use char because int might match the return type of a GCC
26729 builtin and then its argument prototype would still apply. */
26730#ifdef __cplusplus
26731extern "C"
26732#endif
26733char _imp__BZ2_decompress ();
26734int
26735main ()
26736{
26737return _imp__BZ2_decompress ();
26738 ;
26739 return 0;
26740}
26741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026743 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26744else
cristy8b350f62009-11-15 23:12:43 +000026745 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026746fi
cristy8b350f62009-11-15 23:12:43 +000026747rm -f core conftest.err conftest.$ac_objext \
26748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026749LIBS=$ac_check_lib_save_LIBS
26750fi
cristy8b350f62009-11-15 23:12:43 +000026751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026752$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026753if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 found_libbz=`expr $found_libbz + 1`
26755fi
26756
26757 fi
26758 if test $found_libbz -gt 0; then
26759 passed=`expr $passed + 1`
26760 else
26761 failed=`expr $failed + 1`
26762 fi
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo_n "checking if BZLIB package is complete... " >&6; }
26765 if test $passed -gt 0; then
26766 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026767 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26768$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026769 have_bzlib='no (failed tests)'
26770 else
26771 BZLIB_LIBS='-lbz2'
26772 LIBS="$BZLIB_LIBS $LIBS"
26773
cristy8b350f62009-11-15 23:12:43 +000026774$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026775
cristy09b53e12011-10-14 12:47:22 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26777$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026778 have_bzlib='yes'
26779 fi
26780 else
cristy09b53e12011-10-14 12:47:22 +000026781 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26782$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026783 fi
26784fi
cristy73bd4a52010-10-05 11:24:23 +000026785 if test "$have_bzlib" = 'yes'; then
26786 BZLIB_DELEGATE_TRUE=
26787 BZLIB_DELEGATE_FALSE='#'
26788else
26789 BZLIB_DELEGATE_TRUE='#'
26790 BZLIB_DELEGATE_FALSE=
26791fi
26792
cristy3ed852e2009-09-05 21:47:34 +000026793
26794
26795#
26796# Find the X11 include and library directories.
26797#
26798IPC_LIBS=''
26799X11_LIBS=''
26800XEXT_LIBS=''
26801XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026803$as_echo_n "checking for X... " >&6; }
26804
26805
26806# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026807if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026808 withval=$with_x;
26809fi
26810
26811# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26812if test "x$with_x" = xno; then
26813 # The user explicitly disabled X.
26814 have_x=disabled
26815else
26816 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026817 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026818 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026819 $as_echo_n "(cached) " >&6
26820else
26821 # One or both of the vars are not set, and there is no cached value.
26822ac_x_includes=no ac_x_libraries=no
26823rm -f -r conftest.dir
26824if mkdir conftest.dir; then
26825 cd conftest.dir
26826 cat >Imakefile <<'_ACEOF'
26827incroot:
26828 @echo incroot='${INCROOT}'
26829usrlibdir:
26830 @echo usrlibdir='${USRLIBDIR}'
26831libdir:
26832 @echo libdir='${LIBDIR}'
26833_ACEOF
26834 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026835 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026836 for ac_var in incroot usrlibdir libdir; do
26837 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26838 done
26839 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26840 for ac_extension in a so sl dylib la dll; do
26841 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26842 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26843 ac_im_usrlibdir=$ac_im_libdir; break
26844 fi
26845 done
26846 # Screen out bogus values from the imake configuration. They are
26847 # bogus both because they are the default anyway, and because
26848 # using them would break gcc on systems where it needs fixed includes.
26849 case $ac_im_incroot in
26850 /usr/include) ac_x_includes= ;;
26851 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26852 esac
26853 case $ac_im_usrlibdir in
26854 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26855 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26856 esac
26857 fi
26858 cd ..
26859 rm -f -r conftest.dir
26860fi
26861
26862# Standard set of common directories for X headers.
26863# Check X11 before X11Rn because it is often a symlink to the current release.
26864ac_x_header_dirs='
26865/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026866/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026867/usr/X11R6/include
26868/usr/X11R5/include
26869/usr/X11R4/include
26870
26871/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026872/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026873/usr/include/X11R6
26874/usr/include/X11R5
26875/usr/include/X11R4
26876
26877/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026878/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026879/usr/local/X11R6/include
26880/usr/local/X11R5/include
26881/usr/local/X11R4/include
26882
26883/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026884/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026885/usr/local/include/X11R6
26886/usr/local/include/X11R5
26887/usr/local/include/X11R4
26888
26889/usr/X386/include
26890/usr/x386/include
26891/usr/XFree86/include/X11
26892
26893/usr/include
26894/usr/local/include
26895/usr/unsupported/include
26896/usr/athena/include
26897/usr/local/x11r5/include
26898/usr/lpp/Xamples/include
26899
26900/usr/openwin/include
26901/usr/openwin/share/include'
26902
26903if test "$ac_x_includes" = no; then
26904 # Guess where to find include files, by looking for Xlib.h.
26905 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026907/* end confdefs.h. */
26908#include <X11/Xlib.h>
26909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026910if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026911 # We can compile using X headers with no special include directory.
26912ac_x_includes=
26913else
cristyc7083c12009-10-14 03:16:55 +000026914 for ac_dir in $ac_x_header_dirs; do
26915 if test -r "$ac_dir/X11/Xlib.h"; then
26916 ac_x_includes=$ac_dir
26917 break
26918 fi
26919done
26920fi
cristyda16f162011-02-19 23:52:17 +000026921rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026922fi # $ac_x_includes = no
26923
26924if test "$ac_x_libraries" = no; then
26925 # Check for the libraries.
26926 # See if we find them without any special options.
26927 # Don't add to $LIBS permanently.
26928 ac_save_LIBS=$LIBS
26929 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026931/* end confdefs.h. */
26932#include <X11/Xlib.h>
26933int
26934main ()
26935{
26936XrmInitialize ()
26937 ;
26938 return 0;
26939}
26940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026941if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026942 LIBS=$ac_save_LIBS
26943# We can link X programs with no special library path.
26944ac_x_libraries=
26945else
cristy8b350f62009-11-15 23:12:43 +000026946 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026947for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26948do
26949 # Don't even attempt the hair of trying to link an X program!
26950 for ac_extension in a so sl dylib la dll; do
26951 if test -r "$ac_dir/libX11.$ac_extension"; then
26952 ac_x_libraries=$ac_dir
26953 break 2
26954 fi
26955 done
26956done
26957fi
cristy8b350f62009-11-15 23:12:43 +000026958rm -f core conftest.err conftest.$ac_objext \
26959 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026960fi # $ac_x_libraries = no
26961
26962case $ac_x_includes,$ac_x_libraries in #(
26963 no,* | *,no | *\'*)
26964 # Didn't find X, or a directory has "'" in its name.
26965 ac_cv_have_x="have_x=no";; #(
26966 *)
26967 # Record where we found X for the cache.
26968 ac_cv_have_x="have_x=yes\
26969 ac_x_includes='$ac_x_includes'\
26970 ac_x_libraries='$ac_x_libraries'"
26971esac
26972fi
26973;; #(
26974 *) have_x=yes;;
26975 esac
26976 eval "$ac_cv_have_x"
26977fi # $with_x != no
26978
26979if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026981$as_echo "$have_x" >&6; }
26982 no_x=yes
26983else
26984 # If each of the values was on the command line, it overrides each guess.
26985 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26986 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26987 # Update the cache value to reflect the command line values.
26988 ac_cv_have_x="have_x=yes\
26989 ac_x_includes='$x_includes'\
26990 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026992$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26993fi
26994
cristy3ed852e2009-09-05 21:47:34 +000026995if test "$no_x" = yes; then
26996 # Not all programs may use this symbol, but it does not hurt to define it.
26997
cristy8b350f62009-11-15 23:12:43 +000026998$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026999
27000 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27001else
27002 if test -n "$x_includes"; then
27003 X_CFLAGS="$X_CFLAGS -I$x_includes"
27004 fi
27005
27006 # It would also be nice to do this for all -L options, not just this one.
27007 if test -n "$x_libraries"; then
27008 X_LIBS="$X_LIBS -L$x_libraries"
27009 # For Solaris; some versions of Sun CC require a space after -R and
27010 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27013 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27014 ac_xsave_c_werror_flag=$ac_c_werror_flag
27015 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027017/* end confdefs.h. */
27018
27019int
27020main ()
27021{
27022
27023 ;
27024 return 0;
27025}
27026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027027if ac_fn_c_try_link "$LINENO"; then :
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo "no" >&6; }
27030 X_LIBS="$X_LIBS -R$x_libraries"
27031else
cristy8b350f62009-11-15 23:12:43 +000027032 LIBS="$ac_xsave_LIBS -R $x_libraries"
27033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034/* end confdefs.h. */
27035
27036int
27037main ()
27038{
27039
27040 ;
27041 return 0;
27042}
27043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027044if ac_fn_c_try_link "$LINENO"; then :
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo "yes" >&6; }
27047 X_LIBS="$X_LIBS -R $x_libraries"
27048else
cristy8b350f62009-11-15 23:12:43 +000027049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027050$as_echo "neither works" >&6; }
27051fi
cristy8b350f62009-11-15 23:12:43 +000027052rm -f core conftest.err conftest.$ac_objext \
27053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027054fi
cristy8b350f62009-11-15 23:12:43 +000027055rm -f core conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057 ac_c_werror_flag=$ac_xsave_c_werror_flag
27058 LIBS=$ac_xsave_LIBS
27059 fi
27060
27061 # Check for system-dependent libraries X programs must link with.
27062 # Do this before checking for the system-independent R6 libraries
27063 # (-lICE), since we may need -lsocket or whatever for X linking.
27064
27065 if test "$ISC" = yes; then
27066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27067 else
27068 # Martyn Johnson says this is needed for Ultrix, if the X
27069 # libraries were built with DECnet support. And Karl Berry says
27070 # the Alpha needs dnet_stub (dnet does not exist).
27071 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027073/* end confdefs.h. */
27074
27075/* Override any GCC internal prototype to avoid an error.
27076 Use char because int might match the return type of a GCC
27077 builtin and then its argument prototype would still apply. */
27078#ifdef __cplusplus
27079extern "C"
27080#endif
27081char XOpenDisplay ();
27082int
27083main ()
27084{
27085return XOpenDisplay ();
27086 ;
27087 return 0;
27088}
27089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027091
cristy8b350f62009-11-15 23:12:43 +000027092else
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027095if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 $as_echo_n "(cached) " >&6
27097else
27098 ac_check_lib_save_LIBS=$LIBS
27099LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027101/* end confdefs.h. */
27102
27103/* Override any GCC internal prototype to avoid an error.
27104 Use char because int might match the return type of a GCC
27105 builtin and then its argument prototype would still apply. */
27106#ifdef __cplusplus
27107extern "C"
27108#endif
27109char dnet_ntoa ();
27110int
27111main ()
27112{
27113return dnet_ntoa ();
27114 ;
27115 return 0;
27116}
27117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027119 ac_cv_lib_dnet_dnet_ntoa=yes
27120else
cristy8b350f62009-11-15 23:12:43 +000027121 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027122fi
cristy8b350f62009-11-15 23:12:43 +000027123rm -f core conftest.err conftest.$ac_objext \
27124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027125LIBS=$ac_check_lib_save_LIBS
27126fi
cristy8b350f62009-11-15 23:12:43 +000027127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027129if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27131fi
27132
27133 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027135$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027136if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027137 $as_echo_n "(cached) " >&6
27138else
27139 ac_check_lib_save_LIBS=$LIBS
27140LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027142/* end confdefs.h. */
27143
27144/* Override any GCC internal prototype to avoid an error.
27145 Use char because int might match the return type of a GCC
27146 builtin and then its argument prototype would still apply. */
27147#ifdef __cplusplus
27148extern "C"
27149#endif
27150char dnet_ntoa ();
27151int
27152main ()
27153{
27154return dnet_ntoa ();
27155 ;
27156 return 0;
27157}
27158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27161else
cristy8b350f62009-11-15 23:12:43 +000027162 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027163fi
cristy8b350f62009-11-15 23:12:43 +000027164rm -f core conftest.err conftest.$ac_objext \
27165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027166LIBS=$ac_check_lib_save_LIBS
27167fi
cristy8b350f62009-11-15 23:12:43 +000027168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027169$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027170if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027171 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27172fi
27173
27174 fi
27175fi
cristy8b350f62009-11-15 23:12:43 +000027176rm -f core conftest.err conftest.$ac_objext \
27177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027178 LIBS="$ac_xsave_LIBS"
27179
27180 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27181 # to get the SysV transport functions.
27182 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27183 # needs -lnsl.
27184 # The nsl library prevents programs from opening the X display
27185 # on Irix 5.2, according to T.E. Dickey.
27186 # The functions gethostbyname, getservbyname, and inet_addr are
27187 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027188 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027189if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027190
cristy3ed852e2009-09-05 21:47:34 +000027191fi
27192
cristy3ed852e2009-09-05 21:47:34 +000027193 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027195$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027196if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027197 $as_echo_n "(cached) " >&6
27198else
27199 ac_check_lib_save_LIBS=$LIBS
27200LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027202/* end confdefs.h. */
27203
27204/* Override any GCC internal prototype to avoid an error.
27205 Use char because int might match the return type of a GCC
27206 builtin and then its argument prototype would still apply. */
27207#ifdef __cplusplus
27208extern "C"
27209#endif
27210char gethostbyname ();
27211int
27212main ()
27213{
27214return gethostbyname ();
27215 ;
27216 return 0;
27217}
27218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027220 ac_cv_lib_nsl_gethostbyname=yes
27221else
cristy8b350f62009-11-15 23:12:43 +000027222 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027223fi
cristy8b350f62009-11-15 23:12:43 +000027224rm -f core conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027226LIBS=$ac_check_lib_save_LIBS
27227fi
cristy8b350f62009-11-15 23:12:43 +000027228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027229$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027230if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27232fi
27233
27234 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027236$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027237if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027238 $as_echo_n "(cached) " >&6
27239else
27240 ac_check_lib_save_LIBS=$LIBS
27241LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027243/* end confdefs.h. */
27244
27245/* Override any GCC internal prototype to avoid an error.
27246 Use char because int might match the return type of a GCC
27247 builtin and then its argument prototype would still apply. */
27248#ifdef __cplusplus
27249extern "C"
27250#endif
27251char gethostbyname ();
27252int
27253main ()
27254{
27255return gethostbyname ();
27256 ;
27257 return 0;
27258}
27259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027260if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 ac_cv_lib_bsd_gethostbyname=yes
27262else
cristy8b350f62009-11-15 23:12:43 +000027263 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027264fi
cristy8b350f62009-11-15 23:12:43 +000027265rm -f core conftest.err conftest.$ac_objext \
27266 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027267LIBS=$ac_check_lib_save_LIBS
27268fi
cristy8b350f62009-11-15 23:12:43 +000027269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027270$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027271if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27273fi
27274
27275 fi
27276 fi
27277
27278 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27279 # socket/setsockopt and other routines are undefined under SCO ODT
27280 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27281 # on later versions), says Simon Leinen: it contains gethostby*
27282 # variants that don't use the name server (or something). -lsocket
27283 # must be given before -lnsl if both are needed. We assume that
27284 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027285 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027286if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027287
cristy3ed852e2009-09-05 21:47:34 +000027288fi
27289
cristy3ed852e2009-09-05 21:47:34 +000027290 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027292$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027293if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027294 $as_echo_n "(cached) " >&6
27295else
27296 ac_check_lib_save_LIBS=$LIBS
27297LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027299/* end confdefs.h. */
27300
27301/* Override any GCC internal prototype to avoid an error.
27302 Use char because int might match the return type of a GCC
27303 builtin and then its argument prototype would still apply. */
27304#ifdef __cplusplus
27305extern "C"
27306#endif
27307char connect ();
27308int
27309main ()
27310{
27311return connect ();
27312 ;
27313 return 0;
27314}
27315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 ac_cv_lib_socket_connect=yes
27318else
cristy8b350f62009-11-15 23:12:43 +000027319 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027320fi
cristy8b350f62009-11-15 23:12:43 +000027321rm -f core conftest.err conftest.$ac_objext \
27322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027323LIBS=$ac_check_lib_save_LIBS
27324fi
cristy8b350f62009-11-15 23:12:43 +000027325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027326$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027327if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27329fi
27330
27331 fi
27332
27333 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027334 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027335if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027336
cristy3ed852e2009-09-05 21:47:34 +000027337fi
27338
cristy3ed852e2009-09-05 21:47:34 +000027339 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027342if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 $as_echo_n "(cached) " >&6
27344else
27345 ac_check_lib_save_LIBS=$LIBS
27346LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027348/* end confdefs.h. */
27349
27350/* Override any GCC internal prototype to avoid an error.
27351 Use char because int might match the return type of a GCC
27352 builtin and then its argument prototype would still apply. */
27353#ifdef __cplusplus
27354extern "C"
27355#endif
27356char remove ();
27357int
27358main ()
27359{
27360return remove ();
27361 ;
27362 return 0;
27363}
27364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027366 ac_cv_lib_posix_remove=yes
27367else
cristy8b350f62009-11-15 23:12:43 +000027368 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027369fi
cristy8b350f62009-11-15 23:12:43 +000027370rm -f core conftest.err conftest.$ac_objext \
27371 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027372LIBS=$ac_check_lib_save_LIBS
27373fi
cristy8b350f62009-11-15 23:12:43 +000027374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027375$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027376if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27378fi
27379
27380 fi
27381
27382 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027383 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027384if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027385
cristy3ed852e2009-09-05 21:47:34 +000027386fi
27387
cristy3ed852e2009-09-05 21:47:34 +000027388 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027390$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027391if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027392 $as_echo_n "(cached) " >&6
27393else
27394 ac_check_lib_save_LIBS=$LIBS
27395LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027397/* end confdefs.h. */
27398
27399/* Override any GCC internal prototype to avoid an error.
27400 Use char because int might match the return type of a GCC
27401 builtin and then its argument prototype would still apply. */
27402#ifdef __cplusplus
27403extern "C"
27404#endif
27405char shmat ();
27406int
27407main ()
27408{
27409return shmat ();
27410 ;
27411 return 0;
27412}
27413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027414if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027415 ac_cv_lib_ipc_shmat=yes
27416else
cristy8b350f62009-11-15 23:12:43 +000027417 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027418fi
cristy8b350f62009-11-15 23:12:43 +000027419rm -f core conftest.err conftest.$ac_objext \
27420 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027421LIBS=$ac_check_lib_save_LIBS
27422fi
cristy8b350f62009-11-15 23:12:43 +000027423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027424$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027425if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27427fi
27428
27429 fi
27430 fi
27431
27432 # Check for libraries that X11R6 Xt/Xaw programs need.
27433 ac_save_LDFLAGS=$LDFLAGS
27434 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27435 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27436 # check for ICE first), but we must link in the order -lSM -lICE or
27437 # we get undefined symbols. So assume we have SM if we have ICE.
27438 # These have to be linked with before -lX11, unlike the other
27439 # libraries we check for below, so use a different variable.
27440 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027443if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 $as_echo_n "(cached) " >&6
27445else
27446 ac_check_lib_save_LIBS=$LIBS
27447LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027449/* end confdefs.h. */
27450
27451/* Override any GCC internal prototype to avoid an error.
27452 Use char because int might match the return type of a GCC
27453 builtin and then its argument prototype would still apply. */
27454#ifdef __cplusplus
27455extern "C"
27456#endif
27457char IceConnectionNumber ();
27458int
27459main ()
27460{
27461return IceConnectionNumber ();
27462 ;
27463 return 0;
27464}
27465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027466if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027467 ac_cv_lib_ICE_IceConnectionNumber=yes
27468else
cristy8b350f62009-11-15 23:12:43 +000027469 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027470fi
cristy8b350f62009-11-15 23:12:43 +000027471rm -f core conftest.err conftest.$ac_objext \
27472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027473LIBS=$ac_check_lib_save_LIBS
27474fi
cristy8b350f62009-11-15 23:12:43 +000027475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027477if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027478 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27479fi
27480
27481 LDFLAGS=$ac_save_LDFLAGS
27482
27483fi
27484
27485if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27487$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027489$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027490 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27491$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027492 LDFLAGS="$LDFLAGS $X_LIBS"
27493 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27494 LIBS="$X11_LIBS $LIBS"
27495 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27496
27497
cristy8b350f62009-11-15 23:12:43 +000027498$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027499
27500 #
27501 # Check for X11 shared memory extension
27502 #
27503 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027504 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027505if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 have_shmctl='yes'
27507fi
27508
27509 if test "$have_shmctl" != 'yes'; then
27510 PERSIST_LIBS=$LIBS
27511 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027513/* end confdefs.h. */
27514
27515/* Override any GCC internal prototype to avoid an error.
27516 Use char because int might match the return type of a GCC
27517 builtin and then its argument prototype would still apply. */
27518#ifdef __cplusplus
27519extern "C"
27520#endif
27521char shmctl ();
27522int
27523main ()
27524{
27525return shmctl ();
27526 ;
27527 return 0;
27528}
27529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027531 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027532fi
cristy8b350f62009-11-15 23:12:43 +000027533rm -f core conftest.err conftest.$ac_objext \
27534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027535 LIBS=$PERSIST_LIBS
27536 fi
27537
27538 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027541if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027542 $as_echo_n "(cached) " >&6
27543else
27544 ac_check_lib_save_LIBS=$LIBS
27545LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027547/* end confdefs.h. */
27548
27549/* Override any GCC internal prototype to avoid an error.
27550 Use char because int might match the return type of a GCC
27551 builtin and then its argument prototype would still apply. */
27552#ifdef __cplusplus
27553extern "C"
27554#endif
27555char XShmAttach ();
27556int
27557main ()
27558{
27559return XShmAttach ();
27560 ;
27561 return 0;
27562}
27563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 ac_cv_lib_Xext_XShmAttach=yes
27566else
cristy8b350f62009-11-15 23:12:43 +000027567 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027568fi
cristy8b350f62009-11-15 23:12:43 +000027569rm -f core conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027571LIBS=$ac_check_lib_save_LIBS
27572fi
cristy8b350f62009-11-15 23:12:43 +000027573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027574$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027575if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027577$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027578
27579fi
27580
27581 fi
27582
27583 #
27584 # Check for X11 shape extension
27585 #
cristy8b350f62009-11-15 23:12:43 +000027586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027587$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027588if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 $as_echo_n "(cached) " >&6
27590else
27591 ac_check_lib_save_LIBS=$LIBS
27592LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027594/* end confdefs.h. */
27595
27596/* Override any GCC internal prototype to avoid an error.
27597 Use char because int might match the return type of a GCC
27598 builtin and then its argument prototype would still apply. */
27599#ifdef __cplusplus
27600extern "C"
27601#endif
27602char XShapeCombineMask ();
27603int
27604main ()
27605{
27606return XShapeCombineMask ();
27607 ;
27608 return 0;
27609}
27610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027612 ac_cv_lib_Xext_XShapeCombineMask=yes
27613else
cristy8b350f62009-11-15 23:12:43 +000027614 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027615fi
cristy8b350f62009-11-15 23:12:43 +000027616rm -f core conftest.err conftest.$ac_objext \
27617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027618LIBS=$ac_check_lib_save_LIBS
27619fi
cristy8b350f62009-11-15 23:12:43 +000027620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027622if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027623 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027624$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027625
27626fi
27627
cristy8b350f62009-11-15 23:12:43 +000027628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027629$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027630if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 $as_echo_n "(cached) " >&6
27632else
27633 ac_check_lib_save_LIBS=$LIBS
27634LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027636/* end confdefs.h. */
27637
27638/* Override any GCC internal prototype to avoid an error.
27639 Use char because int might match the return type of a GCC
27640 builtin and then its argument prototype would still apply. */
27641#ifdef __cplusplus
27642extern "C"
27643#endif
27644char XtSetEventDispatcher ();
27645int
27646main ()
27647{
27648return XtSetEventDispatcher ();
27649 ;
27650 return 0;
27651}
27652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027654 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27655else
cristy8b350f62009-11-15 23:12:43 +000027656 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027657fi
cristy8b350f62009-11-15 23:12:43 +000027658rm -f core conftest.err conftest.$ac_objext \
27659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027660LIBS=$ac_check_lib_save_LIBS
27661fi
cristy8b350f62009-11-15 23:12:43 +000027662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027663$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027664if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027665 XT_LIBS='-lXt'
27666fi
27667
27668 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27669fi
27670if test "$no_x" != 'yes'; then
27671 have_x='yes'
27672else
27673 have_x='no'
27674fi
cristy73bd4a52010-10-05 11:24:23 +000027675 if test "$have_x" = 'yes'; then
27676 X11_DELEGATE_TRUE=
27677 X11_DELEGATE_FALSE='#'
27678else
27679 X11_DELEGATE_TRUE='#'
27680 X11_DELEGATE_FALSE=
27681fi
27682
cristy3ed852e2009-09-05 21:47:34 +000027683
27684
27685
27686
27687#
27688# Check for ZLIB
27689#
27690
27691# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027692if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 withval=$with_zlib; with_zlib=$withval
27694else
27695 with_zlib='yes'
27696fi
27697
27698
27699if test "$with_zlib" != 'yes'; then
27700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27701fi
27702
27703have_zlib='no'
27704ZLIB_LIBS=''
27705if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27707$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027710 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27711$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027712 ZLIB_LIBS=''
27713 failed=0
27714 passed=0
cristy8b350f62009-11-15 23:12:43 +000027715 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027716if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027717 passed=`expr $passed + 1`
27718else
27719 failed=`expr $failed + 1`
27720fi
27721
27722
cristy8b350f62009-11-15 23:12:43 +000027723 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027724if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027725 passed=`expr $passed + 1`
27726else
27727 failed=`expr $failed + 1`
27728fi
27729
27730
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char compress ();
27748int
27749main ()
27750{
27751return compress ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_z_compress=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char uncompress ();
27790int
27791main ()
27792{
27793return uncompress ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_z_uncompress=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 passed=`expr $passed + 1`
27811else
27812 failed=`expr $failed + 1`
27813fi
27814
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027817if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 $as_echo_n "(cached) " >&6
27819else
27820 ac_check_lib_save_LIBS=$LIBS
27821LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823/* end confdefs.h. */
27824
27825/* Override any GCC internal prototype to avoid an error.
27826 Use char because int might match the return type of a GCC
27827 builtin and then its argument prototype would still apply. */
27828#ifdef __cplusplus
27829extern "C"
27830#endif
27831char deflate ();
27832int
27833main ()
27834{
27835return deflate ();
27836 ;
27837 return 0;
27838}
27839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027840if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 ac_cv_lib_z_deflate=yes
27842else
cristy8b350f62009-11-15 23:12:43 +000027843 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027844fi
cristy8b350f62009-11-15 23:12:43 +000027845rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027847LIBS=$ac_check_lib_save_LIBS
27848fi
cristy8b350f62009-11-15 23:12:43 +000027849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027850$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027851if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 passed=`expr $passed + 1`
27853else
27854 failed=`expr $failed + 1`
27855fi
27856
cristy8b350f62009-11-15 23:12:43 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027859if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 $as_echo_n "(cached) " >&6
27861else
27862 ac_check_lib_save_LIBS=$LIBS
27863LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027865/* end confdefs.h. */
27866
27867/* Override any GCC internal prototype to avoid an error.
27868 Use char because int might match the return type of a GCC
27869 builtin and then its argument prototype would still apply. */
27870#ifdef __cplusplus
27871extern "C"
27872#endif
27873char inflate ();
27874int
27875main ()
27876{
27877return inflate ();
27878 ;
27879 return 0;
27880}
27881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027882if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 ac_cv_lib_z_inflate=yes
27884else
cristy8b350f62009-11-15 23:12:43 +000027885 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027886fi
cristy8b350f62009-11-15 23:12:43 +000027887rm -f core conftest.err conftest.$ac_objext \
27888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027889LIBS=$ac_check_lib_save_LIBS
27890fi
cristy8b350f62009-11-15 23:12:43 +000027891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027892$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027893if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027894 passed=`expr $passed + 1`
27895else
27896 failed=`expr $failed + 1`
27897fi
27898
cristy8b350f62009-11-15 23:12:43 +000027899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027901if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027902 $as_echo_n "(cached) " >&6
27903else
27904 ac_check_lib_save_LIBS=$LIBS
27905LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027907/* end confdefs.h. */
27908
27909/* Override any GCC internal prototype to avoid an error.
27910 Use char because int might match the return type of a GCC
27911 builtin and then its argument prototype would still apply. */
27912#ifdef __cplusplus
27913extern "C"
27914#endif
27915char gzseek ();
27916int
27917main ()
27918{
27919return gzseek ();
27920 ;
27921 return 0;
27922}
27923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027924if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027925 ac_cv_lib_z_gzseek=yes
27926else
cristy8b350f62009-11-15 23:12:43 +000027927 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027928fi
cristy8b350f62009-11-15 23:12:43 +000027929rm -f core conftest.err conftest.$ac_objext \
27930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027931LIBS=$ac_check_lib_save_LIBS
27932fi
cristy8b350f62009-11-15 23:12:43 +000027933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027934$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027935if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027936 passed=`expr $passed + 1`
27937else
27938 failed=`expr $failed + 1`
27939fi
27940
cristy8b350f62009-11-15 23:12:43 +000027941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027942$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027943if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027944 $as_echo_n "(cached) " >&6
27945else
27946 ac_check_lib_save_LIBS=$LIBS
27947LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027949/* end confdefs.h. */
27950
27951/* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27954#ifdef __cplusplus
27955extern "C"
27956#endif
27957char gztell ();
27958int
27959main ()
27960{
27961return gztell ();
27962 ;
27963 return 0;
27964}
27965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027967 ac_cv_lib_z_gztell=yes
27968else
cristy8b350f62009-11-15 23:12:43 +000027969 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027970fi
cristy8b350f62009-11-15 23:12:43 +000027971rm -f core conftest.err conftest.$ac_objext \
27972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027973LIBS=$ac_check_lib_save_LIBS
27974fi
cristy8b350f62009-11-15 23:12:43 +000027975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027976$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027977if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027978 passed=`expr $passed + 1`
27979else
27980 failed=`expr $failed + 1`
27981fi
27982
cristy8b350f62009-11-15 23:12:43 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027984$as_echo_n "checking if ZLIB package is complete... " >&6; }
27985 if test $passed -gt 0; then
27986 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27988$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027989 have_zlib='no (failed tests)'
27990 else
27991 ZLIB_LIBS='-lz'
27992 LIBS="$ZLIB_LIBS $LIBS"
27993
cristy8b350f62009-11-15 23:12:43 +000027994$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027995
cristy09b53e12011-10-14 12:47:22 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27997$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027998 have_zlib='yes'
27999 fi
28000 else
cristy09b53e12011-10-14 12:47:22 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28002$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028003 fi
28004fi
cristy73bd4a52010-10-05 11:24:23 +000028005 if test "$have_zlib" = 'yes'; then
28006 ZLIB_DELEGATE_TRUE=
28007 ZLIB_DELEGATE_FALSE='#'
28008else
28009 ZLIB_DELEGATE_TRUE='#'
28010 ZLIB_DELEGATE_FALSE=
28011fi
28012
cristy3ed852e2009-09-05 21:47:34 +000028013
28014
28015#
28016# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28017#
28018LIB_DL=''
28019if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028022if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 $as_echo_n "(cached) " >&6
28024else
28025 ac_check_lib_save_LIBS=$LIBS
28026LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028028/* end confdefs.h. */
28029
28030/* Override any GCC internal prototype to avoid an error.
28031 Use char because int might match the return type of a GCC
28032 builtin and then its argument prototype would still apply. */
28033#ifdef __cplusplus
28034extern "C"
28035#endif
28036char dlopen ();
28037int
28038main ()
28039{
28040return dlopen ();
28041 ;
28042 return 0;
28043}
28044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028045if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 ac_cv_lib_dl_dlopen=yes
28047else
cristy8b350f62009-11-15 23:12:43 +000028048 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028049fi
cristy8b350f62009-11-15 23:12:43 +000028050rm -f core conftest.err conftest.$ac_objext \
28051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028052LIBS=$ac_check_lib_save_LIBS
28053fi
cristy8b350f62009-11-15 23:12:43 +000028054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028055$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028056if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 LIB_DL='-ldl'
28058fi
28059
28060 LIBS="$LIB_DL $LIBS"
28061fi
28062
28063
28064
28065#
28066# Check for Autotrace delegate library.
28067#
28068
28069# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028070if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028071 withval=$with_autotrace; with_autotrace=$withval
28072else
28073 with_autotrace='no'
28074fi
28075
28076
28077if test "$with_autotrace" != 'yes'; then
28078 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28079fi
28080
28081have_autotrace='no'
28082AUTOTRACE_CFLAGS=""
28083AUTOTRACE_LIBS=""
28084AUTOTRACE_PKG=""
28085if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28087$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028088
28089pkg_failed=no
28090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28091$as_echo_n "checking for AUTOTRACE... " >&6; }
28092
28093if test -n "$AUTOTRACE_CFLAGS"; then
28094 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28095 elif test -n "$PKG_CONFIG"; then
28096 if test -n "$PKG_CONFIG" && \
28097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28098 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28099 ac_status=$?
28100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28101 test $ac_status = 0; }; then
28102 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28103else
28104 pkg_failed=yes
28105fi
28106 else
28107 pkg_failed=untried
28108fi
28109if test -n "$AUTOTRACE_LIBS"; then
28110 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28111 elif test -n "$PKG_CONFIG"; then
28112 if test -n "$PKG_CONFIG" && \
28113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28114 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28115 ac_status=$?
28116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117 test $ac_status = 0; }; then
28118 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28119else
28120 pkg_failed=yes
28121fi
28122 else
28123 pkg_failed=untried
28124fi
28125
28126
28127
28128if test $pkg_failed = yes; then
28129
28130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28131 _pkg_short_errors_supported=yes
28132else
28133 _pkg_short_errors_supported=no
28134fi
28135 if test $_pkg_short_errors_supported = yes; then
28136 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28137 else
28138 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28139 fi
28140 # Put the nasty error message in config.log where it belongs
28141 echo "$AUTOTRACE_PKG_ERRORS" >&5
28142
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28144$as_echo "no" >&6; }
28145 have_autotrace=no
28146elif test $pkg_failed = untried; then
28147 have_autotrace=no
28148else
28149 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28150 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28152$as_echo "yes" >&6; }
28153 have_autotrace=yes
28154fi
cristy09b53e12011-10-14 12:47:22 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28156$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028157fi
28158
28159if test "$have_autotrace" = 'yes'; then
28160 failed=0
28161
cristy8b350f62009-11-15 23:12:43 +000028162$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028163
28164 if test "$with_modules" = 'no'; then
28165 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28166 fi
28167fi
28168
cristy73bd4a52010-10-05 11:24:23 +000028169 if test "$have_autotrace" = 'yes'; then
28170 AUTOTRACE_DELEGATE_TRUE=
28171 AUTOTRACE_DELEGATE_FALSE='#'
28172else
28173 AUTOTRACE_DELEGATE_TRUE='#'
28174 AUTOTRACE_DELEGATE_FALSE=
28175fi
28176
cristy3ed852e2009-09-05 21:47:34 +000028177
28178
28179
28180
28181#
28182# Check for Display Postscript delegate library.
28183#
28184
28185# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028186if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 withval=$with_dps; with_dps=$withval
28188else
28189 with_dps='yes'
28190fi
28191
28192
28193if test "$with_dps" != 'yes'; then
28194 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28195fi
28196
28197have_dps='no'
28198DPS_LIBS=''
28199if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028200 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28201$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028203$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028204 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28205$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028206 failed=0
28207 passed=0
28208 PERSIST_CPPFLAGS="$CPPFLAGS"
28209 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028210 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 +000028211if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028212 passed=`expr $passed + 1`
28213else
28214 failed=`expr $failed + 1`
28215fi
28216
28217
28218 # DPS issues:
28219 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28220 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28221 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28222 # ImageMagick itself doesn't use -lXt.
28223 have_libdps='no'
28224 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028227if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 $as_echo_n "(cached) " >&6
28229else
28230 ac_check_lib_save_LIBS=$LIBS
28231LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028233/* end confdefs.h. */
28234
28235/* Override any GCC internal prototype to avoid an error.
28236 Use char because int might match the return type of a GCC
28237 builtin and then its argument prototype would still apply. */
28238#ifdef __cplusplus
28239extern "C"
28240#endif
28241char DPSInitialize ();
28242int
28243main ()
28244{
28245return DPSInitialize ();
28246 ;
28247 return 0;
28248}
28249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 ac_cv_lib_dps_DPSInitialize=yes
28252else
cristy8b350f62009-11-15 23:12:43 +000028253 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028254fi
cristy8b350f62009-11-15 23:12:43 +000028255rm -f core conftest.err conftest.$ac_objext \
28256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028257LIBS=$ac_check_lib_save_LIBS
28258fi
cristy8b350f62009-11-15 23:12:43 +000028259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028261if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 have_libdps='yes'
28263else
28264 have_libdps='no'
28265fi
28266
28267 if test "$have_libdps" != 'yes'; then
28268 # Unset cache variable so we can try again.
28269 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028272if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 $as_echo_n "(cached) " >&6
28274else
28275 ac_check_lib_save_LIBS=$LIBS
28276LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028278/* end confdefs.h. */
28279
28280/* Override any GCC internal prototype to avoid an error.
28281 Use char because int might match the return type of a GCC
28282 builtin and then its argument prototype would still apply. */
28283#ifdef __cplusplus
28284extern "C"
28285#endif
28286char DPSInitialize ();
28287int
28288main ()
28289{
28290return DPSInitialize ();
28291 ;
28292 return 0;
28293}
28294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028296 ac_cv_lib_dps_DPSInitialize=yes
28297else
cristy8b350f62009-11-15 23:12:43 +000028298 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028299fi
cristy8b350f62009-11-15 23:12:43 +000028300rm -f core conftest.err conftest.$ac_objext \
28301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028302LIBS=$ac_check_lib_save_LIBS
28303fi
cristy8b350f62009-11-15 23:12:43 +000028304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028306if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 have_libdps='yes'
28308else
28309 have_libdps='no'
28310fi
28311
28312 if test "$have_libdps" = 'yes'; then
28313 LIBDPS_XT='-lXt'
28314 fi
28315 fi
28316 if test "$have_libdps" = 'yes'; then
28317 passed=`expr $passed + 1`
28318 else
28319 failed=`expr $failed + 1`
28320 fi
cristy8b350f62009-11-15 23:12:43 +000028321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028323if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 $as_echo_n "(cached) " >&6
28325else
28326 ac_check_lib_save_LIBS=$LIBS
28327LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028329/* end confdefs.h. */
28330
28331/* Override any GCC internal prototype to avoid an error.
28332 Use char because int might match the return type of a GCC
28333 builtin and then its argument prototype would still apply. */
28334#ifdef __cplusplus
28335extern "C"
28336#endif
28337char XDPSPixelsPerPoint ();
28338int
28339main ()
28340{
28341return XDPSPixelsPerPoint ();
28342 ;
28343 return 0;
28344}
28345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028347 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28348else
cristy8b350f62009-11-15 23:12:43 +000028349 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028350fi
cristy8b350f62009-11-15 23:12:43 +000028351rm -f core conftest.err conftest.$ac_objext \
28352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028353LIBS=$ac_check_lib_save_LIBS
28354fi
cristy8b350f62009-11-15 23:12:43 +000028355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028357if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 passed=`expr $passed + 1`
28359else
28360 failed=`expr $failed + 1`
28361fi
28362
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo_n "checking if DPS package is complete... " >&6; }
28365 if test $passed -gt 0; then
28366 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28368$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028369 have_dps='no (failed tests)'
28370 CPPFLAGS="$PERSIST_CPPFLAGS"
28371 else
28372 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28373 LIBS="$DPS_LIBS $LIBS"
28374
cristy8b350f62009-11-15 23:12:43 +000028375$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028376
cristy09b53e12011-10-14 12:47:22 +000028377 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28378$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028379 have_dps='yes'
28380 fi
28381 else
cristy09b53e12011-10-14 12:47:22 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28383$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028384 CPPFLAGS=$PERSIST_CPPFLAGS
28385 fi
28386fi
cristy73bd4a52010-10-05 11:24:23 +000028387 if test "$have_dps" = 'yes'; then
28388 DPS_DELEGATE_TRUE=
28389 DPS_DELEGATE_FALSE='#'
28390else
28391 DPS_DELEGATE_TRUE='#'
28392 DPS_DELEGATE_FALSE=
28393fi
28394
cristy3ed852e2009-09-05 21:47:34 +000028395
28396
28397
28398#
28399# Check for DJVU delegate library.
28400#
28401
28402# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028403if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 withval=$with_djvu; with_djvu=$withval
28405else
28406 with_djvu='yes'
28407fi
28408
28409
28410if test "$with_djvu" != 'yes'; then
28411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28412fi
28413
28414have_djvu='no'
28415DJVU_LIBS=''
28416if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28418$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028420$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28422$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028423 failed=0
28424 passed=0
cristy8b350f62009-11-15 23:12:43 +000028425 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 +000028426if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 passed=`expr $passed + 1`
28428else
28429 failed=`expr $failed + 1`
28430fi
28431
28432
cristy8b350f62009-11-15 23:12:43 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028434$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028435if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028436 $as_echo_n "(cached) " >&6
28437else
28438 ac_check_lib_save_LIBS=$LIBS
28439LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028441/* end confdefs.h. */
28442
28443/* Override any GCC internal prototype to avoid an error.
28444 Use char because int might match the return type of a GCC
28445 builtin and then its argument prototype would still apply. */
28446#ifdef __cplusplus
28447extern "C"
28448#endif
28449char ddjvu_context_create ();
28450int
28451main ()
28452{
28453return ddjvu_context_create ();
28454 ;
28455 return 0;
28456}
28457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28460else
cristy8b350f62009-11-15 23:12:43 +000028461 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028462fi
cristy8b350f62009-11-15 23:12:43 +000028463rm -f core conftest.err conftest.$ac_objext \
28464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028465LIBS=$ac_check_lib_save_LIBS
28466fi
cristy8b350f62009-11-15 23:12:43 +000028467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 passed=`expr $passed + 1`
28471else
28472 failed=`expr $failed + 1`
28473fi
28474
cristy8b350f62009-11-15 23:12:43 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking if DJVU package is complete... " >&6; }
28477 if test $passed -gt 0; then
28478 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028479 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28480$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028481 have_djvu='no (failed tests)'
28482 else
28483 DJVU_LIBS='-ldjvulibre'
28484 LIBS="$DJVU_LIBS $LIBS"
28485
cristy8b350f62009-11-15 23:12:43 +000028486$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028487
cristy09b53e12011-10-14 12:47:22 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28489$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028490 have_djvu='yes'
28491 fi
28492 else
cristy09b53e12011-10-14 12:47:22 +000028493 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28494$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028495 fi
28496fi
cristy73bd4a52010-10-05 11:24:23 +000028497 if test "$have_djvu" = 'yes'; then
28498 DJVU_DELEGATE_TRUE=
28499 DJVU_DELEGATE_FALSE='#'
28500else
28501 DJVU_DELEGATE_TRUE='#'
28502 DJVU_DELEGATE_FALSE=
28503fi
28504
cristy3ed852e2009-09-05 21:47:34 +000028505
28506
28507
28508#
cristy430a7312010-01-21 20:44:04 +000028509# Set DejaVu font directory.
28510#
28511
28512# Check whether --with-dejavu-font-dir was given.
28513if test "${with_dejavu_font_dir+set}" = set; then :
28514 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28515else
28516 with_dejavu_font_dir='default'
28517fi
28518
28519
28520if test "$with_dejavu_font_dir" != 'default'; then
28521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28522fi
28523
28524
28525#
cristy3ed852e2009-09-05 21:47:34 +000028526# Check for FFTW delegate library.
28527#
28528
28529# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028530if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028531 withval=$with_fftw; with_fftw=$withval
28532else
28533 with_fftw='yes'
28534fi
28535
28536
28537if test "$with_fftw" != 'yes'; then
28538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28539fi
28540
cristy81beccd2011-10-03 18:17:24 +000028541have_fftw='no'
28542FFTW_LIBS=''
28543if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028544 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28545$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28547$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028548 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28549$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028550 failed=0
28551 passed=0
28552 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28553if test "x$ac_cv_header_fftw3_h" = xyes; then :
28554 passed=`expr $passed + 1`
28555else
28556 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028557fi
28558
cristy81beccd2011-10-03 18:17:24 +000028559
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28561$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28562if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28563 $as_echo_n "(cached) " >&6
28564else
28565 ac_check_lib_save_LIBS=$LIBS
28566LIBS="-lfftw3 $LIBS"
28567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28568/* end confdefs.h. */
28569
28570/* Override any GCC internal prototype to avoid an error.
28571 Use char because int might match the return type of a GCC
28572 builtin and then its argument prototype would still apply. */
28573#ifdef __cplusplus
28574extern "C"
28575#endif
28576char fftw_execute ();
28577int
28578main ()
28579{
28580return fftw_execute ();
28581 ;
28582 return 0;
28583}
28584_ACEOF
28585if ac_fn_c_try_link "$LINENO"; then :
28586 ac_cv_lib_fftw3_fftw_execute=yes
28587else
28588 ac_cv_lib_fftw3_fftw_execute=no
28589fi
28590rm -f core conftest.err conftest.$ac_objext \
28591 conftest$ac_exeext conftest.$ac_ext
28592LIBS=$ac_check_lib_save_LIBS
28593fi
28594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28595$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28596if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28597 passed=`expr $passed + 1`
28598else
28599 failed=`expr $failed + 1`
28600fi
28601
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28603$as_echo_n "checking if FFTW package is complete... " >&6; }
28604 if test $passed -gt 0; then
28605 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28607$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028608 have_fftw='no (failed tests)'
28609 else
28610 FFTW_LIBS='-lfftw3'
28611 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028612
cristy8b350f62009-11-15 23:12:43 +000028613$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028614
cristy09b53e12011-10-14 12:47:22 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28616$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028617 have_fftw='yes'
28618 fi
28619 else
cristy09b53e12011-10-14 12:47:22 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28621$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028622 fi
28623fi
cristy73bd4a52010-10-05 11:24:23 +000028624 if test "$have_fftw" = 'yes'; then
28625 FFTW_DELEGATE_TRUE=
28626 FFTW_DELEGATE_FALSE='#'
28627else
28628 FFTW_DELEGATE_TRUE='#'
28629 FFTW_DELEGATE_FALSE=
28630fi
28631
cristy3ed852e2009-09-05 21:47:34 +000028632
28633
28634
28635#
28636# Check for FlashPIX delegate library.
28637#
28638
28639# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028640if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028641 withval=$with_fpx; with_fpx=$withval
28642else
28643 with_fpx='yes'
28644fi
28645
28646
28647if test "$with_fpx" != 'yes'; then
28648 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28649fi
28650
28651have_fpx='no'
28652FPX_LIBS=''
28653if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028654 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28655$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028657$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028658 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28659$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028660 failed=0
28661 passed=0
28662 ac_ext=cpp
28663ac_cpp='$CXXCPP $CPPFLAGS'
28664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28667
28668
cristy8b350f62009-11-15 23:12:43 +000028669ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028670if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028671 passed=`expr $passed + 1`
28672else
28673 failed=`expr $failed + 1`
28674fi
28675
28676
cristy8b350f62009-11-15 23:12:43 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028679if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 $as_echo_n "(cached) " >&6
28681else
28682 ac_check_lib_save_LIBS=$LIBS
28683LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028685/* end confdefs.h. */
28686
28687/* Override any GCC internal prototype to avoid an error.
28688 Use char because int might match the return type of a GCC
28689 builtin and then its argument prototype would still apply. */
28690#ifdef __cplusplus
28691extern "C"
28692#endif
28693char FPX_OpenImageByFilename ();
28694int
28695main ()
28696{
28697return FPX_OpenImageByFilename ();
28698 ;
28699 return 0;
28700}
28701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028702if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28704else
cristy8b350f62009-11-15 23:12:43 +000028705 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028706fi
cristy8b350f62009-11-15 23:12:43 +000028707rm -f core conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028709LIBS=$ac_check_lib_save_LIBS
28710fi
cristy8b350f62009-11-15 23:12:43 +000028711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028712$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028713if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028714 passed=`expr $passed + 1`
28715else
28716 failed=`expr $failed + 1`
28717fi
28718
28719 ac_ext=c
28720ac_cpp='$CPP $CPPFLAGS'
28721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28723ac_compiler_gnu=$ac_cv_c_compiler_gnu
28724
cristy8b350f62009-11-15 23:12:43 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028726$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28727 if test $passed -gt 0; then
28728 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28730$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028731 have_fpx='no (failed tests)'
28732 else
28733 FPX_LIBS='-lfpx'
28734
cristy8b350f62009-11-15 23:12:43 +000028735$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028736
cristy09b53e12011-10-14 12:47:22 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28738$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028739 have_fpx='yes'
28740 PERLMAINCC="$CXX"
28741 fi
28742 else
cristy09b53e12011-10-14 12:47:22 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28744$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028745 fi
28746fi
cristy73bd4a52010-10-05 11:24:23 +000028747 if test "$have_fpx" = 'yes'; then
28748 FPX_DELEGATE_TRUE=
28749 FPX_DELEGATE_FALSE='#'
28750else
28751 FPX_DELEGATE_TRUE='#'
28752 FPX_DELEGATE_FALSE=
28753fi
28754
cristy3ed852e2009-09-05 21:47:34 +000028755
28756
28757
28758#
28759# Check for fontconfig delegate library.
28760#
28761
28762# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028763if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028764 withval=$with_fontconfig; with_fontconfig=$withval
28765else
28766 with_fontconfig=$have_x
28767fi
28768
28769
28770if test "$with_fontconfig" != 'yes'; then
28771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28772fi
28773
28774have_fontconfig='no'
28775FONTCONFIG_CFLAGS=""
28776FONTCONFIG_LIBS=""
28777FONTCONFIG_PKG=""
28778if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028779 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28780$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028781
28782pkg_failed=no
28783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28784$as_echo_n "checking for FONTCONFIG... " >&6; }
28785
28786if test -n "$FONTCONFIG_CFLAGS"; then
28787 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28788 elif test -n "$PKG_CONFIG"; then
28789 if test -n "$PKG_CONFIG" && \
28790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28791 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28792 ac_status=$?
28793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28794 test $ac_status = 0; }; then
28795 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28796else
28797 pkg_failed=yes
28798fi
28799 else
28800 pkg_failed=untried
28801fi
28802if test -n "$FONTCONFIG_LIBS"; then
28803 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28804 elif test -n "$PKG_CONFIG"; then
28805 if test -n "$PKG_CONFIG" && \
28806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28807 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28808 ac_status=$?
28809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28810 test $ac_status = 0; }; then
28811 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28812else
28813 pkg_failed=yes
28814fi
28815 else
28816 pkg_failed=untried
28817fi
28818
28819
28820
28821if test $pkg_failed = yes; then
28822
28823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28824 _pkg_short_errors_supported=yes
28825else
28826 _pkg_short_errors_supported=no
28827fi
28828 if test $_pkg_short_errors_supported = yes; then
28829 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28830 else
28831 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28832 fi
28833 # Put the nasty error message in config.log where it belongs
28834 echo "$FONTCONFIG_PKG_ERRORS" >&5
28835
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28837$as_echo "no" >&6; }
28838 have_fontconfig=no
28839elif test $pkg_failed = untried; then
28840 have_fontconfig=no
28841else
28842 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28843 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28845$as_echo "yes" >&6; }
28846 have_fontconfig=yes
28847fi
cristy09b53e12011-10-14 12:47:22 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28849$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028850fi
28851
28852if test "$have_fontconfig" = 'yes'; then
28853
cristy8b350f62009-11-15 23:12:43 +000028854$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028855
cristyd09bcf92010-03-25 03:04:45 +000028856 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028857 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028858 fi
cristy3ed852e2009-09-05 21:47:34 +000028859fi
28860
cristy73bd4a52010-10-05 11:24:23 +000028861 if test "$have_fontconfig" = 'yes'; then
28862 FONTCONFIG_DELEGATE_TRUE=
28863 FONTCONFIG_DELEGATE_FALSE='#'
28864else
28865 FONTCONFIG_DELEGATE_TRUE='#'
28866 FONTCONFIG_DELEGATE_FALSE=
28867fi
28868
cristy3ed852e2009-09-05 21:47:34 +000028869
28870
28871
28872
28873#
cristy81beccd2011-10-03 18:17:24 +000028874# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028875#
28876
28877# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028878if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 withval=$with_freetype; with_freetype=$withval
28880else
28881 with_freetype='yes'
28882fi
28883
28884
cristy81beccd2011-10-03 18:17:24 +000028885
cristy3ed852e2009-09-05 21:47:34 +000028886if test "$with_freetype" != 'yes'; then
28887 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28888fi
28889
cristy81beccd2011-10-03 18:17:24 +000028890have_freetype='no'
28891FREETYPE_LIBS=''
28892if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028893 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28894$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28896$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028897 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28898$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028899 failed=0
28900 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028901 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028902 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028903 freetype_config=''
28904 # Allow the user to specify the location of freetype.
28905 if test "$with_freetype" != 'yes'; then
28906 if test -x "${with_freetype}/bin/freetype-config"; then
28907 freetype_config="${with_freetype}/bin/freetype-config"
28908 elif test -x "${with_freetype}"; then
28909 freetype_config=${with_freetype}
28910 fi
28911 fi
28912 if test -z "$freetype_config"; then
28913 # Extract the first word of "freetype-config", so it can be a program name with args.
28914set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28916$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028917if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028918 $as_echo_n "(cached) " >&6
28919else
cristy98ca0f52011-10-08 23:19:10 +000028920 case $freetype_config in
28921 [\\/]* | ?:[\\/]*)
28922 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28923 ;;
28924 *)
28925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028926for as_dir in $PATH
28927do
28928 IFS=$as_save_IFS
28929 test -z "$as_dir" && as_dir=.
28930 for ac_exec_ext in '' $ac_executable_extensions; do
28931 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 +000028932 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28934 break 2
28935 fi
28936done
28937 done
28938IFS=$as_save_IFS
28939
cristy98ca0f52011-10-08 23:19:10 +000028940 ;;
28941esac
cristy81beccd2011-10-03 18:17:24 +000028942fi
cristy98ca0f52011-10-08 23:19:10 +000028943freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028944if test -n "$freetype_config"; then
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28946$as_echo "$freetype_config" >&6; }
28947else
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28949$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028950fi
28951
cristy98ca0f52011-10-08 23:19:10 +000028952 fi
28953 if test -n "$freetype_config"; then
28954 freetype_prefix=`${freetype_config} --prefix`
28955 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28956 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28957 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028958 fi
28959
28960 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028962$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28963if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28964 $as_echo_n "(cached) " >&6
28965else
28966 ac_check_lib_save_LIBS=$LIBS
28967LIBS="-lfreetype $LIBS"
28968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28969/* end confdefs.h. */
28970
28971/* Override any GCC internal prototype to avoid an error.
28972 Use char because int might match the return type of a GCC
28973 builtin and then its argument prototype would still apply. */
28974#ifdef __cplusplus
28975extern "C"
28976#endif
28977char FT_Init_FreeType ();
28978int
28979main ()
28980{
28981return FT_Init_FreeType ();
28982 ;
28983 return 0;
28984}
28985_ACEOF
28986if ac_fn_c_try_link "$LINENO"; then :
28987 ac_cv_lib_freetype_FT_Init_FreeType=yes
28988else
28989 ac_cv_lib_freetype_FT_Init_FreeType=no
28990fi
28991rm -f core conftest.err conftest.$ac_objext \
28992 conftest$ac_exeext conftest.$ac_ext
28993LIBS=$ac_check_lib_save_LIBS
28994fi
28995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28996$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28997if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28998 FREETYPE_LIBS='-lfreetype'
28999fi
29000
cristy98ca0f52011-10-08 23:19:10 +000029001 if test "$FREETYPE_LIBS" != ''; then
29002 passed=`expr $passed + 1`
29003 else
29004 failed=`expr $failed + 1`
29005 LDFLAGS="$PERSIST_LDFLAGS"
29006 fi
cristy81beccd2011-10-03 18:17:24 +000029007 fi
29008
29009 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29010if test "x$ac_cv_header_ft2build_h" = xyes; then :
29011 FT2BUILD_H='#include <ft2build.h>'
29012else
29013 ft2build=''
29014fi
29015
29016
29017 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29018"
29019if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29020 have_freetype_h='yes'
29021else
29022 have_freetype_h='no'
29023fi
29024
29025
cristy98ca0f52011-10-08 23:19:10 +000029026 if test "$have_freetype_h" = 'yes'; then
29027 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029028 else
cristy98ca0f52011-10-08 23:19:10 +000029029 failed=`expr $failed + 1`
29030 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029031 fi
29032
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29034$as_echo_n "checking if FreeType package is complete... " >&6; }
29035 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029036 if test $failed -gt 0; then
29037 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29039$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029040 have_freetype='no (failed tests)'
29041 else
29042 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029043
cristy8b350f62009-11-15 23:12:43 +000029044$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029045
cristy98ca0f52011-10-08 23:19:10 +000029046 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029047
29048$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29049
cristy81beccd2011-10-03 18:17:24 +000029050 fi
cristy09b53e12011-10-14 12:47:22 +000029051 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29052$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029053 have_freetype='yes'
29054 fi
cristy81beccd2011-10-03 18:17:24 +000029055 else
cristy09b53e12011-10-14 12:47:22 +000029056 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29057$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029058 fi
29059fi
cristy73bd4a52010-10-05 11:24:23 +000029060 if test "$have_freetype" = 'yes'; then
29061 FREETYPE_DELEGATE_TRUE=
29062 FREETYPE_DELEGATE_FALSE='#'
29063else
29064 FREETYPE_DELEGATE_TRUE='#'
29065 FREETYPE_DELEGATE_FALSE=
29066fi
29067
cristy3ed852e2009-09-05 21:47:34 +000029068
29069
29070
cristy3ed852e2009-09-05 21:47:34 +000029071#
29072# Check for Ghostscript library or framework.
29073#
29074# Test for iapi.h & test for gsapi_new_instance in -lgs
29075# or -framework Ghostscript
29076
29077
29078# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029079if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029080 withval=$with_gslib; with_gslib=$withval
29081else
29082 with_gslib='no'
29083fi
29084
29085
cristyb7931f12009-09-25 10:22:21 +000029086gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029087if test "$with_gslib" != 'yes'; then
29088 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29089fi
29090
29091have_gslib='no'
29092GS_LIBS=''
29093if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29095$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029097$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29099$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029100 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029101 failed=0
29102 passed=0
cristy8b350f62009-11-15 23:12:43 +000029103 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 +000029104if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029105 passed=`expr $passed + 1`
29106else
29107 failed=`expr $failed + 1`
29108fi
29109
29110
cristy8b350f62009-11-15 23:12:43 +000029111 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 +000029112if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029113 passed=`expr $passed + 1`
29114else
29115 failed=`expr $failed + 1`
29116fi
29117
29118
cristy73bd4a52010-10-05 11:24:23 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29120$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029121if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029122 $as_echo_n "(cached) " >&6
29123else
29124 ac_check_framework_save_LIBS=$LIBS
29125LIBS="-framework Ghostscript $LIBS"
29126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29127/* end confdefs.h. */
29128
29129/* Override any GCC internal prototype to avoid an error.
29130 Use char because int might match the return type of a GCC
29131 builtin and then its argument prototype would still apply. */
29132#ifdef __cplusplus
29133extern "C"
29134#endif
29135char gsapi_new_instance ();
29136int
29137main ()
29138{
29139return gsapi_new_instance ();
29140 ;
29141 return 0;
29142}
29143_ACEOF
29144if ac_fn_c_try_link "$LINENO"; then :
29145 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29146else
29147 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29148fi
29149rm -f core conftest.err conftest.$ac_objext \
29150 conftest$ac_exeext conftest.$ac_ext
29151LIBS=$ac_check_framework_save_LIBS
29152fi
29153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29154$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29155if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29156 framework=`expr $framework + 1`
29157else
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029159$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029160if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 $as_echo_n "(cached) " >&6
29162else
29163 ac_check_lib_save_LIBS=$LIBS
29164LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029166/* end confdefs.h. */
29167
29168/* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
29171#ifdef __cplusplus
29172extern "C"
29173#endif
29174char gsapi_new_instance ();
29175int
29176main ()
29177{
29178return gsapi_new_instance ();
29179 ;
29180 return 0;
29181}
29182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029184 ac_cv_lib_gs_gsapi_new_instance=yes
29185else
cristy8b350f62009-11-15 23:12:43 +000029186 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029187fi
cristy8b350f62009-11-15 23:12:43 +000029188rm -f core conftest.err conftest.$ac_objext \
29189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029190LIBS=$ac_check_lib_save_LIBS
29191fi
cristy8b350f62009-11-15 23:12:43 +000029192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029193$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029194if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029195 passed=`expr $passed + 1`
29196else
29197 failed=`expr $failed + 1`
29198fi
cristy73bd4a52010-10-05 11:24:23 +000029199
29200fi
cristy8b350f62009-11-15 23:12:43 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29203 if test $passed -gt 0; then
29204 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29206$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029207 have_gslib='no (failed tests)'
29208 else
29209 if test $framework -gt 0; then
29210 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029211 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29213$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029214 else
cristy09b53e12011-10-14 12:47:22 +000029215 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29216$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029217 GS_LIBS='-lgs'
29218 fi
29219 LIBS="$GS_LIBS $LIBS"
29220
cristy8b350f62009-11-15 23:12:43 +000029221$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029222
29223 have_gslib='yes'
29224 fi
29225 else
cristy09b53e12011-10-14 12:47:22 +000029226 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29227$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029228 fi
29229fi
cristy73bd4a52010-10-05 11:24:23 +000029230 if test "$have_gslib" = 'yes'; then
29231 GS_DELEGATE_TRUE=
29232 GS_DELEGATE_FALSE='#'
29233else
29234 GS_DELEGATE_TRUE='#'
29235 GS_DELEGATE_FALSE=
29236fi
29237
cristy3ed852e2009-09-05 21:47:34 +000029238
29239
29240# Set default font search path
29241
29242# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029243if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029244 withval=$with_fontpath; with_fontpath=$withval
29245else
29246 with_fontpath=''
29247fi
29248
29249
29250if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29251 with_fontpath=''
29252else
29253
29254cat >>confdefs.h <<_ACEOF
29255#define MAGICK_FONT_PATH "$with_fontpath"
29256_ACEOF
29257
29258fi
29259if test "$with_fontpath=" != ''; then
29260 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29261fi
29262
29263# Set Ghostscript font directory
29264
29265# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029266if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029267 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29268else
29269 with_gs_font_dir='default'
29270fi
29271
29272
29273if test "$with_gs_font_dir" != 'default'; then
29274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29275fi
29276
29277
29278#
29279# Check for GVC delegate library.
29280#
29281
29282# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029283if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029284 withval=$with_gvc; with_gvc=$withval
29285else
29286 with_gvc='yes'
29287fi
29288
29289
29290if test "$with_gvc" != 'yes'; then
29291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29292fi
29293
29294GVC_PKG=""
29295if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029296 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29297$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029298
29299pkg_failed=no
29300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29301$as_echo_n "checking for GVC... " >&6; }
29302
29303if test -n "$GVC_CFLAGS"; then
29304 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29305 elif test -n "$PKG_CONFIG"; then
29306 if test -n "$PKG_CONFIG" && \
29307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29308 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29309 ac_status=$?
29310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29311 test $ac_status = 0; }; then
29312 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29313else
29314 pkg_failed=yes
29315fi
29316 else
29317 pkg_failed=untried
29318fi
29319if test -n "$GVC_LIBS"; then
29320 pkg_cv_GVC_LIBS="$GVC_LIBS"
29321 elif test -n "$PKG_CONFIG"; then
29322 if test -n "$PKG_CONFIG" && \
29323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29324 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29325 ac_status=$?
29326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29327 test $ac_status = 0; }; then
29328 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29329else
29330 pkg_failed=yes
29331fi
29332 else
29333 pkg_failed=untried
29334fi
29335
29336
29337
29338if test $pkg_failed = yes; then
29339
29340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29341 _pkg_short_errors_supported=yes
29342else
29343 _pkg_short_errors_supported=no
29344fi
29345 if test $_pkg_short_errors_supported = yes; then
29346 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29347 else
29348 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29349 fi
29350 # Put the nasty error message in config.log where it belongs
29351 echo "$GVC_PKG_ERRORS" >&5
29352
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29354$as_echo "no" >&6; }
29355 have_gvc=no
29356elif test $pkg_failed = untried; then
29357 have_gvc=no
29358else
29359 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29360 GVC_LIBS=$pkg_cv_GVC_LIBS
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29362$as_echo "yes" >&6; }
29363 have_gvc=yes
29364fi
cristy09b53e12011-10-14 12:47:22 +000029365 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29366$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029367fi
29368
29369if test "$have_gvc" = 'yes'; then
29370
cristy8b350f62009-11-15 23:12:43 +000029371$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029372
29373 if test "$with_modules" = 'no'; then
29374 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29375 fi
29376fi
29377
cristy73bd4a52010-10-05 11:24:23 +000029378 if test "$have_gvc" = 'yes'; then
29379 GVC_DELEGATE_TRUE=
29380 GVC_DELEGATE_FALSE='#'
29381else
29382 GVC_DELEGATE_TRUE='#'
29383 GVC_DELEGATE_FALSE=
29384fi
29385
cristy3ed852e2009-09-05 21:47:34 +000029386
29387
29388
29389
29390#
29391# Check for JBIG delegate library.
29392#
29393
29394
29395# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029396if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 withval=$with_jbig; with_jbig=$withval
29398else
29399 with_jbig='yes'
29400fi
29401
29402
29403have_jbig='no'
29404JBIG_LIBS=''
29405if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29407$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029410 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29411$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029412 failed=0
29413 passed=0
cristy8b350f62009-11-15 23:12:43 +000029414 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029415if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029416 passed=`expr $passed + 1`
29417else
29418 failed=`expr $failed + 1`
29419fi
29420
29421
cristy8b350f62009-11-15 23:12:43 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029424if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029425 $as_echo_n "(cached) " >&6
29426else
29427 ac_check_lib_save_LIBS=$LIBS
29428LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029430/* end confdefs.h. */
29431
29432/* Override any GCC internal prototype to avoid an error.
29433 Use char because int might match the return type of a GCC
29434 builtin and then its argument prototype would still apply. */
29435#ifdef __cplusplus
29436extern "C"
29437#endif
29438char jbg_dec_init ();
29439int
29440main ()
29441{
29442return jbg_dec_init ();
29443 ;
29444 return 0;
29445}
29446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029448 ac_cv_lib_jbig_jbg_dec_init=yes
29449else
cristy8b350f62009-11-15 23:12:43 +000029450 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029451fi
cristy8b350f62009-11-15 23:12:43 +000029452rm -f core conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029454LIBS=$ac_check_lib_save_LIBS
29455fi
cristy8b350f62009-11-15 23:12:43 +000029456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029458if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029459 passed=`expr $passed + 1`
29460else
29461 failed=`expr $failed + 1`
29462fi
29463
cristy8b350f62009-11-15 23:12:43 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo_n "checking if JBIG package is complete... " >&6; }
29466 if test $passed -gt 0; then
29467 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029468 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29469$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029470 have_jbig='no (failed tests)'
29471 else
29472 JBIG_LIBS='-ljbig'
29473 LIBS="$JBIG_LIBS $LIBS"
29474
cristy8b350f62009-11-15 23:12:43 +000029475$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029476
cristy09b53e12011-10-14 12:47:22 +000029477 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29478$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029479 have_jbig='yes'
29480 fi
29481 else
cristy09b53e12011-10-14 12:47:22 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29483$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029484 fi
29485fi
cristy73bd4a52010-10-05 11:24:23 +000029486 if test "$have_jbig" = 'yes'; then
29487 JBIG_DELEGATE_TRUE=
29488 JBIG_DELEGATE_FALSE='#'
29489else
29490 JBIG_DELEGATE_TRUE='#'
29491 JBIG_DELEGATE_FALSE=
29492fi
29493
cristy3ed852e2009-09-05 21:47:34 +000029494
29495
29496
29497#
29498# Check for JPEG delegate library.
29499#
29500
29501# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029502if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029503 withval=$with_jpeg; with_jpeg=$withval
29504else
29505 with_jpeg='yes'
29506fi
29507
29508
29509if test "$with_jpeg" != 'yes'; then
29510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29511fi
29512
29513have_jpeg='no'
29514JPEG_LIBS=''
29515if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29517$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029519$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29521$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029522 failed=0
29523 passed=0
cristy8b350f62009-11-15 23:12:43 +000029524 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029525if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029526 passed=`expr $passed + 1`
29527else
29528 failed=`expr $failed + 1`
29529fi
29530
29531
cristy8b350f62009-11-15 23:12:43 +000029532 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029533if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029534 passed=`expr $passed + 1`
29535else
29536 failed=`expr $failed + 1`
29537fi
29538
29539
cristy8b350f62009-11-15 23:12:43 +000029540 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029541if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029542 passed=`expr $passed + 1`
29543else
29544 failed=`expr $failed + 1`
29545fi
29546
29547
cristy8b350f62009-11-15 23:12:43 +000029548 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029549if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 passed=`expr $passed + 1`
29551else
29552 failed=`expr $failed + 1`
29553fi
29554
29555
cristy8b350f62009-11-15 23:12:43 +000029556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029558if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029559 $as_echo_n "(cached) " >&6
29560else
29561 ac_check_lib_save_LIBS=$LIBS
29562LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029564/* end confdefs.h. */
29565
29566/* Override any GCC internal prototype to avoid an error.
29567 Use char because int might match the return type of a GCC
29568 builtin and then its argument prototype would still apply. */
29569#ifdef __cplusplus
29570extern "C"
29571#endif
29572char jpeg_read_header ();
29573int
29574main ()
29575{
29576return jpeg_read_header ();
29577 ;
29578 return 0;
29579}
29580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 ac_cv_lib_jpeg_jpeg_read_header=yes
29583else
cristy8b350f62009-11-15 23:12:43 +000029584 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029585fi
cristy8b350f62009-11-15 23:12:43 +000029586rm -f core conftest.err conftest.$ac_objext \
29587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029588LIBS=$ac_check_lib_save_LIBS
29589fi
cristy8b350f62009-11-15 23:12:43 +000029590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029591$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029592if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029593 passed=`expr $passed + 1`
29594else
29595 failed=`expr $failed + 1`
29596fi
29597
29598
29599# Test for compatible JPEG library
29600if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029603if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029604 $as_echo_n "(cached) " >&6
29605else
cristy8b350f62009-11-15 23:12:43 +000029606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029607/* end confdefs.h. */
29608#include <stdio.h>
29609#include <stdlib.h>
29610#include <jpeglib.h>
29611
29612int
29613main ()
29614{
29615
29616#if JPEG_LIB_VERSION < 62
29617#error IJG JPEG library must be version 6b or newer!
29618#endif
29619return 0;
29620
29621 ;
29622 return 0;
29623}
29624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029625if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029626 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29627else
cristy8b350f62009-11-15 23:12:43 +000029628 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029629fi
cristy3ed852e2009-09-05 21:47:34 +000029630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29631fi
cristy8b350f62009-11-15 23:12:43 +000029632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029633$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29634fi
cristy8b350f62009-11-15 23:12:43 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029636$as_echo_n "checking if JPEG package is complete... " >&6; }
29637 if test $passed -gt 0; then
29638 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29640$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029641 have_jpeg='no (failed tests)'
29642 else
29643 JPEG_LIBS='-ljpeg'
29644 LIBS="$JPEG_LIBS $LIBS"
29645
cristy8b350f62009-11-15 23:12:43 +000029646$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029647
cristy09b53e12011-10-14 12:47:22 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29649$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029650 have_jpeg='yes'
29651 fi
29652 else
cristy09b53e12011-10-14 12:47:22 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29654$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029655 fi
29656fi
cristy73bd4a52010-10-05 11:24:23 +000029657 if test "$have_jpeg" = 'yes'; then
29658 JPEG_DELEGATE_TRUE=
29659 JPEG_DELEGATE_FALSE='#'
29660else
29661 JPEG_DELEGATE_TRUE='#'
29662 JPEG_DELEGATE_FALSE=
29663fi
29664
cristy3ed852e2009-09-05 21:47:34 +000029665
29666
29667
29668#
29669# Check for JPEG Version 2 delegate library.
29670#
29671
29672# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029673if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029674 withval=$with_jp2; with_jp2=$withval
29675else
29676 with_jp2='yes'
29677fi
29678
29679
29680if test "$with_jp2" != 'yes'; then
29681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29682fi
29683
29684have_jp2='no'
29685JP2_LIBS=''
29686if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29688$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29692$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029693 failed=0
29694 passed=0
cristy8b350f62009-11-15 23:12:43 +000029695 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 +000029696if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029697 passed=`expr $passed + 1`
29698else
29699 failed=`expr $failed + 1`
29700fi
29701
29702
cristy8b350f62009-11-15 23:12:43 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029705if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029706 $as_echo_n "(cached) " >&6
29707else
29708 ac_check_lib_save_LIBS=$LIBS
29709LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029711/* end confdefs.h. */
29712
29713/* Override any GCC internal prototype to avoid an error.
29714 Use char because int might match the return type of a GCC
29715 builtin and then its argument prototype would still apply. */
29716#ifdef __cplusplus
29717extern "C"
29718#endif
29719char jas_stream_fopen ();
29720int
29721main ()
29722{
29723return jas_stream_fopen ();
29724 ;
29725 return 0;
29726}
29727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 ac_cv_lib_jasper_jas_stream_fopen=yes
29730else
cristy8b350f62009-11-15 23:12:43 +000029731 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029732fi
cristy8b350f62009-11-15 23:12:43 +000029733rm -f core conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029735LIBS=$ac_check_lib_save_LIBS
29736fi
cristy8b350f62009-11-15 23:12:43 +000029737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029738$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029739if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 passed=`expr $passed + 1`
29741else
29742 failed=`expr $failed + 1`
29743fi
29744
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29747 if test $passed -gt 0; then
29748 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29750$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029751 have_jp2='no (failed tests)'
29752 else
29753 JP2_LIBS='-ljasper'
29754 LIBS="$JP2_LIBS $LIBS"
29755
cristy8b350f62009-11-15 23:12:43 +000029756$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029757
cristy09b53e12011-10-14 12:47:22 +000029758 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29759$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029760 have_jp2='yes'
29761 fi
29762 else
cristy09b53e12011-10-14 12:47:22 +000029763 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29764$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029765 fi
29766fi
cristy73bd4a52010-10-05 11:24:23 +000029767 if test "$have_jp2" = 'yes'; then
29768 JP2_DELEGATE_TRUE=
29769 JP2_DELEGATE_FALSE='#'
29770else
29771 JP2_DELEGATE_TRUE='#'
29772 JP2_DELEGATE_FALSE=
29773fi
29774
cristy3ed852e2009-09-05 21:47:34 +000029775
29776
29777
29778#
29779# Check for LCMS delegate library.
29780#
cristy71203402010-06-18 13:12:03 +000029781# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029782
29783# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029784if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 withval=$with_lcms; with_lcms=$withval
29786else
29787 with_lcms='yes'
29788fi
29789
cristy71203402010-06-18 13:12:03 +000029790if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29792fi
29793
cristy71203402010-06-18 13:12:03 +000029794# Disable LCMS2.
29795
29796# Check whether --with-lcms2 was given.
29797if test "${with_lcms2+set}" = set; then :
29798 withval=$with_lcms2; with_lcms2=$withval
29799else
29800 with_lcms2='yes'
29801fi
29802
29803if test "$with_lcms2" != 'yes' ; then
29804 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29805fi
29806
29807have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029808LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029809if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29811$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29813$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29815$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029816 failed=0
29817 passed=0
29818 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029819
29820 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029821 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029822if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029823 have_lcms_header='yes'
29824fi
29825
29826
29827 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029828
29829$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29830
cristy71203402010-06-18 13:12:03 +000029831 passed=`expr $passed + 1`
29832 fi
29833
29834 # Check for <lcms2/lcms2.h)
29835 if test "$have_lcms_header" != 'yes'; then
29836 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 +000029837if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029838 have_lcms_header='yes'
29839fi
29840
29841
cristy71203402010-06-18 13:12:03 +000029842 if test "$have_lcms_header" = 'yes'; then
29843 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029844
cristy71203402010-06-18 13:12:03 +000029845$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029846
cristy71203402010-06-18 13:12:03 +000029847 fi
cristyd09bcf92010-03-25 03:04:45 +000029848 fi
cristy71203402010-06-18 13:12:03 +000029849
29850 # Failed to find lcms header?
29851 if test "$have_lcms_header" != 'yes'; then
29852 failed=`expr $failed + 1`
29853 fi
29854
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29856$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029857if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029858 $as_echo_n "(cached) " >&6
29859else
29860 ac_check_lib_save_LIBS=$LIBS
29861LIBS="-llcms2 $LIBS"
29862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29863/* end confdefs.h. */
29864
29865/* Override any GCC internal prototype to avoid an error.
29866 Use char because int might match the return type of a GCC
29867 builtin and then its argument prototype would still apply. */
29868#ifdef __cplusplus
29869extern "C"
29870#endif
cristy71203402010-06-18 13:12:03 +000029871char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029872int
29873main ()
29874{
cristy71203402010-06-18 13:12:03 +000029875return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029876 ;
29877 return 0;
29878}
29879_ACEOF
29880if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029881 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029882else
cristy71203402010-06-18 13:12:03 +000029883 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029884fi
29885rm -f core conftest.err conftest.$ac_objext \
29886 conftest$ac_exeext conftest.$ac_ext
29887LIBS=$ac_check_lib_save_LIBS
29888fi
cristy71203402010-06-18 13:12:03 +000029889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29890$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029891if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029892 passed=`expr $passed + 1`
29893else
29894 failed=`expr $failed + 1`
29895fi
29896
cristy71203402010-06-18 13:12:03 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29898$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029899 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029900 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29902$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029903 have_lcms2='no (failed tests)'
29904 else
29905 LCMS_LIBS='-llcms2'
29906 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29908$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029909 have_lcms2='yes'
29910 fi
cristyd09bcf92010-03-25 03:04:45 +000029911 else
cristy09b53e12011-10-14 12:47:22 +000029912 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29913$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029914 fi
29915fi
29916
cristy71203402010-06-18 13:12:03 +000029917#
29918# Check for LCMS v1 (1.11 or later)
29919#
29920if test $have_lcms2 = 'yes'; then
29921 with_lcms='no'
29922fi
29923
29924have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029925if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29927$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29929$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029930 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29931$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029932 failed=0
29933 passed=0
29934 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029935
29936 # Check for <lcms.h>
29937 if test "$have_lcms_header" != 'yes'; then
29938 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029939if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029940 have_lcms_header='yes'
29941fi
29942
29943
cristy71203402010-06-18 13:12:03 +000029944 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029945 passed=`expr $passed + 1`
29946
cristy8b350f62009-11-15 23:12:43 +000029947$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029948
cristy71203402010-06-18 13:12:03 +000029949 fi
29950 fi
29951
29952 # Check for <lcms/lcms.h>
29953 if test "$have_lcms_header" != 'yes'; then
29954 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 +000029955if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029956 have_lcms_header='yes'
29957fi
29958
29959
cristy71203402010-06-18 13:12:03 +000029960 if test "$have_lcms_header" = 'yes'; then
29961 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029962
cristy8b350f62009-11-15 23:12:43 +000029963$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029964
cristy71203402010-06-18 13:12:03 +000029965 fi
cristy3ed852e2009-09-05 21:47:34 +000029966 fi
cristy71203402010-06-18 13:12:03 +000029967
29968 # Failed to find lcms header?
29969 if test "$have_lcms_header" != 'yes'; then
29970 failed=`expr $failed + 1`
29971 fi
29972
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29974$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029975if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029976 $as_echo_n "(cached) " >&6
29977else
29978 ac_check_lib_save_LIBS=$LIBS
29979LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029981/* end confdefs.h. */
29982
29983/* Override any GCC internal prototype to avoid an error.
29984 Use char because int might match the return type of a GCC
29985 builtin and then its argument prototype would still apply. */
29986#ifdef __cplusplus
29987extern "C"
29988#endif
cristy71203402010-06-18 13:12:03 +000029989char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029990int
29991main ()
29992{
cristy71203402010-06-18 13:12:03 +000029993return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029994 ;
29995 return 0;
29996}
29997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029998if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029999 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030000else
cristy71203402010-06-18 13:12:03 +000030001 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030002fi
cristy8b350f62009-11-15 23:12:43 +000030003rm -f core conftest.err conftest.$ac_objext \
30004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030005LIBS=$ac_check_lib_save_LIBS
30006fi
cristy71203402010-06-18 13:12:03 +000030007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30008$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030009if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030010 passed=`expr $passed + 1`
30011else
30012 failed=`expr $failed + 1`
30013fi
30014
cristy8b350f62009-11-15 23:12:43 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030016$as_echo_n "checking if LCMS package is complete... " >&6; }
30017 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030018 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30020$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030021 have_lcms='no (failed tests)'
30022 else
30023 LCMS_LIBS='-llcms'
30024 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030025 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30026$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030027 have_lcms='yes'
30028 fi
cristy3ed852e2009-09-05 21:47:34 +000030029 else
cristy09b53e12011-10-14 12:47:22 +000030030 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30031$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030032 fi
30033fi
cristy71203402010-06-18 13:12:03 +000030034
cristy73bd4a52010-10-05 11:24:23 +000030035 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30036 LCMS_DELEGATE_TRUE=
30037 LCMS_DELEGATE_FALSE='#'
30038else
30039 LCMS_DELEGATE_TRUE='#'
30040 LCMS_DELEGATE_FALSE=
30041fi
30042
cristy71203402010-06-18 13:12:03 +000030043if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30044
30045$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30046
30047fi
30048
cristy3ed852e2009-09-05 21:47:34 +000030049
30050
30051
30052#
30053# Check for the LQR (Liquid Rescale) delegate library.
30054#
30055
30056# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030057if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 withval=$with_lqr; with_lqr=$withval
30059else
30060 with_lqr='yes'
30061fi
30062
30063
30064if test "$with_lqr" != 'yes'; then
30065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30066fi
30067
30068have_lqr='no'
30069LQR_CFLAGS=""
30070LQR_LIBS=""
30071LQR_PKG=""
30072if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30074$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030075
30076pkg_failed=no
30077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30078$as_echo_n "checking for LQR... " >&6; }
30079
30080if test -n "$LQR_CFLAGS"; then
30081 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30082 elif test -n "$PKG_CONFIG"; then
30083 if test -n "$PKG_CONFIG" && \
30084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30085 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30086 ac_status=$?
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; then
30089 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30090else
30091 pkg_failed=yes
30092fi
30093 else
30094 pkg_failed=untried
30095fi
30096if test -n "$LQR_LIBS"; then
30097 pkg_cv_LQR_LIBS="$LQR_LIBS"
30098 elif test -n "$PKG_CONFIG"; then
30099 if test -n "$PKG_CONFIG" && \
30100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30101 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30102 ac_status=$?
30103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30104 test $ac_status = 0; }; then
30105 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30106else
30107 pkg_failed=yes
30108fi
30109 else
30110 pkg_failed=untried
30111fi
30112
30113
30114
30115if test $pkg_failed = yes; then
30116
30117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30118 _pkg_short_errors_supported=yes
30119else
30120 _pkg_short_errors_supported=no
30121fi
30122 if test $_pkg_short_errors_supported = yes; then
30123 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30124 else
30125 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30126 fi
30127 # Put the nasty error message in config.log where it belongs
30128 echo "$LQR_PKG_ERRORS" >&5
30129
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30131$as_echo "no" >&6; }
30132 have_lqr=no
30133elif test $pkg_failed = untried; then
30134 have_lqr=no
30135else
30136 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30137 LQR_LIBS=$pkg_cv_LQR_LIBS
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30139$as_echo "yes" >&6; }
30140 have_lqr=yes
30141fi
cristy09b53e12011-10-14 12:47:22 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30143$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030144fi
30145
30146if test "$have_lqr" = 'yes'; then
30147
cristy8b350f62009-11-15 23:12:43 +000030148$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030149
30150 CFLAGS="$LQR_CFLAGS $CFLAGS"
30151fi
30152
cristy73bd4a52010-10-05 11:24:23 +000030153 if test "$have_lqr" = 'yes'; then
30154 LQR_DELEGATE_TRUE=
30155 LQR_DELEGATE_FALSE='#'
30156else
30157 LQR_DELEGATE_TRUE='#'
30158 LQR_DELEGATE_FALSE=
30159fi
30160
cristy3ed852e2009-09-05 21:47:34 +000030161
30162
30163
30164
cristy81beccd2011-10-03 18:17:24 +000030165# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030166
30167# Check whether --with-lzma was given.
30168if test "${with_lzma+set}" = set; then :
30169 withval=$with_lzma; with_lzma=$withval
30170else
30171 with_lzma='yes'
30172fi
30173
cristy81beccd2011-10-03 18:17:24 +000030174if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030175 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30176fi
30177
cristyb94e5002011-11-14 13:20:10 +000030178LZMA_PKG=""
30179if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30181$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030182
30183pkg_failed=no
30184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030185$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030186
30187if test -n "$LZMA_CFLAGS"; then
30188 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30189 elif test -n "$PKG_CONFIG"; then
30190 if test -n "$PKG_CONFIG" && \
30191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30192 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30193 ac_status=$?
30194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30195 test $ac_status = 0; }; then
30196 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30197else
30198 pkg_failed=yes
30199fi
30200 else
30201 pkg_failed=untried
30202fi
30203if test -n "$LZMA_LIBS"; then
30204 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30205 elif test -n "$PKG_CONFIG"; then
30206 if test -n "$PKG_CONFIG" && \
30207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30208 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30209 ac_status=$?
30210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30211 test $ac_status = 0; }; then
30212 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30213else
30214 pkg_failed=yes
30215fi
30216 else
30217 pkg_failed=untried
30218fi
30219
30220
30221
30222if test $pkg_failed = yes; then
30223
30224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30225 _pkg_short_errors_supported=yes
30226else
30227 _pkg_short_errors_supported=no
30228fi
30229 if test $_pkg_short_errors_supported = yes; then
30230 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30231 else
30232 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30233 fi
30234 # Put the nasty error message in config.log where it belongs
30235 echo "$LZMA_PKG_ERRORS" >&5
30236
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30238$as_echo "no" >&6; }
30239 have_lzma=no
30240elif test $pkg_failed = untried; then
30241 have_lzma=no
30242else
30243 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30244 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30246$as_echo "yes" >&6; }
30247 have_lzma=yes
30248fi
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030250$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030251fi
30252
cristyb94e5002011-11-14 13:20:10 +000030253if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030254
30255$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30256
cristyb94e5002011-11-14 13:20:10 +000030257 if test "$with_modules" = 'no'; then
30258 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030259 fi
cristyfbb0ef02010-12-19 02:32:11 +000030260fi
cristyb94e5002011-11-14 13:20:10 +000030261
cristyfbb0ef02010-12-19 02:32:11 +000030262 if test "$have_lzma" = 'yes'; then
30263 LZMA_DELEGATE_TRUE=
30264 LZMA_DELEGATE_FALSE='#'
30265else
30266 LZMA_DELEGATE_TRUE='#'
30267 LZMA_DELEGATE_FALSE=
30268fi
30269
30270
30271
30272
cristyb94e5002011-11-14 13:20:10 +000030273
cristy3ed852e2009-09-05 21:47:34 +000030274#
30275# Check for the OpenEXR delegate library.
30276#
30277
30278# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030279if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030280 withval=$with_openexr; with_openexr=$withval
30281else
30282 with_openexr='yes'
30283fi
30284
30285
30286if test "$with_openexr" != 'yes'; then
30287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30288fi
30289
30290have_openexr='no'
30291OPENEXR_CFLAGS=""
30292OPENEXR_LIBS=""
30293OPENEXR_PKG=""
30294if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030295 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30296$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030297
30298pkg_failed=no
30299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30300$as_echo_n "checking for OPENEXR... " >&6; }
30301
30302if test -n "$OPENEXR_CFLAGS"; then
30303 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30304 elif test -n "$PKG_CONFIG"; then
30305 if test -n "$PKG_CONFIG" && \
30306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30307 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30308 ac_status=$?
30309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30310 test $ac_status = 0; }; then
30311 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30312else
30313 pkg_failed=yes
30314fi
30315 else
30316 pkg_failed=untried
30317fi
30318if test -n "$OPENEXR_LIBS"; then
30319 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30320 elif test -n "$PKG_CONFIG"; then
30321 if test -n "$PKG_CONFIG" && \
30322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30323 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30324 ac_status=$?
30325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30326 test $ac_status = 0; }; then
30327 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30328else
30329 pkg_failed=yes
30330fi
30331 else
30332 pkg_failed=untried
30333fi
30334
30335
30336
30337if test $pkg_failed = yes; then
30338
30339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30340 _pkg_short_errors_supported=yes
30341else
30342 _pkg_short_errors_supported=no
30343fi
30344 if test $_pkg_short_errors_supported = yes; then
30345 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30346 else
30347 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30348 fi
30349 # Put the nasty error message in config.log where it belongs
30350 echo "$OPENEXR_PKG_ERRORS" >&5
30351
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30353$as_echo "no" >&6; }
30354 have_openexr=no
30355elif test $pkg_failed = untried; then
30356 have_openexr=no
30357else
30358 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30359 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361$as_echo "yes" >&6; }
30362 have_openexr=yes
30363fi
cristy09b53e12011-10-14 12:47:22 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30365$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030366fi
30367
30368if test "$have_openexr" = 'yes'; then
30369
cristy8b350f62009-11-15 23:12:43 +000030370$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030371
30372 if test "$with_modules" = 'no'; then
30373 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30374 fi
30375fi
30376
cristy73bd4a52010-10-05 11:24:23 +000030377 if test "$have_openexr" = 'yes'; then
30378 OPENEXR_DELEGATE_TRUE=
30379 OPENEXR_DELEGATE_FALSE='#'
30380else
30381 OPENEXR_DELEGATE_TRUE='#'
30382 OPENEXR_DELEGATE_FALSE=
30383fi
30384
cristy3ed852e2009-09-05 21:47:34 +000030385
30386
30387
30388
30389#
cristy41cbe8a2011-10-27 01:35:18 +000030390# Check for PANGO delegate library.
30391#
30392
30393# Check whether --with-pango was given.
30394if test "${with_pango+set}" = set; then :
30395 withval=$with_pango; with_pango=$withval
30396else
30397 with_pango=$have_x
30398fi
30399
30400
30401if test "$with_pango" != 'yes'; then
30402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30403fi
30404
30405have_pango='no'
30406have_pangoft2='no'
30407PANGO_CFLAGS=""
30408PANGO_LIBS=""
30409PANGO_PKG=""
30410if test "x$with_pango" = "xyes"; then
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30412$as_echo "-------------------------------------------------------------" >&6; }
30413
30414pkg_failed=no
30415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30416$as_echo_n "checking for PANGO... " >&6; }
30417
30418if test -n "$PANGO_CFLAGS"; then
30419 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30420 elif test -n "$PKG_CONFIG"; then
30421 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30423 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030424 ac_status=$?
30425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30426 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030427 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030428else
30429 pkg_failed=yes
30430fi
30431 else
30432 pkg_failed=untried
30433fi
30434if test -n "$PANGO_LIBS"; then
30435 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30436 elif test -n "$PKG_CONFIG"; then
30437 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30439 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030440 ac_status=$?
30441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30442 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030443 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030444else
30445 pkg_failed=yes
30446fi
30447 else
30448 pkg_failed=untried
30449fi
30450
30451
30452
30453if test $pkg_failed = yes; then
30454
30455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30456 _pkg_short_errors_supported=yes
30457else
30458 _pkg_short_errors_supported=no
30459fi
30460 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030461 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030462 else
cristy2542fc62011-12-06 17:50:25 +000030463 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030464 fi
30465 # Put the nasty error message in config.log where it belongs
30466 echo "$PANGO_PKG_ERRORS" >&5
30467
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30469$as_echo "no" >&6; }
30470 have_pangoft2=no
30471elif test $pkg_failed = untried; then
30472 have_pangoft2=no
30473else
30474 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30475 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30477$as_echo "yes" >&6; }
30478 have_pangoft2=yes
30479fi
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30481$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030482
30483pkg_failed=no
30484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30485$as_echo_n "checking for PANGO... " >&6; }
30486
30487if test -n "$PANGO_CFLAGS"; then
30488 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30489 elif test -n "$PKG_CONFIG"; then
30490 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30492 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030493 ac_status=$?
30494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30495 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030496 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030497else
30498 pkg_failed=yes
30499fi
30500 else
30501 pkg_failed=untried
30502fi
30503if test -n "$PANGO_LIBS"; then
30504 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30505 elif test -n "$PKG_CONFIG"; then
30506 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30508 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030509 ac_status=$?
30510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30511 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030512 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030513else
30514 pkg_failed=yes
30515fi
30516 else
30517 pkg_failed=untried
30518fi
30519
30520
30521
30522if test $pkg_failed = yes; then
30523
30524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30525 _pkg_short_errors_supported=yes
30526else
30527 _pkg_short_errors_supported=no
30528fi
30529 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030530 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030531 else
cristy2542fc62011-12-06 17:50:25 +000030532 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030533 fi
30534 # Put the nasty error message in config.log where it belongs
30535 echo "$PANGO_PKG_ERRORS" >&5
30536
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30538$as_echo "no" >&6; }
30539 have_pango=no
30540elif test $pkg_failed = untried; then
30541 have_pango=no
30542else
30543 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30544 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30546$as_echo "yes" >&6; }
30547 have_pango=yes
30548fi
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30550$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030551fi
30552
30553if test "$have_pango" = 'yes'; then
30554
30555$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30556
30557 if test "$with_modules" = 'no'; then
30558 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30559 fi
30560fi
30561
30562if test "$have_pangoft2" = 'yes'; then
30563
30564$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30565
30566 if test "$with_modules" = 'no'; then
30567 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30568 fi
30569fi
30570
30571 if test "$have_pango" = 'yes'; then
30572 PANGO_DELEGATE_TRUE=
30573 PANGO_DELEGATE_FALSE='#'
30574else
30575 PANGO_DELEGATE_TRUE='#'
30576 PANGO_DELEGATE_FALSE=
30577fi
30578
30579 if test "$have_pangoft2" = 'yes'; then
30580 PANGOFT2_DELEGATE_TRUE=
30581 PANGOFT2_DELEGATE_FALSE='#'
30582else
30583 PANGOFT2_DELEGATE_TRUE='#'
30584 PANGOFT2_DELEGATE_FALSE=
30585fi
30586
30587
30588
30589
30590
30591#
cristy3ed852e2009-09-05 21:47:34 +000030592# Check for PNG delegate library.
30593#
30594
30595# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030596if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030597 withval=$with_png; with_png=$withval
30598else
30599 with_png='yes'
30600fi
30601
30602
30603if test "$with_png" != 'yes'; then
30604 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30605fi
30606
cristy81beccd2011-10-03 18:17:24 +000030607have_png='no'
30608PNG_LIBS=''
30609
30610if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030611 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30612$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30614$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030615 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30616$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030617 failed=0
30618 passed=0
30619 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30620if test "x$ac_cv_header_png_h" = xyes; then :
30621 passed=`expr $passed + 1`
30622else
30623 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030624fi
30625
cristy81beccd2011-10-03 18:17:24 +000030626
30627
30628 if test $passed -gt 0; then
30629 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030630 if test "$have_png" = 'no' ; then
30631 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030632 pnglib='png'
30633 else
30634 pnglib="png1${var}"
30635 fi
30636
30637# Test for compatible LIBPNG library
30638 failed=0
30639 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030640 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030641 if test "${pnglib}" != 'png' ; then
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30643$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30645/* end confdefs.h. */
30646#include <stdio.h>
30647#include <stdlib.h>
30648#include <png.h>
30649
30650int
30651main ()
30652{
30653
30654#if PNG_LIBPNG_VER_MINOR != ${var}
30655#error LIBPNG library must be version 1${var}!
30656Kaboom, Kaboom
30657#endif
30658return 0;
30659
30660 ;
30661 return 0;
30662}
30663_ACEOF
30664if ac_fn_c_try_compile "$LINENO"; then :
30665 ac_cv_libpng_ok='yes'
30666else
30667 ac_cv_libpng_ok='no'
30668fi
30669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30670 if test "$ac_cv_libpng_ok" = 'yes' ; then
30671 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30673$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030674 else
30675 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30677$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030678 fi
30679 else
30680 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30682$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030683 fi
30684 fi
30685
30686 if test $passed -gt 0 -a $failed -le 0; then
30687 if test "1${var}" = '15' ; then
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30689$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30690if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30691 $as_echo_n "(cached) " >&6
30692else
30693 ac_check_lib_save_LIBS=$LIBS
30694LIBS="-lpng15 $LIBS"
30695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696/* end confdefs.h. */
30697
30698/* Override any GCC internal prototype to avoid an error.
30699 Use char because int might match the return type of a GCC
30700 builtin and then its argument prototype would still apply. */
30701#ifdef __cplusplus
30702extern "C"
30703#endif
30704char png_get_io_ptr ();
30705int
30706main ()
30707{
30708return png_get_io_ptr ();
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713if ac_fn_c_try_link "$LINENO"; then :
30714 ac_cv_lib_png15_png_get_io_ptr=yes
30715else
30716 ac_cv_lib_png15_png_get_io_ptr=no
30717fi
30718rm -f core conftest.err conftest.$ac_objext \
30719 conftest$ac_exeext conftest.$ac_ext
30720LIBS=$ac_check_lib_save_LIBS
30721fi
30722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30723$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30724if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30725 passed=`expr $passed + 1`
30726else
30727 failed=`expr $failed + 1`
30728fi
30729
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30731$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30732if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30733 $as_echo_n "(cached) " >&6
30734else
30735 ac_check_lib_save_LIBS=$LIBS
30736LIBS="-lpng15 $LIBS"
30737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30738/* end confdefs.h. */
30739
30740/* Override any GCC internal prototype to avoid an error.
30741 Use char because int might match the return type of a GCC
30742 builtin and then its argument prototype would still apply. */
30743#ifdef __cplusplus
30744extern "C"
30745#endif
30746char png_longjmp ();
30747int
30748main ()
30749{
30750return png_longjmp ();
30751 ;
30752 return 0;
30753}
30754_ACEOF
30755if ac_fn_c_try_link "$LINENO"; then :
30756 ac_cv_lib_png15_png_longjmp=yes
30757else
30758 ac_cv_lib_png15_png_longjmp=no
30759fi
30760rm -f core conftest.err conftest.$ac_objext \
30761 conftest$ac_exeext conftest.$ac_ext
30762LIBS=$ac_check_lib_save_LIBS
30763fi
30764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30765$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30766if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30767 passed=`expr $passed + 1`
30768else
30769 failed=`expr $failed + 1`
30770fi
30771
30772 fi
30773 if test "1${var}" = '14' ; then
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30775$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30776if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30777 $as_echo_n "(cached) " >&6
30778else
30779 ac_check_lib_save_LIBS=$LIBS
30780LIBS="-lpng14 $LIBS"
30781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30782/* end confdefs.h. */
30783
30784/* Override any GCC internal prototype to avoid an error.
30785 Use char because int might match the return type of a GCC
30786 builtin and then its argument prototype would still apply. */
30787#ifdef __cplusplus
30788extern "C"
30789#endif
30790char png_get_io_ptr ();
30791int
30792main ()
30793{
30794return png_get_io_ptr ();
30795 ;
30796 return 0;
30797}
30798_ACEOF
30799if ac_fn_c_try_link "$LINENO"; then :
30800 ac_cv_lib_png14_png_get_io_ptr=yes
30801else
30802 ac_cv_lib_png14_png_get_io_ptr=no
30803fi
30804rm -f core conftest.err conftest.$ac_objext \
30805 conftest$ac_exeext conftest.$ac_ext
30806LIBS=$ac_check_lib_save_LIBS
30807fi
30808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30809$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30810if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30811 passed=`expr $passed + 1`
30812else
30813 failed=`expr $failed + 1`
30814fi
30815
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30817$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30818if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30819 $as_echo_n "(cached) " >&6
30820else
30821 ac_check_lib_save_LIBS=$LIBS
30822LIBS="-lpng14 $LIBS"
30823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824/* end confdefs.h. */
30825
30826/* Override any GCC internal prototype to avoid an error.
30827 Use char because int might match the return type of a GCC
30828 builtin and then its argument prototype would still apply. */
30829#ifdef __cplusplus
30830extern "C"
30831#endif
30832char png_get_io_state ();
30833int
30834main ()
30835{
30836return png_get_io_state ();
30837 ;
30838 return 0;
30839}
30840_ACEOF
30841if ac_fn_c_try_link "$LINENO"; then :
30842 ac_cv_lib_png14_png_get_io_state=yes
30843else
30844 ac_cv_lib_png14_png_get_io_state=no
30845fi
30846rm -f core conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
30848LIBS=$ac_check_lib_save_LIBS
30849fi
30850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30851$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30852if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30853 passed=`expr $passed + 1`
30854else
30855 failed=`expr $failed + 1`
30856fi
30857
30858 fi
30859 if test "1${var}" = '12' ; then
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30861$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30862if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30863 $as_echo_n "(cached) " >&6
30864else
30865 ac_check_lib_save_LIBS=$LIBS
30866LIBS="-lpng12 $LIBS"
30867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30868/* end confdefs.h. */
30869
30870/* Override any GCC internal prototype to avoid an error.
30871 Use char because int might match the return type of a GCC
30872 builtin and then its argument prototype would still apply. */
30873#ifdef __cplusplus
30874extern "C"
30875#endif
30876char png_get_io_ptr ();
30877int
30878main ()
30879{
30880return png_get_io_ptr ();
30881 ;
30882 return 0;
30883}
30884_ACEOF
30885if ac_fn_c_try_link "$LINENO"; then :
30886 ac_cv_lib_png12_png_get_io_ptr=yes
30887else
30888 ac_cv_lib_png12_png_get_io_ptr=no
30889fi
30890rm -f core conftest.err conftest.$ac_objext \
30891 conftest$ac_exeext conftest.$ac_ext
30892LIBS=$ac_check_lib_save_LIBS
30893fi
30894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30895$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30896if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30897 passed=`expr $passed + 1`
30898else
30899 failed=`expr $failed + 1`
30900fi
30901
30902 fi
30903 if test "1${var}" = '1' ; then
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30905$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30906if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30907 $as_echo_n "(cached) " >&6
30908else
30909 ac_check_lib_save_LIBS=$LIBS
30910LIBS="-lpng $LIBS"
30911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30912/* end confdefs.h. */
30913
30914/* Override any GCC internal prototype to avoid an error.
30915 Use char because int might match the return type of a GCC
30916 builtin and then its argument prototype would still apply. */
30917#ifdef __cplusplus
30918extern "C"
30919#endif
30920char png_get_io_ptr ();
30921int
30922main ()
30923{
30924return png_get_io_ptr ();
30925 ;
30926 return 0;
30927}
30928_ACEOF
30929if ac_fn_c_try_link "$LINENO"; then :
30930 ac_cv_lib_png_png_get_io_ptr=yes
30931else
30932 ac_cv_lib_png_png_get_io_ptr=no
30933fi
30934rm -f core conftest.err conftest.$ac_objext \
30935 conftest$ac_exeext conftest.$ac_ext
30936LIBS=$ac_check_lib_save_LIBS
30937fi
30938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30939$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30940if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30941 passed=`expr $passed + 1`
30942else
30943 failed=`expr $failed + 1`
30944fi
30945
30946 fi
30947 if test $passed -gt 0 -a $failed -le 0 ; then
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30949$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30950 if test $passed -gt 0 ; then
30951 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30953$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030954 have_png='no (failed tests)'
30955 else
30956 PNG_LIBS="-l${pnglib}"
30957 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030958
cristy8b350f62009-11-15 23:12:43 +000030959$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030960
cristy09b53e12011-10-14 12:47:22 +000030961 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30962$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030963 have_png='yes'
30964 fi
30965 fi
30966 fi
30967 fi
30968 fi
30969 done
30970 fi
cristy3ed852e2009-09-05 21:47:34 +000030971fi
cristy64877302011-08-23 19:10:31 +000030972
cristy73bd4a52010-10-05 11:24:23 +000030973 if test "$have_png" = 'yes'; then
30974 PNG_DELEGATE_TRUE=
30975 PNG_DELEGATE_FALSE='#'
30976else
30977 PNG_DELEGATE_TRUE='#'
30978 PNG_DELEGATE_FALSE=
30979fi
30980
cristy3ed852e2009-09-05 21:47:34 +000030981
cristy50d3f5c2011-09-10 20:09:06 +000030982
cristy3ed852e2009-09-05 21:47:34 +000030983
30984
30985#
30986# Check for RSVG delegate library.
30987#
30988
30989# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030990if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030991 withval=$with_rsvg; with_rsvg=$withval
30992else
30993 with_rsvg=$have_x
30994fi
30995
30996
30997if test "$with_rsvg" != 'yes'; then
30998 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30999fi
31000
31001have_rsvg='no'
31002have_cairo='no'
31003RSVG_CFLAGS=""
31004RSVG_LIBS=""
31005RSVG_PKG=""
31006if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031007 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31008$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031009
31010pkg_failed=no
31011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31012$as_echo_n "checking for RSVG... " >&6; }
31013
31014if test -n "$RSVG_CFLAGS"; then
31015 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31016 elif test -n "$PKG_CONFIG"; then
31017 if test -n "$PKG_CONFIG" && \
31018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31019 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31020 ac_status=$?
31021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31022 test $ac_status = 0; }; then
31023 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31024else
31025 pkg_failed=yes
31026fi
31027 else
31028 pkg_failed=untried
31029fi
31030if test -n "$RSVG_LIBS"; then
31031 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31032 elif test -n "$PKG_CONFIG"; then
31033 if test -n "$PKG_CONFIG" && \
31034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31035 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31036 ac_status=$?
31037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31038 test $ac_status = 0; }; then
31039 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31040else
31041 pkg_failed=yes
31042fi
31043 else
31044 pkg_failed=untried
31045fi
31046
31047
31048
31049if test $pkg_failed = yes; then
31050
31051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31052 _pkg_short_errors_supported=yes
31053else
31054 _pkg_short_errors_supported=no
31055fi
31056 if test $_pkg_short_errors_supported = yes; then
31057 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31058 else
31059 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31060 fi
31061 # Put the nasty error message in config.log where it belongs
31062 echo "$RSVG_PKG_ERRORS" >&5
31063
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31065$as_echo "no" >&6; }
31066 have_rsvg=no
31067elif test $pkg_failed = untried; then
31068 have_rsvg=no
31069else
31070 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31071 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31073$as_echo "yes" >&6; }
31074 have_rsvg=yes
31075fi
cristy09b53e12011-10-14 12:47:22 +000031076 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31077$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031078
31079pkg_failed=no
31080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31081$as_echo_n "checking for CAIRO_SVG... " >&6; }
31082
31083if test -n "$CAIRO_SVG_CFLAGS"; then
31084 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31085 elif test -n "$PKG_CONFIG"; then
31086 if test -n "$PKG_CONFIG" && \
31087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31088 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31089 ac_status=$?
31090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31091 test $ac_status = 0; }; then
31092 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31093else
31094 pkg_failed=yes
31095fi
31096 else
31097 pkg_failed=untried
31098fi
31099if test -n "$CAIRO_SVG_LIBS"; then
31100 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31101 elif test -n "$PKG_CONFIG"; then
31102 if test -n "$PKG_CONFIG" && \
31103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31104 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31105 ac_status=$?
31106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31107 test $ac_status = 0; }; then
31108 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31109else
31110 pkg_failed=yes
31111fi
31112 else
31113 pkg_failed=untried
31114fi
31115
31116
31117
31118if test $pkg_failed = yes; then
31119
31120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31121 _pkg_short_errors_supported=yes
31122else
31123 _pkg_short_errors_supported=no
31124fi
31125 if test $_pkg_short_errors_supported = yes; then
31126 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31127 else
31128 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31129 fi
31130 # Put the nasty error message in config.log where it belongs
31131 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31132
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134$as_echo "no" >&6; }
31135 have_cairo=no
31136elif test $pkg_failed = untried; then
31137 have_cairo=no
31138else
31139 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31140 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31142$as_echo "yes" >&6; }
31143 have_cairo=yes
31144fi
cristy09b53e12011-10-14 12:47:22 +000031145 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31146$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031147fi
31148
31149if test "$have_rsvg" = 'yes'; then
31150
cristy8b350f62009-11-15 23:12:43 +000031151$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031152
31153 if test "$with_modules" = 'no'; then
31154 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31155 fi
31156fi
31157
31158if test "$have_cairo" = 'yes'; then
31159
cristy8b350f62009-11-15 23:12:43 +000031160$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031161
31162 if test "$with_modules" = 'no'; then
31163 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31164 fi
31165fi
31166
cristy73bd4a52010-10-05 11:24:23 +000031167 if test "$have_rsvg" = 'yes'; then
31168 RSVG_DELEGATE_TRUE=
31169 RSVG_DELEGATE_FALSE='#'
31170else
31171 RSVG_DELEGATE_TRUE='#'
31172 RSVG_DELEGATE_FALSE=
31173fi
31174
31175 if test "$have_cairo" = 'yes'; then
31176 CAIRO_DELEGATE_TRUE=
31177 CAIRO_DELEGATE_FALSE='#'
31178else
31179 CAIRO_DELEGATE_TRUE='#'
31180 CAIRO_DELEGATE_FALSE=
31181fi
31182
cristy3ed852e2009-09-05 21:47:34 +000031183
31184
31185
31186
31187#
31188# Check for TIFF delegate library.
31189#
31190
31191# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031192if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031193 withval=$with_tiff; with_tiff=$withval
31194else
31195 with_tiff='yes'
31196fi
31197
31198
31199if test "$with_tiff" != 'yes'; then
31200 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31201fi
31202
31203have_tiff='no'
31204TIFF_LIBS=''
31205if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031206 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31207$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031209$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31211$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031212 failed=0
31213 passed=0
cristy8b350f62009-11-15 23:12:43 +000031214 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031215if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031216 passed=`expr $passed + 1`
31217else
31218 failed=`expr $failed + 1`
31219fi
31220
31221
cristy8b350f62009-11-15 23:12:43 +000031222 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031223if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031224 passed=`expr $passed + 1`
31225else
31226 failed=`expr $failed + 1`
31227fi
31228
31229
cristy8b350f62009-11-15 23:12:43 +000031230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031231$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031232if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031233 $as_echo_n "(cached) " >&6
31234else
31235 ac_check_lib_save_LIBS=$LIBS
31236LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031238/* end confdefs.h. */
31239
31240/* Override any GCC internal prototype to avoid an error.
31241 Use char because int might match the return type of a GCC
31242 builtin and then its argument prototype would still apply. */
31243#ifdef __cplusplus
31244extern "C"
31245#endif
31246char TIFFOpen ();
31247int
31248main ()
31249{
31250return TIFFOpen ();
31251 ;
31252 return 0;
31253}
31254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031256 ac_cv_lib_tiff_TIFFOpen=yes
31257else
cristy8b350f62009-11-15 23:12:43 +000031258 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031259fi
cristy8b350f62009-11-15 23:12:43 +000031260rm -f core conftest.err conftest.$ac_objext \
31261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031262LIBS=$ac_check_lib_save_LIBS
31263fi
cristy8b350f62009-11-15 23:12:43 +000031264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031265$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031266if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031267 passed=`expr $passed + 1`
31268else
31269 failed=`expr $failed + 1`
31270fi
31271
cristy8b350f62009-11-15 23:12:43 +000031272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031273$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031274if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031275 $as_echo_n "(cached) " >&6
31276else
31277 ac_check_lib_save_LIBS=$LIBS
31278LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031280/* end confdefs.h. */
31281
31282/* Override any GCC internal prototype to avoid an error.
31283 Use char because int might match the return type of a GCC
31284 builtin and then its argument prototype would still apply. */
31285#ifdef __cplusplus
31286extern "C"
31287#endif
31288char TIFFClientOpen ();
31289int
31290main ()
31291{
31292return TIFFClientOpen ();
31293 ;
31294 return 0;
31295}
31296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031298 ac_cv_lib_tiff_TIFFClientOpen=yes
31299else
cristy8b350f62009-11-15 23:12:43 +000031300 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031301fi
cristy8b350f62009-11-15 23:12:43 +000031302rm -f core conftest.err conftest.$ac_objext \
31303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031304LIBS=$ac_check_lib_save_LIBS
31305fi
cristy8b350f62009-11-15 23:12:43 +000031306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031307$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031308if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031309 passed=`expr $passed + 1`
31310else
31311 failed=`expr $failed + 1`
31312fi
31313
cristy8b350f62009-11-15 23:12:43 +000031314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031315$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031316if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031317 $as_echo_n "(cached) " >&6
31318else
31319 ac_check_lib_save_LIBS=$LIBS
31320LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031322/* end confdefs.h. */
31323
31324/* Override any GCC internal prototype to avoid an error.
31325 Use char because int might match the return type of a GCC
31326 builtin and then its argument prototype would still apply. */
31327#ifdef __cplusplus
31328extern "C"
31329#endif
31330char TIFFIsByteSwapped ();
31331int
31332main ()
31333{
31334return TIFFIsByteSwapped ();
31335 ;
31336 return 0;
31337}
31338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031340 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31341else
cristy8b350f62009-11-15 23:12:43 +000031342 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031343fi
cristy8b350f62009-11-15 23:12:43 +000031344rm -f core conftest.err conftest.$ac_objext \
31345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031346LIBS=$ac_check_lib_save_LIBS
31347fi
cristy8b350f62009-11-15 23:12:43 +000031348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031349$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031350if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031351 passed=`expr $passed + 1`
31352else
31353 failed=`expr $failed + 1`
31354fi
31355
cristy8b350f62009-11-15 23:12:43 +000031356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031357$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031358if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031359 $as_echo_n "(cached) " >&6
31360else
31361 ac_check_lib_save_LIBS=$LIBS
31362LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031364/* end confdefs.h. */
31365
31366/* Override any GCC internal prototype to avoid an error.
31367 Use char because int might match the return type of a GCC
31368 builtin and then its argument prototype would still apply. */
31369#ifdef __cplusplus
31370extern "C"
31371#endif
31372char TIFFReadRGBATile ();
31373int
31374main ()
31375{
31376return TIFFReadRGBATile ();
31377 ;
31378 return 0;
31379}
31380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031382 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31383else
cristy8b350f62009-11-15 23:12:43 +000031384 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031385fi
cristy8b350f62009-11-15 23:12:43 +000031386rm -f core conftest.err conftest.$ac_objext \
31387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031388LIBS=$ac_check_lib_save_LIBS
31389fi
cristy8b350f62009-11-15 23:12:43 +000031390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031391$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031392if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031393 passed=`expr $passed + 1`
31394else
31395 failed=`expr $failed + 1`
31396fi
31397
cristy8b350f62009-11-15 23:12:43 +000031398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031399$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031400if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031401 $as_echo_n "(cached) " >&6
31402else
31403 ac_check_lib_save_LIBS=$LIBS
31404LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031406/* end confdefs.h. */
31407
31408/* Override any GCC internal prototype to avoid an error.
31409 Use char because int might match the return type of a GCC
31410 builtin and then its argument prototype would still apply. */
31411#ifdef __cplusplus
31412extern "C"
31413#endif
31414char TIFFReadRGBAStrip ();
31415int
31416main ()
31417{
31418return TIFFReadRGBAStrip ();
31419 ;
31420 return 0;
31421}
31422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031424 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31425else
cristy8b350f62009-11-15 23:12:43 +000031426 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031427fi
cristy8b350f62009-11-15 23:12:43 +000031428rm -f core conftest.err conftest.$ac_objext \
31429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031430LIBS=$ac_check_lib_save_LIBS
31431fi
cristy8b350f62009-11-15 23:12:43 +000031432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031433$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031434if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031435 passed=`expr $passed + 1`
31436else
31437 failed=`expr $failed + 1`
31438fi
31439
cristy8b350f62009-11-15 23:12:43 +000031440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031441$as_echo_n "checking if TIFF package is complete... " >&6; }
31442 if test $passed -gt 0; then
31443 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031444 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31445$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031446 have_tiff='no (failed tests)'
31447 else
31448 TIFF_LIBS='-ltiff'
31449 LIBS="$TIFF_LIBS $LIBS"
31450
cristy8b350f62009-11-15 23:12:43 +000031451$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031452
cristy09b53e12011-10-14 12:47:22 +000031453 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31454$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031455 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031456 for ac_header in tiffconf.h
31457do :
31458 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031459if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031460 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031461#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031462_ACEOF
31463
31464fi
31465
31466done
31467
cristy8b350f62009-11-15 23:12:43 +000031468 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031469 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31470 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31471 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031472do :
31473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031475if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031476 cat >>confdefs.h <<_ACEOF
31477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31478_ACEOF
31479
31480fi
31481done
31482
31483 fi
31484 else
cristy09b53e12011-10-14 12:47:22 +000031485 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31486$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031487 fi
31488fi
cristy73bd4a52010-10-05 11:24:23 +000031489 if test "$have_tiff" = 'yes'; then
31490 TIFF_DELEGATE_TRUE=
31491 TIFF_DELEGATE_FALSE='#'
31492else
31493 TIFF_DELEGATE_TRUE='#'
31494 TIFF_DELEGATE_FALSE=
31495fi
31496
cristy3ed852e2009-09-05 21:47:34 +000031497
31498
31499
31500#
cristyb1860752011-03-14 00:27:46 +000031501# Check for WEBP delegate library.
31502#
31503
31504# Check whether --with-webp was given.
31505if test "${with_webp+set}" = set; then :
31506 withval=$with_webp; with_webp=$withval
31507else
31508 with_webp='yes'
31509fi
31510
31511
31512if test "$with_webp" != 'yes'; then
31513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31514fi
31515
31516have_webp='no'
31517WEBP_LIBS=''
31518if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31520$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31522$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31524$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031525 failed=0
31526 passed=0
31527 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31528if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31529 passed=`expr $passed + 1`
31530else
31531 failed=`expr $failed + 1`
31532fi
31533
31534
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31536$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31537if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31538 $as_echo_n "(cached) " >&6
31539else
31540 ac_check_lib_save_LIBS=$LIBS
31541LIBS="-lwebp $LIBS"
31542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31543/* end confdefs.h. */
31544
31545/* Override any GCC internal prototype to avoid an error.
31546 Use char because int might match the return type of a GCC
31547 builtin and then its argument prototype would still apply. */
31548#ifdef __cplusplus
31549extern "C"
31550#endif
31551char WebPDecodeRGB ();
31552int
31553main ()
31554{
31555return WebPDecodeRGB ();
31556 ;
31557 return 0;
31558}
31559_ACEOF
31560if ac_fn_c_try_link "$LINENO"; then :
31561 ac_cv_lib_webp_WebPDecodeRGB=yes
31562else
31563 ac_cv_lib_webp_WebPDecodeRGB=no
31564fi
31565rm -f core conftest.err conftest.$ac_objext \
31566 conftest$ac_exeext conftest.$ac_ext
31567LIBS=$ac_check_lib_save_LIBS
31568fi
31569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31570$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31571if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31572 passed=`expr $passed + 1`
31573else
31574 failed=`expr $failed + 1`
31575fi
31576
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31578$as_echo_n "checking if WEBP package is complete... " >&6; }
31579 if test $passed -gt 0; then
31580 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031581 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31582$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031583 have_webp='no (failed tests)'
31584 else
31585 WEBP_LIBS='-lwebp'
31586 LIBS="$WEBP_LIBS $LIBS"
31587
31588$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31589
cristy09b53e12011-10-14 12:47:22 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31591$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031592 have_webp='yes'
31593 fi
31594 else
cristy09b53e12011-10-14 12:47:22 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31596$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031597 fi
31598fi
31599 if test "$have_webp" = 'yes'; then
31600 WEBP_DELEGATE_TRUE=
31601 WEBP_DELEGATE_FALSE='#'
31602else
31603 WEBP_DELEGATE_TRUE='#'
31604 WEBP_DELEGATE_FALSE=
31605fi
31606
31607
31608
31609
31610#
cristy3ed852e2009-09-05 21:47:34 +000031611# Set Windows font directory.
31612#
31613
31614# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031615if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031616 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31617else
31618 with_windows_font_dir=''
31619fi
31620
31621if test "$with_windows_font_dir" != '' ; then
31622 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31623fi
31624
31625
31626#
31627# Check for WMF delegate library.
31628#
31629
31630# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031631if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031632 withval=$with_wmf; with_wmf=$withval
31633else
cristy8d63d1d2010-01-06 20:38:37 +000031634 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031635fi
31636
31637
31638if test "$with_wmf" != 'yes'; then
31639 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31640fi
31641
31642have_wmf='no'
31643WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031644WMF_LIBS_DEPS=''
31645OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031646if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31648$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031650$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31652$as_echo "" >&6; }
31653 have_libwmf='no'
31654 have_libwmflite='no'
31655 have_libwmf_ipa_h='no'
31656
31657 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31658"
31659if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31660 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031661fi
31662
31663
cristy03f7cf92011-12-15 01:40:41 +000031664 if test "$have_libwmf_ipa_h" = 'yes'; then
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31666$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31667if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031668 $as_echo_n "(cached) " >&6
31669else
31670 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031671LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031673/* end confdefs.h. */
31674
31675/* Override any GCC internal prototype to avoid an error.
31676 Use char because int might match the return type of a GCC
31677 builtin and then its argument prototype would still apply. */
31678#ifdef __cplusplus
31679extern "C"
31680#endif
cristy03f7cf92011-12-15 01:40:41 +000031681char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031682int
31683main ()
31684{
cristy03f7cf92011-12-15 01:40:41 +000031685return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031686 ;
31687 return 0;
31688}
31689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031690if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031691 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031692else
cristy03f7cf92011-12-15 01:40:41 +000031693 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031694fi
cristy8b350f62009-11-15 23:12:43 +000031695rm -f core conftest.err conftest.$ac_objext \
31696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031697LIBS=$ac_check_lib_save_LIBS
31698fi
cristy03f7cf92011-12-15 01:40:41 +000031699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31700$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31701if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31702 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031703fi
31704
cristy03f7cf92011-12-15 01:40:41 +000031705 if test "$have_libwmflite" = 'yes'; then
31706
31707$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31708
31709 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031710 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031711 have_wmf='yes'
31712 else
31713 WMF_LIBS_DEPS=''
31714 WMF_CONFIG_LIBS=`libwmf-config --libs`
31715 for lib in xml2 expat freetype jpeg png z; do
31716 testlib="-l${lib}"
31717 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31718 done
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31720$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31721if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31722 $as_echo_n "(cached) " >&6
31723else
31724 ac_check_lib_save_LIBS=$LIBS
31725LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31727/* end confdefs.h. */
31728
31729/* Override any GCC internal prototype to avoid an error.
31730 Use char because int might match the return type of a GCC
31731 builtin and then its argument prototype would still apply. */
31732#ifdef __cplusplus
31733extern "C"
31734#endif
31735char wmf_api_create ();
31736int
31737main ()
31738{
31739return wmf_api_create ();
31740 ;
31741 return 0;
31742}
31743_ACEOF
31744if ac_fn_c_try_link "$LINENO"; then :
31745 ac_cv_lib_wmf_wmf_api_create=yes
31746else
31747 ac_cv_lib_wmf_wmf_api_create=no
31748fi
31749rm -f core conftest.err conftest.$ac_objext \
31750 conftest$ac_exeext conftest.$ac_ext
31751LIBS=$ac_check_lib_save_LIBS
31752fi
31753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31754$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31755if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31756 have_libwmf='yes'
31757fi
31758
31759 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031760
cristy8b350f62009-11-15 23:12:43 +000031761$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031762
cristy03f7cf92011-12-15 01:40:41 +000031763 WMF_LIBS='-lwmf'
31764 LIBS="$WMF_LIBS $LIBS"
31765 have_wmf='yes'
31766 else
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31768$as_echo "no -- some components failed test" >&6; }
31769 have_wmf='no (failed tests)'
31770 have_wmflite='no (failed tests)'
31771 LIBS="$OLIBS"
31772 WMF_LIBS=''
31773 fi
glennrp33e524b2011-08-24 17:41:57 +000031774 fi
cristy03f7cf92011-12-15 01:40:41 +000031775 fi
31776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31777$as_echo_n "checking if WMF package is complete... " >&6; }
31778 if test "$have_wmf" = 'yes'; then
31779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31780$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031781 else
cristy03f7cf92011-12-15 01:40:41 +000031782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31783$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031784 fi
cristy3ed852e2009-09-05 21:47:34 +000031785fi
cristy73bd4a52010-10-05 11:24:23 +000031786 if test "$have_wmf" = 'yes'; then
31787 WMF_DELEGATE_TRUE=
31788 WMF_DELEGATE_FALSE='#'
31789else
31790 WMF_DELEGATE_TRUE='#'
31791 WMF_DELEGATE_FALSE=
31792fi
31793
cristy3ed852e2009-09-05 21:47:34 +000031794
31795
31796
cristy81beccd2011-10-03 18:17:24 +000031797
31798
cristy3ed852e2009-09-05 21:47:34 +000031799#
31800# Check for XML delegate library.
31801#
31802
31803# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031804if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031805 withval=$with_xml; with_xml=$withval
31806else
cristy81beccd2011-10-03 18:17:24 +000031807 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031808fi
31809
31810
cristy81beccd2011-10-03 18:17:24 +000031811if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31813fi
31814
cristy81beccd2011-10-03 18:17:24 +000031815have_xml='no'
31816XML_LIBS=''
31817if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031818 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31819$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31821$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031822 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31823$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031824 PERSIST_LDFLAGS=$LDFLAGS
31825 PERSIST_CPPFLAGS=$CPPFLAGS
31826 xml2_config=''
31827 # Extract the first word of "xml2-config", so it can be a program name with args.
31828set dummy xml2-config; ac_word=$2
31829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31830$as_echo_n "checking for $ac_word... " >&6; }
31831if ${ac_cv_path_xml2_config+:} false; then :
31832 $as_echo_n "(cached) " >&6
31833else
31834 case $xml2_config in
31835 [\\/]* | ?:[\\/]*)
31836 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31837 ;;
31838 *)
31839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31840for as_dir in $PATH
31841do
31842 IFS=$as_save_IFS
31843 test -z "$as_dir" && as_dir=.
31844 for ac_exec_ext in '' $ac_executable_extensions; do
31845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31846 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31848 break 2
31849 fi
31850done
31851 done
31852IFS=$as_save_IFS
31853
31854 ;;
31855esac
31856fi
31857xml2_config=$ac_cv_path_xml2_config
31858if test -n "$xml2_config"; then
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31860$as_echo "$xml2_config" >&6; }
31861else
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31863$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031864fi
31865
cristy81beccd2011-10-03 18:17:24 +000031866 if test -n "$xml2_config"; then
31867 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31868 # the shared library installed under /usr/lib, whereas the package
31869 # installs itself under $prefix/libxml and $prefix/lib.
31870 xml2_prefix=`xml2-config --prefix`
31871 if test -d "${xml2_prefix}/include/libxml2"; then
31872 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31873 fi
31874 if test "${xml2_prefix}" != '/usr'; then
31875 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31876 fi
31877 fi
31878 failed=0
31879 passed=0
31880 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31881if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31882 passed=`expr $passed + 1`
31883else
31884 failed=`expr $failed + 1`
31885fi
31886
31887
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31889$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31890if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31891 $as_echo_n "(cached) " >&6
31892else
31893 ac_check_lib_save_LIBS=$LIBS
31894LIBS="-lxml2 $LIBS"
31895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31896/* end confdefs.h. */
31897
31898/* Override any GCC internal prototype to avoid an error.
31899 Use char because int might match the return type of a GCC
31900 builtin and then its argument prototype would still apply. */
31901#ifdef __cplusplus
31902extern "C"
31903#endif
31904char xmlSAXVersion ();
31905int
31906main ()
31907{
31908return xmlSAXVersion ();
31909 ;
31910 return 0;
31911}
31912_ACEOF
31913if ac_fn_c_try_link "$LINENO"; then :
31914 ac_cv_lib_xml2_xmlSAXVersion=yes
31915else
31916 ac_cv_lib_xml2_xmlSAXVersion=no
31917fi
31918rm -f core conftest.err conftest.$ac_objext \
31919 conftest$ac_exeext conftest.$ac_ext
31920LIBS=$ac_check_lib_save_LIBS
31921fi
31922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31923$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31924if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31925 passed=`expr $passed + 1`
31926else
31927 failed=`expr $failed + 1`
31928fi
31929
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31931$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31932if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31933 $as_echo_n "(cached) " >&6
31934else
31935 ac_check_lib_save_LIBS=$LIBS
31936LIBS="-lxml2 $LIBS"
31937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31938/* end confdefs.h. */
31939
31940/* Override any GCC internal prototype to avoid an error.
31941 Use char because int might match the return type of a GCC
31942 builtin and then its argument prototype would still apply. */
31943#ifdef __cplusplus
31944extern "C"
31945#endif
31946char xmlParseChunk ();
31947int
31948main ()
31949{
31950return xmlParseChunk ();
31951 ;
31952 return 0;
31953}
31954_ACEOF
31955if ac_fn_c_try_link "$LINENO"; then :
31956 ac_cv_lib_xml2_xmlParseChunk=yes
31957else
31958 ac_cv_lib_xml2_xmlParseChunk=no
31959fi
31960rm -f core conftest.err conftest.$ac_objext \
31961 conftest$ac_exeext conftest.$ac_ext
31962LIBS=$ac_check_lib_save_LIBS
31963fi
31964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31965$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31966if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31967 passed=`expr $passed + 1`
31968else
31969 failed=`expr $failed + 1`
31970fi
31971
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31973$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31974if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31975 $as_echo_n "(cached) " >&6
31976else
31977 ac_check_lib_save_LIBS=$LIBS
31978LIBS="-lxml2 $LIBS"
31979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31980/* end confdefs.h. */
31981
31982/* Override any GCC internal prototype to avoid an error.
31983 Use char because int might match the return type of a GCC
31984 builtin and then its argument prototype would still apply. */
31985#ifdef __cplusplus
31986extern "C"
31987#endif
31988char xmlCreatePushParserCtxt ();
31989int
31990main ()
31991{
31992return xmlCreatePushParserCtxt ();
31993 ;
31994 return 0;
31995}
31996_ACEOF
31997if ac_fn_c_try_link "$LINENO"; then :
31998 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31999else
32000 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32001fi
32002rm -f core conftest.err conftest.$ac_objext \
32003 conftest$ac_exeext conftest.$ac_ext
32004LIBS=$ac_check_lib_save_LIBS
32005fi
32006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32007$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32008if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32009 passed=`expr $passed + 1`
32010else
32011 failed=`expr $failed + 1`
32012fi
32013
32014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32015$as_echo_n "checking if XML package is complete... " >&6; }
32016 if test $passed -gt 0; then
32017 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32019$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032020 have_xml='no (failed tests)'
32021 LDFLAGS="$PERSIST_LDFLAGS"
32022 CPPFLAGS="$PERSIST_CPPFLAGS"
32023 else
32024 XML_LIBS='-lxml2'
32025 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032026
cristy8b350f62009-11-15 23:12:43 +000032027$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032028
cristy09b53e12011-10-14 12:47:22 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32030$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032031 have_xml='yes'
32032 fi
32033 else
cristy09b53e12011-10-14 12:47:22 +000032034 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32035$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032036 fi
32037fi
cristy73bd4a52010-10-05 11:24:23 +000032038 if test "$have_xml" = 'yes'; then
32039 XML_DELEGATE_TRUE=
32040 XML_DELEGATE_FALSE='#'
32041else
32042 XML_DELEGATE_TRUE='#'
32043 XML_DELEGATE_FALSE=
32044fi
32045
cristy3ed852e2009-09-05 21:47:34 +000032046
32047
32048
32049# Substitute compiler name to build/link PerlMagick
32050#
32051
32052
32053#
32054# Configure install Paths
32055#
cristy7def36a2011-10-28 19:04:41 +000032056
cristy2a11bef2011-10-28 18:33:11 +000032057# Path to ImageMagick header files
32058INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032059INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32060DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032061case "${build_os}" in
32062 mingw* )
32063 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32064 ;;
32065esac
32066
32067cat >>confdefs.h <<_ACEOF
32068#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32069_ACEOF
32070
32071
cristy3ed852e2009-09-05 21:47:34 +000032072
32073# Subdirectory under lib to place ImageMagick lib files
32074LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32075
32076cat >>confdefs.h <<_ACEOF
32077#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32078_ACEOF
32079
32080
32081# Path to ImageMagick bin directory
32082EXECUTABLE_PATH="${BIN_DIR}"
32083DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32084case "${build_os}" in
32085 mingw* )
32086 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32087 ;;
32088esac
32089
32090cat >>confdefs.h <<_ACEOF
32091#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32092_ACEOF
32093
32094
32095
32096# Path to ImageMagick lib
32097LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32098DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32099case "${build_os}" in
32100 mingw* )
32101 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32102 ;;
32103esac
32104
32105cat >>confdefs.h <<_ACEOF
32106#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32107_ACEOF
32108
32109
32110
cristy3ed852e2009-09-05 21:47:34 +000032111#
32112# Subdirectory under lib to place ImageMagick coder module files
32113CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32114
32115cat >>confdefs.h <<_ACEOF
32116#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32117_ACEOF
32118
32119CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32120DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32121case "${build_os}" in
32122 mingw* )
32123 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32124 ;;
32125esac
32126
32127cat >>confdefs.h <<_ACEOF
32128#define CODER_PATH "$DEFINE_CODER_PATH"
32129_ACEOF
32130
32131
32132
32133#
32134# Subdirectory under lib to place ImageMagick filter module files
32135FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32136
32137cat >>confdefs.h <<_ACEOF
32138#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32139_ACEOF
32140
32141FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32142DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32143case "${build_os}" in
32144 mingw* )
32145 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32146 ;;
32147esac
32148
32149cat >>confdefs.h <<_ACEOF
32150#define FILTER_PATH "$DEFINE_FILTER_PATH"
32151_ACEOF
32152
32153
32154
32155#
32156# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032157DOCUMENTATION_RELATIVE_PATH=""
32158DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32159DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032160case "${build_os}" in
32161 mingw* )
32162 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32163 ;;
32164esac
32165
32166cat >>confdefs.h <<_ACEOF
32167#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32168_ACEOF
32169
32170
32171
cristy2a11bef2011-10-28 18:33:11 +000032172# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032173CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032174
32175cat >>confdefs.h <<_ACEOF
32176#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32177_ACEOF
32178
cristy7def36a2011-10-28 19:04:41 +000032179CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032180DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32181case "${build_os}" in
32182 mingw* )
32183 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32184 ;;
32185esac
32186
32187cat >>confdefs.h <<_ACEOF
32188#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32189_ACEOF
32190
32191
32192
cristy2a11bef2011-10-28 18:33:11 +000032193# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032194SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032195
32196cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032197#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032198_ACEOF
32199
cristy670aa3c2011-11-03 00:54:00 +000032200SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032201DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032202case "${build_os}" in
32203 mingw* )
cristy4f820712011-04-01 12:35:43 +000032204 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032205 ;;
32206esac
32207
32208cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032209#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032210_ACEOF
32211
32212
32213
cristy408ebcd2011-11-14 01:36:57 +000032214# Subdirectory to place architecture-dependent configuration files
32215SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032216
32217cat >>confdefs.h <<_ACEOF
32218#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32219_ACEOF
32220
cristy408ebcd2011-11-14 01:36:57 +000032221SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32222DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032223case "${build_os}" in
32224 mingw* )
32225 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32226 ;;
32227esac
32228
32229cat >>confdefs.h <<_ACEOF
32230#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32231_ACEOF
32232
32233
32234
cristy3ed852e2009-09-05 21:47:34 +000032235#
32236# program_transform_name is formed for use in a Makefile, so create a
32237# modified version for use in a shell script.
32238configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32239
32240# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032241{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32242$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032244$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032245{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32246$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032247AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032248BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032249BZIPDelegateDefault='bzip2'
32250BrowseDelegateDefault='xdg-open'
32251CGMDecodeDelegateDefault='ralcgm'
32252CatDelegateDefault='cat'
32253DNGDecodeDelegateDefault='ufraw-batch'
32254GVCDecodeDelegateDefault='dot'
32255DVIDecodeDelegateDefault='dvips'
32256EchoDelegateDefault='echo'
32257EditorDelegateDefault='xterm'
32258FIGDecodeDelegateDefault='fig2dev'
32259ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32260DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32261MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32262GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032263HPGLDecodeDelegateDefault='hp2xx'
32264HTMLDecodeDelegateDefault='html2ps'
32265ILBMDecodeDelegateDefault='ilbmtoppm'
32266ILBMEncodeDelegateDefault='ppmtoilbm'
32267LPDelegateDefault='lp'
32268LPRDelegateDefault='lpr'
32269LZWDecodeDelegateDefault='uncompress'
32270LZWEncodeDelegateDefault='compress'
32271LaunchDelegateDefault='gimp'
32272MANDelegateDefault='groff'
32273MPEGDecodeDelegateDefault='ffmpeg'
32274MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032275MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032276MVDelegateDefault='mv'
32277PCLDelegateDefault='pcl6'
32278PGPDecodeDelegateDefault='pgpv'
32279POVDelegateDefault='povray'
32280if test "$native_win32_build" = 'yes'; then
32281 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032282elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032283 PSDelegateDefault='gsc'
32284else
32285 PSDelegateDefault='gs'
32286fi
32287RLEEncodeDelegateDefault='rawtorle'
32288RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032289RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032290SCANDecodeDelegateDefault='scanimage'
32291TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032292UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032293WMFDecodeDelegateDefault='wmf2eps'
32294WWWDecodeDelegateDefault='curl'
32295XPSDelegateDefault='gxps'
32296ZipDelegateDefault='gzip'
32297
32298# Search for delegates
32299# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32300set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032303if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032304 $as_echo_n "(cached) " >&6
32305else
32306 case $AutotraceDecodeDelegate in
32307 [\\/]* | ?:[\\/]*)
32308 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32309 ;;
32310 *)
32311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32312for as_dir in $PATH
32313do
32314 IFS=$as_save_IFS
32315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32318 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032320 break 2
32321 fi
32322done
cristy8b350f62009-11-15 23:12:43 +000032323 done
cristy3ed852e2009-09-05 21:47:34 +000032324IFS=$as_save_IFS
32325
32326 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32327 ;;
32328esac
32329fi
32330AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32331if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo "$AutotraceDecodeDelegate" >&6; }
32334else
cristy8b350f62009-11-15 23:12:43 +000032335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032336$as_echo "no" >&6; }
32337fi
32338
32339
cristy3ed852e2009-09-05 21:47:34 +000032340# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32341set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032344if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032345 $as_echo_n "(cached) " >&6
32346else
32347 case $BlenderDecodeDelegate in
32348 [\\/]* | ?:[\\/]*)
32349 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32350 ;;
32351 *)
32352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32353for as_dir in $PATH
32354do
32355 IFS=$as_save_IFS
32356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32359 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032361 break 2
32362 fi
32363done
cristy8b350f62009-11-15 23:12:43 +000032364 done
cristy3ed852e2009-09-05 21:47:34 +000032365IFS=$as_save_IFS
32366
32367 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32368 ;;
32369esac
32370fi
32371BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32372if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032374$as_echo "$BlenderDecodeDelegate" >&6; }
32375else
cristy8b350f62009-11-15 23:12:43 +000032376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377$as_echo "no" >&6; }
32378fi
32379
32380
32381# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32382set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032385if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032386 $as_echo_n "(cached) " >&6
32387else
32388 case $BZIPDelegate in
32389 [\\/]* | ?:[\\/]*)
32390 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32391 ;;
32392 *)
32393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32394for as_dir in $PATH
32395do
32396 IFS=$as_save_IFS
32397 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032398 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32400 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032402 break 2
32403 fi
32404done
cristy8b350f62009-11-15 23:12:43 +000032405 done
cristy3ed852e2009-09-05 21:47:34 +000032406IFS=$as_save_IFS
32407
32408 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32409 ;;
32410esac
32411fi
32412BZIPDelegate=$ac_cv_path_BZIPDelegate
32413if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032415$as_echo "$BZIPDelegate" >&6; }
32416else
cristy8b350f62009-11-15 23:12:43 +000032417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032418$as_echo "no" >&6; }
32419fi
32420
32421
32422# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32423set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032425$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032426if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032427 $as_echo_n "(cached) " >&6
32428else
32429 case $BrowseDelegate in
32430 [\\/]* | ?:[\\/]*)
32431 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32432 ;;
32433 *)
32434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32435for as_dir in $PATH
32436do
32437 IFS=$as_save_IFS
32438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32441 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032443 break 2
32444 fi
32445done
cristy8b350f62009-11-15 23:12:43 +000032446 done
cristy3ed852e2009-09-05 21:47:34 +000032447IFS=$as_save_IFS
32448
32449 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32450 ;;
32451esac
32452fi
32453BrowseDelegate=$ac_cv_path_BrowseDelegate
32454if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456$as_echo "$BrowseDelegate" >&6; }
32457else
cristy8b350f62009-11-15 23:12:43 +000032458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032459$as_echo "no" >&6; }
32460fi
32461
32462
32463# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32464set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032466$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032467if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032468 $as_echo_n "(cached) " >&6
32469else
32470 case $CGMDecodeDelegate in
32471 [\\/]* | ?:[\\/]*)
32472 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32473 ;;
32474 *)
32475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32476for as_dir in $PATH
32477do
32478 IFS=$as_save_IFS
32479 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32482 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032484 break 2
32485 fi
32486done
cristy8b350f62009-11-15 23:12:43 +000032487 done
cristy3ed852e2009-09-05 21:47:34 +000032488IFS=$as_save_IFS
32489
32490 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32491 ;;
32492esac
32493fi
32494CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32495if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032497$as_echo "$CGMDecodeDelegate" >&6; }
32498else
cristy8b350f62009-11-15 23:12:43 +000032499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032500$as_echo "no" >&6; }
32501fi
32502
32503
32504# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32505set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032508if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032509 $as_echo_n "(cached) " >&6
32510else
32511 case $CatDelegate in
32512 [\\/]* | ?:[\\/]*)
32513 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32514 ;;
32515 *)
32516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32517for as_dir in $PATH
32518do
32519 IFS=$as_save_IFS
32520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32523 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032525 break 2
32526 fi
32527done
cristy8b350f62009-11-15 23:12:43 +000032528 done
cristy3ed852e2009-09-05 21:47:34 +000032529IFS=$as_save_IFS
32530
32531 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32532 ;;
32533esac
32534fi
32535CatDelegate=$ac_cv_path_CatDelegate
32536if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032538$as_echo "$CatDelegate" >&6; }
32539else
cristy8b350f62009-11-15 23:12:43 +000032540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032541$as_echo "no" >&6; }
32542fi
32543
32544
32545# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32546set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032549if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032550 $as_echo_n "(cached) " >&6
32551else
32552 case $DNGDecodeDelegate in
32553 [\\/]* | ?:[\\/]*)
32554 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32555 ;;
32556 *)
32557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32558for as_dir in $PATH
32559do
32560 IFS=$as_save_IFS
32561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32564 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032566 break 2
32567 fi
32568done
cristy8b350f62009-11-15 23:12:43 +000032569 done
cristy3ed852e2009-09-05 21:47:34 +000032570IFS=$as_save_IFS
32571
32572 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32573 ;;
32574esac
32575fi
32576DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32577if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579$as_echo "$DNGDecodeDelegate" >&6; }
32580else
cristy8b350f62009-11-15 23:12:43 +000032581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032582$as_echo "no" >&6; }
32583fi
32584
32585
32586# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32587set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032590if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032591 $as_echo_n "(cached) " >&6
32592else
32593 case $GVCDecodeDelegate in
32594 [\\/]* | ?:[\\/]*)
32595 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32596 ;;
32597 *)
32598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32599for as_dir in $PATH
32600do
32601 IFS=$as_save_IFS
32602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32605 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032607 break 2
32608 fi
32609done
cristy8b350f62009-11-15 23:12:43 +000032610 done
cristy3ed852e2009-09-05 21:47:34 +000032611IFS=$as_save_IFS
32612
32613 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32614 ;;
32615esac
32616fi
32617GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32618if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo "$GVCDecodeDelegate" >&6; }
32621else
cristy8b350f62009-11-15 23:12:43 +000032622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "no" >&6; }
32624fi
32625
32626
32627# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32628set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032631if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032632 $as_echo_n "(cached) " >&6
32633else
32634 case $DVIDecodeDelegate in
32635 [\\/]* | ?:[\\/]*)
32636 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32637 ;;
32638 *)
32639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32640for as_dir in $PATH
32641do
32642 IFS=$as_save_IFS
32643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32646 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648 break 2
32649 fi
32650done
cristy8b350f62009-11-15 23:12:43 +000032651 done
cristy3ed852e2009-09-05 21:47:34 +000032652IFS=$as_save_IFS
32653
32654 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32655 ;;
32656esac
32657fi
32658DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32659if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "$DVIDecodeDelegate" >&6; }
32662else
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo "no" >&6; }
32665fi
32666
32667
32668# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32669set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032672if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032673 $as_echo_n "(cached) " >&6
32674else
32675 case $EchoDelegate in
32676 [\\/]* | ?:[\\/]*)
32677 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32678 ;;
32679 *)
32680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32681for as_dir in $PATH
32682do
32683 IFS=$as_save_IFS
32684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32687 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689 break 2
32690 fi
32691done
cristy8b350f62009-11-15 23:12:43 +000032692 done
cristy3ed852e2009-09-05 21:47:34 +000032693IFS=$as_save_IFS
32694
32695 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32696 ;;
32697esac
32698fi
32699EchoDelegate=$ac_cv_path_EchoDelegate
32700if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo "$EchoDelegate" >&6; }
32703else
cristy8b350f62009-11-15 23:12:43 +000032704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705$as_echo "no" >&6; }
32706fi
32707
32708
32709# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32710set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032713if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032714 $as_echo_n "(cached) " >&6
32715else
32716 case $EditorDelegate in
32717 [\\/]* | ?:[\\/]*)
32718 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32719 ;;
32720 *)
32721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32722for as_dir in $PATH
32723do
32724 IFS=$as_save_IFS
32725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32728 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032730 break 2
32731 fi
32732done
cristy8b350f62009-11-15 23:12:43 +000032733 done
cristy3ed852e2009-09-05 21:47:34 +000032734IFS=$as_save_IFS
32735
32736 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32737 ;;
32738esac
32739fi
32740EditorDelegate=$ac_cv_path_EditorDelegate
32741if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "$EditorDelegate" >&6; }
32744else
cristy8b350f62009-11-15 23:12:43 +000032745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746$as_echo "no" >&6; }
32747fi
32748
32749
32750# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32751set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032754if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032755 $as_echo_n "(cached) " >&6
32756else
32757 case $FIGDecodeDelegate in
32758 [\\/]* | ?:[\\/]*)
32759 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32760 ;;
32761 *)
32762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32763for as_dir in $PATH
32764do
32765 IFS=$as_save_IFS
32766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32769 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771 break 2
32772 fi
32773done
cristy8b350f62009-11-15 23:12:43 +000032774 done
cristy3ed852e2009-09-05 21:47:34 +000032775IFS=$as_save_IFS
32776
32777 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32778 ;;
32779esac
32780fi
32781FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32782if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "$FIGDecodeDelegate" >&6; }
32785else
cristy8b350f62009-11-15 23:12:43 +000032786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787$as_echo "no" >&6; }
32788fi
32789
32790
32791# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32792set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032795if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032796 $as_echo_n "(cached) " >&6
32797else
32798 case $ConvertDelegate in
32799 [\\/]* | ?:[\\/]*)
32800 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32801 ;;
32802 *)
32803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32804for as_dir in $PATH
32805do
32806 IFS=$as_save_IFS
32807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32810 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812 break 2
32813 fi
32814done
cristy8b350f62009-11-15 23:12:43 +000032815 done
cristy3ed852e2009-09-05 21:47:34 +000032816IFS=$as_save_IFS
32817
32818 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32819 ;;
32820esac
32821fi
32822ConvertDelegate=$ac_cv_path_ConvertDelegate
32823if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo "$ConvertDelegate" >&6; }
32826else
cristy8b350f62009-11-15 23:12:43 +000032827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828$as_echo "no" >&6; }
32829fi
32830
32831
32832# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32833set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032836if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032837 $as_echo_n "(cached) " >&6
32838else
32839 case $DisplayDelegate in
32840 [\\/]* | ?:[\\/]*)
32841 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32842 ;;
32843 *)
32844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32845for as_dir in $PATH
32846do
32847 IFS=$as_save_IFS
32848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32851 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853 break 2
32854 fi
32855done
cristy8b350f62009-11-15 23:12:43 +000032856 done
cristy3ed852e2009-09-05 21:47:34 +000032857IFS=$as_save_IFS
32858
32859 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32860 ;;
32861esac
32862fi
32863DisplayDelegate=$ac_cv_path_DisplayDelegate
32864if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$DisplayDelegate" >&6; }
32867else
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "no" >&6; }
32870fi
32871
32872
32873# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32874set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032877if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032878 $as_echo_n "(cached) " >&6
32879else
32880 case $MogrifyDelegate in
32881 [\\/]* | ?:[\\/]*)
32882 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32883 ;;
32884 *)
32885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32886for as_dir in $PATH
32887do
32888 IFS=$as_save_IFS
32889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32892 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894 break 2
32895 fi
32896done
cristy8b350f62009-11-15 23:12:43 +000032897 done
cristy3ed852e2009-09-05 21:47:34 +000032898IFS=$as_save_IFS
32899
32900 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32901 ;;
32902esac
32903fi
32904MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32905if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$MogrifyDelegate" >&6; }
32908else
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "no" >&6; }
32911fi
32912
32913
32914# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32915set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032918if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032919 $as_echo_n "(cached) " >&6
32920else
32921 case $GnuplotDecodeDelegate in
32922 [\\/]* | ?:[\\/]*)
32923 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32924 ;;
32925 *)
32926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32927for as_dir in $PATH
32928do
32929 IFS=$as_save_IFS
32930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32933 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935 break 2
32936 fi
32937done
cristy8b350f62009-11-15 23:12:43 +000032938 done
cristy3ed852e2009-09-05 21:47:34 +000032939IFS=$as_save_IFS
32940
32941 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32942 ;;
32943esac
32944fi
32945GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32946if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "$GnuplotDecodeDelegate" >&6; }
32949else
cristy8b350f62009-11-15 23:12:43 +000032950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo "no" >&6; }
32952fi
32953
32954
cristy3ed852e2009-09-05 21:47:34 +000032955# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32956set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032959if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032960 $as_echo_n "(cached) " >&6
32961else
32962 case $HPGLDecodeDelegate in
32963 [\\/]* | ?:[\\/]*)
32964 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32965 ;;
32966 *)
32967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32968for as_dir in $PATH
32969do
32970 IFS=$as_save_IFS
32971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32974 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976 break 2
32977 fi
32978done
cristy8b350f62009-11-15 23:12:43 +000032979 done
cristy3ed852e2009-09-05 21:47:34 +000032980IFS=$as_save_IFS
32981
32982 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32983 ;;
32984esac
32985fi
32986HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32987if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$HPGLDecodeDelegate" >&6; }
32990else
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo "no" >&6; }
32993fi
32994
32995
32996# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32997set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033000if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033001 $as_echo_n "(cached) " >&6
33002else
33003 case $HTMLDecodeDelegate in
33004 [\\/]* | ?:[\\/]*)
33005 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33006 ;;
33007 *)
33008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33009for as_dir in $PATH
33010do
33011 IFS=$as_save_IFS
33012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33015 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017 break 2
33018 fi
33019done
cristy8b350f62009-11-15 23:12:43 +000033020 done
cristy3ed852e2009-09-05 21:47:34 +000033021IFS=$as_save_IFS
33022
33023 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33024 ;;
33025esac
33026fi
33027HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33028if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "$HTMLDecodeDelegate" >&6; }
33031else
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "no" >&6; }
33034fi
33035
33036
33037# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33038set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033041if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033042 $as_echo_n "(cached) " >&6
33043else
33044 case $ILBMDecodeDelegate in
33045 [\\/]* | ?:[\\/]*)
33046 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33047 ;;
33048 *)
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050for as_dir in $PATH
33051do
33052 IFS=$as_save_IFS
33053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33056 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058 break 2
33059 fi
33060done
cristy8b350f62009-11-15 23:12:43 +000033061 done
cristy3ed852e2009-09-05 21:47:34 +000033062IFS=$as_save_IFS
33063
33064 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33065 ;;
33066esac
33067fi
33068ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33069if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "$ILBMDecodeDelegate" >&6; }
33072else
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "no" >&6; }
33075fi
33076
33077
33078# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33079set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033082if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033083 $as_echo_n "(cached) " >&6
33084else
33085 case $ILBMEncodeDelegate in
33086 [\\/]* | ?:[\\/]*)
33087 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33088 ;;
33089 *)
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091for as_dir in $PATH
33092do
33093 IFS=$as_save_IFS
33094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33097 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099 break 2
33100 fi
33101done
cristy8b350f62009-11-15 23:12:43 +000033102 done
cristy3ed852e2009-09-05 21:47:34 +000033103IFS=$as_save_IFS
33104
33105 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33106 ;;
33107esac
33108fi
33109ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33110if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "$ILBMEncodeDelegate" >&6; }
33113else
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "no" >&6; }
33116fi
33117
33118
33119# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33120set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033123if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033124 $as_echo_n "(cached) " >&6
33125else
33126 case $LPDelegate in
33127 [\\/]* | ?:[\\/]*)
33128 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33129 ;;
33130 *)
33131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132for as_dir in $PATH
33133do
33134 IFS=$as_save_IFS
33135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33138 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140 break 2
33141 fi
33142done
cristy8b350f62009-11-15 23:12:43 +000033143 done
cristy3ed852e2009-09-05 21:47:34 +000033144IFS=$as_save_IFS
33145
33146 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33147 ;;
33148esac
33149fi
33150LPDelegate=$ac_cv_path_LPDelegate
33151if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "$LPDelegate" >&6; }
33154else
cristy8b350f62009-11-15 23:12:43 +000033155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo "no" >&6; }
33157fi
33158
33159
33160# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33161set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033164if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033165 $as_echo_n "(cached) " >&6
33166else
33167 case $LPRDelegate in
33168 [\\/]* | ?:[\\/]*)
33169 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33170 ;;
33171 *)
33172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33173for as_dir in $PATH
33174do
33175 IFS=$as_save_IFS
33176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33179 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181 break 2
33182 fi
33183done
cristy8b350f62009-11-15 23:12:43 +000033184 done
cristy3ed852e2009-09-05 21:47:34 +000033185IFS=$as_save_IFS
33186
33187 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33188 ;;
33189esac
33190fi
33191LPRDelegate=$ac_cv_path_LPRDelegate
33192if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo "$LPRDelegate" >&6; }
33195else
cristy8b350f62009-11-15 23:12:43 +000033196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo "no" >&6; }
33198fi
33199
33200
33201# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33202set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033205if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033206 $as_echo_n "(cached) " >&6
33207else
33208 case $LZWDecodeDelegate in
33209 [\\/]* | ?:[\\/]*)
33210 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33211 ;;
33212 *)
33213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33214for as_dir in $PATH
33215do
33216 IFS=$as_save_IFS
33217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33220 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222 break 2
33223 fi
33224done
cristy8b350f62009-11-15 23:12:43 +000033225 done
cristy3ed852e2009-09-05 21:47:34 +000033226IFS=$as_save_IFS
33227
33228 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33229 ;;
33230esac
33231fi
33232LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33233if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033235$as_echo "$LZWDecodeDelegate" >&6; }
33236else
cristy8b350f62009-11-15 23:12:43 +000033237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo "no" >&6; }
33239fi
33240
33241
33242# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33243set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033246if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033247 $as_echo_n "(cached) " >&6
33248else
33249 case $LZWEncodeDelegate in
33250 [\\/]* | ?:[\\/]*)
33251 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33252 ;;
33253 *)
33254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33255for as_dir in $PATH
33256do
33257 IFS=$as_save_IFS
33258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33261 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033263 break 2
33264 fi
33265done
cristy8b350f62009-11-15 23:12:43 +000033266 done
cristy3ed852e2009-09-05 21:47:34 +000033267IFS=$as_save_IFS
33268
33269 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33270 ;;
33271esac
33272fi
33273LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33274if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo "$LZWEncodeDelegate" >&6; }
33277else
cristy8b350f62009-11-15 23:12:43 +000033278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo "no" >&6; }
33280fi
33281
33282
33283# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33284set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033287if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033288 $as_echo_n "(cached) " >&6
33289else
33290 case $LaunchDelegate in
33291 [\\/]* | ?:[\\/]*)
33292 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33293 ;;
33294 *)
33295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33296for as_dir in $PATH
33297do
33298 IFS=$as_save_IFS
33299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33302 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033304 break 2
33305 fi
33306done
cristy8b350f62009-11-15 23:12:43 +000033307 done
cristy3ed852e2009-09-05 21:47:34 +000033308IFS=$as_save_IFS
33309
33310 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33311 ;;
33312esac
33313fi
33314LaunchDelegate=$ac_cv_path_LaunchDelegate
33315if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo "$LaunchDelegate" >&6; }
33318else
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "no" >&6; }
33321fi
33322
33323
33324# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33325set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033328if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033329 $as_echo_n "(cached) " >&6
33330else
33331 case $MANDelegate in
33332 [\\/]* | ?:[\\/]*)
33333 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33334 ;;
33335 *)
33336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33337for as_dir in $PATH
33338do
33339 IFS=$as_save_IFS
33340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33343 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345 break 2
33346 fi
33347done
cristy8b350f62009-11-15 23:12:43 +000033348 done
cristy3ed852e2009-09-05 21:47:34 +000033349IFS=$as_save_IFS
33350
33351 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33352 ;;
33353esac
33354fi
33355MANDelegate=$ac_cv_path_MANDelegate
33356if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo "$MANDelegate" >&6; }
33359else
cristy8b350f62009-11-15 23:12:43 +000033360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo "no" >&6; }
33362fi
33363
33364
33365# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33366set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033369if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033370 $as_echo_n "(cached) " >&6
33371else
33372 case $MPEGDecodeDelegate in
33373 [\\/]* | ?:[\\/]*)
33374 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33375 ;;
33376 *)
33377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33378for as_dir in $PATH
33379do
33380 IFS=$as_save_IFS
33381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33384 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386 break 2
33387 fi
33388done
cristy8b350f62009-11-15 23:12:43 +000033389 done
cristy3ed852e2009-09-05 21:47:34 +000033390IFS=$as_save_IFS
33391
33392 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33393 ;;
33394esac
33395fi
33396MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33397if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo "$MPEGDecodeDelegate" >&6; }
33400else
cristy8b350f62009-11-15 23:12:43 +000033401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo "no" >&6; }
33403fi
33404
33405
33406# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33407set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033410if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033411 $as_echo_n "(cached) " >&6
33412else
33413 case $MPEGEncodeDelegate in
33414 [\\/]* | ?:[\\/]*)
33415 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33416 ;;
33417 *)
33418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33419for as_dir in $PATH
33420do
33421 IFS=$as_save_IFS
33422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33425 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427 break 2
33428 fi
33429done
cristy8b350f62009-11-15 23:12:43 +000033430 done
cristy3ed852e2009-09-05 21:47:34 +000033431IFS=$as_save_IFS
33432
33433 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33434 ;;
33435esac
33436fi
33437MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33438if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440$as_echo "$MPEGEncodeDelegate" >&6; }
33441else
cristy8b350f62009-11-15 23:12:43 +000033442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo "no" >&6; }
33444fi
33445
33446
cristy935c86e2010-06-05 23:50:07 +000033447# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33448set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033451if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033452 $as_echo_n "(cached) " >&6
33453else
33454 case $MrSIDDecodeDelegate in
33455 [\\/]* | ?:[\\/]*)
33456 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33457 ;;
33458 *)
33459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33460for as_dir in $PATH
33461do
33462 IFS=$as_save_IFS
33463 test -z "$as_dir" && as_dir=.
33464 for ac_exec_ext in '' $ac_executable_extensions; do
33465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33466 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33468 break 2
33469 fi
33470done
33471 done
33472IFS=$as_save_IFS
33473
33474 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33475 ;;
33476esac
33477fi
33478MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33479if test -n "$MrSIDDecodeDelegate"; then
33480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33481$as_echo "$MrSIDDecodeDelegate" >&6; }
33482else
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33484$as_echo "no" >&6; }
33485fi
33486
33487
cristy3ed852e2009-09-05 21:47:34 +000033488# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33489set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033492if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033493 $as_echo_n "(cached) " >&6
33494else
33495 case $MVDelegate in
33496 [\\/]* | ?:[\\/]*)
33497 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33498 ;;
33499 *)
33500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33501for as_dir in $PATH
33502do
33503 IFS=$as_save_IFS
33504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33507 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509 break 2
33510 fi
33511done
cristy8b350f62009-11-15 23:12:43 +000033512 done
cristy3ed852e2009-09-05 21:47:34 +000033513IFS=$as_save_IFS
33514
33515 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33516 ;;
33517esac
33518fi
33519MVDelegate=$ac_cv_path_MVDelegate
33520if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033522$as_echo "$MVDelegate" >&6; }
33523else
cristy8b350f62009-11-15 23:12:43 +000033524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo "no" >&6; }
33526fi
33527
33528
33529# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33530set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033533if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033534 $as_echo_n "(cached) " >&6
33535else
33536 case $PCLDelegate in
33537 [\\/]* | ?:[\\/]*)
33538 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33539 ;;
33540 *)
33541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33542for as_dir in $PATH
33543do
33544 IFS=$as_save_IFS
33545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33548 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550 break 2
33551 fi
33552done
cristy8b350f62009-11-15 23:12:43 +000033553 done
cristy3ed852e2009-09-05 21:47:34 +000033554IFS=$as_save_IFS
33555
33556 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33557 ;;
33558esac
33559fi
33560PCLDelegate=$ac_cv_path_PCLDelegate
33561if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$PCLDelegate" >&6; }
33564else
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "no" >&6; }
33567fi
33568
33569
33570# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33571set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033574if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033575 $as_echo_n "(cached) " >&6
33576else
33577 case $PGPDecodeDelegate in
33578 [\\/]* | ?:[\\/]*)
33579 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33580 ;;
33581 *)
33582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33583for as_dir in $PATH
33584do
33585 IFS=$as_save_IFS
33586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33589 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591 break 2
33592 fi
33593done
cristy8b350f62009-11-15 23:12:43 +000033594 done
cristy3ed852e2009-09-05 21:47:34 +000033595IFS=$as_save_IFS
33596
33597 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33598 ;;
33599esac
33600fi
33601PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33602if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033604$as_echo "$PGPDecodeDelegate" >&6; }
33605else
cristy8b350f62009-11-15 23:12:43 +000033606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo "no" >&6; }
33608fi
33609
33610
33611# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33612set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033615if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033616 $as_echo_n "(cached) " >&6
33617else
33618 case $POVDelegate in
33619 [\\/]* | ?:[\\/]*)
33620 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33621 ;;
33622 *)
33623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33624for as_dir in $PATH
33625do
33626 IFS=$as_save_IFS
33627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33630 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632 break 2
33633 fi
33634done
cristy8b350f62009-11-15 23:12:43 +000033635 done
cristy3ed852e2009-09-05 21:47:34 +000033636IFS=$as_save_IFS
33637
33638 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33639 ;;
33640esac
33641fi
33642POVDelegate=$ac_cv_path_POVDelegate
33643if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033645$as_echo "$POVDelegate" >&6; }
33646else
cristy8b350f62009-11-15 23:12:43 +000033647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648$as_echo "no" >&6; }
33649fi
33650
33651
33652for ac_prog in gsx gsc "$PSDelegateDefault"
33653do
33654 # Extract the first word of "$ac_prog", so it can be a program name with args.
33655set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033658if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033659 $as_echo_n "(cached) " >&6
33660else
33661 case $PSDelegate in
33662 [\\/]* | ?:[\\/]*)
33663 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33664 ;;
33665 *)
33666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33667for as_dir in $PATH
33668do
33669 IFS=$as_save_IFS
33670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33673 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033675 break 2
33676 fi
33677done
cristy8b350f62009-11-15 23:12:43 +000033678 done
cristy3ed852e2009-09-05 21:47:34 +000033679IFS=$as_save_IFS
33680
33681 ;;
33682esac
33683fi
33684PSDelegate=$ac_cv_path_PSDelegate
33685if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033687$as_echo "$PSDelegate" >&6; }
33688else
cristy8b350f62009-11-15 23:12:43 +000033689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033690$as_echo "no" >&6; }
33691fi
33692
33693
33694 test -n "$PSDelegate" && break
33695done
33696test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33697
33698# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33699set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033702if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033703 $as_echo_n "(cached) " >&6
33704else
33705 case $RLEEncodeDelegate in
33706 [\\/]* | ?:[\\/]*)
33707 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33708 ;;
33709 *)
33710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33711for as_dir in $PATH
33712do
33713 IFS=$as_save_IFS
33714 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33717 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719 break 2
33720 fi
33721done
cristy8b350f62009-11-15 23:12:43 +000033722 done
cristy3ed852e2009-09-05 21:47:34 +000033723IFS=$as_save_IFS
33724
33725 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33726 ;;
33727esac
33728fi
33729RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33730if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033732$as_echo "$RLEEncodeDelegate" >&6; }
33733else
cristy8b350f62009-11-15 23:12:43 +000033734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735$as_echo "no" >&6; }
33736fi
33737
33738
33739# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33740set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033743if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033744 $as_echo_n "(cached) " >&6
33745else
33746 case $RMDelegate in
33747 [\\/]* | ?:[\\/]*)
33748 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33749 ;;
33750 *)
33751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33752for as_dir in $PATH
33753do
33754 IFS=$as_save_IFS
33755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33758 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760 break 2
33761 fi
33762done
cristy8b350f62009-11-15 23:12:43 +000033763 done
cristy3ed852e2009-09-05 21:47:34 +000033764IFS=$as_save_IFS
33765
33766 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33767 ;;
33768esac
33769fi
33770RMDelegate=$ac_cv_path_RMDelegate
33771if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033773$as_echo "$RMDelegate" >&6; }
33774else
cristy8b350f62009-11-15 23:12:43 +000033775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776$as_echo "no" >&6; }
33777fi
33778
33779
cristy4689cf02010-02-17 21:15:45 +000033780# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33781set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033784if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033785 $as_echo_n "(cached) " >&6
33786else
33787 case $RSVGDecodeDelegate in
33788 [\\/]* | ?:[\\/]*)
33789 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33790 ;;
33791 *)
33792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33793for as_dir in $PATH
33794do
33795 IFS=$as_save_IFS
33796 test -z "$as_dir" && as_dir=.
33797 for ac_exec_ext in '' $ac_executable_extensions; do
33798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33799 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33801 break 2
33802 fi
33803done
33804 done
33805IFS=$as_save_IFS
33806
33807 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33808 ;;
33809esac
33810fi
33811RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33812if test -n "$RSVGDecodeDelegate"; then
33813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33814$as_echo "$RSVGDecodeDelegate" >&6; }
33815else
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33817$as_echo "no" >&6; }
33818fi
33819
33820
cristy3ed852e2009-09-05 21:47:34 +000033821# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33822set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033825if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033826 $as_echo_n "(cached) " >&6
33827else
33828 case $SCANDecodeDelegate in
33829 [\\/]* | ?:[\\/]*)
33830 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33831 ;;
33832 *)
33833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33834for as_dir in $PATH
33835do
33836 IFS=$as_save_IFS
33837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33840 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842 break 2
33843 fi
33844done
cristy8b350f62009-11-15 23:12:43 +000033845 done
cristy3ed852e2009-09-05 21:47:34 +000033846IFS=$as_save_IFS
33847
33848 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33849 ;;
33850esac
33851fi
33852SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33853if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033855$as_echo "$SCANDecodeDelegate" >&6; }
33856else
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "no" >&6; }
33859fi
33860
33861
33862# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33863set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033866if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033867 $as_echo_n "(cached) " >&6
33868else
33869 case $TXTDelegate in
33870 [\\/]* | ?:[\\/]*)
33871 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33872 ;;
33873 *)
33874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33875for as_dir in $PATH
33876do
33877 IFS=$as_save_IFS
33878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33881 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883 break 2
33884 fi
33885done
cristy8b350f62009-11-15 23:12:43 +000033886 done
cristy3ed852e2009-09-05 21:47:34 +000033887IFS=$as_save_IFS
33888
33889 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33890 ;;
33891esac
33892fi
33893TXTDelegate=$ac_cv_path_TXTDelegate
33894if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo "$TXTDelegate" >&6; }
33897else
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "no" >&6; }
33900fi
33901
33902
cristy5ac9ac82010-07-29 13:24:24 +000033903# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33904set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033907if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033908 $as_echo_n "(cached) " >&6
33909else
33910 case $UniconvertorDelegate in
33911 [\\/]* | ?:[\\/]*)
33912 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33913 ;;
33914 *)
33915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33916for as_dir in $PATH
33917do
33918 IFS=$as_save_IFS
33919 test -z "$as_dir" && as_dir=.
33920 for ac_exec_ext in '' $ac_executable_extensions; do
33921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33922 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33924 break 2
33925 fi
33926done
33927 done
33928IFS=$as_save_IFS
33929
33930 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33931 ;;
33932esac
33933fi
33934UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33935if test -n "$UniconvertorDelegate"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33937$as_echo "$UniconvertorDelegate" >&6; }
33938else
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33940$as_echo "no" >&6; }
33941fi
33942
33943
cristy3ed852e2009-09-05 21:47:34 +000033944# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33945set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033948if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033949 $as_echo_n "(cached) " >&6
33950else
33951 case $WMFDecodeDelegate in
33952 [\\/]* | ?:[\\/]*)
33953 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33954 ;;
33955 *)
33956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33957for as_dir in $PATH
33958do
33959 IFS=$as_save_IFS
33960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33963 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965 break 2
33966 fi
33967done
cristy8b350f62009-11-15 23:12:43 +000033968 done
cristy3ed852e2009-09-05 21:47:34 +000033969IFS=$as_save_IFS
33970
33971 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33972 ;;
33973esac
33974fi
33975WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33976if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo "$WMFDecodeDelegate" >&6; }
33979else
cristy8b350f62009-11-15 23:12:43 +000033980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033981$as_echo "no" >&6; }
33982fi
33983
33984
33985# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33986set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033989if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033990 $as_echo_n "(cached) " >&6
33991else
33992 case $WWWDecodeDelegate in
33993 [\\/]* | ?:[\\/]*)
33994 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33995 ;;
33996 *)
33997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33998for as_dir in $PATH
33999do
34000 IFS=$as_save_IFS
34001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34004 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034006 break 2
34007 fi
34008done
cristy8b350f62009-11-15 23:12:43 +000034009 done
cristy3ed852e2009-09-05 21:47:34 +000034010IFS=$as_save_IFS
34011
34012 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34013 ;;
34014esac
34015fi
34016WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34017if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo "$WWWDecodeDelegate" >&6; }
34020else
cristy8b350f62009-11-15 23:12:43 +000034021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034022$as_echo "no" >&6; }
34023fi
34024
34025
34026# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34027set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034030if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034031 $as_echo_n "(cached) " >&6
34032else
34033 case $XPSDelegate in
34034 [\\/]* | ?:[\\/]*)
34035 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34036 ;;
34037 *)
34038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34039for as_dir in $PATH
34040do
34041 IFS=$as_save_IFS
34042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34045 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047 break 2
34048 fi
34049done
cristy8b350f62009-11-15 23:12:43 +000034050 done
cristy3ed852e2009-09-05 21:47:34 +000034051IFS=$as_save_IFS
34052
34053 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34054 ;;
34055esac
34056fi
34057XPSDelegate=$ac_cv_path_XPSDelegate
34058if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034060$as_echo "$XPSDelegate" >&6; }
34061else
cristy8b350f62009-11-15 23:12:43 +000034062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034063$as_echo "no" >&6; }
34064fi
34065
34066
34067# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34068set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034071if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034072 $as_echo_n "(cached) " >&6
34073else
34074 case $ZipDelegate in
34075 [\\/]* | ?:[\\/]*)
34076 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34077 ;;
34078 *)
34079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34080for as_dir in $PATH
34081do
34082 IFS=$as_save_IFS
34083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34086 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088 break 2
34089 fi
34090done
cristy8b350f62009-11-15 23:12:43 +000034091 done
cristy3ed852e2009-09-05 21:47:34 +000034092IFS=$as_save_IFS
34093
34094 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34095 ;;
34096esac
34097fi
34098ZipDelegate=$ac_cv_path_ZipDelegate
34099if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034101$as_echo "$ZipDelegate" >&6; }
34102else
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "no" >&6; }
34105fi
34106
34107
34108
34109# Prefer lpr to lp; lp needs options tacked on.
34110if test "$LPRDelegate" != no; then
34111 PrintDelegate="$LPRDelegate"
34112else
34113 PrintDelegate="$LPDelegate -c -s"
34114fi
34115
34116
34117# Installed ImageMagick utiltity paths
34118ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34119DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34120MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34121
34122# Set delegate booleans
34123have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34124have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34125have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34126have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34127have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034128have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034129have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34130have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034131have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34132have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34133
34134#
34135# Test for font directories
34136#
34137type_include_files=''
34138
cristy430a7312010-01-21 20:44:04 +000034139# Dejavu fonts.
34140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34141$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34142dejavu_font_dir=''
34143if test "${with_dejavu_font_dir}" != 'default'; then
34144 dejavu_font_dir="${with_dejavu_font_dir}/"
34145else
34146 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34147 if test -f "${font_dir}DejaVuSerif.ttf"; then
34148 dejavu_font_dir="${font_dir}"
34149 break 1
34150 fi
34151 done
34152fi
34153if test "${dejavu_font_dir}x" != 'x'; then
34154 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034155 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34156$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034157else
cristy09b53e12011-10-14 12:47:22 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34159$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034160fi
34161
34162
cristy3ed852e2009-09-05 21:47:34 +000034163# Windows
34164windows_font_dir=''
34165if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34166 windows_font_dir="${with_windows_font_dir}/"
34167fi
cristy430a7312010-01-21 20:44:04 +000034168if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034169 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34170 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34171 fi
34172 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34173 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34174 fi
34175 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34176 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34177 fi
34178fi
cristy430a7312010-01-21 20:44:04 +000034179if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034180 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34181fi
34182
34183
34184# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34187ghostscript_font_dir=''
34188if test "${with_gs_font_dir}" != 'default'; then
34189 ghostscript_font_dir="${with_gs_font_dir}/"
34190else
34191 if test "${native_win32_build}" = 'yes'; then
34192 # Native Windows Build
34193 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34194 if test -f "${font_dir}a010013l.pfb"; then
34195 ghostscript_font_dir="$font_dir"
34196 break 1
34197 fi
34198 done
34199 if test "${PSDelegate}" != 'gswin32c'; then
34200 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34201 fi
34202 else
34203 # Linux / Mac OS X / Unix Build
34204 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
34205 if test -f "${font_dir}a010013l.pfb"; then
34206 ghostscript_font_dir="${font_dir}"
34207 break 1
34208 fi
34209 done
34210 if test "${ghostscript_font_dir}x" = 'x'; then
34211 if test "$PSDelegate" != 'gs'; then
34212 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34213 fi
34214 fi
34215 fi
34216fi
34217if test "${ghostscript_font_dir}x" != 'x'; then
34218 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034219 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34220$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034221else
cristy09b53e12011-10-14 12:47:22 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34223$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034224fi
34225
34226case "${build_os}" in
34227 mingw* )
34228 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34229 ;;
34230esac
34231
34232
34233
34234#
34235# Handle case where user doesn't want frozen paths
34236#
34237if test "$with_frozenpaths" != 'yes'; then
34238 # Re-set delegate definitions to default (no paths)
34239 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034240 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34241 BZIPDelegate="$BZIPDelegateDefault"
34242 BrowseDelegate="$BrowseDelegateDefault"
34243 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34244 CatDelegate="$CatDelegateDefault"
34245 ConvertDelegate="$ConvertDelegateDefault"
34246 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34247 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34248 EchoDelegate="$EchoDelegateDefault"
34249 EditorDelegate="$EditorDelegateDefault"
34250 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34251 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34252 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34253 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34254 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34255 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34256 LPDelegate="$LPDelegateDefault"
34257 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34258 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34259 LaunchDelegate="$LaunchDelegateDefault"
34260 MANDelegate="$MANDelegateDefault"
34261 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34262 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034263 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034264 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34265 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034266 PCLDelegate="$PCLDelegateDefault"
34267 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34268 POVDelegate="$POVDelegateDefault"
34269 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034270 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34271 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034272 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034273 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34274 ShowImageDelegate="$ShowImageDelegateDefault"
34275 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034276 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034277 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34278 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34279 XPSDelegate="$XPSDelegateDefault"
34280 ZipDelegate="$ZipDelegateDefault"
34281fi
34282
34283# Delegate substitutions
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326#
34327# RPM support.
34328#
34329RPM=''
34330for ac_prog in gnutar gtar tar
34331do
34332 # Extract the first word of "$ac_prog", so it can be a program name with args.
34333set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034336if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034337 $as_echo_n "(cached) " >&6
34338else
34339 if test -n "$TAR"; then
34340 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34341else
34342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34343for as_dir in $PATH
34344do
34345 IFS=$as_save_IFS
34346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34349 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351 break 2
34352 fi
34353done
cristy8b350f62009-11-15 23:12:43 +000034354 done
cristy3ed852e2009-09-05 21:47:34 +000034355IFS=$as_save_IFS
34356
34357fi
34358fi
34359TAR=$ac_cv_prog_TAR
34360if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034362$as_echo "$TAR" >&6; }
34363else
cristy8b350f62009-11-15 23:12:43 +000034364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034365$as_echo "no" >&6; }
34366fi
34367
34368
34369 test -n "$TAR" && break
34370done
34371
34372for ac_prog in perl
34373do
34374 # Extract the first word of "$ac_prog", so it can be a program name with args.
34375set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034378if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034379 $as_echo_n "(cached) " >&6
34380else
34381 if test -n "$PERL"; then
34382 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34383else
34384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34385for as_dir in $PATH
34386do
34387 IFS=$as_save_IFS
34388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34391 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034393 break 2
34394 fi
34395done
cristy8b350f62009-11-15 23:12:43 +000034396 done
cristy3ed852e2009-09-05 21:47:34 +000034397IFS=$as_save_IFS
34398
34399fi
34400fi
34401PERL=$ac_cv_prog_PERL
34402if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034404$as_echo "$PERL" >&6; }
34405else
cristy8b350f62009-11-15 23:12:43 +000034406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034407$as_echo "no" >&6; }
34408fi
34409
34410
34411 test -n "$PERL" && break
34412done
34413
34414for ac_prog in rpmbuild rpm
34415do
34416 # Extract the first word of "$ac_prog", so it can be a program name with args.
34417set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034420if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034421 $as_echo_n "(cached) " >&6
34422else
34423 if test -n "$RPM"; then
34424 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34425else
34426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34427for as_dir in $PATH
34428do
34429 IFS=$as_save_IFS
34430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34433 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435 break 2
34436 fi
34437done
cristy8b350f62009-11-15 23:12:43 +000034438 done
cristy3ed852e2009-09-05 21:47:34 +000034439IFS=$as_save_IFS
34440
34441fi
34442fi
34443RPM=$ac_cv_prog_RPM
34444if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034446$as_echo "$RPM" >&6; }
34447else
cristy8b350f62009-11-15 23:12:43 +000034448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034449$as_echo "no" >&6; }
34450fi
34451
34452
34453 test -n "$RPM" && break
34454done
34455
34456
cristy73bd4a52010-10-05 11:24:23 +000034457ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34458
34459
34460AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34461
34462
34463AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34464
34465
34466AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34467
34468
34469 if test "x$RPM" != "x" ; then
34470 RPM_DELEGATE_TRUE=
34471 RPM_DELEGATE_FALSE='#'
34472else
34473 RPM_DELEGATE_TRUE='#'
34474 RPM_DELEGATE_FALSE=
34475fi
34476
cristy3ed852e2009-09-05 21:47:34 +000034477
34478#
34479# 7ZIP support (http://p7zip.sourceforge.net/)
34480#
34481P7ZIP=''
34482for ac_prog in 7za
34483do
34484 # Extract the first word of "$ac_prog", so it can be a program name with args.
34485set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034488if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034489 $as_echo_n "(cached) " >&6
34490else
34491 if test -n "$P7ZIP"; then
34492 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34493else
34494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34495for as_dir in $PATH
34496do
34497 IFS=$as_save_IFS
34498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34501 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503 break 2
34504 fi
34505done
cristy8b350f62009-11-15 23:12:43 +000034506 done
cristy3ed852e2009-09-05 21:47:34 +000034507IFS=$as_save_IFS
34508
34509fi
34510fi
34511P7ZIP=$ac_cv_prog_P7ZIP
34512if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034514$as_echo "$P7ZIP" >&6; }
34515else
cristy8b350f62009-11-15 23:12:43 +000034516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034517$as_echo "no" >&6; }
34518fi
34519
34520
34521 test -n "$P7ZIP" && break
34522done
34523
34524
cristy73bd4a52010-10-05 11:24:23 +000034525 if test "x$P7ZIP" != "x" ; then
34526 P7ZIP_DELEGATE_TRUE=
34527 P7ZIP_DELEGATE_FALSE='#'
34528else
34529 P7ZIP_DELEGATE_TRUE='#'
34530 P7ZIP_DELEGATE_FALSE=
34531fi
34532
cristy3ed852e2009-09-05 21:47:34 +000034533
34534#
34535# ZIP support (http://www.info-zip.org/Zip.html)
34536#
34537ZIP=''
34538for ac_prog in zip
34539do
34540 # Extract the first word of "$ac_prog", so it can be a program name with args.
34541set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 if test -n "$ZIP"; then
34548 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34549else
34550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34551for as_dir in $PATH
34552do
34553 IFS=$as_save_IFS
34554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34557 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559 break 2
34560 fi
34561done
cristy8b350f62009-11-15 23:12:43 +000034562 done
cristy3ed852e2009-09-05 21:47:34 +000034563IFS=$as_save_IFS
34564
34565fi
34566fi
34567ZIP=$ac_cv_prog_ZIP
34568if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo "$ZIP" >&6; }
34571else
cristy8b350f62009-11-15 23:12:43 +000034572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034573$as_echo "no" >&6; }
34574fi
34575
34576
34577 test -n "$ZIP" && break
34578done
34579
34580
cristy73bd4a52010-10-05 11:24:23 +000034581 if test "x$ZIP" != "x" ; then
34582 ZIP_DELEGATE_TRUE=
34583 ZIP_DELEGATE_FALSE='#'
34584else
34585 ZIP_DELEGATE_TRUE='#'
34586 ZIP_DELEGATE_FALSE=
34587fi
34588
cristy3ed852e2009-09-05 21:47:34 +000034589
34590#
34591# GhostPCL related configuration.
34592#
34593PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034594PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034595PCLMonoDevice=pbmraw
34596if test -z "$PCLVersion"; then
34597 PCLVersion='unknown'
34598fi
34599if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034600 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34601$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034603$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034604 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34605$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034606 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034608$as_echo_n "checking for pcl color device... " >&6; }
34609 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34610 :
34611 else
34612 PCLColorDevice=ppmraw
34613 fi
cristy09b53e12011-10-14 12:47:22 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34615$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034616
34617 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo_n "checking for pcl CMYK device... " >&6; }
34620 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34621 :
34622 else
34623 PCLCMYKDevice=$PCLColorDevice
34624 fi
cristy09b53e12011-10-14 12:47:22 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34626$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034627
34628 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630$as_echo_n "checking for pcl mono device... " >&6; }
34631 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34632 :
34633 else
34634 PCLMonoDevice=$PCLColorDevice
34635 fi
cristy09b53e12011-10-14 12:47:22 +000034636 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34637$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034638fi
34639
34640
34641
34642
34643
34644
34645#
34646# GhostXPS related configuration.
34647#
34648XPSColorDevice=ppmraw
34649XPSCMYKDevice=bmpsep8
34650XPSMonoDevice=pbmraw
34651if test -z "$XPSVersion"; then
34652 XPSVersion='unknown'
34653fi
34654if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034655 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34656$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34660$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034661 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo_n "checking for xps color device... " >&6; }
34664 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34665 :
34666 else
34667 XPSColorDevice=ppmraw
34668 fi
cristy09b53e12011-10-14 12:47:22 +000034669 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34670$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034671
34672 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674$as_echo_n "checking for xps CMYK device... " >&6; }
34675 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34676 :
34677 else
34678 XPSCMYKDevice=$XPSColorDevice
34679 fi
cristy09b53e12011-10-14 12:47:22 +000034680 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34681$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034682
34683 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034685$as_echo_n "checking for xps mono device... " >&6; }
34686 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34687 :
34688 else
34689 XPSMonoDevice=$XPSColorDevice
34690 fi
cristy09b53e12011-10-14 12:47:22 +000034691 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34692$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034693fi
34694
34695
34696
34697
34698
34699
34700#
34701# Ghostscript related configuration.
34702#
cristya97426c2011-02-04 01:41:27 +000034703GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034704GSColorDevice=pnmraw
34705GSCMYKDevice=pam
34706GSMonoDevice=pbmraw
34707GSPDFDevice=pdfwrite
34708GSPSDevice=pswrite
34709GSEPSDevice=epswrite
34710GSVersion='unknown'
34711if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034712 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34713$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034716 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34717$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034719$as_echo_n "checking for Ghostscript version... " >&6; }
34720 if GSVersion=`$PSDelegate --version`; then
34721 :
34722 else
34723 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34724 fi
cristy09b53e12011-10-14 12:47:22 +000034725 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34726$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034727
34728 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo_n "checking for gs alpha device... " >&6; }
34731 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34732 :
34733 else
34734 GSAlphaDevice=pnmraw
34735 fi
cristy09b53e12011-10-14 12:47:22 +000034736 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34737$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034738
34739 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741$as_echo_n "checking for gs color device... " >&6; }
34742 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34743 :
34744 else
34745 GSColorDevice=pnmraw
34746 fi
cristy09b53e12011-10-14 12:47:22 +000034747 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34748$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034749
34750 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034752$as_echo_n "checking for gs CMYK device... " >&6; }
34753 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34754 :
34755 else
34756 GSCMYKDevice=bmpsep8
34757 fi
cristy09b53e12011-10-14 12:47:22 +000034758 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34759$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034760
34761 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034763$as_echo_n "checking for gs mono device... " >&6; }
34764 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34765 :
34766 else
34767 GSMonoDevice=$GSColorDevice
34768 fi
cristy09b53e12011-10-14 12:47:22 +000034769 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34770$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034771
34772 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774$as_echo_n "checking for gs PDF writing device... " >&6; }
34775 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34776 :
34777 else
34778 GSPDFDevice=nodevice
34779 fi
cristy09b53e12011-10-14 12:47:22 +000034780 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34781$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034782
34783 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034785$as_echo_n "checking for gs PS writing device... " >&6; }
34786 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34787 :
34788 else
34789 GSPSDevice=nodevice
34790 fi
cristy09b53e12011-10-14 12:47:22 +000034791 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34792$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034793
34794 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034796$as_echo_n "checking for gs EPS writing device... " >&6; }
34797 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34798 :
34799 else
34800 GSEPSDevice=nodevice
34801 fi
cristy09b53e12011-10-14 12:47:22 +000034802 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34803$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034804fi
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815#
34816# PerlMagick-related configuration
34817#
34818
34819# Look for PERL if PerlMagick requested
34820# If name/path of desired PERL interpreter is specified, look for that one first
34821have_perl='no'
34822if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034823 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34824$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034827 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34828$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034829 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034831$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034832if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034833 $as_echo_n "(cached) " >&6
34834else
34835 ac_cv_path_PERL="$with_perl"
34836fi
cristy8b350f62009-11-15 23:12:43 +000034837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034838$as_echo "$ac_cv_path_PERL" >&6; };
34839 PERL=$ac_cv_path_PERL
34840 have_perl="$ac_cv_path_PERL"
34841 else
34842 for ac_prog in perl perl5
34843do
34844 # Extract the first word of "$ac_prog", so it can be a program name with args.
34845set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034847$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034848if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034849 $as_echo_n "(cached) " >&6
34850else
34851 case $PERL in
34852 [\\/]* | ?:[\\/]*)
34853 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34854 ;;
34855 *)
34856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34857for as_dir in $PATH
34858do
34859 IFS=$as_save_IFS
34860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34863 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034865 break 2
34866 fi
34867done
cristy8b350f62009-11-15 23:12:43 +000034868 done
cristy3ed852e2009-09-05 21:47:34 +000034869IFS=$as_save_IFS
34870
34871 ;;
34872esac
34873fi
34874PERL=$ac_cv_path_PERL
34875if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034877$as_echo "$PERL" >&6; }
34878else
cristy8b350f62009-11-15 23:12:43 +000034879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034880$as_echo "no" >&6; }
34881fi
34882
34883
34884 test -n "$PERL" && break
34885done
34886 if test "$ac_cv_path_PERL"; then
34887 have_perl="$ac_cv_path_PERL"
34888 fi
34889 fi
34890fi
34891
cristy949301e2010-01-06 01:38:40 +000034892if test "$with_perl" != 'yes' ; then
34893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34894fi
34895
34896PERL_SUPPORTS_DESTDIR='no'
34897
cristy3ed852e2009-09-05 21:47:34 +000034898with_perl_static='no'
34899with_perl_dynamic='no'
34900if test "$have_perl" != 'no'; then
34901 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34902 with_perl_static='yes'
34903 fi
34904 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34905 with_perl_dynamic='yes'
34906 fi
34907 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034908
34909
34910
34911
34912 if test -n "$PERL"; then :
34913
34914 ax_perl_version="5.8.1"
34915
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34917$as_echo_n "checking for perl version... " >&6; }
34918
34919 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34920
34921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34922$as_echo "$perl_version" >&6; }
34923
34924 PERL_VERSION=$perl_version
34925
34926
34927
34928
34929
34930 # Used to indicate true or false condition
34931 ax_compare_version=false
34932
34933 # Convert the two version strings to be compared into a format that
34934 # allows a simple string comparison. The end result is that a version
34935 # string of the form 1.12.5-r617 will be converted to the form
34936 # 0001001200050617. In other words, each number is zero padded to four
34937 # digits, and non digits are removed.
34938
34939 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34940 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34941 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34942 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34943 -e 's/[^0-9]//g'`
34944
34945
34946 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34947 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34948 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34949 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34950 -e 's/[^0-9]//g'`
34951
34952
34953 ax_compare_version=`echo "x$ax_compare_version_A
34954x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34955
34956
34957
34958 if test "$ax_compare_version" = "true" ; then
34959
34960 :
34961 PERL_SUPPORTS_DESTDIR='yes'
34962
34963 else
34964 :
34965 PERL_SUPPORTS_DESTDIR='no'
34966
34967 fi
34968
34969
34970else
34971
34972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34973$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34974 PERL_SUPPORTS_DESTDIR='no'
34975
cristy3ed852e2009-09-05 21:47:34 +000034976fi
cristy73bd4a52010-10-05 11:24:23 +000034977
34978fi
34979 if test "$have_perl" != 'no'; then
34980 WITH_PERL_TRUE=
34981 WITH_PERL_FALSE='#'
34982else
34983 WITH_PERL_TRUE='#'
34984 WITH_PERL_FALSE=
34985fi
34986
34987 if test $with_perl_static = 'yes'; then
34988 WITH_PERL_STATIC_TRUE=
34989 WITH_PERL_STATIC_FALSE='#'
34990else
34991 WITH_PERL_STATIC_TRUE='#'
34992 WITH_PERL_STATIC_FALSE=
34993fi
34994
34995 if test $with_perl_dynamic = 'yes'; then
34996 WITH_PERL_DYNAMIC_TRUE=
34997 WITH_PERL_DYNAMIC_FALSE='#'
34998else
34999 WITH_PERL_DYNAMIC_TRUE='#'
35000 WITH_PERL_DYNAMIC_FALSE=
35001fi
35002
cristy3ed852e2009-09-05 21:47:34 +000035003
35004
35005# Determine path to pick up MagickCore library from for use with building PerlMagick
35006MAGICKCORE_PATH="${LIB_DIR}"
35007if test $with_perl_static = 'yes'; then
35008 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35009 libtool_objdir=$objdir
35010
35011 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035012 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035013fi
35014
35015
35016# Create a simple string containing format names for all delegate libraries
35017DELEGATES=''
35018if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35019if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35020if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35021if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35022if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35023if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35024if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35025if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35026if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35027if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35028if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35029if test "$have_jpeg" = 'yes'; then
35030 DELEGATES="$DELEGATES jpeg";
35031 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35032fi
35033if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035034if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035035if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35036if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035037if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035038if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35039if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35040if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35041if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35042if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35043if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35044if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35045if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35046if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35047
35048
35049
35050#
35051# Handle special compiler flags
35052#
35053
35054# Add '-p' if prof source profiling support enabled
35055if test "$enable_prof" = 'yes'; then
35056 CFLAGS="-p $CFLAGS"
35057 CXXFLAGS="-p $CXXFLAGS"
35058 LDFLAGS="-p $LDFLAGS"
35059fi
35060
35061# Add '-pg' if gprof source profiling support enabled
35062if test "$enable_gprof" = 'yes'; then
35063 CFLAGS="-pg $CFLAGS"
35064 CXXFLAGS="-pg $CXXFLAGS"
35065 LDFLAGS="-pg $LDFLAGS"
35066fi
35067
35068# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35069# This is a gcc-specific feature
35070if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035072$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035073if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035074 $as_echo_n "(cached) " >&6
35075else
35076 ac_check_lib_save_LIBS=$LIBS
35077LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035079/* end confdefs.h. */
35080
35081/* Override any GCC internal prototype to avoid an error.
35082 Use char because int might match the return type of a GCC
35083 builtin and then its argument prototype would still apply. */
35084#ifdef __cplusplus
35085extern "C"
35086#endif
35087char _gcov_init ();
35088int
35089main ()
35090{
35091return _gcov_init ();
35092 ;
35093 return 0;
35094}
35095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035097 ac_cv_lib_gcov__gcov_init=yes
35098else
cristy8b350f62009-11-15 23:12:43 +000035099 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035100fi
cristy8b350f62009-11-15 23:12:43 +000035101rm -f core conftest.err conftest.$ac_objext \
35102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035103LIBS=$ac_check_lib_save_LIBS
35104fi
cristy8b350f62009-11-15 23:12:43 +000035105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035106$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035107if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035108 cat >>confdefs.h <<_ACEOF
35109#define HAVE_LIBGCOV 1
35110_ACEOF
35111
35112 LIBS="-lgcov $LIBS"
35113
35114fi
35115
cristy8b350f62009-11-15 23:12:43 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035117$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035118if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035119 $as_echo_n "(cached) " >&6
35120else
35121 ac_check_lib_save_LIBS=$LIBS
35122LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035124/* end confdefs.h. */
35125
35126/* Override any GCC internal prototype to avoid an error.
35127 Use char because int might match the return type of a GCC
35128 builtin and then its argument prototype would still apply. */
35129#ifdef __cplusplus
35130extern "C"
35131#endif
35132char __gcov_init ();
35133int
35134main ()
35135{
35136return __gcov_init ();
35137 ;
35138 return 0;
35139}
35140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035142 ac_cv_lib_gcov___gcov_init=yes
35143else
cristy8b350f62009-11-15 23:12:43 +000035144 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035145fi
cristy8b350f62009-11-15 23:12:43 +000035146rm -f core conftest.err conftest.$ac_objext \
35147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035148LIBS=$ac_check_lib_save_LIBS
35149fi
cristy8b350f62009-11-15 23:12:43 +000035150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035151$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035152if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035153 cat >>confdefs.h <<_ACEOF
35154#define HAVE_LIBGCOV 1
35155_ACEOF
35156
35157 LIBS="-lgcov $LIBS"
35158
35159fi
35160
35161 case "$target_os" in
35162 darwin*)
35163 OSX_GCOV_LDFLAG="-Wl,-single_module"
35164 ;;
35165 *)
35166 OSX_GCOV_LDFLAG=""
35167 ;;
35168 esac
35169
35170 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35171 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35172 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35173fi
35174
35175#
35176# Build library dependency list for libMagickCore
35177#
35178
35179MAGICK_LIBLTDL='' # Libltdl for build
35180MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35181MAGICK_LTDLDEPS='' # extra libltdl dependencies
35182if test "$with_ltdl" != 'no'
35183then
35184 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35185 MAGICK_API_LIBLTDL='-lltdl'
35186 fi
35187 MAGICK_LIBLTDL=${LIBLTDL}
35188 MAGICK_LTDLDEPS=${LTDLDEPS}
35189fi
35190
35191
35192
35193if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035194 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 +000035195else
cristy41cbe8a2011-10-27 01:35:18 +000035196 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 +000035197fi
35198
35199
35200#
35201# Remove extraneous spaces from output variables (asthetic)
35202#
35203X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35204X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35205X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35206X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35207
35208CC=`echo $CC | sed -e 's/ */ /g'`
35209CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35210CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35211CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35212DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35213DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35214LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35215TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35216MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35217#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35218
35219# Pass only user-provided LIBS as "global" libraries
35220LIBS=$USER_LIBS
35221
35222#AC_SUBST(CPPFLAGS)
35223
35224#AC_SUBST(LDFLAGS)
35225#AC_SUBST(X_PRE_LIBS)
35226#AC_SUBST(X_LIBS)
35227#AC_SUBST(X_EXTRA_LIBS)
35228
35229MAGICK_CFLAGS=$CFLAGS
35230MAGICK_CXXFLAGS="$CXXFLAGS"
35231MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35232MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35233MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35234MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35235
35236
35237
35238
35239
35240
35241
35242
cristyfd9dcd42010-08-08 18:07:02 +000035243
cristy3ed852e2009-09-05 21:47:34 +000035244# Set configured scripts to executable.
35245ac_config_commands="$ac_config_commands default"
35246
35247ac_config_commands="$ac_config_commands MagickCore-config.in"
35248
cristy3ed852e2009-09-05 21:47:34 +000035249ac_config_commands="$ac_config_commands MagickWand-config.in"
35250
cristy3ed852e2009-09-05 21:47:34 +000035251ac_config_commands="$ac_config_commands Magick++-config.in"
35252
35253ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35254
35255
cristy09b53e12011-10-14 12:47:22 +000035256{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35257$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35258{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35259$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035260cat >confcache <<\_ACEOF
35261# This file is a shell script that caches the results of configure
35262# tests run on this system so they can be shared between configure
35263# scripts and configure runs, see configure's option --config-cache.
35264# It is not useful on other systems. If it contains results you don't
35265# want to keep, you may remove or edit it.
35266#
35267# config.status only pays attention to the cache file if you give it
35268# the --recheck option to rerun configure.
35269#
35270# `ac_cv_env_foo' variables (set or unset) will be overridden when
35271# loading this file, other *unset* `ac_cv_foo' will be assigned the
35272# following values.
35273
35274_ACEOF
35275
35276# The following way of writing the cache mishandles newlines in values,
35277# but we know of no workaround that is simple, portable, and efficient.
35278# So, we kill variables containing newlines.
35279# Ultrix sh set writes to stderr and can't be redirected directly,
35280# and sets the high bit in the cache file unless we assign to the vars.
35281(
35282 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35283 eval ac_val=\$$ac_var
35284 case $ac_val in #(
35285 *${as_nl}*)
35286 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35289 esac
35290 case $ac_var in #(
35291 _ | IFS | as_nl) ;; #(
35292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035293 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035294 esac ;;
35295 esac
35296 done
35297
35298 (set) 2>&1 |
35299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35300 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035301 # `set' does not quote correctly, so add quotes: double-quote
35302 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035303 sed -n \
35304 "s/'/'\\\\''/g;
35305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35306 ;; #(
35307 *)
35308 # `set' quotes correctly as required by POSIX, so do not add quotes.
35309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35310 ;;
35311 esac |
35312 sort
35313) |
35314 sed '
35315 /^ac_cv_env_/b end
35316 t clear
35317 :clear
35318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35319 t end
35320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35321 :end' >>confcache
35322if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35323 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035324 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035327 if test ! -f "$cache_file" || test -h "$cache_file"; then
35328 cat confcache >"$cache_file"
35329 else
35330 case $cache_file in #(
35331 */* | ?:*)
35332 mv -f confcache "$cache_file"$$ &&
35333 mv -f "$cache_file"$$ "$cache_file" ;; #(
35334 *)
35335 mv -f confcache "$cache_file" ;;
35336 esac
35337 fi
35338 fi
cristy3ed852e2009-09-05 21:47:34 +000035339 else
cristy8b350f62009-11-15 23:12:43 +000035340 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035341$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35342 fi
35343fi
35344rm -f confcache
35345
35346test "x$prefix" = xNONE && prefix=$ac_default_prefix
35347# Let make expand exec_prefix.
35348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35349
35350DEFS=-DHAVE_CONFIG_H
35351
35352ac_libobjs=
35353ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035354U=
cristy3ed852e2009-09-05 21:47:34 +000035355for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35356 # 1. Remove the extension, and $U if already installed.
35357 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35358 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35359 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35360 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035361 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35362 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035363done
35364LIBOBJS=$ac_libobjs
35365
35366LTLIBOBJS=$ac_ltlibobjs
35367
35368
cristy73bd4a52010-10-05 11:24:23 +000035369 if test -n "$EXEEXT"; then
35370 am__EXEEXT_TRUE=
35371 am__EXEEXT_FALSE='#'
35372else
35373 am__EXEEXT_TRUE='#'
35374 am__EXEEXT_FALSE=
35375fi
cristy3ed852e2009-09-05 21:47:34 +000035376
cristy73bd4a52010-10-05 11:24:23 +000035377if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035378 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035379Usually this means the macro was only invoked conditionally." "$LINENO" 5
35380fi
35381if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035382 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035383Usually this means the macro was only invoked conditionally." "$LINENO" 5
35384fi
35385if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035386 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035387Usually this means the macro was only invoked conditionally." "$LINENO" 5
35388fi
35389if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035390 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035391Usually this means the macro was only invoked conditionally." "$LINENO" 5
35392fi
35393if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035394 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035395Usually this means the macro was only invoked conditionally." "$LINENO" 5
35396fi
35397if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035398 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035399Usually this means the macro was only invoked conditionally." "$LINENO" 5
35400fi
35401if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035402 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035403Usually this means the macro was only invoked conditionally." "$LINENO" 5
35404fi
35405if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035406 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035407Usually this means the macro was only invoked conditionally." "$LINENO" 5
35408fi
cristy73bd4a52010-10-05 11:24:23 +000035409if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035410 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035411Usually this means the macro was only invoked conditionally." "$LINENO" 5
35412fi
35413if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035414 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035415Usually this means the macro was only invoked conditionally." "$LINENO" 5
35416fi
35417LT_CONFIG_H=config/config.h
35418
35419 _ltdl_libobjs=
35420 _ltdl_ltlibobjs=
35421 if test -n "$_LT_LIBOBJS"; then
35422 # Remove the extension.
35423 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35424 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35425 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35426 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35427 done
35428 fi
35429 ltdl_LIBOBJS=$_ltdl_libobjs
35430
35431 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35432
35433
35434if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035435 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035436Usually this means the macro was only invoked conditionally." "$LINENO" 5
35437fi
35438if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035439 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035440Usually this means the macro was only invoked conditionally." "$LINENO" 5
35441fi
35442if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035443 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035444Usually this means the macro was only invoked conditionally." "$LINENO" 5
35445fi
35446if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035447 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035448Usually this means the macro was only invoked conditionally." "$LINENO" 5
35449fi
35450
35451if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035452 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035453Usually this means the macro was only invoked conditionally." "$LINENO" 5
35454fi
35455if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035456 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035457Usually this means the macro was only invoked conditionally." "$LINENO" 5
35458fi
35459if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035460 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035461Usually this means the macro was only invoked conditionally." "$LINENO" 5
35462fi
35463if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035464 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035465Usually this means the macro was only invoked conditionally." "$LINENO" 5
35466fi
35467if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035468 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035469Usually this means the macro was only invoked conditionally." "$LINENO" 5
35470fi
35471if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035472 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035473Usually this means the macro was only invoked conditionally." "$LINENO" 5
35474fi
35475if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035476 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035477Usually this means the macro was only invoked conditionally." "$LINENO" 5
35478fi
35479if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035480 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035481Usually this means the macro was only invoked conditionally." "$LINENO" 5
35482fi
35483if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035484 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035485Usually this means the macro was only invoked conditionally." "$LINENO" 5
35486fi
35487if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035488 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035489Usually this means the macro was only invoked conditionally." "$LINENO" 5
35490fi
35491if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035492 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035493Usually this means the macro was only invoked conditionally." "$LINENO" 5
35494fi
35495if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035496 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035497Usually this means the macro was only invoked conditionally." "$LINENO" 5
35498fi
35499if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035500 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035501Usually this means the macro was only invoked conditionally." "$LINENO" 5
35502fi
35503if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035504 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035505Usually this means the macro was only invoked conditionally." "$LINENO" 5
35506fi
35507if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035508 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035509Usually this means the macro was only invoked conditionally." "$LINENO" 5
35510fi
35511if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035512 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035513Usually this means the macro was only invoked conditionally." "$LINENO" 5
35514fi
35515if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035516 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035517Usually this means the macro was only invoked conditionally." "$LINENO" 5
35518fi
35519if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035520 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035521Usually this means the macro was only invoked conditionally." "$LINENO" 5
35522fi
35523if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035524 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035525Usually this means the macro was only invoked conditionally." "$LINENO" 5
35526fi
35527if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035528 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035529Usually this means the macro was only invoked conditionally." "$LINENO" 5
35530fi
cristyfbb0ef02010-12-19 02:32:11 +000035531if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35532 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35533Usually this means the macro was only invoked conditionally." "$LINENO" 5
35534fi
cristy73bd4a52010-10-05 11:24:23 +000035535if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035536 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035537Usually this means the macro was only invoked conditionally." "$LINENO" 5
35538fi
cristy41cbe8a2011-10-27 01:35:18 +000035539if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35540 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35541Usually this means the macro was only invoked conditionally." "$LINENO" 5
35542fi
35543if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35544 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35545Usually this means the macro was only invoked conditionally." "$LINENO" 5
35546fi
cristy73bd4a52010-10-05 11:24:23 +000035547if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035548 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035549Usually this means the macro was only invoked conditionally." "$LINENO" 5
35550fi
35551if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035552 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035553Usually this means the macro was only invoked conditionally." "$LINENO" 5
35554fi
35555if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035556 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035557Usually this means the macro was only invoked conditionally." "$LINENO" 5
35558fi
35559if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035560 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035561Usually this means the macro was only invoked conditionally." "$LINENO" 5
35562fi
cristyb1860752011-03-14 00:27:46 +000035563if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35564 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35565Usually this means the macro was only invoked conditionally." "$LINENO" 5
35566fi
cristy73bd4a52010-10-05 11:24:23 +000035567if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035568 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035569Usually this means the macro was only invoked conditionally." "$LINENO" 5
35570fi
35571if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035572 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035573Usually this means the macro was only invoked conditionally." "$LINENO" 5
35574fi
35575if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035576 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035577Usually this means the macro was only invoked conditionally." "$LINENO" 5
35578fi
35579if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035580 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035581Usually this means the macro was only invoked conditionally." "$LINENO" 5
35582fi
35583if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035584 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035585Usually this means the macro was only invoked conditionally." "$LINENO" 5
35586fi
35587if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035588 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035589Usually this means the macro was only invoked conditionally." "$LINENO" 5
35590fi
35591if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035592 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035593Usually this means the macro was only invoked conditionally." "$LINENO" 5
35594fi
35595if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035596 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035597Usually this means the macro was only invoked conditionally." "$LINENO" 5
35598fi
cristy3ed852e2009-09-05 21:47:34 +000035599
cristyda16f162011-02-19 23:52:17 +000035600: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035601ac_write_fail=0
35602ac_clean_files_save=$ac_clean_files
35603ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035604{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035605$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035606as_write_fail=0
35607cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035608#! $SHELL
35609# Generated by $as_me.
35610# Run this file to recreate the current configuration.
35611# Compiler output produced by configure, useful for debugging
35612# configure, is in config.log if it exists.
35613
35614debug=false
35615ac_cs_recheck=false
35616ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035617
cristy8b350f62009-11-15 23:12:43 +000035618SHELL=\${CONFIG_SHELL-$SHELL}
35619export SHELL
35620_ASEOF
35621cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35622## -------------------- ##
35623## M4sh Initialization. ##
35624## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035625
35626# Be more Bourne compatible
35627DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035628if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035629 emulate sh
35630 NULLCMD=:
35631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35632 # is contrary to our usage. Disable this feature.
35633 alias -g '${1+"$@"}'='"$@"'
35634 setopt NO_GLOB_SUBST
35635else
cristy8b350f62009-11-15 23:12:43 +000035636 case `(set -o) 2>/dev/null` in #(
35637 *posix*) :
35638 set -o posix ;; #(
35639 *) :
35640 ;;
cristy3ed852e2009-09-05 21:47:34 +000035641esac
cristy3ed852e2009-09-05 21:47:34 +000035642fi
35643
35644
cristy3ed852e2009-09-05 21:47:34 +000035645as_nl='
35646'
35647export as_nl
35648# Printing a long string crashes Solaris 7 /usr/bin/printf.
35649as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35650as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035652# Prefer a ksh shell builtin over an external printf program on Solaris,
35653# but without wasting forks for bash or zsh.
35654if test -z "$BASH_VERSION$ZSH_VERSION" \
35655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35656 as_echo='print -r --'
35657 as_echo_n='print -rn --'
35658elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035659 as_echo='printf %s\n'
35660 as_echo_n='printf %s'
35661else
35662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35664 as_echo_n='/usr/ucb/echo -n'
35665 else
35666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35667 as_echo_n_body='eval
35668 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035669 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035670 *"$as_nl"*)
35671 expr "X$arg" : "X\\(.*\\)$as_nl";
35672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35673 esac;
35674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35675 '
35676 export as_echo_n_body
35677 as_echo_n='sh -c $as_echo_n_body as_echo'
35678 fi
35679 export as_echo_body
35680 as_echo='sh -c $as_echo_body as_echo'
35681fi
35682
35683# The user is always right.
35684if test "${PATH_SEPARATOR+set}" != set; then
35685 PATH_SEPARATOR=:
35686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35688 PATH_SEPARATOR=';'
35689 }
35690fi
35691
cristy3ed852e2009-09-05 21:47:34 +000035692
35693# IFS
35694# We need space, tab and new line, in precisely that order. Quoting is
35695# there to prevent editors from complaining about space-tab.
35696# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35697# splitting by setting IFS to empty value.)
35698IFS=" "" $as_nl"
35699
35700# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035701as_myself=
cristy8b350f62009-11-15 23:12:43 +000035702case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035703 *[\\/]* ) as_myself=$0 ;;
35704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35705for as_dir in $PATH
35706do
35707 IFS=$as_save_IFS
35708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35710 done
cristy3ed852e2009-09-05 21:47:34 +000035711IFS=$as_save_IFS
35712
35713 ;;
35714esac
35715# We did not find ourselves, most probably we were run as `sh COMMAND'
35716# in which case we are not to be found in the path.
35717if test "x$as_myself" = x; then
35718 as_myself=$0
35719fi
35720if test ! -f "$as_myself"; then
35721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035722 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035723fi
35724
cristy8b350f62009-11-15 23:12:43 +000035725# Unset variables that we do not need and which cause bugs (e.g. in
35726# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35727# suppresses any "Segmentation fault" message there. '((' could
35728# trigger a bug in pdksh 5.2.14.
35729for as_var in BASH_ENV ENV MAIL MAILPATH
35730do eval test x\${$as_var+set} = xset \
35731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035732done
35733PS1='$ '
35734PS2='> '
35735PS4='+ '
35736
35737# NLS nuisances.
35738LC_ALL=C
35739export LC_ALL
35740LANGUAGE=C
35741export LANGUAGE
35742
cristy8b350f62009-11-15 23:12:43 +000035743# CDPATH.
35744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35745
35746
cristy98dddb52010-11-04 00:30:15 +000035747# as_fn_error STATUS ERROR [LINENO LOG_FD]
35748# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035749# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35750# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035751# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035752as_fn_error ()
35753{
cristy98dddb52010-11-04 00:30:15 +000035754 as_status=$1; test $as_status -eq 0 && as_status=1
35755 if test "$4"; then
35756 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035758 fi
cristy98dddb52010-11-04 00:30:15 +000035759 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035760 as_fn_exit $as_status
35761} # as_fn_error
35762
35763
35764# as_fn_set_status STATUS
35765# -----------------------
35766# Set $? to STATUS, without forking.
35767as_fn_set_status ()
35768{
35769 return $1
35770} # as_fn_set_status
35771
35772# as_fn_exit STATUS
35773# -----------------
35774# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35775as_fn_exit ()
35776{
35777 set +e
35778 as_fn_set_status $1
35779 exit $1
35780} # as_fn_exit
35781
35782# as_fn_unset VAR
35783# ---------------
35784# Portably unset VAR.
35785as_fn_unset ()
35786{
35787 { eval $1=; unset $1;}
35788}
35789as_unset=as_fn_unset
35790# as_fn_append VAR VALUE
35791# ----------------------
35792# Append the text in VALUE to the end of the definition contained in VAR. Take
35793# advantage of any shell optimizations that allow amortized linear growth over
35794# repeated appends, instead of the typical quadratic growth present in naive
35795# implementations.
35796if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35797 eval 'as_fn_append ()
35798 {
35799 eval $1+=\$2
35800 }'
35801else
35802 as_fn_append ()
35803 {
35804 eval $1=\$$1\$2
35805 }
35806fi # as_fn_append
35807
35808# as_fn_arith ARG...
35809# ------------------
35810# Perform arithmetic evaluation on the ARGs, and store the result in the
35811# global $as_val. Take advantage of shells that can avoid forks. The arguments
35812# must be portable across $(()) and expr.
35813if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35814 eval 'as_fn_arith ()
35815 {
35816 as_val=$(( $* ))
35817 }'
35818else
35819 as_fn_arith ()
35820 {
35821 as_val=`expr "$@" || test $? -eq 1`
35822 }
35823fi # as_fn_arith
35824
35825
cristy3ed852e2009-09-05 21:47:34 +000035826if expr a : '\(a\)' >/dev/null 2>&1 &&
35827 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35828 as_expr=expr
35829else
35830 as_expr=false
35831fi
35832
35833if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35834 as_basename=basename
35835else
35836 as_basename=false
35837fi
35838
cristy8b350f62009-11-15 23:12:43 +000035839if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35840 as_dirname=dirname
35841else
35842 as_dirname=false
35843fi
cristy3ed852e2009-09-05 21:47:34 +000035844
cristy3ed852e2009-09-05 21:47:34 +000035845as_me=`$as_basename -- "$0" ||
35846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35847 X"$0" : 'X\(//\)$' \| \
35848 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35849$as_echo X/"$0" |
35850 sed '/^.*\/\([^/][^/]*\)\/*$/{
35851 s//\1/
35852 q
35853 }
35854 /^X\/\(\/\/\)$/{
35855 s//\1/
35856 q
35857 }
35858 /^X\/\(\/\).*/{
35859 s//\1/
35860 q
35861 }
35862 s/.*/./; q'`
35863
cristy8b350f62009-11-15 23:12:43 +000035864# Avoid depending upon Character Ranges.
35865as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35866as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35867as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35868as_cr_digits='0123456789'
35869as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035870
35871ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035872case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035873-n*)
cristy8b350f62009-11-15 23:12:43 +000035874 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035875 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035876 xy) ECHO_C='\c';;
35877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35878 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035879 esac;;
35880*)
35881 ECHO_N='-n';;
35882esac
cristy3ed852e2009-09-05 21:47:34 +000035883
35884rm -f conf$$ conf$$.exe conf$$.file
35885if test -d conf$$.dir; then
35886 rm -f conf$$.dir/conf$$.file
35887else
35888 rm -f conf$$.dir
35889 mkdir conf$$.dir 2>/dev/null
35890fi
35891if (echo >conf$$.file) 2>/dev/null; then
35892 if ln -s conf$$.file conf$$ 2>/dev/null; then
35893 as_ln_s='ln -s'
35894 # ... but there are two gotchas:
35895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35897 # In both cases, we have to default to `cp -p'.
35898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35899 as_ln_s='cp -p'
35900 elif ln conf$$.file conf$$ 2>/dev/null; then
35901 as_ln_s=ln
35902 else
35903 as_ln_s='cp -p'
35904 fi
35905else
35906 as_ln_s='cp -p'
35907fi
35908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35909rmdir conf$$.dir 2>/dev/null
35910
cristy8b350f62009-11-15 23:12:43 +000035911
35912# as_fn_mkdir_p
35913# -------------
35914# Create "$as_dir" as a directory, including parents if necessary.
35915as_fn_mkdir_p ()
35916{
35917
35918 case $as_dir in #(
35919 -*) as_dir=./$as_dir;;
35920 esac
35921 test -d "$as_dir" || eval $as_mkdir_p || {
35922 as_dirs=
35923 while :; do
35924 case $as_dir in #(
35925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35926 *) as_qdir=$as_dir;;
35927 esac
35928 as_dirs="'$as_qdir' $as_dirs"
35929 as_dir=`$as_dirname -- "$as_dir" ||
35930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35931 X"$as_dir" : 'X\(//\)[^/]' \| \
35932 X"$as_dir" : 'X\(//\)$' \| \
35933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35934$as_echo X"$as_dir" |
35935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35936 s//\1/
35937 q
35938 }
35939 /^X\(\/\/\)[^/].*/{
35940 s//\1/
35941 q
35942 }
35943 /^X\(\/\/\)$/{
35944 s//\1/
35945 q
35946 }
35947 /^X\(\/\).*/{
35948 s//\1/
35949 q
35950 }
35951 s/.*/./; q'`
35952 test -d "$as_dir" && break
35953 done
35954 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035955 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035956
35957
35958} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035959if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035960 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035961else
35962 test -d ./-p && rmdir ./-p
35963 as_mkdir_p=false
35964fi
35965
35966if test -x / >/dev/null 2>&1; then
35967 as_test_x='test -x'
35968else
35969 if ls -dL / >/dev/null 2>&1; then
35970 as_ls_L_option=L
35971 else
35972 as_ls_L_option=
35973 fi
35974 as_test_x='
35975 eval sh -c '\''
35976 if test -d "$1"; then
35977 test -d "$1/.";
35978 else
cristy8b350f62009-11-15 23:12:43 +000035979 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035980 -*)set "./$1";;
35981 esac;
cristy8b350f62009-11-15 23:12:43 +000035982 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035983 ???[sx]*):;;*)false;;esac;fi
35984 '\'' sh
35985 '
35986fi
35987as_executable_p=$as_test_x
35988
35989# Sed expression to map a string onto a valid CPP name.
35990as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35991
35992# Sed expression to map a string onto a valid variable name.
35993as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35994
35995
35996exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035997## ----------------------------------- ##
35998## Main body of $CONFIG_STATUS script. ##
35999## ----------------------------------- ##
36000_ASEOF
36001test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036002
cristy8b350f62009-11-15 23:12:43 +000036003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36004# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036005# report actual input values of CONFIG_FILES etc. instead of their
36006# values after options handling.
36007ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036008This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036009generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036010
36011 CONFIG_FILES = $CONFIG_FILES
36012 CONFIG_HEADERS = $CONFIG_HEADERS
36013 CONFIG_LINKS = $CONFIG_LINKS
36014 CONFIG_COMMANDS = $CONFIG_COMMANDS
36015 $ $0 $@
36016
36017on `(hostname || uname -n) 2>/dev/null | sed 1q`
36018"
36019
36020_ACEOF
36021
36022case $ac_config_files in *"
36023"*) set x $ac_config_files; shift; ac_config_files=$*;;
36024esac
36025
36026case $ac_config_headers in *"
36027"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36028esac
36029
36030
36031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36032# Files that config.status was made for.
36033config_files="$ac_config_files"
36034config_headers="$ac_config_headers"
36035config_commands="$ac_config_commands"
36036
36037_ACEOF
36038
36039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36040ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036041\`$as_me' instantiates files and other configuration actions
36042from templates according to the current configuration. Unless the files
36043and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036044
cristy8b350f62009-11-15 23:12:43 +000036045Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036046
36047 -h, --help print this help, then exit
36048 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036049 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036050 -q, --quiet, --silent
36051 do not print progress messages
36052 -d, --debug don't remove temporary files
36053 --recheck update $as_me by reconfiguring in the same conditions
36054 --file=FILE[:TEMPLATE]
36055 instantiate the configuration file FILE
36056 --header=FILE[:TEMPLATE]
36057 instantiate the configuration header FILE
36058
36059Configuration files:
36060$config_files
36061
36062Configuration headers:
36063$config_headers
36064
36065Configuration commands:
36066$config_commands
36067
cristy8b350f62009-11-15 23:12:43 +000036068Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036069
36070_ACEOF
36071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036072ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036073ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036074ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036075configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036076 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036077
cristy98dddb52010-11-04 00:30:15 +000036078Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036079This config.status script is free software; the Free Software Foundation
36080gives unlimited permission to copy, distribute and modify it."
36081
36082ac_pwd='$ac_pwd'
36083srcdir='$srcdir'
36084INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036085MKDIR_P='$MKDIR_P'
36086AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036087test -n "\$AWK" || AWK=awk
36088_ACEOF
36089
36090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36091# The default lists apply if the user does not specify any file.
36092ac_need_defaults=:
36093while test $# != 0
36094do
36095 case $1 in
cristyda16f162011-02-19 23:52:17 +000036096 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36099 ac_shift=:
36100 ;;
cristyda16f162011-02-19 23:52:17 +000036101 --*=)
36102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36103 ac_optarg=
36104 ac_shift=:
36105 ;;
cristy3ed852e2009-09-05 21:47:34 +000036106 *)
36107 ac_option=$1
36108 ac_optarg=$2
36109 ac_shift=shift
36110 ;;
36111 esac
36112
36113 case $ac_option in
36114 # Handling of the options.
36115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36116 ac_cs_recheck=: ;;
36117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36118 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036119 --config | --confi | --conf | --con | --co | --c )
36120 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036121 --debug | --debu | --deb | --de | --d | -d )
36122 debug=: ;;
36123 --file | --fil | --fi | --f )
36124 $ac_shift
36125 case $ac_optarg in
36126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036127 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036128 esac
cristy8b350f62009-11-15 23:12:43 +000036129 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036130 ac_need_defaults=false;;
36131 --header | --heade | --head | --hea )
36132 $ac_shift
36133 case $ac_optarg in
36134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36135 esac
cristy8b350f62009-11-15 23:12:43 +000036136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036137 ac_need_defaults=false;;
36138 --he | --h)
36139 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036140 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036141Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036142 --help | --hel | -h )
36143 $as_echo "$ac_cs_usage"; exit ;;
36144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36146 ac_cs_silent=: ;;
36147
36148 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036149 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036150Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036151
cristy8b350f62009-11-15 23:12:43 +000036152 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036153 ac_need_defaults=false ;;
36154
36155 esac
36156 shift
36157done
36158
36159ac_configure_extra_args=
36160
36161if $ac_cs_silent; then
36162 exec 6>/dev/null
36163 ac_configure_extra_args="$ac_configure_extra_args --silent"
36164fi
36165
36166_ACEOF
36167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36168if \$ac_cs_recheck; then
36169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36170 shift
36171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36172 CONFIG_SHELL='$SHELL'
36173 export CONFIG_SHELL
36174 exec "\$@"
36175fi
36176
36177_ACEOF
36178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36179exec 5>>config.log
36180{
36181 echo
36182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36183## Running $as_me. ##
36184_ASBOX
36185 $as_echo "$ac_log"
36186} >&5
36187
36188_ACEOF
36189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036190#
36191# INIT-COMMANDS
36192#
36193PACKAGE="$PACKAGE"
36194AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36195
36196
36197# The HP-UX ksh and POSIX shell print the target directory to stdout
36198# if CDPATH is set.
36199(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36200
36201sed_quote_subst='$sed_quote_subst'
36202double_quote_subst='$double_quote_subst'
36203delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036204SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36205Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36206GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36207EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36208FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36209SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36210ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36211LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36212macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36213macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36214AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36215DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36216OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36217enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36218enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36219pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36220enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036221PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036222host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36223host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36224host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36225build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36226build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36227build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36228NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36229LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36230max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36231ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36232exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36233lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36234lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36235lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036236lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36237lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036238reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36239reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36240deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36241file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036242file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36243want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36244sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036245AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36246AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036247archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036248STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36249RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36250old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36251old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36252old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36253lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36254CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36255CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36256compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36257GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36258lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36259lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36260lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36261lt_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 +000036262nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36263lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036264objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36265MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36266lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036267lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036268lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036269lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36270lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36271need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036272MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036273DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36274NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36275LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36276OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36277OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36278libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36279shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36280extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36281archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36282enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36283export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36284whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36285compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36286old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36287old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36288archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36289archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36290module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36291module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36292with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36293allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36294no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36295hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036296hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36297hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36298hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36299hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36300hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36301hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36302inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36303link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036304always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36305export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36306exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36307include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36308prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036309postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036310file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36311variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36312need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36313need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36314version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36315runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36316shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36317shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36318libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36319library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36320soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36321install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36322postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36323postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36324finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36325finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36326hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36327sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36328sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36329hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36330enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36331enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36332enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36333old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36334striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36335compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36336predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36337postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36338predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36339postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36340compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36341LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36342reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36343reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36344old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36345compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36346GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36347lt_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 +000036348lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036349lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036350lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36351lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36352archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36353enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36354export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36355whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36356compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36357old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36358old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36359archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36360archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36361module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36362module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36363with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36364allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36365no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36366hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036367hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36368hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36369hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36370hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36371hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36372hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36373inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36374link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036375always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36376export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36377exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36378include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36379prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036380postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036381file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36382hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36383compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36384predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36385postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36386predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36387postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36388compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036389
36390LTCC='$LTCC'
36391LTCFLAGS='$LTCFLAGS'
36392compiler='$compiler_DEFAULT'
36393
cristy0c60a692010-11-04 01:09:47 +000036394# A function that is used when there is no print builtin or printf.
36395func_fallback_echo ()
36396{
36397 eval 'cat <<_LTECHO_EOF
36398\$1
36399_LTECHO_EOF'
36400}
36401
cristy73bd4a52010-10-05 11:24:23 +000036402# Quote evaled strings.
36403for var in SED \
36404GREP \
36405EGREP \
36406FGREP \
cristy0c60a692010-11-04 01:09:47 +000036407SHELL \
36408ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036409LD \
cristy0c60a692010-11-04 01:09:47 +000036410AS \
36411DLLTOOL \
36412OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036413PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036414NM \
36415LN_S \
36416lt_SP2NL \
36417lt_NL2SP \
36418reload_flag \
36419deplibs_check_method \
36420file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036421file_magic_glob \
36422want_nocaseglob \
36423sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036424AR \
36425AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036426archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036427STRIP \
36428RANLIB \
36429CC \
36430CFLAGS \
36431compiler \
36432lt_cv_sys_global_symbol_pipe \
36433lt_cv_sys_global_symbol_to_cdecl \
36434lt_cv_sys_global_symbol_to_c_name_address \
36435lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036436nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036437lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036438lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036439lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036440lt_prog_compiler_static \
36441lt_cv_prog_compiler_c_o \
36442need_locks \
cristyda16f162011-02-19 23:52:17 +000036443MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036444DSYMUTIL \
36445NMEDIT \
36446LIPO \
36447OTOOL \
36448OTOOL64 \
36449shrext_cmds \
36450export_dynamic_flag_spec \
36451whole_archive_flag_spec \
36452compiler_needs_object \
36453with_gnu_ld \
36454allow_undefined_flag \
36455no_undefined_flag \
36456hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036457hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036458exclude_expsyms \
36459include_expsyms \
36460file_list_spec \
36461variables_saved_for_relink \
36462libname_spec \
36463library_names_spec \
36464soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036465install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036466finish_eval \
36467old_striplib \
36468striplib \
36469compiler_lib_search_dirs \
36470predep_objects \
36471postdep_objects \
36472predeps \
36473postdeps \
36474compiler_lib_search_path \
36475LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036476reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036477compiler_CXX \
36478lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036479lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036480lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036481lt_prog_compiler_static_CXX \
36482lt_cv_prog_compiler_c_o_CXX \
36483export_dynamic_flag_spec_CXX \
36484whole_archive_flag_spec_CXX \
36485compiler_needs_object_CXX \
36486with_gnu_ld_CXX \
36487allow_undefined_flag_CXX \
36488no_undefined_flag_CXX \
36489hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036490hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036491exclude_expsyms_CXX \
36492include_expsyms_CXX \
36493file_list_spec_CXX \
36494compiler_lib_search_dirs_CXX \
36495predep_objects_CXX \
36496postdep_objects_CXX \
36497predeps_CXX \
36498postdeps_CXX \
36499compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036500 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036501 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036503 ;;
36504 *)
36505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36506 ;;
36507 esac
36508done
36509
36510# Double-quote double-evaled strings.
36511for var in reload_cmds \
36512old_postinstall_cmds \
36513old_postuninstall_cmds \
36514old_archive_cmds \
36515extract_expsyms_cmds \
36516old_archive_from_new_cmds \
36517old_archive_from_expsyms_cmds \
36518archive_cmds \
36519archive_expsym_cmds \
36520module_cmds \
36521module_expsym_cmds \
36522export_symbols_cmds \
36523prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036524postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036525postinstall_cmds \
36526postuninstall_cmds \
36527finish_cmds \
36528sys_lib_search_path_spec \
36529sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036530reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036531old_archive_cmds_CXX \
36532old_archive_from_new_cmds_CXX \
36533old_archive_from_expsyms_cmds_CXX \
36534archive_cmds_CXX \
36535archive_expsym_cmds_CXX \
36536module_cmds_CXX \
36537module_expsym_cmds_CXX \
36538export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036539prelink_cmds_CXX \
36540postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036542 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036544 ;;
36545 *)
36546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36547 ;;
36548 esac
36549done
36550
cristy73bd4a52010-10-05 11:24:23 +000036551ac_aux_dir='$ac_aux_dir'
36552xsi_shell='$xsi_shell'
36553lt_shell_append='$lt_shell_append'
36554
36555# See if we are running on zsh, and set the options which allow our
36556# commands through without removal of \ escapes INIT.
36557if test -n "\${ZSH_VERSION+set}" ; then
36558 setopt NO_GLOB_SUBST
36559fi
36560
36561
36562 PACKAGE='$PACKAGE'
36563 VERSION='$VERSION'
36564 TIMESTAMP='$TIMESTAMP'
36565 RM='$RM'
36566 ofile='$ofile'
36567
36568
36569
36570
36571
36572
cristy3ed852e2009-09-05 21:47:34 +000036573_ACEOF
36574
36575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36576
36577# Handling of arguments.
36578for ac_config_target in $ac_config_targets
36579do
36580 case $ac_config_target in
36581 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036582 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036583 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36584 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36585 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36586 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36587 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036588 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036589 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36590 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36591 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36592 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36593 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036594 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036595 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36596 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036597 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36598 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36599 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36601 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36602 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36603 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36604 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36605 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36606 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36607 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36608 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36609 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36610 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36611 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36612 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36613 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36614 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36615 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36616 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036617 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36618 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036621 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36622 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036623 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036624 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36625 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36626
cristy98dddb52010-11-04 00:30:15 +000036627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036628 esac
36629done
36630
36631
36632# If the user did not use the arguments to specify the items to instantiate,
36633# then the envvar interface is used. Set only those that are not.
36634# We use the long form for the default assignment because of an extremely
36635# bizarre bug on SunOS 4.1.3.
36636if $ac_need_defaults; then
36637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36640fi
36641
36642# Have a temporary directory for convenience. Make it in the build tree
36643# simply because there is no reason against having it here, and in addition,
36644# creating and moving files from /tmp can sometimes cause problems.
36645# Hook for its removal unless debugging.
36646# Note that there is a small window in which the directory will not be cleaned:
36647# after its creation but before its name has been assigned to `$tmp'.
36648$debug ||
36649{
cristyda16f162011-02-19 23:52:17 +000036650 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036651 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036652 : "${ac_tmp:=$tmp}"
36653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036654' 0
cristy8b350f62009-11-15 23:12:43 +000036655 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036656}
36657# Create a (secure) tmp directory for tmp files.
36658
36659{
36660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036661 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036662} ||
36663{
36664 tmp=./conf$$-$RANDOM
36665 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036666} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036667ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036668
36669# Set up the scripts for CONFIG_FILES section.
36670# No need to generate them if there are no CONFIG_FILES.
36671# This happens for instance with `./config.status config.h'.
36672if test -n "$CONFIG_FILES"; then
36673
36674
cristy8b350f62009-11-15 23:12:43 +000036675ac_cr=`echo X | tr X '\015'`
36676# On cygwin, bash can eat \r inside `` if the user requested igncr.
36677# But we know of no other shell where ac_cr would be empty at this
36678# point, so we can use a bashism as a fallback.
36679if test "x$ac_cr" = x; then
36680 eval ac_cr=\$\'\\r\'
36681fi
cristy3ed852e2009-09-05 21:47:34 +000036682ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36683if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036684 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036685else
36686 ac_cs_awk_cr=$ac_cr
36687fi
36688
cristyda16f162011-02-19 23:52:17 +000036689echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036690_ACEOF
36691
36692
36693{
36694 echo "cat >conf$$subs.awk <<_ACEOF" &&
36695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36696 echo "_ACEOF"
36697} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36699ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036700ac_delim='%!_!# '
36701for ac_last_try in false false false false false :; do
36702 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036704
36705 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36706 if test $ac_delim_n = $ac_delim_num; then
36707 break
36708 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036710 else
36711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36712 fi
36713done
36714rm -f conf$$subs.sh
36715
36716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036717cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036718_ACEOF
36719sed -n '
36720h
36721s/^/S["/; s/!.*/"]=/
36722p
36723g
36724s/^[^!]*!//
36725:repl
36726t repl
36727s/'"$ac_delim"'$//
36728t delim
36729:nl
36730h
cristycd4c5312009-11-22 01:19:08 +000036731s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036732t more1
36733s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36734p
36735n
36736b repl
36737:more1
36738s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36739p
36740g
36741s/.\{148\}//
36742t nl
36743:delim
36744h
cristycd4c5312009-11-22 01:19:08 +000036745s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036746t more2
36747s/["\\]/\\&/g; s/^/"/; s/$/"/
36748p
36749b
36750:more2
36751s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36752p
36753g
36754s/.\{148\}//
36755t delim
36756' <conf$$subs.awk | sed '
36757/^[^""]/{
36758 N
36759 s/\n//
36760}
36761' >>$CONFIG_STATUS || ac_write_fail=1
36762rm -f conf$$subs.awk
36763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36764_ACAWK
cristyda16f162011-02-19 23:52:17 +000036765cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036766 for (key in S) S_is_set[key] = 1
36767 FS = ""
36768
36769}
36770{
36771 line = $ 0
36772 nfields = split(line, field, "@")
36773 substed = 0
36774 len = length(field[1])
36775 for (i = 2; i < nfields; i++) {
36776 key = field[i]
36777 keylen = length(key)
36778 if (S_is_set[key]) {
36779 value = S[key]
36780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36781 len += length(value) + length(field[++i])
36782 substed = 1
36783 } else
36784 len += 1 + keylen
36785 }
36786
36787 print line
36788}
36789
36790_ACAWK
36791_ACEOF
36792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36795else
36796 cat
cristyda16f162011-02-19 23:52:17 +000036797fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036799_ACEOF
36800
cristy98dddb52010-11-04 00:30:15 +000036801# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36802# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036803# trailing colons and then remove the whole line if VPATH becomes empty
36804# (actually we leave an empty line to preserve line numbers).
36805if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36807h
36808s///
36809s/^/:/
36810s/[ ]*$/:/
36811s/:\$(srcdir):/:/g
36812s/:\${srcdir}:/:/g
36813s/:@srcdir@:/:/g
36814s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036815s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036816x
36817s/\(=[ ]*\).*/\1/
36818G
36819s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036820s/^[^=]*=[ ]*$//
36821}'
36822fi
36823
36824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36825fi # test -n "$CONFIG_FILES"
36826
36827# Set up the scripts for CONFIG_HEADERS section.
36828# No need to generate them if there are no CONFIG_HEADERS.
36829# This happens for instance with `./config.status Makefile'.
36830if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036831cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036832BEGIN {
36833_ACEOF
36834
36835# Transform confdefs.h into an awk script `defines.awk', embedded as
36836# here-document in config.status, that substitutes the proper values into
36837# config.h.in to produce config.h.
36838
36839# Create a delimiter string that does not exist in confdefs.h, to ease
36840# handling of long lines.
36841ac_delim='%!_!# '
36842for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036843 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36844 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036845 break
36846 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036847 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036848 else
36849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36850 fi
36851done
36852
36853# For the awk script, D is an array of macro values keyed by name,
36854# likewise P contains macro parameters if any. Preserve backslash
36855# newline sequences.
36856
36857ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36858sed -n '
36859s/.\{148\}/&'"$ac_delim"'/g
36860t rset
36861:rset
36862s/^[ ]*#[ ]*define[ ][ ]*/ /
36863t def
36864d
36865:def
36866s/\\$//
36867t bsnl
36868s/["\\]/\\&/g
36869s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36870D["\1"]=" \3"/p
36871s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36872d
36873:bsnl
36874s/["\\]/\\&/g
36875s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36876D["\1"]=" \3\\\\\\n"\\/p
36877t cont
36878s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36879t cont
36880d
36881:cont
36882n
36883s/.\{148\}/&'"$ac_delim"'/g
36884t clear
36885:clear
36886s/\\$//
36887t bsnlc
36888s/["\\]/\\&/g; s/^/"/; s/$/"/p
36889d
36890:bsnlc
36891s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36892b cont
36893' <confdefs.h | sed '
36894s/'"$ac_delim"'/"\\\
36895"/g' >>$CONFIG_STATUS || ac_write_fail=1
36896
36897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36898 for (key in D) D_is_set[key] = 1
36899 FS = ""
36900}
36901/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36902 line = \$ 0
36903 split(line, arg, " ")
36904 if (arg[1] == "#") {
36905 defundef = arg[2]
36906 mac1 = arg[3]
36907 } else {
36908 defundef = substr(arg[1], 2)
36909 mac1 = arg[2]
36910 }
36911 split(mac1, mac2, "(") #)
36912 macro = mac2[1]
36913 prefix = substr(line, 1, index(line, defundef) - 1)
36914 if (D_is_set[macro]) {
36915 # Preserve the white space surrounding the "#".
36916 print prefix "define", macro P[macro] D[macro]
36917 next
36918 } else {
36919 # Replace #undef with comments. This is necessary, for example,
36920 # in the case of _POSIX_SOURCE, which is predefined and required
36921 # on some systems where configure will not decide to define it.
36922 if (defundef == "undef") {
36923 print "/*", prefix defundef, macro, "*/"
36924 next
36925 }
36926 }
36927}
36928{ print }
36929_ACAWK
36930_ACEOF
36931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036932 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036933fi # test -n "$CONFIG_HEADERS"
36934
36935
36936eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36937shift
36938for ac_tag
36939do
36940 case $ac_tag in
36941 :[FHLC]) ac_mode=$ac_tag; continue;;
36942 esac
36943 case $ac_mode$ac_tag in
36944 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036945 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036946 :[FH]-) ac_tag=-:-;;
36947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36948 esac
36949 ac_save_IFS=$IFS
36950 IFS=:
36951 set x $ac_tag
36952 IFS=$ac_save_IFS
36953 shift
36954 ac_file=$1
36955 shift
36956
36957 case $ac_mode in
36958 :L) ac_source=$1;;
36959 :[FH])
36960 ac_file_inputs=
36961 for ac_f
36962 do
36963 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036964 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036965 *) # Look for the file first in the build tree, then in the source tree
36966 # (if the path is not absolute). The absolute path cannot be DOS-style,
36967 # because $ac_f cannot contain `:'.
36968 test -f "$ac_f" ||
36969 case $ac_f in
36970 [\\/$]*) false;;
36971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36972 esac ||
cristy98dddb52010-11-04 00:30:15 +000036973 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036974 esac
36975 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036976 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036977 done
36978
36979 # Let's still pretend it is `configure' which instantiates (i.e., don't
36980 # use $as_me), people would be surprised to read:
36981 # /* config.h. Generated by config.status. */
36982 configure_input='Generated from '`
36983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36984 `' by configure.'
36985 if test x"$ac_file" != x-; then
36986 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036988$as_echo "$as_me: creating $ac_file" >&6;}
36989 fi
36990 # Neutralize special characters interpreted by sed in replacement strings.
36991 case $configure_input in #(
36992 *\&* | *\|* | *\\* )
36993 ac_sed_conf_input=`$as_echo "$configure_input" |
36994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36995 *) ac_sed_conf_input=$configure_input;;
36996 esac
36997
36998 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036999 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037001 esac
37002 ;;
37003 esac
37004
37005 ac_dir=`$as_dirname -- "$ac_file" ||
37006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37007 X"$ac_file" : 'X\(//\)[^/]' \| \
37008 X"$ac_file" : 'X\(//\)$' \| \
37009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37010$as_echo X"$ac_file" |
37011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37012 s//\1/
37013 q
37014 }
37015 /^X\(\/\/\)[^/].*/{
37016 s//\1/
37017 q
37018 }
37019 /^X\(\/\/\)$/{
37020 s//\1/
37021 q
37022 }
37023 /^X\(\/\).*/{
37024 s//\1/
37025 q
37026 }
37027 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037028 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037029 ac_builddir=.
37030
37031case "$ac_dir" in
37032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37033*)
37034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37035 # A ".." for each directory in $ac_dir_suffix.
37036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37037 case $ac_top_builddir_sub in
37038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37040 esac ;;
37041esac
37042ac_abs_top_builddir=$ac_pwd
37043ac_abs_builddir=$ac_pwd$ac_dir_suffix
37044# for backward compatibility:
37045ac_top_builddir=$ac_top_build_prefix
37046
37047case $srcdir in
37048 .) # We are building in place.
37049 ac_srcdir=.
37050 ac_top_srcdir=$ac_top_builddir_sub
37051 ac_abs_top_srcdir=$ac_pwd ;;
37052 [\\/]* | ?:[\\/]* ) # Absolute name.
37053 ac_srcdir=$srcdir$ac_dir_suffix;
37054 ac_top_srcdir=$srcdir
37055 ac_abs_top_srcdir=$srcdir ;;
37056 *) # Relative name.
37057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37058 ac_top_srcdir=$ac_top_build_prefix$srcdir
37059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37060esac
37061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37062
37063
37064 case $ac_mode in
37065 :F)
37066 #
37067 # CONFIG_FILE
37068 #
37069
37070 case $INSTALL in
37071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37073 esac
cristy73bd4a52010-10-05 11:24:23 +000037074 ac_MKDIR_P=$MKDIR_P
37075 case $MKDIR_P in
37076 [\\/$]* | ?:[\\/]* ) ;;
37077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37078 esac
cristy3ed852e2009-09-05 21:47:34 +000037079_ACEOF
37080
37081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37082# If the template does not know about datarootdir, expand it.
37083# FIXME: This hack should be removed a few years after 2.60.
37084ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037085ac_sed_dataroot='
37086/datarootdir/ {
37087 p
37088 q
37089}
37090/@datadir@/p
37091/@docdir@/p
37092/@infodir@/p
37093/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037094/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037095case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37096*datarootdir*) ac_datarootdir_seen=yes;;
37097*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037099$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37100_ACEOF
37101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37102 ac_datarootdir_hack='
37103 s&@datadir@&$datadir&g
37104 s&@docdir@&$docdir&g
37105 s&@infodir@&$infodir&g
37106 s&@localedir@&$localedir&g
37107 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037108 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037109esac
37110_ACEOF
37111
37112# Neutralize VPATH when `$srcdir' = `.'.
37113# Shell code in configure.ac might set extrasub.
37114# FIXME: do we really want to maintain this feature?
37115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37116ac_sed_extra="$ac_vpsub
37117$extrasub
37118_ACEOF
37119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37120:t
37121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37122s|@configure_input@|$ac_sed_conf_input|;t t
37123s&@top_builddir@&$ac_top_builddir_sub&;t t
37124s&@top_build_prefix@&$ac_top_build_prefix&;t t
37125s&@srcdir@&$ac_srcdir&;t t
37126s&@abs_srcdir@&$ac_abs_srcdir&;t t
37127s&@top_srcdir@&$ac_top_srcdir&;t t
37128s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37129s&@builddir@&$ac_builddir&;t t
37130s&@abs_builddir@&$ac_abs_builddir&;t t
37131s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37132s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037133s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037134$ac_datarootdir_hack
37135"
cristyda16f162011-02-19 23:52:17 +000037136eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37137 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037138
37139test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037140 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37142 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037144which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037145$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037146which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037147
cristyda16f162011-02-19 23:52:17 +000037148 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037149 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037150 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37151 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037152 esac \
cristy98dddb52010-11-04 00:30:15 +000037153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037154 ;;
37155 :H)
37156 #
37157 # CONFIG_HEADER
37158 #
37159 if test x"$ac_file" != x-; then
37160 {
37161 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37163 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037165 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037167$as_echo "$as_me: $ac_file is unchanged" >&6;}
37168 else
37169 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037170 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037172 fi
37173 else
37174 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037176 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037177 fi
cristy73bd4a52010-10-05 11:24:23 +000037178# Compute "$ac_file"'s index in $config_headers.
37179_am_arg="$ac_file"
37180_am_stamp_count=1
37181for _am_header in $config_headers :; do
37182 case $_am_header in
37183 $_am_arg | $_am_arg:* )
37184 break ;;
37185 * )
37186 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37187 esac
37188done
37189echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37190$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37191 X"$_am_arg" : 'X\(//\)[^/]' \| \
37192 X"$_am_arg" : 'X\(//\)$' \| \
37193 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37194$as_echo X"$_am_arg" |
37195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37196 s//\1/
37197 q
37198 }
37199 /^X\(\/\/\)[^/].*/{
37200 s//\1/
37201 q
37202 }
37203 /^X\(\/\/\)$/{
37204 s//\1/
37205 q
37206 }
37207 /^X\(\/\).*/{
37208 s//\1/
37209 q
37210 }
37211 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037212 ;;
37213
cristy8b350f62009-11-15 23:12:43 +000037214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037215$as_echo "$as_me: executing $ac_file commands" >&6;}
37216 ;;
37217 esac
37218
37219
37220 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037221 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037222ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37223ac_prefix_conf_PKG=`echo MagickCore`
37224ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37225ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37226ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37227if test ".$ac_prefix_conf_INP" = "."; then
37228 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37229 case "$ac_file" in
37230 *.h) ac_prefix_conf_INP=$ac_file ;;
37231 *)
37232 esac
37233 test ".$ac_prefix_conf_INP" != "." && break
37234 done
37235fi
37236if test ".$ac_prefix_conf_INP" = "."; then
37237 case "$ac_prefix_conf_OUT" in
37238 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37239 ;;
37240 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37241 ;;
37242 *) ac_prefix_conf_INP=config.h
37243 ;;
37244 esac
37245fi
37246if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037247 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037248else
37249 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37250 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37251 fi fi
37252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37253$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37254 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037255 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37256 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37257 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37258 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37259 $as_echo "#endif/" >> conftest.prefix
37260 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37261 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37262 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037263 # now executing _script on _DEF input to create _OUT output file
37264 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37265 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37266 echo ' ' >>$tmp/pconfig.h
37267 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37268
37269 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37270 echo ' ' >>$tmp/pconfig.h
37271 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37272 echo "#endif" >>$tmp/pconfig.h
37273 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37274 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37275$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37276 else
37277 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37278$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37279 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37280 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37281 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37282$as_echo X"$ac_prefix_conf_OUT" |
37283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37284 s//\1/
37285 q
37286 }
37287 /^X\(\/\/\)[^/].*/{
37288 s//\1/
37289 q
37290 }
37291 /^X\(\/\/\)$/{
37292 s//\1/
37293 q
37294 }
37295 /^X\(\/\).*/{
37296 s//\1/
37297 q
37298 }
37299 s/.*/./; q'`
37300 as_dir="$ac_dir"; as_fn_mkdir_p
37301 rm -f "$ac_prefix_conf_OUT"
37302 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37303 fi
37304 cp conftest.prefix _configs.sed
37305 else
cristy98dddb52010-11-04 00:30:15 +000037306 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 +000037307 fi
37308 rm -f conftest.*
37309fi
37310 ;;
37311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37312 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37313 # are listed without --file. Let's play safe and only enable the eval
37314 # if we detect the quoting.
37315 case $CONFIG_FILES in
37316 *\'*) eval set x "$CONFIG_FILES" ;;
37317 *) set x $CONFIG_FILES ;;
37318 esac
37319 shift
37320 for mf
37321 do
37322 # Strip MF so we end up with the name of the file.
37323 mf=`echo "$mf" | sed -e 's/:.*$//'`
37324 # Check whether this is an Automake generated Makefile or not.
37325 # We used to match only the files named `Makefile.in', but
37326 # some people rename them; so instead we look at the file content.
37327 # Grep'ing the first line is not enough: some people post-process
37328 # each Makefile.in and add a new line on top of each file to say so.
37329 # Grep'ing the whole file is not good either: AIX grep has a line
37330 # limit of 2048, but all sed's we know have understand at least 4000.
37331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37332 dirpart=`$as_dirname -- "$mf" ||
37333$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37334 X"$mf" : 'X\(//\)[^/]' \| \
37335 X"$mf" : 'X\(//\)$' \| \
37336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37337$as_echo X"$mf" |
37338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37339 s//\1/
37340 q
37341 }
37342 /^X\(\/\/\)[^/].*/{
37343 s//\1/
37344 q
37345 }
37346 /^X\(\/\/\)$/{
37347 s//\1/
37348 q
37349 }
37350 /^X\(\/\).*/{
37351 s//\1/
37352 q
37353 }
37354 s/.*/./; q'`
37355 else
37356 continue
37357 fi
37358 # Extract the definition of DEPDIR, am__include, and am__quote
37359 # from the Makefile without running `make'.
37360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37361 test -z "$DEPDIR" && continue
37362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37363 test -z "am__include" && continue
37364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37365 # When using ansi2knr, U may be empty or an underscore; expand it
37366 U=`sed -n 's/^U = //p' < "$mf"`
37367 # Find all dependency output files, they are included files with
37368 # $(DEPDIR) in their names. We invoke sed twice because it is the
37369 # simplest approach to changing $(DEPDIR) to its actual value in the
37370 # expansion.
37371 for file in `sed -n "
37372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37374 # Make sure the directory exists.
37375 test -f "$dirpart/$file" && continue
37376 fdir=`$as_dirname -- "$file" ||
37377$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37378 X"$file" : 'X\(//\)[^/]' \| \
37379 X"$file" : 'X\(//\)$' \| \
37380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37381$as_echo X"$file" |
37382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37383 s//\1/
37384 q
37385 }
37386 /^X\(\/\/\)[^/].*/{
37387 s//\1/
37388 q
37389 }
37390 /^X\(\/\/\)$/{
37391 s//\1/
37392 q
37393 }
37394 /^X\(\/\).*/{
37395 s//\1/
37396 q
37397 }
37398 s/.*/./; q'`
37399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37400 # echo "creating $dirpart/$file"
37401 echo '# dummy' > "$dirpart/$file"
37402 done
37403 done
37404}
37405 ;;
37406 "libtool":C)
37407
37408 # See if we are running on zsh, and set the options which allow our
37409 # commands through without removal of \ escapes.
37410 if test -n "${ZSH_VERSION+set}" ; then
37411 setopt NO_GLOB_SUBST
37412 fi
37413
37414 cfgfile="${ofile}T"
37415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37416 $RM "$cfgfile"
37417
37418 cat <<_LT_EOF >> "$cfgfile"
37419#! $SHELL
37420
37421# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37422# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37424# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37425#
37426# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037427# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37428# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037429# Written by Gordon Matzigkeit, 1996
37430#
37431# This file is part of GNU Libtool.
37432#
37433# GNU Libtool is free software; you can redistribute it and/or
37434# modify it under the terms of the GNU General Public License as
37435# published by the Free Software Foundation; either version 2 of
37436# the License, or (at your option) any later version.
37437#
37438# As a special exception to the GNU General Public License,
37439# if you distribute this file as part of a program or library that
37440# is built using GNU Libtool, you may include this file under the
37441# same distribution terms that you use for the rest of that program.
37442#
37443# GNU Libtool is distributed in the hope that it will be useful,
37444# but WITHOUT ANY WARRANTY; without even the implied warranty of
37445# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37446# GNU General Public License for more details.
37447#
37448# You should have received a copy of the GNU General Public License
37449# along with GNU Libtool; see the file COPYING. If not, a copy
37450# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37451# obtained by writing to the Free Software Foundation, Inc.,
37452# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37453
37454
37455# The names of the tagged configurations supported by this script.
37456available_tags="CXX "
37457
37458# ### BEGIN LIBTOOL CONFIG
37459
37460# A sed program that does not truncate output.
37461SED=$lt_SED
37462
37463# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37464Xsed="\$SED -e 1s/^X//"
37465
37466# A grep program that handles long lines.
37467GREP=$lt_GREP
37468
37469# An ERE matcher.
37470EGREP=$lt_EGREP
37471
37472# A literal string matcher.
37473FGREP=$lt_FGREP
37474
cristy0c60a692010-11-04 01:09:47 +000037475# Shell to use when invoking shell scripts.
37476SHELL=$lt_SHELL
37477
37478# An echo program that protects backslashes.
37479ECHO=$lt_ECHO
37480
cristy73bd4a52010-10-05 11:24:23 +000037481# Which release of libtool.m4 was used?
37482macro_version=$macro_version
37483macro_revision=$macro_revision
37484
37485# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037486AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037487
37488# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037489DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037490
37491# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037492OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037493
37494# Whether or not to build shared libraries.
37495build_libtool_libs=$enable_shared
37496
37497# Whether or not to build static libraries.
37498build_old_libs=$enable_static
37499
37500# What type of objects to build.
37501pic_mode=$pic_mode
37502
37503# Whether or not to optimize for fast installation.
37504fast_install=$enable_fast_install
37505
cristy99bd5232011-12-07 14:38:20 +000037506# The PATH separator for the build system.
37507PATH_SEPARATOR=$lt_PATH_SEPARATOR
37508
cristy73bd4a52010-10-05 11:24:23 +000037509# The host system.
37510host_alias=$host_alias
37511host=$host
37512host_os=$host_os
37513
37514# The build system.
37515build_alias=$build_alias
37516build=$build
37517build_os=$build_os
37518
37519# A BSD- or MS-compatible name lister.
37520NM=$lt_NM
37521
37522# Whether we need soft or hard links.
37523LN_S=$lt_LN_S
37524
37525# What is the maximum length of a command?
37526max_cmd_len=$max_cmd_len
37527
37528# Object file suffix (normally "o").
37529objext=$ac_objext
37530
37531# Executable file suffix (normally "").
37532exeext=$exeext
37533
37534# whether the shell understands "unset".
37535lt_unset=$lt_unset
37536
37537# turn spaces into newlines.
37538SP2NL=$lt_lt_SP2NL
37539
37540# turn newlines into spaces.
37541NL2SP=$lt_lt_NL2SP
37542
cristyda16f162011-02-19 23:52:17 +000037543# convert \$build file names to \$host format.
37544to_host_file_cmd=$lt_cv_to_host_file_cmd
37545
37546# convert \$build files to toolchain format.
37547to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37548
cristy73bd4a52010-10-05 11:24:23 +000037549# Method to check whether dependent libraries are shared objects.
37550deplibs_check_method=$lt_deplibs_check_method
37551
cristyda16f162011-02-19 23:52:17 +000037552# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037553file_magic_cmd=$lt_file_magic_cmd
37554
cristyda16f162011-02-19 23:52:17 +000037555# How to find potential files when deplibs_check_method = "file_magic".
37556file_magic_glob=$lt_file_magic_glob
37557
37558# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37559want_nocaseglob=$lt_want_nocaseglob
37560
37561# Command to associate shared and link libraries.
37562sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37563
cristy73bd4a52010-10-05 11:24:23 +000037564# The archiver.
37565AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037566
37567# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037568AR_FLAGS=$lt_AR_FLAGS
37569
cristyda16f162011-02-19 23:52:17 +000037570# How to feed a file listing to the archiver.
37571archiver_list_spec=$lt_archiver_list_spec
37572
cristy73bd4a52010-10-05 11:24:23 +000037573# A symbol stripping program.
37574STRIP=$lt_STRIP
37575
37576# Commands used to install an old-style archive.
37577RANLIB=$lt_RANLIB
37578old_postinstall_cmds=$lt_old_postinstall_cmds
37579old_postuninstall_cmds=$lt_old_postuninstall_cmds
37580
cristy0c60a692010-11-04 01:09:47 +000037581# Whether to use a lock for old archive extraction.
37582lock_old_archive_extraction=$lock_old_archive_extraction
37583
cristy73bd4a52010-10-05 11:24:23 +000037584# A C compiler.
37585LTCC=$lt_CC
37586
37587# LTCC compiler flags.
37588LTCFLAGS=$lt_CFLAGS
37589
37590# Take the output of nm and produce a listing of raw symbols and C names.
37591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37592
37593# Transform the output of nm in a proper C declaration.
37594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37595
37596# Transform the output of nm in a C name address pair.
37597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37598
37599# Transform the output of nm in a C name address pair when lib prefix is needed.
37600global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37601
cristyda16f162011-02-19 23:52:17 +000037602# Specify filename containing input files for \$NM.
37603nm_file_list_spec=$lt_nm_file_list_spec
37604
37605# The root where to search for dependent libraries,and in which our libraries should be installed.
37606lt_sysroot=$lt_sysroot
37607
cristy73bd4a52010-10-05 11:24:23 +000037608# The name of the directory that contains temporary libtool files.
37609objdir=$objdir
37610
cristy73bd4a52010-10-05 11:24:23 +000037611# Used to examine libraries when file_magic_cmd begins with "file".
37612MAGIC_CMD=$MAGIC_CMD
37613
37614# Must we lock files when doing compilation?
37615need_locks=$lt_need_locks
37616
cristyda16f162011-02-19 23:52:17 +000037617# Manifest tool.
37618MANIFEST_TOOL=$lt_MANIFEST_TOOL
37619
cristy73bd4a52010-10-05 11:24:23 +000037620# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37621DSYMUTIL=$lt_DSYMUTIL
37622
37623# Tool to change global to local symbols on Mac OS X.
37624NMEDIT=$lt_NMEDIT
37625
37626# Tool to manipulate fat objects and archives on Mac OS X.
37627LIPO=$lt_LIPO
37628
37629# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37630OTOOL=$lt_OTOOL
37631
37632# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37633OTOOL64=$lt_OTOOL64
37634
37635# Old archive suffix (normally "a").
37636libext=$libext
37637
37638# Shared library suffix (normally ".so").
37639shrext_cmds=$lt_shrext_cmds
37640
37641# The commands to extract the exported symbol list from a shared archive.
37642extract_expsyms_cmds=$lt_extract_expsyms_cmds
37643
37644# Variables whose values should be saved in libtool wrapper scripts and
37645# restored at link time.
37646variables_saved_for_relink=$lt_variables_saved_for_relink
37647
37648# Do we need the "lib" prefix for modules?
37649need_lib_prefix=$need_lib_prefix
37650
37651# Do we need a version for libraries?
37652need_version=$need_version
37653
37654# Library versioning type.
37655version_type=$version_type
37656
37657# Shared library runtime path variable.
37658runpath_var=$runpath_var
37659
37660# Shared library path variable.
37661shlibpath_var=$shlibpath_var
37662
37663# Is shlibpath searched before the hard-coded library search path?
37664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37665
37666# Format of library name prefix.
37667libname_spec=$lt_libname_spec
37668
37669# List of archive names. First name is the real one, the rest are links.
37670# The last name is the one that the linker finds with -lNAME
37671library_names_spec=$lt_library_names_spec
37672
37673# The coded name of the library, if different from the real name.
37674soname_spec=$lt_soname_spec
37675
cristy0c60a692010-11-04 01:09:47 +000037676# Permission mode override for installation of shared libraries.
37677install_override_mode=$lt_install_override_mode
37678
cristy73bd4a52010-10-05 11:24:23 +000037679# Command to use after installation of a shared archive.
37680postinstall_cmds=$lt_postinstall_cmds
37681
37682# Command to use after uninstallation of a shared archive.
37683postuninstall_cmds=$lt_postuninstall_cmds
37684
37685# Commands used to finish a libtool library installation in a directory.
37686finish_cmds=$lt_finish_cmds
37687
37688# As "finish_cmds", except a single script fragment to be evaled but
37689# not shown.
37690finish_eval=$lt_finish_eval
37691
37692# Whether we should hardcode library paths into libraries.
37693hardcode_into_libs=$hardcode_into_libs
37694
37695# Compile-time system search path for libraries.
37696sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37697
37698# Run-time system search path for libraries.
37699sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37700
37701# Whether dlopen is supported.
37702dlopen_support=$enable_dlopen
37703
37704# Whether dlopen of programs is supported.
37705dlopen_self=$enable_dlopen_self
37706
37707# Whether dlopen of statically linked programs is supported.
37708dlopen_self_static=$enable_dlopen_self_static
37709
37710# Commands to strip libraries.
37711old_striplib=$lt_old_striplib
37712striplib=$lt_striplib
37713
37714
37715# The linker used to build libraries.
37716LD=$lt_LD
37717
cristy0c60a692010-11-04 01:09:47 +000037718# How to create reloadable object files.
37719reload_flag=$lt_reload_flag
37720reload_cmds=$lt_reload_cmds
37721
cristy73bd4a52010-10-05 11:24:23 +000037722# Commands used to build an old-style archive.
37723old_archive_cmds=$lt_old_archive_cmds
37724
37725# A language specific compiler.
37726CC=$lt_compiler
37727
37728# Is the compiler the GNU compiler?
37729with_gcc=$GCC
37730
37731# Compiler flag to turn off builtin functions.
37732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37733
cristy73bd4a52010-10-05 11:24:23 +000037734# Additional compiler flags for building library objects.
37735pic_flag=$lt_lt_prog_compiler_pic
37736
cristyda16f162011-02-19 23:52:17 +000037737# How to pass a linker flag through the compiler.
37738wl=$lt_lt_prog_compiler_wl
37739
cristy73bd4a52010-10-05 11:24:23 +000037740# Compiler flag to prevent dynamic linking.
37741link_static_flag=$lt_lt_prog_compiler_static
37742
37743# Does compiler simultaneously support -c and -o options?
37744compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37745
37746# Whether or not to add -lc for building shared libraries.
37747build_libtool_need_lc=$archive_cmds_need_lc
37748
37749# Whether or not to disallow shared libs when runtime libs are static.
37750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37751
37752# Compiler flag to allow reflexive dlopens.
37753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37754
37755# Compiler flag to generate shared objects directly from archives.
37756whole_archive_flag_spec=$lt_whole_archive_flag_spec
37757
37758# Whether the compiler copes with passing no objects directly.
37759compiler_needs_object=$lt_compiler_needs_object
37760
37761# Create an old-style archive from a shared archive.
37762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37763
37764# Create a temporary old-style archive to link instead of a shared archive.
37765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37766
37767# Commands used to build a shared archive.
37768archive_cmds=$lt_archive_cmds
37769archive_expsym_cmds=$lt_archive_expsym_cmds
37770
37771# Commands used to build a loadable module if different from building
37772# a shared archive.
37773module_cmds=$lt_module_cmds
37774module_expsym_cmds=$lt_module_expsym_cmds
37775
37776# Whether we are building with GNU ld or not.
37777with_gnu_ld=$lt_with_gnu_ld
37778
37779# Flag that allows shared libraries with undefined symbols to be built.
37780allow_undefined_flag=$lt_allow_undefined_flag
37781
37782# Flag that enforces no undefined symbols.
37783no_undefined_flag=$lt_no_undefined_flag
37784
37785# Flag to hardcode \$libdir into a binary during linking.
37786# This must work even if \$libdir does not exist
37787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37788
cristy73bd4a52010-10-05 11:24:23 +000037789# Whether we need a single "-rpath" flag with a separated argument.
37790hardcode_libdir_separator=$lt_hardcode_libdir_separator
37791
37792# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37793# DIR into the resulting binary.
37794hardcode_direct=$hardcode_direct
37795
37796# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37797# DIR into the resulting binary and the resulting library dependency is
37798# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37799# library is relocated.
37800hardcode_direct_absolute=$hardcode_direct_absolute
37801
37802# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37803# into the resulting binary.
37804hardcode_minus_L=$hardcode_minus_L
37805
37806# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37807# into the resulting binary.
37808hardcode_shlibpath_var=$hardcode_shlibpath_var
37809
37810# Set to "yes" if building a shared library automatically hardcodes DIR
37811# into the library and all subsequent libraries and executables linked
37812# against it.
37813hardcode_automatic=$hardcode_automatic
37814
37815# Set to yes if linker adds runtime paths of dependent libraries
37816# to runtime path list.
37817inherit_rpath=$inherit_rpath
37818
37819# Whether libtool must link a program against all its dependency libraries.
37820link_all_deplibs=$link_all_deplibs
37821
cristy73bd4a52010-10-05 11:24:23 +000037822# Set to "yes" if exported symbols are required.
37823always_export_symbols=$always_export_symbols
37824
37825# The commands to list exported symbols.
37826export_symbols_cmds=$lt_export_symbols_cmds
37827
37828# Symbols that should not be listed in the preloaded symbols.
37829exclude_expsyms=$lt_exclude_expsyms
37830
37831# Symbols that must always be exported.
37832include_expsyms=$lt_include_expsyms
37833
37834# Commands necessary for linking programs (against libraries) with templates.
37835prelink_cmds=$lt_prelink_cmds
37836
cristyda16f162011-02-19 23:52:17 +000037837# Commands necessary for finishing linking programs.
37838postlink_cmds=$lt_postlink_cmds
37839
cristy73bd4a52010-10-05 11:24:23 +000037840# Specify filename containing input files.
37841file_list_spec=$lt_file_list_spec
37842
37843# How to hardcode a shared library path into an executable.
37844hardcode_action=$hardcode_action
37845
37846# The directories searched by this compiler when creating a shared library.
37847compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37848
37849# Dependencies to place before and after the objects being linked to
37850# create a shared library.
37851predep_objects=$lt_predep_objects
37852postdep_objects=$lt_postdep_objects
37853predeps=$lt_predeps
37854postdeps=$lt_postdeps
37855
37856# The library search path used internally by the compiler when linking
37857# a shared library.
37858compiler_lib_search_path=$lt_compiler_lib_search_path
37859
37860# ### END LIBTOOL CONFIG
37861
37862_LT_EOF
37863
37864 case $host_os in
37865 aix3*)
37866 cat <<\_LT_EOF >> "$cfgfile"
37867# AIX sometimes has problems with the GCC collect2 program. For some
37868# reason, if we set the COLLECT_NAMES environment variable, the problems
37869# vanish in a puff of smoke.
37870if test "X${COLLECT_NAMES+set}" != Xset; then
37871 COLLECT_NAMES=
37872 export COLLECT_NAMES
37873fi
37874_LT_EOF
37875 ;;
37876 esac
37877
37878
37879ltmain="$ac_aux_dir/ltmain.sh"
37880
37881
37882 # We use sed instead of cat because bash on DJGPP gets confused if
37883 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37884 # text mode, it properly converts lines to CR/LF. This bash problem
37885 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037886 sed '$q' "$ltmain" >> "$cfgfile" \
37887 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037888
cristyda16f162011-02-19 23:52:17 +000037889 if test x"$xsi_shell" = xyes; then
37890 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37891func_dirname ()\
37892{\
37893\ case ${1} in\
37894\ */*) func_dirname_result="${1%/*}${2}" ;;\
37895\ * ) func_dirname_result="${3}" ;;\
37896\ esac\
37897} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37898 && mv -f "$cfgfile.tmp" "$cfgfile" \
37899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37900test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037901
37902
cristyda16f162011-02-19 23:52:17 +000037903 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37904func_basename ()\
37905{\
37906\ func_basename_result="${1##*/}"\
37907} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37908 && mv -f "$cfgfile.tmp" "$cfgfile" \
37909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37910test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037911
37912
cristyda16f162011-02-19 23:52:17 +000037913 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37914func_dirname_and_basename ()\
37915{\
37916\ case ${1} in\
37917\ */*) func_dirname_result="${1%/*}${2}" ;;\
37918\ * ) func_dirname_result="${3}" ;;\
37919\ esac\
37920\ func_basename_result="${1##*/}"\
37921} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37922 && mv -f "$cfgfile.tmp" "$cfgfile" \
37923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37924test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037925
cristyda16f162011-02-19 23:52:17 +000037926
37927 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37928func_stripname ()\
37929{\
37930\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37931\ # positional parameters, so assign one to ordinary parameter first.\
37932\ func_stripname_result=${3}\
37933\ func_stripname_result=${func_stripname_result#"${1}"}\
37934\ func_stripname_result=${func_stripname_result%"${2}"}\
37935} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37936 && mv -f "$cfgfile.tmp" "$cfgfile" \
37937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37938test 0 -eq $? || _lt_function_replace_fail=:
37939
37940
37941 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37942func_split_long_opt ()\
37943{\
37944\ func_split_long_opt_name=${1%%=*}\
37945\ func_split_long_opt_arg=${1#*=}\
37946} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37947 && mv -f "$cfgfile.tmp" "$cfgfile" \
37948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37949test 0 -eq $? || _lt_function_replace_fail=:
37950
37951
37952 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37953func_split_short_opt ()\
37954{\
37955\ func_split_short_opt_arg=${1#??}\
37956\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37957} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37958 && mv -f "$cfgfile.tmp" "$cfgfile" \
37959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37960test 0 -eq $? || _lt_function_replace_fail=:
37961
37962
37963 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37964func_lo2o ()\
37965{\
37966\ case ${1} in\
37967\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37968\ *) func_lo2o_result=${1} ;;\
37969\ esac\
37970} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37971 && mv -f "$cfgfile.tmp" "$cfgfile" \
37972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37973test 0 -eq $? || _lt_function_replace_fail=:
37974
37975
37976 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37977func_xform ()\
37978{\
37979 func_xform_result=${1%.*}.lo\
37980} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37981 && mv -f "$cfgfile.tmp" "$cfgfile" \
37982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37983test 0 -eq $? || _lt_function_replace_fail=:
37984
37985
37986 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37987func_arith ()\
37988{\
37989 func_arith_result=$(( $* ))\
37990} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37991 && mv -f "$cfgfile.tmp" "$cfgfile" \
37992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37993test 0 -eq $? || _lt_function_replace_fail=:
37994
37995
37996 sed -e '/^func_len ()$/,/^} # func_len /c\
37997func_len ()\
37998{\
37999 func_len_result=${#1}\
38000} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38001 && mv -f "$cfgfile.tmp" "$cfgfile" \
38002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38003test 0 -eq $? || _lt_function_replace_fail=:
38004
38005fi
38006
38007if test x"$lt_shell_append" = xyes; then
38008 sed -e '/^func_append ()$/,/^} # func_append /c\
38009func_append ()\
38010{\
38011 eval "${1}+=\\${2}"\
38012} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38013 && mv -f "$cfgfile.tmp" "$cfgfile" \
38014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38015test 0 -eq $? || _lt_function_replace_fail=:
38016
38017
38018 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38019func_append_quoted ()\
38020{\
38021\ func_quote_for_eval "${2}"\
38022\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38023} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38024 && mv -f "$cfgfile.tmp" "$cfgfile" \
38025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38026test 0 -eq $? || _lt_function_replace_fail=:
38027
38028
38029 # Save a `func_append' function call where possible by direct use of '+='
38030 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38031 && mv -f "$cfgfile.tmp" "$cfgfile" \
38032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38033 test 0 -eq $? || _lt_function_replace_fail=:
38034else
38035 # Save a `func_append' function call even when '+=' is not available
38036 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38037 && mv -f "$cfgfile.tmp" "$cfgfile" \
38038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38039 test 0 -eq $? || _lt_function_replace_fail=:
38040fi
38041
38042if test x"$_lt_function_replace_fail" = x":"; then
38043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38044$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38045fi
38046
38047
38048 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38050 chmod +x "$ofile"
38051
38052
38053 cat <<_LT_EOF >> "$ofile"
38054
38055# ### BEGIN LIBTOOL TAG CONFIG: CXX
38056
38057# The linker used to build libraries.
38058LD=$lt_LD_CXX
38059
cristy0c60a692010-11-04 01:09:47 +000038060# How to create reloadable object files.
38061reload_flag=$lt_reload_flag_CXX
38062reload_cmds=$lt_reload_cmds_CXX
38063
cristy73bd4a52010-10-05 11:24:23 +000038064# Commands used to build an old-style archive.
38065old_archive_cmds=$lt_old_archive_cmds_CXX
38066
38067# A language specific compiler.
38068CC=$lt_compiler_CXX
38069
38070# Is the compiler the GNU compiler?
38071with_gcc=$GCC_CXX
38072
38073# Compiler flag to turn off builtin functions.
38074no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38075
cristy73bd4a52010-10-05 11:24:23 +000038076# Additional compiler flags for building library objects.
38077pic_flag=$lt_lt_prog_compiler_pic_CXX
38078
cristyda16f162011-02-19 23:52:17 +000038079# How to pass a linker flag through the compiler.
38080wl=$lt_lt_prog_compiler_wl_CXX
38081
cristy73bd4a52010-10-05 11:24:23 +000038082# Compiler flag to prevent dynamic linking.
38083link_static_flag=$lt_lt_prog_compiler_static_CXX
38084
38085# Does compiler simultaneously support -c and -o options?
38086compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38087
38088# Whether or not to add -lc for building shared libraries.
38089build_libtool_need_lc=$archive_cmds_need_lc_CXX
38090
38091# Whether or not to disallow shared libs when runtime libs are static.
38092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38093
38094# Compiler flag to allow reflexive dlopens.
38095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38096
38097# Compiler flag to generate shared objects directly from archives.
38098whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38099
38100# Whether the compiler copes with passing no objects directly.
38101compiler_needs_object=$lt_compiler_needs_object_CXX
38102
38103# Create an old-style archive from a shared archive.
38104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38105
38106# Create a temporary old-style archive to link instead of a shared archive.
38107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38108
38109# Commands used to build a shared archive.
38110archive_cmds=$lt_archive_cmds_CXX
38111archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38112
38113# Commands used to build a loadable module if different from building
38114# a shared archive.
38115module_cmds=$lt_module_cmds_CXX
38116module_expsym_cmds=$lt_module_expsym_cmds_CXX
38117
38118# Whether we are building with GNU ld or not.
38119with_gnu_ld=$lt_with_gnu_ld_CXX
38120
38121# Flag that allows shared libraries with undefined symbols to be built.
38122allow_undefined_flag=$lt_allow_undefined_flag_CXX
38123
38124# Flag that enforces no undefined symbols.
38125no_undefined_flag=$lt_no_undefined_flag_CXX
38126
38127# Flag to hardcode \$libdir into a binary during linking.
38128# This must work even if \$libdir does not exist
38129hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38130
cristy73bd4a52010-10-05 11:24:23 +000038131# Whether we need a single "-rpath" flag with a separated argument.
38132hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38133
38134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38135# DIR into the resulting binary.
38136hardcode_direct=$hardcode_direct_CXX
38137
38138# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38139# DIR into the resulting binary and the resulting library dependency is
38140# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38141# library is relocated.
38142hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38143
38144# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38145# into the resulting binary.
38146hardcode_minus_L=$hardcode_minus_L_CXX
38147
38148# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38149# into the resulting binary.
38150hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38151
38152# Set to "yes" if building a shared library automatically hardcodes DIR
38153# into the library and all subsequent libraries and executables linked
38154# against it.
38155hardcode_automatic=$hardcode_automatic_CXX
38156
38157# Set to yes if linker adds runtime paths of dependent libraries
38158# to runtime path list.
38159inherit_rpath=$inherit_rpath_CXX
38160
38161# Whether libtool must link a program against all its dependency libraries.
38162link_all_deplibs=$link_all_deplibs_CXX
38163
cristy73bd4a52010-10-05 11:24:23 +000038164# Set to "yes" if exported symbols are required.
38165always_export_symbols=$always_export_symbols_CXX
38166
38167# The commands to list exported symbols.
38168export_symbols_cmds=$lt_export_symbols_cmds_CXX
38169
38170# Symbols that should not be listed in the preloaded symbols.
38171exclude_expsyms=$lt_exclude_expsyms_CXX
38172
38173# Symbols that must always be exported.
38174include_expsyms=$lt_include_expsyms_CXX
38175
38176# Commands necessary for linking programs (against libraries) with templates.
38177prelink_cmds=$lt_prelink_cmds_CXX
38178
cristyda16f162011-02-19 23:52:17 +000038179# Commands necessary for finishing linking programs.
38180postlink_cmds=$lt_postlink_cmds_CXX
38181
cristy73bd4a52010-10-05 11:24:23 +000038182# Specify filename containing input files.
38183file_list_spec=$lt_file_list_spec_CXX
38184
38185# How to hardcode a shared library path into an executable.
38186hardcode_action=$hardcode_action_CXX
38187
38188# The directories searched by this compiler when creating a shared library.
38189compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38190
38191# Dependencies to place before and after the objects being linked to
38192# create a shared library.
38193predep_objects=$lt_predep_objects_CXX
38194postdep_objects=$lt_postdep_objects_CXX
38195predeps=$lt_predeps_CXX
38196postdeps=$lt_postdeps_CXX
38197
38198# The library search path used internally by the compiler when linking
38199# a shared library.
38200compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38201
38202# ### END LIBTOOL TAG CONFIG: CXX
38203_LT_EOF
38204
38205 ;;
cristy4c08aed2011-07-01 19:47:50 +000038206 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038207 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038208 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38209 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38210
38211 esac
38212done # for ac_tag
38213
38214
cristy8b350f62009-11-15 23:12:43 +000038215as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038216_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038217ac_clean_files=$ac_clean_files_save
38218
38219test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038220 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038221
38222
38223# configure is writing to config.log, and then calls config.status.
38224# config.status does its own redirection, appending to config.log.
38225# Unfortunately, on DOS this fails, as config.log is still kept open
38226# by configure, so config.status won't be able to write to it; its
38227# output is simply discarded. So we exec the FD to /dev/null,
38228# effectively closing config.log, so it can be properly (re)opened and
38229# appended to by config.status. When coming back to configure, we
38230# need to make the FD available again.
38231if test "$no_create" != yes; then
38232 ac_cs_success=:
38233 ac_config_status_args=
38234 test "$silent" = yes &&
38235 ac_config_status_args="$ac_config_status_args --quiet"
38236 exec 5>/dev/null
38237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38238 exec 5>>config.log
38239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38240 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038241 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038242fi
38243if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038245$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38246fi
38247
38248
38249rm -f magick-version
38250
cristy430a7312010-01-21 20:44:04 +000038251result_dejavu_font_dir='none'
38252if test "${dejavu_font_dir}x" != 'x'; then
38253 result_dejavu_font_dir=$dejavu_font_dir
38254fi
38255
cristy3ed852e2009-09-05 21:47:34 +000038256result_ghostscript_font_dir='none'
38257if test "${ghostscript_font_dir}x" != 'x'; then
38258 result_ghostscript_font_dir=$ghostscript_font_dir
38259fi
38260
38261result_windows_font_dir='none'
38262if test "${windows_font_dir}x" != 'x'; then
38263 result_windows_font_dir=${windows_font_dir}
38264fi
38265
cristy09b53e12011-10-14 12:47:22 +000038266{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038267ImageMagick is configured as follows. Please verify that this configuration
38268matches your expectations.
38269
38270Host system type: $host
38271Build system type: $build
38272
38273 Option Value
38274-------------------------------------------------------------------------------
38275Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38276Static libraries --enable-static=$enable_static $libtool_build_static_libs
38277Module support --with-modules=$with_modules $with_modules
38278GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38279Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38280High Dynamic Range Imagery
38281 --enable-hdri=$enable_hdri $enable_hdri
38282
38283Delegate Configuration:
38284BZLIB --with-bzlib=$with_bzlib $have_bzlib
38285Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038286Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038287DJVU --with-djvu=$with_djvu $have_djvu
38288DPS --with-dps=$with_dps $have_dps
38289FFTW --with-fftw=$with_fftw $have_fftw
38290FlashPIX --with-fpx=$with_fpx $have_fpx
38291FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38292FreeType --with-freetype=$with_freetype $have_freetype
38293GhostPCL None $PCLDelegate ($PCLVersion)
38294GhostXPS None $XPSDelegate ($XPSVersion)
38295Ghostscript None $PSDelegate ($GSVersion)
38296Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38297Ghostscript lib --with-gslib=$with_gslib $have_gslib
38298Graphviz --with-gvc=$with_gvc $have_gvc
38299JBIG --with-jbig=$with_jbig $have_jbig
38300JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38301JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038302LCMS v1 --with-lcms=$with_lcms $have_lcms
38303LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038304LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038305LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038306Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38307OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038308PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038309PERL --with-perl=$with_perl $have_perl
38310PNG --with-png=$with_png $have_png
38311RSVG --with-rsvg=$with_rsvg $have_rsvg
38312TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038313WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038314Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38315WMF --with-wmf=$with_wmf $have_wmf
38316X11 --with-x=$with_x $have_x
38317XML --with-xml=$with_xml $have_xml
38318ZLIB --with-zlib=$with_zlib $have_zlib
38319
38320X11 Configuration:
38321 X_CFLAGS = $X_CFLAGS
38322 X_PRE_LIBS = $X_PRE_LIBS
38323 X_LIBS = $X_LIBS
38324 X_EXTRA_LIBS = $X_EXTRA_LIBS
38325
38326Options used to compile and link:
38327 PREFIX = $PREFIX_DIR
38328 EXEC-PREFIX = $EXEC_PREFIX_DIR
38329 VERSION = $PACKAGE_VERSION
38330 CC = $CC
38331 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038332 CPPFLAGS = $MAGICK_CPPFLAGS
38333 PCFLAGS = $MAGICK_PCFLAGS
38334 DEFS = $DEFS
38335 LDFLAGS = $LDFLAGS
38336 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38337 LIBS = $MAGICK_LIBS
38338 CXX = $CXX
38339 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038340 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038341" >&5
cristy09b53e12011-10-14 12:47:22 +000038342$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038343ImageMagick is configured as follows. Please verify that this configuration
38344matches your expectations.
38345
38346Host system type: $host
38347Build system type: $build
38348
38349 Option Value
38350-------------------------------------------------------------------------------
38351Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38352Static libraries --enable-static=$enable_static $libtool_build_static_libs
38353Module support --with-modules=$with_modules $with_modules
38354GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38355Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38356High Dynamic Range Imagery
38357 --enable-hdri=$enable_hdri $enable_hdri
38358
38359Delegate Configuration:
38360BZLIB --with-bzlib=$with_bzlib $have_bzlib
38361Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038362Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038363DJVU --with-djvu=$with_djvu $have_djvu
38364DPS --with-dps=$with_dps $have_dps
38365FFTW --with-fftw=$with_fftw $have_fftw
38366FlashPIX --with-fpx=$with_fpx $have_fpx
38367FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38368FreeType --with-freetype=$with_freetype $have_freetype
38369GhostPCL None $PCLDelegate ($PCLVersion)
38370GhostXPS None $XPSDelegate ($XPSVersion)
38371Ghostscript None $PSDelegate ($GSVersion)
38372Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38373Ghostscript lib --with-gslib=$with_gslib $have_gslib
38374Graphviz --with-gvc=$with_gvc $have_gvc
38375JBIG --with-jbig=$with_jbig $have_jbig
38376JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38377JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038378LCMS v1 --with-lcms=$with_lcms $have_lcms
38379LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038380LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038381LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038382Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38383OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038384PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038385PERL --with-perl=$with_perl $have_perl
38386PNG --with-png=$with_png $have_png
38387RSVG --with-rsvg=$with_rsvg $have_rsvg
38388TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038389WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038390Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38391WMF --with-wmf=$with_wmf $have_wmf
38392X11 --with-x=$with_x $have_x
38393XML --with-xml=$with_xml $have_xml
38394ZLIB --with-zlib=$with_zlib $have_zlib
38395
38396X11 Configuration:
38397 X_CFLAGS = $X_CFLAGS
38398 X_PRE_LIBS = $X_PRE_LIBS
38399 X_LIBS = $X_LIBS
38400 X_EXTRA_LIBS = $X_EXTRA_LIBS
38401
38402Options used to compile and link:
38403 PREFIX = $PREFIX_DIR
38404 EXEC-PREFIX = $EXEC_PREFIX_DIR
38405 VERSION = $PACKAGE_VERSION
38406 CC = $CC
38407 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038408 CPPFLAGS = $MAGICK_CPPFLAGS
38409 PCFLAGS = $MAGICK_PCFLAGS
38410 DEFS = $DEFS
38411 LDFLAGS = $LDFLAGS
38412 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38413 LIBS = $MAGICK_LIBS
38414 CXX = $CXX
38415 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038416 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038417" >&6;}