blob: b3f52a84113f3f01eaa1e21cf049c36f21b36b71 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristycd4c5312009-11-22 01:19:08 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.7.
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,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
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.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy932c9122009-11-19 13:57:03 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error ERROR [LINENO LOG_FD]
371# ---------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with status $?, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristy932c9122009-11-19 13:57:03 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
550# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristyd934d102009-10-10 12:55:13 +0000569PACKAGE_VERSION='6.5.7'
570PACKAGE_STRING='ImageMagick 6.5.7'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618MAGICK_LIBS
619MAGICK_LDFLAGS
620MAGICK_PCFLAGS
621MAGICK_CPPFLAGS
622MAGICK_CXXFLAGS
623MAGICK_CFLAGS
624MAGICK_DEP_LIBS
625MAGICK_LTDLDEPS
626MAGICK_LIBLTDL
627OSX_GCOV_LDFLAG
628DELEGATES
629MAGICKCORE_PATH
630PERL_SUPPORTS_DESTDIR
631WITH_PERL_DYNAMIC_FALSE
632WITH_PERL_DYNAMIC_TRUE
633WITH_PERL_STATIC_FALSE
634WITH_PERL_STATIC_TRUE
635WITH_PERL_FALSE
636WITH_PERL_TRUE
637GSVersion
638GSPSDevice
639GSPDFDevice
640GSMonoDevice
641GSEPSDevice
642GSColorDevice
643GSCMYKDevice
644GSAlphaDevice
645XPSVersion
646XPSCMYKDevice
647XPSColorDevice
648XPSMonoDevice
649PCLVersion
650PCLCMYKDevice
651PCLColorDevice
652PCLMonoDevice
653ZIP_DELEGATE_FALSE
654ZIP_DELEGATE_TRUE
655ZIP
656P7ZIP_DELEGATE_FALSE
657P7ZIP_DELEGATE_TRUE
658P7ZIP
659RPM_DELEGATE_FALSE
660RPM_DELEGATE_TRUE
661RPM
662PERL
663TAR
664ShowImageDelegate
665type_include_files
666ghostscript_font_dir
667windows_font_dir
668PrintDelegate
669ZipDelegate
670XPSDelegate
671WWWDecodeDelegate
672WMFDecodeDelegate
673TXTDelegate
674SCANDecodeDelegate
675RMDelegate
676RLEEncodeDelegate
677PSDelegate
678POVDelegate
679PGPDecodeDelegate
680PCLDelegate
681MVDelegate
682MPEGEncodeDelegate
683MPEGDecodeDelegate
684MANDelegate
685LaunchDelegate
686LZWEncodeDelegate
687LZWDecodeDelegate
688LPRDelegate
689LPDelegate
690ILBMEncodeDelegate
691ILBMDecodeDelegate
692HTMLDecodeDelegate
693HPGLDecodeDelegate
694HDRDecodeDelegate
695GnuplotDecodeDelegate
696MogrifyDelegate
697DisplayDelegate
698ConvertDelegate
699FIGDecodeDelegate
700EditorDelegate
701EchoDelegate
702DVIDecodeDelegate
703GVCDecodeDelegate
704DNGDecodeDelegate
705CatDelegate
706CGMDecodeDelegate
707BrowseDelegate
708BZIPDelegate
709BlenderDecodeDelegate
710AVIDecodeDelegate
711AutotraceDecodeDelegate
712SHARE_CONFIGURE_PATH
713SHARE_PATH
714DOCUMENTATION_PATH
715FILTER_PATH
716CODER_PATH
717CONFIGURE_PATH
718LIBRARY_PATH
719EXECUTABLE_PATH
720PERLMAINCC
721XML_LIBS
722XML_DELEGATE_FALSE
723XML_DELEGATE_TRUE
724xml2_config
725WMF_LIBS_DEPS
726WMF_LIBS
727WMF_DELEGATE_FALSE
728WMF_DELEGATE_TRUE
729TIFF_LIBS
730TIFF_DELEGATE_FALSE
731TIFF_DELEGATE_TRUE
732CAIRO_DELEGATE_FALSE
733CAIRO_DELEGATE_TRUE
734RSVG_DELEGATE_FALSE
735RSVG_DELEGATE_TRUE
736CAIRO_SVG_LIBS
737CAIRO_SVG_CFLAGS
738RSVG_LIBS
739RSVG_CFLAGS
740PNG_LIBS
741PNG_DELEGATE_FALSE
742PNG_DELEGATE_TRUE
743OPENEXR_DELEGATE_FALSE
744OPENEXR_DELEGATE_TRUE
745OPENEXR_LIBS
746OPENEXR_CFLAGS
747LQR_DELEGATE_FALSE
748LQR_DELEGATE_TRUE
749LQR_LIBS
750LQR_CFLAGS
751LCMS_LIBS
752LCMS_DELEGATE_FALSE
753LCMS_DELEGATE_TRUE
754JP2_LIBS
755JP2_DELEGATE_FALSE
756JP2_DELEGATE_TRUE
757JPEG_LIBS
758JPEG_DELEGATE_FALSE
759JPEG_DELEGATE_TRUE
760JBIG_LIBS
761JBIG_DELEGATE_FALSE
762JBIG_DELEGATE_TRUE
763GVC_DELEGATE_FALSE
764GVC_DELEGATE_TRUE
765GVC_LIBS
766GVC_CFLAGS
767GS_LIBS
768GS_DELEGATE_FALSE
769GS_DELEGATE_TRUE
770FREETYPE_LIBS
771FREETYPE_DELEGATE_FALSE
772FREETYPE_DELEGATE_TRUE
773freetype_config
774FONTCONFIG_DELEGATE_FALSE
775FONTCONFIG_DELEGATE_TRUE
776FONTCONFIG_LIBS
777FONTCONFIG_CFLAGS
778FPX_LIBS
779FPX_DELEGATE_FALSE
780FPX_DELEGATE_TRUE
781FFTW_LIBS
782FFTW_DELEGATE_FALSE
783FFTW_DELEGATE_TRUE
784DJVU_LIBS
785DJVU_DELEGATE_FALSE
786DJVU_DELEGATE_TRUE
787DPS_LIBS
788DPS_DELEGATE_FALSE
789DPS_DELEGATE_TRUE
790AUTOTRACE_DELEGATE_FALSE
791AUTOTRACE_DELEGATE_TRUE
792AUTOTRACE_LIBS
793AUTOTRACE_CFLAGS
794LIB_DL
795ZLIB_LIBS
796ZLIB_DELEGATE_FALSE
797ZLIB_DELEGATE_TRUE
798XEXT_LIBS
799X11_LIBS
800X11_DELEGATE_FALSE
801X11_DELEGATE_TRUE
802X_EXTRA_LIBS
803X_LIBS
804X_PRE_LIBS
805X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000806XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000807BZLIB_LIBS
808BZLIB_DELEGATE_FALSE
809BZLIB_DELEGATE_TRUE
810MATH_LIBS
811CCMALLOCDelegate
812UMEM_LIBS
813HasUMEM_FALSE
814HasUMEM_TRUE
815THREAD_LIBS
816GOMP_LIBS
817WITH_MAGICK_PLUS_PLUS_FALSE
818WITH_MAGICK_PLUS_PLUS_TRUE
819OPENMP_CXXFLAGS
820POW_LIB
821LIBOBJS
822UINTPTR_T
823UINTMAX_T
824UINT64_T
825INT64_T
826UINT32_T
827INT32_T
828UINT16_T
829INT16_T
830UINT8_T
831INT8_T
832LIBRARY_EXTRA_CPPFLAGS
833MODULE_EXTRA_CPPFLAGS
834LIBSTDCLDFLAGS
835PERL_MAKE_OPTIONS
836QUANTUM_DEPTH
837MAINT
838MAINTAINER_MODE_FALSE
839MAINTAINER_MODE_TRUE
840MAGICK_HDRI
841DLLDFLAGS
842WITH_LTDL_FALSE
843WITH_LTDL_TRUE
844WITH_MODULES_FALSE
845WITH_MODULES_TRUE
846LTCXXLIBOPTS
847LTDLOPEN
848LT_CONFIG_H
849CONVENIENCE_LTDL_FALSE
850CONVENIENCE_LTDL_TRUE
851INSTALL_LTDL_FALSE
852INSTALL_LTDL_TRUE
853ARGZ_H
854sys_symbol_underscore
855LIBADD_DL
856LT_DLPREOPEN
857LIBADD_DLD_LINK
858LIBADD_SHL_LOAD
859LIBADD_DLOPEN
860LT_DLLOADERS
861INCLTDL
862LTDLINCL
863LTDLDEPS
864LIBLTDL
865LIBTOOL_DEPS
866CXXCPP
867OTOOL64
868OTOOL
869LIPO
870NMEDIT
871DSYMUTIL
cristy3ed852e2009-09-05 21:47:34 +0000872AR
873NM
874ac_ct_DUMPBIN
875DUMPBIN
876LIBTOOL
877OBJDUMP
878DLLTOOL
879AS
880LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000881CL_LIBS
882CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000883OPENMP_CFLAGS
884PTHREAD_CFLAGS
885PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000886PTHREAD_CC
887acx_pthread_config
888WinPathScript
889USING_CL_FALSE
890USING_CL_TRUE
891CYGWIN_BUILD_FALSE
892CYGWIN_BUILD_TRUE
893WIN32_NATIVE_BUILD_FALSE
894WIN32_NATIVE_BUILD_TRUE
895WINGDI32_DELEGATE_FALSE
896WINGDI32_DELEGATE_TRUE
897GDI32_LIBS
898PKG_CONFIG
899LN_S
900am__fastdepCXX_FALSE
901am__fastdepCXX_TRUE
902CXXDEPMODE
903ac_ct_CXX
904CXXFLAGS
905CXX
906RANLIB
907LD
908FGREP
909EGREP
910GREP
911SED
912CPP
913am__fastdepCC_FALSE
914am__fastdepCC_TRUE
915CCDEPMODE
916AMDEPBACKSLASH
917AMDEP_FALSE
918AMDEP_TRUE
919am__quote
920am__include
921DEPDIR
922OBJEXT
923EXEEXT
924ac_ct_CC
925CPPFLAGS
926LDFLAGS
927CFLAGS
928CC
929DIRSEP
930MAGICK_FILTER_MODULE_PATH
931MAGICK_CONFIGURE_BUILD_PATH
932MAGICK_CONFIGURE_SRC_PATH
933MAGICK_CODER_MODULE_PATH
934MAN_DIR
935INFO_DIR
936PERSISTINCLUDE_DIR
937INCLUDE_DIR
938LIB_DIR
939LOCALSTATE_DIR
940SHAREDSTATE_DIR
941SYSCONF_DIR
942DATA_DIR
943LIBEXEC_DIR
944SBIN_DIR
945BIN_DIR
946EXEC_PREFIX_DIR
947PREFIX_DIR
948CONFIG_STATUS_DEPENDENCIES
949MAGICK_LIB_VERSION_NUMBER
950MAGICK_LIB_VERSION_TEXT
951MAGICK_LIB_VERSION
952AM_BACKSLASH
953AM_DEFAULT_VERBOSITY
954am__untar
955am__tar
956AMTAR
957am__leading_dot
958SET_MAKE
959AWK
960mkdir_p
961MKDIR_P
962INSTALL_STRIP_PROGRAM
963STRIP
964install_sh
965MAKEINFO
966AUTOHEADER
967AUTOMAKE
968AUTOCONF
969ACLOCAL
970VERSION
971PACKAGE
972CYGPATH_W
973am__isrc
974INSTALL_DATA
975INSTALL_SCRIPT
976INSTALL_PROGRAM
977PACKAGE_LIB_SUBVERSION
978PACKAGE_RELEASE_DATE
979PACKAGE_LIB_VERSION_NUMBER
980PACKAGE_LIB_VERSION
981PACKAGE_CHANGE_DATE
982PACKAGE_RELEASE
983MAGICK_LIBRARY_AGE
984MAGICK_LIBRARY_REVISION
985MAGICK_LIBRARY_CURRENT
986target_os
987target_vendor
988target_cpu
989target
990host_os
991host_vendor
992host_cpu
993host
994build_os
995build_vendor
996build_cpu
997build
998CONFIGURE_ARGS
999DISTCHECK_CONFIG_FLAGS
1000target_alias
1001host_alias
1002build_alias
1003LIBS
1004ECHO_T
1005ECHO_N
1006ECHO_C
1007DEFS
1008mandir
1009localedir
1010libdir
1011psdir
1012pdfdir
1013dvidir
1014htmldir
1015infodir
1016docdir
1017oldincludedir
1018includedir
1019localstatedir
1020sharedstatedir
1021sysconfdir
1022datadir
1023datarootdir
1024libexecdir
1025sbindir
1026bindir
1027program_transform_name
1028prefix
1029exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001030PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001031PACKAGE_BUGREPORT
1032PACKAGE_STRING
1033PACKAGE_VERSION
1034PACKAGE_TARNAME
1035PACKAGE_NAME
1036PATH_SEPARATOR
1037SHELL'
1038ac_subst_files=''
1039ac_user_opts='
1040enable_option_checking
1041enable_silent_rules
1042enable_dependency_tracking
1043with_gnu_ld
1044with_maximum_compile_warnings
1045with_dmalloc
1046enable_bounds_checking
1047enable_osx_universal_binary
1048with_threads
1049enable_openmp
1050enable_largefile
1051enable_shared
1052enable_static
1053with_pic
1054enable_fast_install
1055enable_libtool_lock
1056with_included_ltdl
1057with_ltdl_include
1058with_ltdl_lib
1059enable_ltdl_install
1060with_modules
1061enable_delegate_build
1062enable_deprecated
1063enable_installed
1064enable_cipher
1065enable_embeddable
1066enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001067enable_assert
1068enable_maintainer_mode
1069enable_ccmalloc
1070enable_efence
1071enable_prof
1072enable_gprof
1073enable_gcov
1074with_method_prefix
1075with_quantum_depth
1076with_cache
1077with_frozenpaths
1078with_magick_plus_plus
1079with_perl
1080with_perl_options
1081with_umem
1082with_libstdc
1083with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001084with_x
cristy3ed852e2009-09-05 21:47:34 +00001085with_zlib
1086with_autotrace
1087with_dps
1088with_djvu
1089with_fftw
1090with_fpx
1091with_fontconfig
1092with_freetype
1093with_gslib
1094with_fontpath
1095with_gs_font_dir
1096with_gvc
1097with_jbig
1098with_jpeg
1099with_jp2
1100with_lcms
1101with_lqr
1102with_openexr
1103with_png
1104with_rsvg
1105with_tiff
1106with_windows_font_dir
1107with_wmf
1108with_xml
1109'
1110 ac_precious_vars='build_alias
1111host_alias
1112target_alias
1113CC
1114CFLAGS
1115LDFLAGS
1116LIBS
1117CPPFLAGS
1118CPP
1119CXX
1120CXXFLAGS
1121CCC
1122PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001123CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001124XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001125AUTOTRACE_CFLAGS
1126AUTOTRACE_LIBS
1127FONTCONFIG_CFLAGS
1128FONTCONFIG_LIBS
1129GVC_CFLAGS
1130GVC_LIBS
1131LQR_CFLAGS
1132LQR_LIBS
1133OPENEXR_CFLAGS
1134OPENEXR_LIBS
1135RSVG_CFLAGS
1136RSVG_LIBS
1137CAIRO_SVG_CFLAGS
1138CAIRO_SVG_LIBS'
1139
1140
1141# Initialize some variables set by options.
1142ac_init_help=
1143ac_init_version=false
1144ac_unrecognized_opts=
1145ac_unrecognized_sep=
1146# The variables have the same names as the options, with
1147# dashes changed to underlines.
1148cache_file=/dev/null
1149exec_prefix=NONE
1150no_create=
1151no_recursion=
1152prefix=NONE
1153program_prefix=NONE
1154program_suffix=NONE
1155program_transform_name=s,x,x,
1156silent=
1157site=
1158srcdir=
1159verbose=
1160x_includes=NONE
1161x_libraries=NONE
1162
1163# Installation directory options.
1164# These are left unexpanded so users can "make install exec_prefix=/foo"
1165# and all the variables that are supposed to be based on exec_prefix
1166# by default will actually change.
1167# Use braces instead of parens because sh, perl, etc. also accept them.
1168# (The list follows the same order as the GNU Coding Standards.)
1169bindir='${exec_prefix}/bin'
1170sbindir='${exec_prefix}/sbin'
1171libexecdir='${exec_prefix}/libexec'
1172datarootdir='${prefix}/share'
1173datadir='${datarootdir}'
1174sysconfdir='${prefix}/etc'
1175sharedstatedir='${prefix}/com'
1176localstatedir='${prefix}/var'
1177includedir='${prefix}/include'
1178oldincludedir='/usr/include'
1179docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1180infodir='${datarootdir}/info'
1181htmldir='${docdir}'
1182dvidir='${docdir}'
1183pdfdir='${docdir}'
1184psdir='${docdir}'
1185libdir='${exec_prefix}/lib'
1186localedir='${datarootdir}/locale'
1187mandir='${datarootdir}/man'
1188
1189ac_prev=
1190ac_dashdash=
1191for ac_option
1192do
1193 # If the previous option needs an argument, assign it.
1194 if test -n "$ac_prev"; then
1195 eval $ac_prev=\$ac_option
1196 ac_prev=
1197 continue
1198 fi
1199
1200 case $ac_option in
1201 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1202 *) ac_optarg=yes ;;
1203 esac
1204
1205 # Accept the important Cygnus configure options, so we can diagnose typos.
1206
1207 case $ac_dashdash$ac_option in
1208 --)
1209 ac_dashdash=yes ;;
1210
1211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1212 ac_prev=bindir ;;
1213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1214 bindir=$ac_optarg ;;
1215
1216 -build | --build | --buil | --bui | --bu)
1217 ac_prev=build_alias ;;
1218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1219 build_alias=$ac_optarg ;;
1220
1221 -cache-file | --cache-file | --cache-fil | --cache-fi \
1222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1223 ac_prev=cache_file ;;
1224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1226 cache_file=$ac_optarg ;;
1227
1228 --config-cache | -C)
1229 cache_file=config.cache ;;
1230
1231 -datadir | --datadir | --datadi | --datad)
1232 ac_prev=datadir ;;
1233 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1234 datadir=$ac_optarg ;;
1235
1236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1237 | --dataroo | --dataro | --datar)
1238 ac_prev=datarootdir ;;
1239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1241 datarootdir=$ac_optarg ;;
1242
1243 -disable-* | --disable-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001247 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"enable_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval enable_$ac_useropt=no ;;
1258
1259 -docdir | --docdir | --docdi | --doc | --do)
1260 ac_prev=docdir ;;
1261 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1262 docdir=$ac_optarg ;;
1263
1264 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1265 ac_prev=dvidir ;;
1266 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1267 dvidir=$ac_optarg ;;
1268
1269 -enable-* | --enable-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001273 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278"enable_$ac_useropt"
1279"*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval enable_$ac_useropt=\$ac_optarg ;;
1284
1285 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1286 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1287 | --exec | --exe | --ex)
1288 ac_prev=exec_prefix ;;
1289 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1290 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1291 | --exec=* | --exe=* | --ex=*)
1292 exec_prefix=$ac_optarg ;;
1293
1294 -gas | --gas | --ga | --g)
1295 # Obsolete; use --with-gas.
1296 with_gas=yes ;;
1297
1298 -help | --help | --hel | --he | -h)
1299 ac_init_help=long ;;
1300 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1301 ac_init_help=recursive ;;
1302 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1303 ac_init_help=short ;;
1304
1305 -host | --host | --hos | --ho)
1306 ac_prev=host_alias ;;
1307 -host=* | --host=* | --hos=* | --ho=*)
1308 host_alias=$ac_optarg ;;
1309
1310 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1311 ac_prev=htmldir ;;
1312 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1313 | --ht=*)
1314 htmldir=$ac_optarg ;;
1315
1316 -includedir | --includedir | --includedi | --included | --include \
1317 | --includ | --inclu | --incl | --inc)
1318 ac_prev=includedir ;;
1319 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1320 | --includ=* | --inclu=* | --incl=* | --inc=*)
1321 includedir=$ac_optarg ;;
1322
1323 -infodir | --infodir | --infodi | --infod | --info | --inf)
1324 ac_prev=infodir ;;
1325 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1326 infodir=$ac_optarg ;;
1327
1328 -libdir | --libdir | --libdi | --libd)
1329 ac_prev=libdir ;;
1330 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1331 libdir=$ac_optarg ;;
1332
1333 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1334 | --libexe | --libex | --libe)
1335 ac_prev=libexecdir ;;
1336 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1337 | --libexe=* | --libex=* | --libe=*)
1338 libexecdir=$ac_optarg ;;
1339
1340 -localedir | --localedir | --localedi | --localed | --locale)
1341 ac_prev=localedir ;;
1342 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1343 localedir=$ac_optarg ;;
1344
1345 -localstatedir | --localstatedir | --localstatedi | --localstated \
1346 | --localstate | --localstat | --localsta | --localst | --locals)
1347 ac_prev=localstatedir ;;
1348 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1349 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1350 localstatedir=$ac_optarg ;;
1351
1352 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1353 ac_prev=mandir ;;
1354 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1355 mandir=$ac_optarg ;;
1356
1357 -nfp | --nfp | --nf)
1358 # Obsolete; use --without-fp.
1359 with_fp=no ;;
1360
1361 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1362 | --no-cr | --no-c | -n)
1363 no_create=yes ;;
1364
1365 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1366 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1367 no_recursion=yes ;;
1368
1369 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1370 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1371 | --oldin | --oldi | --old | --ol | --o)
1372 ac_prev=oldincludedir ;;
1373 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1374 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1375 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1376 oldincludedir=$ac_optarg ;;
1377
1378 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1379 ac_prev=prefix ;;
1380 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1381 prefix=$ac_optarg ;;
1382
1383 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1384 | --program-pre | --program-pr | --program-p)
1385 ac_prev=program_prefix ;;
1386 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1387 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1388 program_prefix=$ac_optarg ;;
1389
1390 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1391 | --program-suf | --program-su | --program-s)
1392 ac_prev=program_suffix ;;
1393 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1394 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1395 program_suffix=$ac_optarg ;;
1396
1397 -program-transform-name | --program-transform-name \
1398 | --program-transform-nam | --program-transform-na \
1399 | --program-transform-n | --program-transform- \
1400 | --program-transform | --program-transfor \
1401 | --program-transfo | --program-transf \
1402 | --program-trans | --program-tran \
1403 | --progr-tra | --program-tr | --program-t)
1404 ac_prev=program_transform_name ;;
1405 -program-transform-name=* | --program-transform-name=* \
1406 | --program-transform-nam=* | --program-transform-na=* \
1407 | --program-transform-n=* | --program-transform-=* \
1408 | --program-transform=* | --program-transfor=* \
1409 | --program-transfo=* | --program-transf=* \
1410 | --program-trans=* | --program-tran=* \
1411 | --progr-tra=* | --program-tr=* | --program-t=*)
1412 program_transform_name=$ac_optarg ;;
1413
1414 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1415 ac_prev=pdfdir ;;
1416 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1417 pdfdir=$ac_optarg ;;
1418
1419 -psdir | --psdir | --psdi | --psd | --ps)
1420 ac_prev=psdir ;;
1421 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1422 psdir=$ac_optarg ;;
1423
1424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425 | -silent | --silent | --silen | --sile | --sil)
1426 silent=yes ;;
1427
1428 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1429 ac_prev=sbindir ;;
1430 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1431 | --sbi=* | --sb=*)
1432 sbindir=$ac_optarg ;;
1433
1434 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1435 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1436 | --sharedst | --shareds | --shared | --share | --shar \
1437 | --sha | --sh)
1438 ac_prev=sharedstatedir ;;
1439 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1440 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1441 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1442 | --sha=* | --sh=*)
1443 sharedstatedir=$ac_optarg ;;
1444
1445 -site | --site | --sit)
1446 ac_prev=site ;;
1447 -site=* | --site=* | --sit=*)
1448 site=$ac_optarg ;;
1449
1450 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1451 ac_prev=srcdir ;;
1452 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1453 srcdir=$ac_optarg ;;
1454
1455 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1456 | --syscon | --sysco | --sysc | --sys | --sy)
1457 ac_prev=sysconfdir ;;
1458 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1459 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1460 sysconfdir=$ac_optarg ;;
1461
1462 -target | --target | --targe | --targ | --tar | --ta | --t)
1463 ac_prev=target_alias ;;
1464 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1465 target_alias=$ac_optarg ;;
1466
1467 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1468 verbose=yes ;;
1469
1470 -version | --version | --versio | --versi | --vers | -V)
1471 ac_init_version=: ;;
1472
1473 -with-* | --with-*)
1474 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1475 # Reject names that are not valid shell variable names.
1476 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001477 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001478 ac_useropt_orig=$ac_useropt
1479 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1480 case $ac_user_opts in
1481 *"
1482"with_$ac_useropt"
1483"*) ;;
1484 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1485 ac_unrecognized_sep=', ';;
1486 esac
1487 eval with_$ac_useropt=\$ac_optarg ;;
1488
1489 -without-* | --without-*)
1490 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1491 # Reject names that are not valid shell variable names.
1492 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001493 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001494 ac_useropt_orig=$ac_useropt
1495 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1496 case $ac_user_opts in
1497 *"
1498"with_$ac_useropt"
1499"*) ;;
1500 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1501 ac_unrecognized_sep=', ';;
1502 esac
1503 eval with_$ac_useropt=no ;;
1504
1505 --x)
1506 # Obsolete; use --with-x.
1507 with_x=yes ;;
1508
1509 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1510 | --x-incl | --x-inc | --x-in | --x-i)
1511 ac_prev=x_includes ;;
1512 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1513 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1514 x_includes=$ac_optarg ;;
1515
1516 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1517 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1518 ac_prev=x_libraries ;;
1519 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1520 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1521 x_libraries=$ac_optarg ;;
1522
cristy8b350f62009-11-15 23:12:43 +00001523 -*) as_fn_error "unrecognized option: \`$ac_option'
1524Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001525 ;;
1526
1527 *=*)
1528 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1529 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001530 case $ac_envvar in #(
1531 '' | [0-9]* | *[!_$as_cr_alnum]* )
1532 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1533 esac
cristy3ed852e2009-09-05 21:47:34 +00001534 eval $ac_envvar=\$ac_optarg
1535 export $ac_envvar ;;
1536
1537 *)
1538 # FIXME: should be removed in autoconf 3.0.
1539 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1540 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1541 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1542 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1543 ;;
1544
1545 esac
1546done
1547
1548if test -n "$ac_prev"; then
1549 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001550 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001551fi
1552
1553if test -n "$ac_unrecognized_opts"; then
1554 case $enable_option_checking in
1555 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001556 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001557 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1558 esac
1559fi
1560
1561# Check all directory arguments for consistency.
1562for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1563 datadir sysconfdir sharedstatedir localstatedir includedir \
1564 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1565 libdir localedir mandir
1566do
1567 eval ac_val=\$$ac_var
1568 # Remove trailing slashes.
1569 case $ac_val in
1570 */ )
1571 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1572 eval $ac_var=\$ac_val;;
1573 esac
1574 # Be sure to have absolute directory names.
1575 case $ac_val in
1576 [\\/$]* | ?:[\\/]* ) continue;;
1577 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1578 esac
cristy8b350f62009-11-15 23:12:43 +00001579 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001580done
1581
1582# There might be people who depend on the old broken behavior: `$host'
1583# used to hold the argument of --host etc.
1584# FIXME: To remove some day.
1585build=$build_alias
1586host=$host_alias
1587target=$target_alias
1588
1589# FIXME: To remove some day.
1590if test "x$host_alias" != x; then
1591 if test "x$build_alias" = x; then
1592 cross_compiling=maybe
1593 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1594 If a cross compiler is detected then cross compile mode will be used." >&2
1595 elif test "x$build_alias" != "x$host_alias"; then
1596 cross_compiling=yes
1597 fi
1598fi
1599
1600ac_tool_prefix=
1601test -n "$host_alias" && ac_tool_prefix=$host_alias-
1602
1603test "$silent" = yes && exec 6>/dev/null
1604
1605
1606ac_pwd=`pwd` && test -n "$ac_pwd" &&
1607ac_ls_di=`ls -di .` &&
1608ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001609 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001610test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001611 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001612
1613
1614# Find the source files, if location was not specified.
1615if test -z "$srcdir"; then
1616 ac_srcdir_defaulted=yes
1617 # Try the directory containing this script, then the parent directory.
1618 ac_confdir=`$as_dirname -- "$as_myself" ||
1619$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1620 X"$as_myself" : 'X\(//\)[^/]' \| \
1621 X"$as_myself" : 'X\(//\)$' \| \
1622 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1623$as_echo X"$as_myself" |
1624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1625 s//\1/
1626 q
1627 }
1628 /^X\(\/\/\)[^/].*/{
1629 s//\1/
1630 q
1631 }
1632 /^X\(\/\/\)$/{
1633 s//\1/
1634 q
1635 }
1636 /^X\(\/\).*/{
1637 s//\1/
1638 q
1639 }
1640 s/.*/./; q'`
1641 srcdir=$ac_confdir
1642 if test ! -r "$srcdir/$ac_unique_file"; then
1643 srcdir=..
1644 fi
1645else
1646 ac_srcdir_defaulted=no
1647fi
1648if test ! -r "$srcdir/$ac_unique_file"; then
1649 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001650 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001651fi
1652ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1653ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001654 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001655 pwd)`
1656# When building in place, set srcdir=.
1657if test "$ac_abs_confdir" = "$ac_pwd"; then
1658 srcdir=.
1659fi
1660# Remove unnecessary trailing slashes from srcdir.
1661# Double slashes in file names in object file debugging info
1662# mess up M-x gdb in Emacs.
1663case $srcdir in
1664*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1665esac
1666for ac_var in $ac_precious_vars; do
1667 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1668 eval ac_env_${ac_var}_value=\$${ac_var}
1669 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1670 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1671done
1672
1673#
1674# Report the --help message.
1675#
1676if test "$ac_init_help" = "long"; then
1677 # Omit some internal or obsolete options to make the list less imposing.
1678 # This message is too long to be a string in the A/UX 3.1 sh.
1679 cat <<_ACEOF
cristyd934d102009-10-10 12:55:13 +00001680\`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001681
1682Usage: $0 [OPTION]... [VAR=VALUE]...
1683
1684To assign environment variables (e.g., CC, CFLAGS...), specify them as
1685VAR=VALUE. See below for descriptions of some of the useful variables.
1686
1687Defaults for the options are specified in brackets.
1688
1689Configuration:
1690 -h, --help display this help and exit
1691 --help=short display options specific to this package
1692 --help=recursive display the short help of all the included packages
1693 -V, --version display version information and exit
1694 -q, --quiet, --silent do not print \`checking...' messages
1695 --cache-file=FILE cache test results in FILE [disabled]
1696 -C, --config-cache alias for \`--cache-file=config.cache'
1697 -n, --no-create do not create output files
1698 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1699
1700Installation directories:
1701 --prefix=PREFIX install architecture-independent files in PREFIX
1702 [$ac_default_prefix]
1703 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1704 [PREFIX]
1705
1706By default, \`make install' will install all the files in
1707\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1708an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1709for instance \`--prefix=\$HOME'.
1710
1711For better control, use the options below.
1712
1713Fine tuning of the installation directories:
1714 --bindir=DIR user executables [EPREFIX/bin]
1715 --sbindir=DIR system admin executables [EPREFIX/sbin]
1716 --libexecdir=DIR program executables [EPREFIX/libexec]
1717 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1718 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1719 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1720 --libdir=DIR object code libraries [EPREFIX/lib]
1721 --includedir=DIR C header files [PREFIX/include]
1722 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1723 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1724 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1725 --infodir=DIR info documentation [DATAROOTDIR/info]
1726 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1727 --mandir=DIR man documentation [DATAROOTDIR/man]
1728 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1729 --htmldir=DIR html documentation [DOCDIR]
1730 --dvidir=DIR dvi documentation [DOCDIR]
1731 --pdfdir=DIR pdf documentation [DOCDIR]
1732 --psdir=DIR ps documentation [DOCDIR]
1733_ACEOF
1734
1735 cat <<\_ACEOF
1736
1737Program names:
1738 --program-prefix=PREFIX prepend PREFIX to installed program names
1739 --program-suffix=SUFFIX append SUFFIX to installed program names
1740 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1741
1742X features:
1743 --x-includes=DIR X include files are in DIR
1744 --x-libraries=DIR X library files are in DIR
1745
1746System types:
1747 --build=BUILD configure for building on BUILD [guessed]
1748 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1749 --target=TARGET configure for building compilers for TARGET [HOST]
1750_ACEOF
1751fi
1752
1753if test -n "$ac_init_help"; then
1754 case $ac_init_help in
cristyd934d102009-10-10 12:55:13 +00001755 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001756 esac
1757 cat <<\_ACEOF
1758
1759Optional Features:
1760 --disable-option-checking ignore unrecognized --enable/--with options
1761 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1762 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1763 --enable-silent-rules less verbose build output (undo: `make V=1')
1764 --disable-silent-rules verbose build output (undo: `make V=0')
1765 --disable-dependency-tracking speeds up one-time build
1766 --enable-dependency-tracking do not reject slow dependency extractors
1767 --bounds-checking enable run-time bounds-checking
1768 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001769 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001770 --disable-openmp do not use OpenMP
1771 --disable-largefile omit support for large files
1772 --enable-shared[=PKGS] build shared libraries [default=yes]
1773 --enable-static[=PKGS] build static libraries [default=yes]
1774 --enable-fast-install[=PKGS]
1775 optimize for fast installation [default=yes]
1776 --disable-libtool-lock avoid locking (might break parallel builds)
1777 --enable-ltdl-install install libltdl
1778 --enable-delegate-build look for delegate libraries in build directory
1779 --disable-deprecated exclude deprecated methods in MagickCore and
1780 MagickWand API's
1781 --disable-installed Formally install ImageMagick under PREFIX
1782 --disable-cipher disable enciphering and deciphering image pixels
1783 --enable-embeddable enable self-contained, embeddable,
1784 zero-configuration ImageMagick
1785 --enable-hdri accurately represent the wide range of intensity
1786 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001787 --disable-assert disable assert() statements in build
1788 --enable-maintainer-mode enable make rules and dependencies not useful
1789 (and sometimes confusing) to the casual installer
1790 --enable-ccmalloc enable 'ccmalloc' memory debug support
1791 --enable-efence enable 'efence' memory debug support
1792 --enable-prof enable 'prof' profiling support
1793 --enable-gprof enable 'gprof' profiling support
1794 --enable-gcov enable 'gcov' profiling support
1795
1796Optional Packages:
1797 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1798 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1799 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1800 --without-maximum-compile-warnings
1801 Disable maximum warning verbosity
1802 --with-dmalloc use dmalloc, as in
1803 http://www.dmalloc.com/dmalloc.tar.gz
1804 --without-threads disable threads support
1805 --with-pic try to use only PIC/non-PIC objects [default=use
1806 both]
1807 --with-included-ltdl use the GNU ltdl sources included here
1808 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1809 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1810 --with-modules enable building dynamically loadable modules
1811 --with-method-prefix=PREFIX
1812 prefix MagickCore API methods
1813 --with-quantum-depth=DEPTH
1814 number of bits in a pixel quantum (default 16)
1815 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1816 memory)
1817 --with-frozenpaths freeze delegate paths
1818 --without-magick-plus-plus
1819 disable build/install of Magick++
1820 --with-perl enable build/install of PerlMagick
1821 --with-perl-options=OPTIONS
1822 options to pass on command-line when generating
1823 PerlMagick's build file
1824 --with-umem enable umem memory allocation library support
1825 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1826 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001827 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001828 --without-zlib disable ZLIB support
1829 --with-autotrace enable autotrace support
1830 --without-dps disable Display Postscript support
1831 --without-djvu disable DjVu support
1832 --without-fftw disable FFTW support
1833 --without-fpx disable FlashPIX support
1834 --without-fontconfig disable fontconfig support
1835 --without-freetype disable Freetype support
1836 --without-gslib enable Ghostscript library support
1837 --with-fontpath=DIR prepend to default font search path
1838 --with-gs-font-dir=DIR Ghostscript font directory
1839 --without-gvc disable GVC support
1840 --without-jbig disable JBIG support
1841 --without-jpeg disable JPEG support
1842 --without-jp2 disable JPEG-2000 support
1843 --without-lcms disable LCMS support
1844 --without-lqr disable Liquid Rescale support (experimental)
1845 --without-openexr disable OpenEXR support
1846 --without-png disable PNG support
1847 --without-rsvg disable RSVG support
1848 --without-tiff disable TIFF support
1849 --with-windows-font-dir=DIR
1850 directory containing MS-Windows fonts
1851 --without-wmf disable WMF support
1852 --without-xml disable XML support
1853
1854Some influential environment variables:
1855 CC C compiler command
1856 CFLAGS C compiler flags
1857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1858 nonstandard directory <lib dir>
1859 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001860 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001861 you have headers in a nonstandard directory <include dir>
1862 CPP C preprocessor
1863 CXX C++ compiler command
1864 CXXFLAGS C++ compiler flags
1865 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001866 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001867 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001868 AUTOTRACE_CFLAGS
1869 C compiler flags for AUTOTRACE, overriding pkg-config
1870 AUTOTRACE_LIBS
1871 linker flags for AUTOTRACE, overriding pkg-config
1872 FONTCONFIG_CFLAGS
1873 C compiler flags for FONTCONFIG, overriding pkg-config
1874 FONTCONFIG_LIBS
1875 linker flags for FONTCONFIG, overriding pkg-config
1876 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1877 GVC_LIBS linker flags for GVC, overriding pkg-config
1878 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1879 LQR_LIBS linker flags for LQR, overriding pkg-config
1880 OPENEXR_CFLAGS
1881 C compiler flags for OPENEXR, overriding pkg-config
1882 OPENEXR_LIBS
1883 linker flags for OPENEXR, overriding pkg-config
1884 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1885 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1886 CAIRO_SVG_CFLAGS
1887 C compiler flags for CAIRO_SVG, overriding pkg-config
1888 CAIRO_SVG_LIBS
1889 linker flags for CAIRO_SVG, overriding pkg-config
1890
1891Use these variables to override the choices made by `configure' or to help
1892it to find libraries and programs with nonstandard names/locations.
1893
1894Report bugs to <http://www.imagemagick.org>.
1895_ACEOF
1896ac_status=$?
1897fi
1898
1899if test "$ac_init_help" = "recursive"; then
1900 # If there are subdirs, report their specific --help.
1901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1902 test -d "$ac_dir" ||
1903 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1904 continue
1905 ac_builddir=.
1906
1907case "$ac_dir" in
1908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909*)
1910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1911 # A ".." for each directory in $ac_dir_suffix.
1912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1913 case $ac_top_builddir_sub in
1914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1916 esac ;;
1917esac
1918ac_abs_top_builddir=$ac_pwd
1919ac_abs_builddir=$ac_pwd$ac_dir_suffix
1920# for backward compatibility:
1921ac_top_builddir=$ac_top_build_prefix
1922
1923case $srcdir in
1924 .) # We are building in place.
1925 ac_srcdir=.
1926 ac_top_srcdir=$ac_top_builddir_sub
1927 ac_abs_top_srcdir=$ac_pwd ;;
1928 [\\/]* | ?:[\\/]* ) # Absolute name.
1929 ac_srcdir=$srcdir$ac_dir_suffix;
1930 ac_top_srcdir=$srcdir
1931 ac_abs_top_srcdir=$srcdir ;;
1932 *) # Relative name.
1933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1934 ac_top_srcdir=$ac_top_build_prefix$srcdir
1935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1936esac
1937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1938
1939 cd "$ac_dir" || { ac_status=$?; continue; }
1940 # Check for guested configure.
1941 if test -f "$ac_srcdir/configure.gnu"; then
1942 echo &&
1943 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1944 elif test -f "$ac_srcdir/configure"; then
1945 echo &&
1946 $SHELL "$ac_srcdir/configure" --help=recursive
1947 else
1948 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1949 fi || ac_status=$?
1950 cd "$ac_pwd" || { ac_status=$?; break; }
1951 done
1952fi
1953
1954test -n "$ac_init_help" && exit $ac_status
1955if $ac_init_version; then
1956 cat <<\_ACEOF
cristyd934d102009-10-10 12:55:13 +00001957ImageMagick configure 6.5.7
cristycd4c5312009-11-22 01:19:08 +00001958generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00001959
cristy8b350f62009-11-15 23:12:43 +00001960Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001961This configure script is free software; the Free Software Foundation
1962gives unlimited permission to copy, distribute and modify it.
1963_ACEOF
1964 exit
1965fi
cristy8b350f62009-11-15 23:12:43 +00001966
1967## ------------------------ ##
1968## Autoconf initialization. ##
1969## ------------------------ ##
1970
1971# ac_fn_c_try_compile LINENO
1972# --------------------------
1973# Try to compile conftest.$ac_ext, and return whether this succeeded.
1974ac_fn_c_try_compile ()
1975{
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext
1978 if { { ac_try="$ac_compile"
1979case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_compile") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1991 fi
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_c_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest.$ac_objext; then :
1997 ac_retval=0
1998else
1999 $as_echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_retval=1
2003fi
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002005 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002006
2007} # ac_fn_c_try_compile
2008
2009# ac_fn_c_try_cpp LINENO
2010# ----------------------
2011# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2012ac_fn_c_try_cpp ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if { { ac_try="$ac_cpp conftest.$ac_ext"
2016case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019esac
2020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021$as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2028 fi
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } >/dev/null && {
2031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 }; then :
2034 ac_retval=0
2035else
2036 $as_echo "$as_me: failed program was:" >&5
2037sed 's/^/| /' conftest.$ac_ext >&5
2038
2039 ac_retval=1
2040fi
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002042 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002043
2044} # ac_fn_c_try_cpp
2045
2046# ac_fn_cxx_try_compile LINENO
2047# ----------------------------
2048# Try to compile conftest.$ac_ext, and return whether this succeeded.
2049ac_fn_cxx_try_compile ()
2050{
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 rm -f conftest.$ac_objext
2053 if { { ac_try="$ac_compile"
2054case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057esac
2058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059$as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_compile") 2>conftest.err
2061 ac_status=$?
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2066 fi
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_cxx_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest.$ac_objext; then :
2072 ac_retval=0
2073else
2074 $as_echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_retval=1
2078fi
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002080 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002081
2082} # ac_fn_cxx_try_compile
2083
2084# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2085# -------------------------------------------------------
2086# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2087# the include files in INCLUDES and setting the cache variable VAR
2088# accordingly.
2089ac_fn_c_check_header_mongrel ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
2095if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 $as_echo_n "(cached) " >&6
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101else
2102 # Is the header compilable?
2103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2104$as_echo_n "checking $2 usability... " >&6; }
2105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108#include <$2>
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_header_compiler=yes
2112else
2113 ac_header_compiler=no
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2117$as_echo "$ac_header_compiler" >&6; }
2118
2119# Is the header present?
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2121$as_echo_n "checking $2 presence... " >&6; }
2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124#include <$2>
2125_ACEOF
2126if ac_fn_c_try_cpp "$LINENO"; then :
2127 ac_header_preproc=yes
2128else
2129 ac_header_preproc=no
2130fi
2131rm -f conftest.err conftest.$ac_ext
2132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2133$as_echo "$ac_header_preproc" >&6; }
2134
2135# So? What about this header?
2136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2137 yes:no: )
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2139$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 ;;
2143 no:yes:* )
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2145$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2147$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2149$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2151$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2153$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154( cat <<\_ASBOX
2155## ----------------------------------------- ##
2156## Report this to http://www.imagemagick.org ##
2157## ----------------------------------------- ##
2158_ASBOX
2159 ) | sed "s/^/$as_me: WARNING: /" >&2
2160 ;;
2161esac
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
2164if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165 $as_echo_n "(cached) " >&6
2166else
2167 eval "$3=\$ac_header_compiler"
2168fi
2169eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172fi
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174
2175} # ac_fn_c_check_header_mongrel
2176
2177# ac_fn_c_try_run LINENO
2178# ----------------------
2179# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180# that executables *can* be run.
2181ac_fn_c_try_run ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_link"
2185case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188esac
2189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190$as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>&5
2192 ac_status=$?
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195 { { case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_try") 2>&5
2202 ac_status=$?
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; }; }; then :
2205 ac_retval=0
2206else
2207 $as_echo "$as_me: program exited with status $ac_status" >&5
2208 $as_echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 ac_retval=$ac_status
2212fi
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2214 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002215 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002216
2217} # ac_fn_c_try_run
2218
2219# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2220# -------------------------------------------------------
2221# Tests whether HEADER exists and can be compiled using the include files in
2222# INCLUDES, setting the cache variable VAR accordingly.
2223ac_fn_c_check_header_compile ()
2224{
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
2228if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 $as_echo_n "(cached) " >&6
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$4
2234#include <$2>
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$3=yes"
2238else
2239 eval "$3=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245$as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247
2248} # ac_fn_c_check_header_compile
2249
2250# ac_fn_c_try_link LINENO
2251# -----------------------
2252# Try to link conftest.$ac_ext, and return whether this succeeded.
2253ac_fn_c_try_link ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 rm -f conftest.$ac_objext conftest$ac_exeext
2257 if { { ac_try="$ac_link"
2258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_link") 2>conftest.err
2265 ac_status=$?
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2270 fi
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } && {
2273 test -z "$ac_c_werror_flag" ||
2274 test ! -s conftest.err
2275 } && test -s conftest$ac_exeext && {
2276 test "$cross_compiling" = yes ||
2277 $as_test_x conftest$ac_exeext
2278 }; then :
2279 ac_retval=0
2280else
2281 $as_echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 ac_retval=1
2285fi
2286 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2287 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2288 # interfere with the next link command; also delete a directory that is
2289 # left behind by Apple's compiler. We do this before executing the actions.
2290 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002292 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002293
2294} # ac_fn_c_try_link
2295
2296# ac_fn_c_check_func LINENO FUNC VAR
2297# ----------------------------------
2298# Tests whether FUNC exists, setting the cache variable VAR accordingly
2299ac_fn_c_check_func ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303$as_echo_n "checking for $2... " >&6; }
2304if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2306else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308/* end confdefs.h. */
2309/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2311#define $2 innocuous_$2
2312
2313/* System header to define __stub macros and hopefully few prototypes,
2314 which can conflict with char $2 (); below.
2315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2316 <limits.h> exists even on freestanding compilers. */
2317
2318#ifdef __STDC__
2319# include <limits.h>
2320#else
2321# include <assert.h>
2322#endif
2323
2324#undef $2
2325
2326/* Override any GCC internal prototype to avoid an error.
2327 Use char because int might match the return type of a GCC
2328 builtin and then its argument prototype would still apply. */
2329#ifdef __cplusplus
2330extern "C"
2331#endif
2332char $2 ();
2333/* The GNU C library defines this for functions which it implements
2334 to always fail with ENOSYS. Some functions are actually named
2335 something starting with __ and the normal name is an alias. */
2336#if defined __stub_$2 || defined __stub___$2
2337choke me
2338#endif
2339
2340int
2341main ()
2342{
2343return $2 ();
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_link "$LINENO"; then :
2349 eval "$3=yes"
2350else
2351 eval "$3=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext \
2354 conftest$ac_exeext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360
2361} # ac_fn_c_check_func
2362
2363# ac_fn_cxx_try_cpp LINENO
2364# ------------------------
2365# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_cpp ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 if { { ac_try="$ac_cpp conftest.$ac_ext"
2370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
2374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2375$as_echo "$ac_try_echo"; } >&5
2376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2377 ac_status=$?
2378 if test -s conftest.err; then
2379 grep -v '^ *+' conftest.err >conftest.er1
2380 cat conftest.er1 >&5
2381 mv -f conftest.er1 conftest.err
2382 fi
2383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384 test $ac_status = 0; } >/dev/null && {
2385 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2386 test ! -s conftest.err
2387 }; then :
2388 ac_retval=0
2389else
2390 $as_echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 ac_retval=1
2394fi
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002396 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002397
2398} # ac_fn_cxx_try_cpp
2399
2400# ac_fn_cxx_try_link LINENO
2401# -------------------------
2402# Try to link conftest.$ac_ext, and return whether this succeeded.
2403ac_fn_cxx_try_link ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_cxx_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430else
2431 $as_echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_retval=1
2435fi
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002442 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002443
2444} # ac_fn_cxx_try_link
2445
2446# ac_fn_c_check_decl LINENO SYMBOL VAR
2447# ------------------------------------
2448# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449ac_fn_c_check_decl ()
2450{
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453$as_echo_n "checking whether $2 is declared... " >&6; }
2454if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458/* end confdefs.h. */
2459$4
2460int
2461main ()
2462{
2463#ifndef $2
2464 (void) $2;
2465#endif
2466
2467 ;
2468 return 0;
2469}
2470_ACEOF
2471if ac_fn_c_try_compile "$LINENO"; then :
2472 eval "$3=yes"
2473else
2474 eval "$3=no"
2475fi
2476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477fi
2478eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480$as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482
2483} # ac_fn_c_check_decl
2484
2485# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2486# -------------------------------------------
2487# Tests whether TYPE exists after having included INCLUDES, setting cache
2488# variable VAR accordingly.
2489ac_fn_c_check_type ()
2490{
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493$as_echo_n "checking for $2... " >&6; }
2494if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2495 $as_echo_n "(cached) " >&6
2496else
2497 eval "$3=no"
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499/* end confdefs.h. */
2500$4
2501int
2502main ()
2503{
2504if (sizeof ($2))
2505 return 0;
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h. */
2513$4
2514int
2515main ()
2516{
2517if (sizeof (($2)))
2518 return 0;
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523if ac_fn_c_try_compile "$LINENO"; then :
2524
2525else
2526 eval "$3=yes"
2527fi
2528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529fi
2530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531fi
2532eval ac_res=\$$3
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2534$as_echo "$ac_res" >&6; }
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536
2537} # ac_fn_c_check_type
2538
2539# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2540# --------------------------------------------
2541# Tries to find the compile-time value of EXPR in a program that includes
2542# INCLUDES, setting VAR accordingly. Returns whether the value could be
2543# computed
2544ac_fn_c_compute_int ()
2545{
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 if test "$cross_compiling" = yes; then
2548 # Depending upon the size, compute the lo and hi bounds.
2549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555static int test_array [1 - 2 * !(($2) >= 0)];
2556test_array [0] = 0
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 ac_lo=0 ac_mid=0
2564 while :; do
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$4
2568int
2569main ()
2570{
2571static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2572test_array [0] = 0
2573
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578if ac_fn_c_try_compile "$LINENO"; then :
2579 ac_hi=$ac_mid; break
2580else
2581 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2582 if test $ac_lo -le $ac_mid; then
2583 ac_lo= ac_hi=
2584 break
2585 fi
2586 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 done
2590else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592/* end confdefs.h. */
2593$4
2594int
2595main ()
2596{
2597static int test_array [1 - 2 * !(($2) < 0)];
2598test_array [0] = 0
2599
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=-1 ac_mid=-1
2606 while :; do
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608/* end confdefs.h. */
2609$4
2610int
2611main ()
2612{
2613static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2614test_array [0] = 0
2615
2616 ;
2617 return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_compile "$LINENO"; then :
2621 ac_lo=$ac_mid; break
2622else
2623 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2624 if test $ac_mid -le $ac_hi; then
2625 ac_lo= ac_hi=
2626 break
2627 fi
2628 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 done
2632else
2633 ac_lo= ac_hi=
2634fi
2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636fi
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638# Binary search between lo and hi bounds.
2639while test "x$ac_lo" != "x$ac_hi"; do
2640 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643$4
2644int
2645main ()
2646{
2647static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2648test_array [0] = 0
2649
2650 ;
2651 return 0;
2652}
2653_ACEOF
2654if ac_fn_c_try_compile "$LINENO"; then :
2655 ac_hi=$ac_mid
2656else
2657 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2658fi
2659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660done
2661case $ac_lo in #((
2662?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2663'') ac_retval=1 ;;
2664esac
2665 else
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668$4
2669static long int longval () { return $2; }
2670static unsigned long int ulongval () { return $2; }
2671#include <stdio.h>
2672#include <stdlib.h>
2673int
2674main ()
2675{
2676
2677 FILE *f = fopen ("conftest.val", "w");
2678 if (! f)
2679 return 1;
2680 if (($2) < 0)
2681 {
2682 long int i = longval ();
2683 if (i != ($2))
2684 return 1;
2685 fprintf (f, "%ld", i);
2686 }
2687 else
2688 {
2689 unsigned long int i = ulongval ();
2690 if (i != ($2))
2691 return 1;
2692 fprintf (f, "%lu", i);
2693 }
2694 /* Do not output a trailing newline, as this causes \r\n confusion
2695 on some platforms. */
2696 return ferror (f) || fclose (f) != 0;
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702if ac_fn_c_try_run "$LINENO"; then :
2703 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2704else
2705 ac_retval=1
2706fi
2707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2708 conftest.$ac_objext conftest.beam conftest.$ac_ext
2709rm -f conftest.val
2710
2711 fi
2712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002713 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002714
2715} # ac_fn_c_compute_int
2716
2717# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2718# ---------------------------------------------------------
2719# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2720# the include files in INCLUDES and setting the cache variable VAR
2721# accordingly.
2722ac_fn_cxx_check_header_mongrel ()
2723{
2724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2727$as_echo_n "checking for $2... " >&6; }
2728if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2729 $as_echo_n "(cached) " >&6
2730fi
2731eval ac_res=\$$3
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733$as_echo "$ac_res" >&6; }
2734else
2735 # Is the header compilable?
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2737$as_echo_n "checking $2 usability... " >&6; }
2738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h. */
2740$4
2741#include <$2>
2742_ACEOF
2743if ac_fn_cxx_try_compile "$LINENO"; then :
2744 ac_header_compiler=yes
2745else
2746 ac_header_compiler=no
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2750$as_echo "$ac_header_compiler" >&6; }
2751
2752# Is the header present?
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2754$as_echo_n "checking $2 presence... " >&6; }
2755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756/* end confdefs.h. */
2757#include <$2>
2758_ACEOF
2759if ac_fn_cxx_try_cpp "$LINENO"; then :
2760 ac_header_preproc=yes
2761else
2762 ac_header_preproc=no
2763fi
2764rm -f conftest.err conftest.$ac_ext
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2766$as_echo "$ac_header_preproc" >&6; }
2767
2768# So? What about this header?
2769case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2770 yes:no: )
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2772$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2774$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2775 ;;
2776 no:yes:* )
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2778$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2780$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2782$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2784$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2786$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2787( cat <<\_ASBOX
2788## ----------------------------------------- ##
2789## Report this to http://www.imagemagick.org ##
2790## ----------------------------------------- ##
2791_ASBOX
2792 ) | sed "s/^/$as_me: WARNING: /" >&2
2793 ;;
2794esac
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2796$as_echo_n "checking for $2... " >&6; }
2797if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2798 $as_echo_n "(cached) " >&6
2799else
2800 eval "$3=\$ac_header_compiler"
2801fi
2802eval ac_res=\$$3
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804$as_echo "$ac_res" >&6; }
2805fi
2806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2807
2808} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002809cat >config.log <<_ACEOF
2810This file contains any messages produced by compilers while
2811running configure, to aid debugging if configure makes a mistake.
2812
cristyd934d102009-10-10 12:55:13 +00002813It was created by ImageMagick $as_me 6.5.7, which was
cristycd4c5312009-11-22 01:19:08 +00002814generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002815
2816 $ $0 $@
2817
2818_ACEOF
2819exec 5>>config.log
2820{
2821cat <<_ASUNAME
2822## --------- ##
2823## Platform. ##
2824## --------- ##
2825
2826hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2827uname -m = `(uname -m) 2>/dev/null || echo unknown`
2828uname -r = `(uname -r) 2>/dev/null || echo unknown`
2829uname -s = `(uname -s) 2>/dev/null || echo unknown`
2830uname -v = `(uname -v) 2>/dev/null || echo unknown`
2831
2832/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2833/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2834
2835/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2836/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2837/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2838/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2839/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2840/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2841/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2842
2843_ASUNAME
2844
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002850 $as_echo "PATH: $as_dir"
2851 done
cristy3ed852e2009-09-05 21:47:34 +00002852IFS=$as_save_IFS
2853
2854} >&5
2855
2856cat >&5 <<_ACEOF
2857
2858
2859## ----------- ##
2860## Core tests. ##
2861## ----------- ##
2862
2863_ACEOF
2864
2865
2866# Keep a trace of the command line.
2867# Strip out --no-create and --no-recursion so they do not pile up.
2868# Strip out --silent because we don't want to record it for future runs.
2869# Also quote any args containing shell meta-characters.
2870# Make two passes to allow for proper duplicate-argument suppression.
2871ac_configure_args=
2872ac_configure_args0=
2873ac_configure_args1=
2874ac_must_keep_next=false
2875for ac_pass in 1 2
2876do
2877 for ac_arg
2878 do
2879 case $ac_arg in
2880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2882 | -silent | --silent | --silen | --sile | --sil)
2883 continue ;;
2884 *\'*)
2885 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2886 esac
2887 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002889 2)
cristy8b350f62009-11-15 23:12:43 +00002890 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002891 if test $ac_must_keep_next = true; then
2892 ac_must_keep_next=false # Got value, back to normal.
2893 else
2894 case $ac_arg in
2895 *=* | --config-cache | -C | -disable-* | --disable-* \
2896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2898 | -with-* | --with-* | -without-* | --without-* | --x)
2899 case "$ac_configure_args0 " in
2900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2901 esac
2902 ;;
2903 -* ) ac_must_keep_next=true ;;
2904 esac
2905 fi
cristy8b350f62009-11-15 23:12:43 +00002906 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002907 ;;
2908 esac
2909 done
2910done
cristy8b350f62009-11-15 23:12:43 +00002911{ ac_configure_args0=; unset ac_configure_args0;}
2912{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002913
2914# When interrupted or exit'd, cleanup temporary files, and complete
2915# config.log. We remove comments because anyway the quotes in there
2916# would cause problems or look ugly.
2917# WARNING: Use '\'' to represent an apostrophe within the trap.
2918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2919trap 'exit_status=$?
2920 # Save into config.log some information that might help in debugging.
2921 {
2922 echo
2923
2924 cat <<\_ASBOX
2925## ---------------- ##
2926## Cache variables. ##
2927## ---------------- ##
2928_ASBOX
2929 echo
2930 # The following way of writing the cache mishandles newlines in values,
2931(
2932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2933 eval ac_val=\$$ac_var
2934 case $ac_val in #(
2935 *${as_nl}*)
2936 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00002937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00002938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2939 esac
2940 case $ac_var in #(
2941 _ | IFS | as_nl) ;; #(
2942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00002943 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00002944 esac ;;
2945 esac
2946 done
2947 (set) 2>&1 |
2948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2949 *${as_nl}ac_space=\ *)
2950 sed -n \
2951 "s/'\''/'\''\\\\'\'''\''/g;
2952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2953 ;; #(
2954 *)
2955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2956 ;;
2957 esac |
2958 sort
2959)
2960 echo
2961
2962 cat <<\_ASBOX
2963## ----------------- ##
2964## Output variables. ##
2965## ----------------- ##
2966_ASBOX
2967 echo
2968 for ac_var in $ac_subst_vars
2969 do
2970 eval ac_val=\$$ac_var
2971 case $ac_val in
2972 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2973 esac
2974 $as_echo "$ac_var='\''$ac_val'\''"
2975 done | sort
2976 echo
2977
2978 if test -n "$ac_subst_files"; then
2979 cat <<\_ASBOX
2980## ------------------- ##
2981## File substitutions. ##
2982## ------------------- ##
2983_ASBOX
2984 echo
2985 for ac_var in $ac_subst_files
2986 do
2987 eval ac_val=\$$ac_var
2988 case $ac_val in
2989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2990 esac
2991 $as_echo "$ac_var='\''$ac_val'\''"
2992 done | sort
2993 echo
2994 fi
2995
2996 if test -s confdefs.h; then
2997 cat <<\_ASBOX
2998## ----------- ##
2999## confdefs.h. ##
3000## ----------- ##
3001_ASBOX
3002 echo
3003 cat confdefs.h
3004 echo
3005 fi
3006 test "$ac_signal" != 0 &&
3007 $as_echo "$as_me: caught signal $ac_signal"
3008 $as_echo "$as_me: exit $exit_status"
3009 } >&5
3010 rm -f core *.core core.conftest.* &&
3011 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3012 exit $exit_status
3013' 0
3014for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003015 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003016done
3017ac_signal=0
3018
3019# confdefs.h avoids OS command line length limits that DEFS can exceed.
3020rm -f -r conftest* confdefs.h
3021
cristy8b350f62009-11-15 23:12:43 +00003022$as_echo "/* confdefs.h */" > confdefs.h
3023
cristy3ed852e2009-09-05 21:47:34 +00003024# Predefined preprocessor variables.
3025
3026cat >>confdefs.h <<_ACEOF
3027#define PACKAGE_NAME "$PACKAGE_NAME"
3028_ACEOF
3029
cristy3ed852e2009-09-05 21:47:34 +00003030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3032_ACEOF
3033
cristy3ed852e2009-09-05 21:47:34 +00003034cat >>confdefs.h <<_ACEOF
3035#define PACKAGE_VERSION "$PACKAGE_VERSION"
3036_ACEOF
3037
cristy3ed852e2009-09-05 21:47:34 +00003038cat >>confdefs.h <<_ACEOF
3039#define PACKAGE_STRING "$PACKAGE_STRING"
3040_ACEOF
3041
cristy3ed852e2009-09-05 21:47:34 +00003042cat >>confdefs.h <<_ACEOF
3043#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3044_ACEOF
3045
cristy8b350f62009-11-15 23:12:43 +00003046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE_URL "$PACKAGE_URL"
3048_ACEOF
3049
cristy3ed852e2009-09-05 21:47:34 +00003050
3051# Let the site file select an alternate cache file if it wants to.
3052# Prefer an explicitly selected file to automatically selected ones.
3053ac_site_file1=NONE
3054ac_site_file2=NONE
3055if test -n "$CONFIG_SITE"; then
3056 ac_site_file1=$CONFIG_SITE
3057elif test "x$prefix" != xNONE; then
3058 ac_site_file1=$prefix/share/config.site
3059 ac_site_file2=$prefix/etc/config.site
3060else
3061 ac_site_file1=$ac_default_prefix/share/config.site
3062 ac_site_file2=$ac_default_prefix/etc/config.site
3063fi
3064for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3065do
3066 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003067 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003068 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003069$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3070 sed 's/^/| /' "$ac_site_file" >&5
3071 . "$ac_site_file"
3072 fi
3073done
3074
3075if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003076 # Some versions of bash will fail to source /dev/null (special files
3077 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3078 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003079 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003080$as_echo "$as_me: loading cache $cache_file" >&6;}
3081 case $cache_file in
3082 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3083 *) . "./$cache_file";;
3084 esac
3085 fi
3086else
cristy8b350f62009-11-15 23:12:43 +00003087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003088$as_echo "$as_me: creating cache $cache_file" >&6;}
3089 >$cache_file
3090fi
3091
cristycd4c5312009-11-22 01:19:08 +00003092as_fn_append ac_header_list " stdlib.h"
3093as_fn_append ac_header_list " unistd.h"
3094as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003095# Check that the precious variables saved in the cache have kept the same
3096# value.
3097ac_cache_corrupted=false
3098for ac_var in $ac_precious_vars; do
3099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3100 eval ac_new_set=\$ac_env_${ac_var}_set
3101 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3102 eval ac_new_val=\$ac_env_${ac_var}_value
3103 case $ac_old_set,$ac_new_set in
3104 set,)
cristy8b350f62009-11-15 23:12:43 +00003105 { $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 +00003106$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3107 ac_cache_corrupted=: ;;
3108 ,set)
cristy8b350f62009-11-15 23:12:43 +00003109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003110$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3111 ac_cache_corrupted=: ;;
3112 ,);;
3113 *)
3114 if test "x$ac_old_val" != "x$ac_new_val"; then
3115 # differences in whitespace do not lead to failure.
3116 ac_old_val_w=`echo x $ac_old_val`
3117 ac_new_val_w=`echo x $ac_new_val`
3118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003120$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3121 ac_cache_corrupted=:
3122 else
cristy8b350f62009-11-15 23:12:43 +00003123 { $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 +00003124$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3125 eval $ac_var=\$ac_old_val
3126 fi
cristy8b350f62009-11-15 23:12:43 +00003127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003128$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003130$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3131 fi;;
3132 esac
3133 # Pass precious variables to config.status.
3134 if test "$ac_new_set" = set; then
3135 case $ac_new_val in
3136 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 *) ac_arg=$ac_var=$ac_new_val ;;
3138 esac
3139 case " $ac_configure_args " in
3140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003141 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003142 esac
3143 fi
3144done
3145if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003149$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003150 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003151fi
cristy8b350f62009-11-15 23:12:43 +00003152## -------------------- ##
3153## Main body of script. ##
3154## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003155
3156ac_ext=c
3157ac_cpp='$CPP $CPPFLAGS'
3158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161
3162
3163
3164ac_aux_dir=
3165for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003166 for ac_t in install-sh install.sh shtool; do
3167 if test -f "$ac_dir/$ac_t"; then
3168 ac_aux_dir=$ac_dir
3169 ac_install_sh="$ac_aux_dir/$ac_t -c"
3170 break 2
3171 fi
3172 done
cristy3ed852e2009-09-05 21:47:34 +00003173done
3174if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003175 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003176fi
3177
3178# These three variables are undocumented and unsupported,
3179# and are intended to be withdrawn in a future Autoconf release.
3180# They can cause serious problems if a builder's source tree is in a directory
3181# whose full name contains unusual characters.
3182ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3183ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3184ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3185
3186
3187
3188
3189ac_config_headers="$ac_config_headers config/config.h"
3190
3191ac_config_commands="$ac_config_commands magick/magick-config.h"
3192
3193ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3194
3195
3196#
3197# Save initial user-tunable values
3198#
3199USER_LIBS=$LIBS
3200for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3201 eval isset=\${$var+set}
3202 if test "$isset" = 'set'; then
3203 eval val=$`echo $var`
3204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3205 fi
3206done
3207
3208
3209CONFIGURE_ARGS="$0 ${ac_configure_args}"
3210
3211
3212# Source file containing package/library versioning information.
3213. ${srcdir}/version.sh
3214
3215echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3216# Make sure we can run config.sub.
3217$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003218 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003219
cristy8b350f62009-11-15 23:12:43 +00003220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003221$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003222if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003223 $as_echo_n "(cached) " >&6
3224else
3225 ac_build_alias=$build_alias
3226test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3228test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003229 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003230ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003231 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003232
3233fi
cristy8b350f62009-11-15 23:12:43 +00003234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003235$as_echo "$ac_cv_build" >&6; }
3236case $ac_cv_build in
3237*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003238*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003239esac
3240build=$ac_cv_build
3241ac_save_IFS=$IFS; IFS='-'
3242set x $ac_cv_build
3243shift
3244build_cpu=$1
3245build_vendor=$2
3246shift; shift
3247# Remember, the first character of IFS is used to create $*,
3248# except with old shells:
3249build_os=$*
3250IFS=$ac_save_IFS
3251case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3252
3253
cristy8b350f62009-11-15 23:12:43 +00003254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003255$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003256if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003257 $as_echo_n "(cached) " >&6
3258else
3259 if test "x$host_alias" = x; then
3260 ac_cv_host=$ac_cv_build
3261else
3262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003263 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003264fi
3265
3266fi
cristy8b350f62009-11-15 23:12:43 +00003267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003268$as_echo "$ac_cv_host" >&6; }
3269case $ac_cv_host in
3270*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003271*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003272esac
3273host=$ac_cv_host
3274ac_save_IFS=$IFS; IFS='-'
3275set x $ac_cv_host
3276shift
3277host_cpu=$1
3278host_vendor=$2
3279shift; shift
3280# Remember, the first character of IFS is used to create $*,
3281# except with old shells:
3282host_os=$*
3283IFS=$ac_save_IFS
3284case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3285
3286
cristy8b350f62009-11-15 23:12:43 +00003287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003288$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003289if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003290 $as_echo_n "(cached) " >&6
3291else
3292 if test "x$target_alias" = x; then
3293 ac_cv_target=$ac_cv_host
3294else
3295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003296 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003297fi
3298
3299fi
cristy8b350f62009-11-15 23:12:43 +00003300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003301$as_echo "$ac_cv_target" >&6; }
3302case $ac_cv_target in
3303*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003304*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003305esac
3306target=$ac_cv_target
3307ac_save_IFS=$IFS; IFS='-'
3308set x $ac_cv_target
3309shift
3310target_cpu=$1
3311target_vendor=$2
3312shift; shift
3313# Remember, the first character of IFS is used to create $*,
3314# except with old shells:
3315target_os=$*
3316IFS=$ac_save_IFS
3317case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3318
3319
3320# The aliases save the names the user supplied, while $host etc.
3321# will get canonicalized.
3322test -n "$target_alias" &&
3323 test "$program_prefix$program_suffix$program_transform_name" = \
3324 NONENONEs,x,x, &&
3325 program_prefix=${target_alias}-
3326
3327# Substitute library versioning
3328
3329
3330# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003332$as_echo_n "checking whether build environment is sane... " >&6; }
3333# Just in case
3334sleep 1
3335echo timestamp > conftest.file
3336# Reject unsafe characters in $srcdir or the absolute working directory
3337# name. Accept space and tab only in the latter.
3338am_lf='
3339'
3340case `pwd` in
3341 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003342 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003343esac
3344case $srcdir in
3345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003346 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003347esac
3348
3349# Do `set' in a subshell so we don't clobber the current shell's
3350# arguments. Must try -L first in case configure is actually a
3351# symlink; some systems play weird games with the mod time of symlinks
3352# (eg FreeBSD returns the mod time of the symlink's containing
3353# directory).
3354if (
3355 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3356 if test "$*" = "X"; then
3357 # -L didn't work.
3358 set X `ls -t "$srcdir/configure" conftest.file`
3359 fi
3360 rm -f conftest.file
3361 if test "$*" != "X $srcdir/configure conftest.file" \
3362 && test "$*" != "X conftest.file $srcdir/configure"; then
3363
3364 # If neither matched, then we have a broken ls. This can happen
3365 # if, for instance, CONFIG_SHELL is bash and it inherits a
3366 # broken ls alias from the environment. This has actually
3367 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003368 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3369alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370 fi
3371
3372 test "$2" = conftest.file
3373 )
3374then
3375 # Ok.
3376 :
3377else
cristy8b350f62009-11-15 23:12:43 +00003378 as_fn_error "newly created file is older than distributed files!
3379Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380fi
cristy8b350f62009-11-15 23:12:43 +00003381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "yes" >&6; }
3383
3384am__api_version='1.11'
3385
3386# Find a good install program. We prefer a C program (faster),
3387# so one script is as good as another. But avoid the broken or
3388# incompatible versions:
3389# SysV /etc/install, /usr/sbin/install
3390# SunOS /usr/etc/install
3391# IRIX /sbin/install
3392# AIX /bin/install
3393# AmigaOS /C/install, which installs bootblocks on floppy discs
3394# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397# OS/2's system install, which has a completely different semantic
3398# ./install, which can be erroneously created by make from ./install.sh.
3399# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003401$as_echo_n "checking for a BSD-compatible install... " >&6; }
3402if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003403if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003404 $as_echo_n "(cached) " >&6
3405else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003411 # Account for people who put trailing slashes in PATH elements.
3412case $as_dir/ in #((
3413 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003416 /usr/ucb/* ) ;;
3417 *)
3418 # OSF1 and SCO ODT 3.0 have their own names for install.
3419 # Don't use installbsd from OSF since it installs stuff as root
3420 # by default.
3421 for ac_prog in ginstall scoinst install; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3424 if test $ac_prog = install &&
3425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426 # AIX install. It has an incompatible calling convention.
3427 :
3428 elif test $ac_prog = install &&
3429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430 # program-specific install script used by HP pwplus--don't use.
3431 :
3432 else
3433 rm -rf conftest.one conftest.two conftest.dir
3434 echo one > conftest.one
3435 echo two > conftest.two
3436 mkdir conftest.dir
3437 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3438 test -s conftest.one && test -s conftest.two &&
3439 test -s conftest.dir/conftest.one &&
3440 test -s conftest.dir/conftest.two
3441 then
3442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3443 break 3
3444 fi
3445 fi
3446 fi
3447 done
3448 done
3449 ;;
3450esac
3451
cristy8b350f62009-11-15 23:12:43 +00003452 done
cristy3ed852e2009-09-05 21:47:34 +00003453IFS=$as_save_IFS
3454
3455rm -rf conftest.one conftest.two conftest.dir
3456
3457fi
3458 if test "${ac_cv_path_install+set}" = set; then
3459 INSTALL=$ac_cv_path_install
3460 else
3461 # As a last resort, use the slow shell script. Don't cache a
3462 # value for INSTALL within a source directory, because that will
3463 # break other packages using the cache if that directory is
3464 # removed, or if the value is a relative name.
3465 INSTALL=$ac_install_sh
3466 fi
3467fi
cristy8b350f62009-11-15 23:12:43 +00003468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$INSTALL" >&6; }
3470
3471# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472# It thinks the first close brace ends the variable substitution.
3473test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474
3475test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476
3477test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478
3479test "$program_prefix" != NONE &&
3480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3481# Use a double $ so make ignores it.
3482test "$program_suffix" != NONE &&
3483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3484# Double any \ or $.
3485# By default was `s,x,x', remove it if useless.
3486ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3487program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3488
3489# expand $ac_aux_dir to an absolute path
3490am_aux_dir=`cd $ac_aux_dir && pwd`
3491
3492if test x"${MISSING+set}" != xset; then
3493 case $am_aux_dir in
3494 *\ * | *\ *)
3495 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3496 *)
3497 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3498 esac
3499fi
3500# Use eval to expand $SHELL
3501if eval "$MISSING --run true"; then
3502 am_missing_run="$MISSING --run "
3503else
3504 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003506$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3507fi
3508
3509if test x"${install_sh}" != xset; then
3510 case $am_aux_dir in
3511 *\ * | *\ *)
3512 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3513 *)
3514 install_sh="\${SHELL} $am_aux_dir/install-sh"
3515 esac
3516fi
3517
3518# Installed binaries are usually stripped using `strip' when the user
3519# run `make install-strip'. However `strip' might not be the right
3520# tool to use in cross-compilation environments, therefore Automake
3521# will honor the `STRIP' environment variable to overrule this program.
3522if test "$cross_compiling" != no; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3525set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003527$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003528if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003529 $as_echo_n "(cached) " >&6
3530else
3531 if test -n "$STRIP"; then
3532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543 break 2
3544 fi
3545done
cristy8b350f62009-11-15 23:12:43 +00003546 done
cristy3ed852e2009-09-05 21:47:34 +00003547IFS=$as_save_IFS
3548
3549fi
3550fi
3551STRIP=$ac_cv_prog_STRIP
3552if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003554$as_echo "$STRIP" >&6; }
3555else
cristy8b350f62009-11-15 23:12:43 +00003556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "no" >&6; }
3558fi
3559
3560
3561fi
3562if test -z "$ac_cv_prog_STRIP"; then
3563 ac_ct_STRIP=$STRIP
3564 # Extract the first word of "strip", so it can be a program name with args.
3565set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003568if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003569 $as_echo_n "(cached) " >&6
3570else
3571 if test -n "$ac_ct_STRIP"; then
3572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003583 break 2
3584 fi
3585done
cristy8b350f62009-11-15 23:12:43 +00003586 done
cristy3ed852e2009-09-05 21:47:34 +00003587IFS=$as_save_IFS
3588
3589fi
3590fi
3591ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3592if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo "$ac_ct_STRIP" >&6; }
3595else
cristy8b350f62009-11-15 23:12:43 +00003596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003597$as_echo "no" >&6; }
3598fi
3599
3600 if test "x$ac_ct_STRIP" = x; then
3601 STRIP=":"
3602 else
3603 case $cross_compiling:$ac_tool_warned in
3604yes:)
cristy8b350f62009-11-15 23:12:43 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607ac_tool_warned=yes ;;
3608esac
3609 STRIP=$ac_ct_STRIP
3610 fi
3611else
3612 STRIP="$ac_cv_prog_STRIP"
3613fi
3614
3615fi
3616INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3617
cristy8b350f62009-11-15 23:12:43 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003619$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3620if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003621 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003622 $as_echo_n "(cached) " >&6
3623else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3626do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003629 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3632 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3633 'mkdir (GNU coreutils) '* | \
3634 'mkdir (coreutils) '* | \
3635 'mkdir (fileutils) '4.1*)
3636 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3637 break 3;;
3638 esac
3639 done
3640 done
cristy8b350f62009-11-15 23:12:43 +00003641 done
cristy3ed852e2009-09-05 21:47:34 +00003642IFS=$as_save_IFS
3643
3644fi
3645
cristycd4c5312009-11-22 01:19:08 +00003646 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003647 if test "${ac_cv_path_mkdir+set}" = set; then
3648 MKDIR_P="$ac_cv_path_mkdir -p"
3649 else
3650 # As a last resort, use the slow shell script. Don't cache a
3651 # value for MKDIR_P within a source directory, because that will
3652 # break other packages using the cache if that directory is
3653 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003654 MKDIR_P="$ac_install_sh -d"
3655 fi
3656fi
cristy8b350f62009-11-15 23:12:43 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003658$as_echo "$MKDIR_P" >&6; }
3659
3660mkdir_p="$MKDIR_P"
3661case $mkdir_p in
3662 [\\/$]* | ?:[\\/]*) ;;
3663 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3664esac
3665
3666for ac_prog in gawk mawk nawk awk
3667do
3668 # Extract the first word of "$ac_prog", so it can be a program name with args.
3669set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003671$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003672if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003673 $as_echo_n "(cached) " >&6
3674else
3675 if test -n "$AWK"; then
3676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003687 break 2
3688 fi
3689done
cristy8b350f62009-11-15 23:12:43 +00003690 done
cristy3ed852e2009-09-05 21:47:34 +00003691IFS=$as_save_IFS
3692
3693fi
3694fi
3695AWK=$ac_cv_prog_AWK
3696if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003698$as_echo "$AWK" >&6; }
3699else
cristy8b350f62009-11-15 23:12:43 +00003700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003701$as_echo "no" >&6; }
3702fi
3703
3704
3705 test -n "$AWK" && break
3706done
3707
cristy8b350f62009-11-15 23:12:43 +00003708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003709$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3710set x ${MAKE-make}
3711ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003712if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003713 $as_echo_n "(cached) " >&6
3714else
3715 cat >conftest.make <<\_ACEOF
3716SHELL = /bin/sh
3717all:
3718 @echo '@@@%%%=$(MAKE)=@@@%%%'
3719_ACEOF
3720# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3721case `${MAKE-make} -f conftest.make 2>/dev/null` in
3722 *@@@%%%=?*=@@@%%%*)
3723 eval ac_cv_prog_make_${ac_make}_set=yes;;
3724 *)
3725 eval ac_cv_prog_make_${ac_make}_set=no;;
3726esac
3727rm -f conftest.make
3728fi
3729if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003731$as_echo "yes" >&6; }
3732 SET_MAKE=
3733else
cristy8b350f62009-11-15 23:12:43 +00003734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003735$as_echo "no" >&6; }
3736 SET_MAKE="MAKE=${MAKE-make}"
3737fi
3738
3739rm -rf .tst 2>/dev/null
3740mkdir .tst 2>/dev/null
3741if test -d .tst; then
3742 am__leading_dot=.
3743else
3744 am__leading_dot=_
3745fi
3746rmdir .tst 2>/dev/null
3747
3748if test "`cd $srcdir && pwd`" != "`pwd`"; then
3749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3750 # is not polluted with repeated "-I."
3751 am__isrc=' -I$(srcdir)'
3752 # test to see if srcdir already configured
3753 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003754 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003755 fi
3756fi
3757
3758# test whether we have cygpath
3759if test -z "$CYGPATH_W"; then
3760 if (cygpath --version) >/dev/null 2>/dev/null; then
3761 CYGPATH_W='cygpath -w'
3762 else
3763 CYGPATH_W=echo
3764 fi
3765fi
3766
3767
3768# Define the identity of the package.
3769 PACKAGE=$PACKAGE_NAME
3770 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3771
3772
3773# Some tools Automake needs.
3774
3775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3776
3777
3778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3779
3780
3781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3782
3783
3784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3785
3786
3787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3788
3789# We need awk for the "check" target. The system "awk" is bad on
3790# some platforms.
3791# Always define AMTAR for backward compatibility.
3792
3793AMTAR=${AMTAR-"${am_missing_run}tar"}
3794
3795am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3796
3797
3798
3799
3800
3801
3802# Enable support for silent build rules
3803# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003804if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003805 enableval=$enable_silent_rules;
3806fi
3807
3808case $enable_silent_rules in
3809yes) AM_DEFAULT_VERBOSITY=0;;
3810no) AM_DEFAULT_VERBOSITY=1;;
3811*) AM_DEFAULT_VERBOSITY=0;;
3812esac
3813AM_BACKSLASH='\'
3814
3815
3816MAGICK_LIB_VERSION="0x"
3817if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3818 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3819fi
3820MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3821if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3822 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3823fi
3824MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3825if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3826 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3827fi
3828MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3829
3830
3831# Definition used to define MagickLibVersionText in version.h
3832MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3833
3834
3835# Definition used to define MagickLibVersionNumber in version.h
3836MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3837
3838
3839# Regenerate config.status if ChangeLog or version.sh is updated.
3840CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3841
3842
3843PERLMAINCC=$CC
3844
3845MAGICK_CFLAGS=''
3846MAGICK_CPPFLAGS=$CPPFLAGS_USER
3847MAGICK_PCFLAGS=$CPPFLAGS_USER
3848MAGICK_LDFLAGS=''
3849MAGICK_LIBS=''
3850
3851#
3852# Evaluate shell variable equivalents to Makefile directory variables
3853#
3854if test "x$prefix" = xNONE; then
3855 prefix=$ac_default_prefix
3856fi
3857# Let make expand exec_prefix.
3858if test "x$exec_prefix" = xNONE; then
3859 exec_prefix='${prefix}'
3860fi
3861
3862#
3863eval "eval PREFIX_DIR=${prefix}"
3864
3865eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3866
3867eval "eval BIN_DIR=$bindir"
3868
3869eval "eval SBIN_DIR=$sbindir"
3870
3871eval "eval LIBEXEC_DIR=$libexecdir"
3872
3873eval "eval DATA_DIR=$datadir"
3874
3875eval "eval SYSCONF_DIR=$sysconfdir"
3876
3877eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3878
3879eval "eval LOCALSTATE_DIR=$localstatedir"
3880
3881eval "eval LIB_DIR=$libdir"
3882
3883eval "eval INCLUDE_DIR=$includedir"
3884
3885eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3886
3887eval "eval INFO_DIR=$infodir"
3888
3889eval "eval MAN_DIR=$mandir"
3890
3891
3892# Get full paths to source and build directories
3893srcdirfull="`cd $srcdir && pwd`"
3894builddir="`pwd`"
3895
3896#
3897# Compute variables useful for running uninstalled software.
3898#
3899MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3900MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3901MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3902MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3903DIRSEP=':'
3904case "${build_os}" in
3905 mingw* )
3906 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3907 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3908 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3909 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3910 DIRSEP=';'
3911 ;;
3912esac
3913case "${host_os}" in
3914 mingw* )
3915 DIRSEP=';'
3916 ;;
3917esac
3918
3919
3920
3921
3922
3923
3924# Check for programs
3925ac_ext=c
3926ac_cpp='$CPP $CPPFLAGS'
3927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930if test -n "$ac_tool_prefix"; then
3931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3932set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003934$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003935if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00003949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003950 break 2
3951 fi
3952done
cristy8b350f62009-11-15 23:12:43 +00003953 done
cristy3ed852e2009-09-05 21:47:34 +00003954IFS=$as_save_IFS
3955
3956fi
3957fi
3958CC=$ac_cv_prog_CC
3959if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003961$as_echo "$CC" >&6; }
3962else
cristy8b350f62009-11-15 23:12:43 +00003963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003964$as_echo "no" >&6; }
3965fi
3966
3967
3968fi
3969if test -z "$ac_cv_prog_CC"; then
3970 ac_ct_CC=$CC
3971 # Extract the first word of "gcc", so it can be a program name with args.
3972set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003974$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003975if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003976 $as_echo_n "(cached) " >&6
3977else
3978 if test -n "$ac_ct_CC"; then
3979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00003989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003990 break 2
3991 fi
3992done
cristy8b350f62009-11-15 23:12:43 +00003993 done
cristy3ed852e2009-09-05 21:47:34 +00003994IFS=$as_save_IFS
3995
3996fi
3997fi
3998ac_ct_CC=$ac_cv_prog_ac_ct_CC
3999if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004001$as_echo "$ac_ct_CC" >&6; }
4002else
cristy8b350f62009-11-15 23:12:43 +00004003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004004$as_echo "no" >&6; }
4005fi
4006
4007 if test "x$ac_ct_CC" = x; then
4008 CC=""
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011yes:)
cristy8b350f62009-11-15 23:12:43 +00004012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014ac_tool_warned=yes ;;
4015esac
4016 CC=$ac_ct_CC
4017 fi
4018else
4019 CC="$ac_cv_prog_CC"
4020fi
4021
4022if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
4024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4025set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004027$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004028if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004029 $as_echo_n "(cached) " >&6
4030else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033else
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004043 break 2
4044 fi
4045done
cristy8b350f62009-11-15 23:12:43 +00004046 done
cristy3ed852e2009-09-05 21:47:34 +00004047IFS=$as_save_IFS
4048
4049fi
4050fi
4051CC=$ac_cv_prog_CC
4052if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004054$as_echo "$CC" >&6; }
4055else
cristy8b350f62009-11-15 23:12:43 +00004056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004057$as_echo "no" >&6; }
4058fi
4059
4060
4061 fi
4062fi
4063if test -z "$CC"; then
4064 # Extract the first word of "cc", so it can be a program name with args.
4065set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004067$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004068if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004069 $as_echo_n "(cached) " >&6
4070else
4071 if test -n "$CC"; then
4072 ac_cv_prog_CC="$CC" # Let the user override the test.
4073else
4074 ac_prog_rejected=no
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4083 ac_prog_rejected=yes
4084 continue
4085 fi
4086 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004088 break 2
4089 fi
4090done
cristy8b350f62009-11-15 23:12:43 +00004091 done
cristy3ed852e2009-09-05 21:47:34 +00004092IFS=$as_save_IFS
4093
4094if test $ac_prog_rejected = yes; then
4095 # We found a bogon in the path, so make sure we never use it.
4096 set dummy $ac_cv_prog_CC
4097 shift
4098 if test $# != 0; then
4099 # We chose a different compiler from the bogus one.
4100 # However, it has the same basename, so the bogon will be chosen
4101 # first if we set CC to just the basename; use the full file name.
4102 shift
4103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4104 fi
4105fi
4106fi
4107fi
4108CC=$ac_cv_prog_CC
4109if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004111$as_echo "$CC" >&6; }
4112else
cristy8b350f62009-11-15 23:12:43 +00004113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo "no" >&6; }
4115fi
4116
4117
4118fi
4119if test -z "$CC"; then
4120 if test -n "$ac_tool_prefix"; then
4121 for ac_prog in cl.exe
4122 do
4123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004126$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004127if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004128 $as_echo_n "(cached) " >&6
4129else
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4132else
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004138 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004142 break 2
4143 fi
4144done
cristy8b350f62009-11-15 23:12:43 +00004145 done
cristy3ed852e2009-09-05 21:47:34 +00004146IFS=$as_save_IFS
4147
4148fi
4149fi
4150CC=$ac_cv_prog_CC
4151if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153$as_echo "$CC" >&6; }
4154else
cristy8b350f62009-11-15 23:12:43 +00004155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156$as_echo "no" >&6; }
4157fi
4158
4159
4160 test -n "$CC" && break
4161 done
4162fi
4163if test -z "$CC"; then
4164 ac_ct_CC=$CC
4165 for ac_prog in cl.exe
4166do
4167 # Extract the first word of "$ac_prog", so it can be a program name with args.
4168set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004172 $as_echo_n "(cached) " >&6
4173else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004186 break 2
4187 fi
4188done
cristy8b350f62009-11-15 23:12:43 +00004189 done
cristy3ed852e2009-09-05 21:47:34 +00004190IFS=$as_save_IFS
4191
4192fi
4193fi
4194ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "$ac_ct_CC" >&6; }
4198else
cristy8b350f62009-11-15 23:12:43 +00004199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004200$as_echo "no" >&6; }
4201fi
4202
4203
4204 test -n "$ac_ct_CC" && break
4205done
4206
4207 if test "x$ac_ct_CC" = x; then
4208 CC=""
4209 else
4210 case $cross_compiling:$ac_tool_warned in
4211yes:)
cristy8b350f62009-11-15 23:12:43 +00004212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4214ac_tool_warned=yes ;;
4215esac
4216 CC=$ac_ct_CC
4217 fi
4218fi
4219
4220fi
4221
4222
cristy8b350f62009-11-15 23:12:43 +00004223test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004225as_fn_error "no acceptable C compiler found in \$PATH
4226See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004227
4228# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004230set X $ac_compile
4231ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004232for ac_option in --version -v -V -qversion; do
4233 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004234case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
cristy8b350f62009-11-15 23:12:43 +00004238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004241 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004242 if test -s conftest.err; then
4243 sed '10a\
4244... rest of stderr output deleted ...
4245 10q' conftest.err >conftest.er1
4246 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004247 fi
cristycd4c5312009-11-22 01:19:08 +00004248 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }
4251done
cristy3ed852e2009-09-05 21:47:34 +00004252
cristy8b350f62009-11-15 23:12:43 +00004253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004254/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004255
cristy3ed852e2009-09-05 21:47:34 +00004256int
4257main ()
4258{
4259
4260 ;
4261 return 0;
4262}
4263_ACEOF
4264ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004265ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004266# Try to create an executable without -o first, disregard a.out.
4267# It will help us diagnose broken compilers, and finding out an intuition
4268# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4270$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004271ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4272
4273# The possible output files:
4274ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4275
4276ac_rmfiles=
4277for ac_file in $ac_files
4278do
4279 case $ac_file in
4280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4281 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4282 esac
4283done
4284rm -f $ac_rmfiles
4285
cristy8b350f62009-11-15 23:12:43 +00004286if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
cristy8b350f62009-11-15 23:12:43 +00004291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004293 (eval "$ac_link_default") 2>&5
4294 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4298# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4299# in a Makefile. We should not override ac_cv_exeext if it was cached,
4300# so that the user can short-circuit this test for compilers unknown to
4301# Autoconf.
4302for ac_file in $ac_files ''
4303do
4304 test -f "$ac_file" || continue
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4307 ;;
4308 [ab].out )
4309 # We found the default executable, but exeext='' is most
4310 # certainly right.
4311 break;;
4312 *.* )
cristy8b350f62009-11-15 23:12:43 +00004313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004314 then :; else
4315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4316 fi
4317 # We set ac_cv_exeext here because the later test for it is not
4318 # safe: cross compilers may not add the suffix if given an `-o'
4319 # argument, so we may need to know it at that point already.
4320 # Even if this section looks crufty: it has the advantage of
4321 # actually working.
4322 break;;
4323 * )
4324 break;;
4325 esac
4326done
4327test "$ac_cv_exeext" = no && ac_cv_exeext=
4328
4329else
4330 ac_file=''
4331fi
cristy8b350f62009-11-15 23:12:43 +00004332if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334$as_echo "no" >&6; }
4335$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336sed 's/^/| /' conftest.$ac_ext >&5
4337
cristy8b350f62009-11-15 23:12:43 +00004338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004340{ as_fn_set_status 77
4341as_fn_error "C compiler cannot create executables
4342See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004343else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004346fi
cristycd4c5312009-11-22 01:19:08 +00004347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4348$as_echo_n "checking for C compiler default output file name... " >&6; }
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4350$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004351ac_exeext=$ac_cv_exeext
4352
cristycd4c5312009-11-22 01:19:08 +00004353rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004354ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004356$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004357if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004358case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361esac
cristy8b350f62009-11-15 23:12:43 +00004362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004364 (eval "$ac_link") 2>&5
4365 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4369# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4370# work properly (i.e., refer to `conftest.exe'), while it won't with
4371# `rm'.
4372for ac_file in conftest.exe conftest conftest.*; do
4373 test -f "$ac_file" || continue
4374 case $ac_file in
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377 break;;
4378 * ) break;;
4379 esac
4380done
4381else
cristy8b350f62009-11-15 23:12:43 +00004382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004384as_fn_error "cannot compute suffix of executables: cannot compile and link
4385See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004386fi
cristycd4c5312009-11-22 01:19:08 +00004387rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo "$ac_cv_exeext" >&6; }
4390
4391rm -f conftest.$ac_ext
4392EXEEXT=$ac_cv_exeext
4393ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h. */
4396#include <stdio.h>
4397int
4398main ()
4399{
4400FILE *f = fopen ("conftest.out", "w");
4401 return ferror (f) || fclose (f) != 0;
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407ac_clean_files="$ac_clean_files conftest.out"
4408# Check that the compiler produces executables we can run. If not, either
4409# the compiler is broken, or we cross compile.
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4411$as_echo_n "checking whether we are cross compiling... " >&6; }
4412if test "$cross_compiling" != yes; then
4413 { { ac_try="$ac_link"
4414case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419$as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_link") 2>&5
4421 ac_status=$?
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }
4424 if { ac_try='./conftest$ac_cv_exeext'
4425 { { case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
4429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430$as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_try") 2>&5
4432 ac_status=$?
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; }; then
4435 cross_compiling=no
4436 else
4437 if test "$cross_compiling" = maybe; then
4438 cross_compiling=yes
4439 else
4440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4442as_fn_error "cannot run C compiled programs.
4443If you meant to cross compile, use \`--host'.
4444See \`config.log' for more details." "$LINENO" 5; }
4445 fi
4446 fi
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4449$as_echo "$cross_compiling" >&6; }
4450
4451rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4452ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004454$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004455if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004456 $as_echo_n "(cached) " >&6
4457else
cristy8b350f62009-11-15 23:12:43 +00004458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004459/* end confdefs.h. */
4460
4461int
4462main ()
4463{
4464
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004470if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004471case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
cristy8b350f62009-11-15 23:12:43 +00004475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004477 (eval "$ac_compile") 2>&5
4478 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004481 for ac_file in conftest.o conftest.obj conftest.*; do
4482 test -f "$ac_file" || continue;
4483 case $ac_file in
4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4486 break;;
4487 esac
4488done
4489else
4490 $as_echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
cristy8b350f62009-11-15 23:12:43 +00004493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004495as_fn_error "cannot compute suffix of object files: cannot compile
4496See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004497fi
cristy3ed852e2009-09-05 21:47:34 +00004498rm -f conftest.$ac_cv_objext conftest.$ac_ext
4499fi
cristy8b350f62009-11-15 23:12:43 +00004500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004501$as_echo "$ac_cv_objext" >&6; }
4502OBJEXT=$ac_cv_objext
4503ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004506if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004507 $as_echo_n "(cached) " >&6
4508else
cristy8b350f62009-11-15 23:12:43 +00004509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004510/* end confdefs.h. */
4511
4512int
4513main ()
4514{
4515#ifndef __GNUC__
4516 choke me
4517#endif
4518
4519 ;
4520 return 0;
4521}
4522_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004523if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004524 ac_compiler_gnu=yes
4525else
cristy8b350f62009-11-15 23:12:43 +00004526 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004527fi
cristy3ed852e2009-09-05 21:47:34 +00004528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529ac_cv_c_compiler_gnu=$ac_compiler_gnu
4530
4531fi
cristy8b350f62009-11-15 23:12:43 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4534if test $ac_compiler_gnu = yes; then
4535 GCC=yes
4536else
4537 GCC=
4538fi
4539ac_test_CFLAGS=${CFLAGS+set}
4540ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004542$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004543if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004544 $as_echo_n "(cached) " >&6
4545else
4546 ac_save_c_werror_flag=$ac_c_werror_flag
4547 ac_c_werror_flag=yes
4548 ac_cv_prog_cc_g=no
4549 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004562 ac_cv_prog_cc_g=yes
4563else
cristy8b350f62009-11-15 23:12:43 +00004564 CFLAGS=""
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004566/* end confdefs.h. */
4567
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004576if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004577
cristy8b350f62009-11-15 23:12:43 +00004578else
4579 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004580 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004582/* end confdefs.h. */
4583
4584int
4585main ()
4586{
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004592if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004594fi
cristy3ed852e2009-09-05 21:47:34 +00004595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596fi
cristy3ed852e2009-09-05 21:47:34 +00004597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598fi
cristy3ed852e2009-09-05 21:47:34 +00004599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_c_werror_flag=$ac_save_c_werror_flag
4601fi
cristy8b350f62009-11-15 23:12:43 +00004602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004603$as_echo "$ac_cv_prog_cc_g" >&6; }
4604if test "$ac_test_CFLAGS" = set; then
4605 CFLAGS=$ac_save_CFLAGS
4606elif test $ac_cv_prog_cc_g = yes; then
4607 if test "$GCC" = yes; then
4608 CFLAGS="-g -O2"
4609 else
4610 CFLAGS="-g"
4611 fi
4612else
4613 if test "$GCC" = yes; then
4614 CFLAGS="-O2"
4615 else
4616 CFLAGS=
4617 fi
4618fi
cristy8b350f62009-11-15 23:12:43 +00004619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004621if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004622 $as_echo_n "(cached) " >&6
4623else
4624 ac_cv_prog_cc_c89=no
4625ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004627/* end confdefs.h. */
4628#include <stdarg.h>
4629#include <stdio.h>
4630#include <sys/types.h>
4631#include <sys/stat.h>
4632/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4633struct buf { int x; };
4634FILE * (*rcsopen) (struct buf *, struct stat *, int);
4635static char *e (p, i)
4636 char **p;
4637 int i;
4638{
4639 return p[i];
4640}
4641static char *f (char * (*g) (char **, int), char **p, ...)
4642{
4643 char *s;
4644 va_list v;
4645 va_start (v,p);
4646 s = g (p, va_arg (v,int));
4647 va_end (v);
4648 return s;
4649}
4650
4651/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4652 function prototypes and stuff, but not '\xHH' hex character constants.
4653 These don't provoke an error unfortunately, instead are silently treated
4654 as 'x'. The following induces an error, until -std is added to get
4655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4656 array size at least. It's necessary to write '\x00'==0 to get something
4657 that's true only with -std. */
4658int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4659
4660/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4661 inside strings and character constants. */
4662#define FOO(x) 'x'
4663int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4664
4665int test (int i, double x);
4666struct s1 {int (*f) (int a);};
4667struct s2 {int (*f) (double a);};
4668int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4669int argc;
4670char **argv;
4671int
4672main ()
4673{
4674return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4681do
4682 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004683 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004685fi
cristy3ed852e2009-09-05 21:47:34 +00004686rm -f core conftest.err conftest.$ac_objext
4687 test "x$ac_cv_prog_cc_c89" != "xno" && break
4688done
4689rm -f conftest.$ac_ext
4690CC=$ac_save_CC
4691
4692fi
4693# AC_CACHE_VAL
4694case "x$ac_cv_prog_cc_c89" in
4695 x)
cristy8b350f62009-11-15 23:12:43 +00004696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo "none needed" >&6; } ;;
4698 xno)
cristy8b350f62009-11-15 23:12:43 +00004699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004700$as_echo "unsupported" >&6; } ;;
4701 *)
4702 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004704$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4705esac
cristy8b350f62009-11-15 23:12:43 +00004706if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004707
cristy8b350f62009-11-15 23:12:43 +00004708fi
cristy3ed852e2009-09-05 21:47:34 +00004709
4710ac_ext=c
4711ac_cpp='$CPP $CPPFLAGS'
4712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715DEPDIR="${am__leading_dot}deps"
4716
4717ac_config_commands="$ac_config_commands depfiles"
4718
4719
4720am_make=${MAKE-make}
4721cat > confinc << 'END'
4722am__doit:
4723 @echo this is the am__doit target
4724.PHONY: am__doit
4725END
4726# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo_n "checking for style of include used by $am_make... " >&6; }
4729am__include="#"
4730am__quote=
4731_am_result=none
4732# First try GNU make style include.
4733echo "include confinc" > confmf
4734# Ignore all kinds of additional output from `make'.
4735case `$am_make -s -f confmf 2> /dev/null` in #(
4736*the\ am__doit\ target*)
4737 am__include=include
4738 am__quote=
4739 _am_result=GNU
4740 ;;
4741esac
4742# Now try BSD make style include.
4743if test "$am__include" = "#"; then
4744 echo '.include "confinc"' > confmf
4745 case `$am_make -s -f confmf 2> /dev/null` in #(
4746 *the\ am__doit\ target*)
4747 am__include=.include
4748 am__quote="\""
4749 _am_result=BSD
4750 ;;
4751 esac
4752fi
4753
4754
cristy8b350f62009-11-15 23:12:43 +00004755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756$as_echo "$_am_result" >&6; }
4757rm -f confinc confmf
4758
4759# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004760if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004761 enableval=$enable_dependency_tracking;
4762fi
4763
4764if test "x$enable_dependency_tracking" != xno; then
4765 am_depcomp="$ac_aux_dir/depcomp"
4766 AMDEPBACKSLASH='\'
4767fi
4768 if test "x$enable_dependency_tracking" != xno; then
4769 AMDEP_TRUE=
4770 AMDEP_FALSE='#'
4771else
4772 AMDEP_TRUE='#'
4773 AMDEP_FALSE=
4774fi
4775
4776
4777
4778depcc="$CC" am_compiler_list=
4779
cristy8b350f62009-11-15 23:12:43 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004781$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004782if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004783 $as_echo_n "(cached) " >&6
4784else
4785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4786 # We make a subdir and do the tests there. Otherwise we can end up
4787 # making bogus files that we don't know about and never remove. For
4788 # instance it was reported that on HP-UX the gcc test will end up
4789 # making a dummy file named `D' -- because `-MD' means `put the output
4790 # in D'.
4791 mkdir conftest.dir
4792 # Copy depcomp to subdir because otherwise we won't find it if we're
4793 # using a relative directory.
4794 cp "$am_depcomp" conftest.dir
4795 cd conftest.dir
4796 # We will build objects and dependencies in a subdirectory because
4797 # it helps to detect inapplicable dependency modes. For instance
4798 # both Tru64's cc and ICC support -MD to output dependencies as a
4799 # side effect of compilation, but ICC will put the dependencies in
4800 # the current directory while Tru64 will put them in the object
4801 # directory.
4802 mkdir sub
4803
4804 am_cv_CC_dependencies_compiler_type=none
4805 if test "$am_compiler_list" = ""; then
4806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4807 fi
4808 am__universal=false
4809 case " $depcc " in #(
4810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4811 esac
4812
4813 for depmode in $am_compiler_list; do
4814 # Setup a source with many dependencies, because some compilers
4815 # like to wrap large dependency lists on column 80 (with \), and
4816 # we should not choose a depcomp mode which is confused by this.
4817 #
4818 # We need to recreate these files for each test, as the compiler may
4819 # overwrite some of them when testing with obscure command lines.
4820 # This happens at least with the AIX C compiler.
4821 : > sub/conftest.c
4822 for i in 1 2 3 4 5 6; do
4823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4825 # Solaris 8's {/usr,}/bin/sh.
4826 touch sub/conftst$i.h
4827 done
4828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4829
4830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4831 # mode. It turns out that the SunPro C++ compiler does not properly
4832 # handle `-M -o', and we need to detect this. Also, some Intel
4833 # versions had trouble with output in subdirs
4834 am__obj=sub/conftest.${OBJEXT-o}
4835 am__minus_obj="-o $am__obj"
4836 case $depmode in
4837 gcc)
4838 # This depmode causes a compiler race in universal mode.
4839 test "$am__universal" = false || continue
4840 ;;
4841 nosideeffect)
4842 # after this tag, mechanisms are not by side-effect, so they'll
4843 # only be used when explicitly requested
4844 if test "x$enable_dependency_tracking" = xyes; then
4845 continue
4846 else
4847 break
4848 fi
4849 ;;
4850 msvisualcpp | msvcmsys)
4851 # This compiler won't grok `-c -o', but also, the minuso test has
4852 # not run yet. These depmodes are late enough in the game, and
4853 # so weak that their functioning should not be impacted.
4854 am__obj=conftest.${OBJEXT-o}
4855 am__minus_obj=
4856 ;;
4857 none) break ;;
4858 esac
4859 if depmode=$depmode \
4860 source=sub/conftest.c object=$am__obj \
4861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4863 >/dev/null 2>conftest.err &&
4864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4868 # icc doesn't choke on unknown options, it will just issue warnings
4869 # or remarks (even with -Werror). So we grep stderr for any message
4870 # that says an option was ignored or not supported.
4871 # When given -MP, icc 7.0 and 7.1 complain thusly:
4872 # icc: Command line warning: ignoring option '-M'; no argument required
4873 # The diagnosis changed in icc 8.0:
4874 # icc: Command line remark: option '-MP' not supported
4875 if (grep 'ignoring option' conftest.err ||
4876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4877 am_cv_CC_dependencies_compiler_type=$depmode
4878 break
4879 fi
4880 fi
4881 done
4882
4883 cd ..
4884 rm -rf conftest.dir
4885else
4886 am_cv_CC_dependencies_compiler_type=none
4887fi
4888
4889fi
cristy8b350f62009-11-15 23:12:43 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4892CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4893
4894 if
4895 test "x$enable_dependency_tracking" != xno \
4896 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4897 am__fastdepCC_TRUE=
4898 am__fastdepCC_FALSE='#'
4899else
4900 am__fastdepCC_TRUE='#'
4901 am__fastdepCC_FALSE=
4902fi
4903
4904
cristy8b350f62009-11-15 23:12:43 +00004905 case $ac_cv_prog_cc_stdc in #(
4906 no) :
4907 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4908 *) :
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004911if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004912 $as_echo_n "(cached) " >&6
4913else
4914 ac_cv_prog_cc_c99=no
4915ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004917/* end confdefs.h. */
4918#include <stdarg.h>
4919#include <stdbool.h>
4920#include <stdlib.h>
4921#include <wchar.h>
4922#include <stdio.h>
4923
4924// Check varargs macros. These examples are taken from C99 6.10.3.5.
4925#define debug(...) fprintf (stderr, __VA_ARGS__)
4926#define showlist(...) puts (#__VA_ARGS__)
4927#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4928static void
4929test_varargs_macros (void)
4930{
4931 int x = 1234;
4932 int y = 5678;
4933 debug ("Flag");
4934 debug ("X = %d\n", x);
4935 showlist (The first, second, and third items.);
4936 report (x>y, "x is %d but y is %d", x, y);
4937}
4938
4939// Check long long types.
4940#define BIG64 18446744073709551615ull
4941#define BIG32 4294967295ul
4942#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4943#if !BIG_OK
4944 your preprocessor is broken;
4945#endif
4946#if BIG_OK
4947#else
4948 your preprocessor is broken;
4949#endif
4950static long long int bignum = -9223372036854775807LL;
4951static unsigned long long int ubignum = BIG64;
4952
4953struct incomplete_array
4954{
4955 int datasize;
4956 double data[];
4957};
4958
4959struct named_init {
4960 int number;
4961 const wchar_t *name;
4962 double average;
4963};
4964
4965typedef const char *ccp;
4966
4967static inline int
4968test_restrict (ccp restrict text)
4969{
4970 // See if C++-style comments work.
4971 // Iterate through items via the restricted pointer.
4972 // Also check for declarations in for loops.
4973 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4974 continue;
4975 return 0;
4976}
4977
4978// Check varargs and va_copy.
4979static void
4980test_varargs (const char *format, ...)
4981{
4982 va_list args;
4983 va_start (args, format);
4984 va_list args_copy;
4985 va_copy (args_copy, args);
4986
4987 const char *str;
4988 int number;
4989 float fnumber;
4990
4991 while (*format)
4992 {
4993 switch (*format++)
4994 {
4995 case 's': // string
4996 str = va_arg (args_copy, const char *);
4997 break;
4998 case 'd': // int
4999 number = va_arg (args_copy, int);
5000 break;
5001 case 'f': // float
5002 fnumber = va_arg (args_copy, double);
5003 break;
5004 default:
5005 break;
5006 }
5007 }
5008 va_end (args_copy);
5009 va_end (args);
5010}
5011
5012int
5013main ()
5014{
5015
5016 // Check bool.
5017 _Bool success = false;
5018
5019 // Check restrict.
5020 if (test_restrict ("String literal") == 0)
5021 success = true;
5022 char *restrict newvar = "Another string";
5023
5024 // Check varargs.
5025 test_varargs ("s, d' f .", "string", 65, 34.234);
5026 test_varargs_macros ();
5027
5028 // Check flexible array members.
5029 struct incomplete_array *ia =
5030 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5031 ia->datasize = 10;
5032 for (int i = 0; i < ia->datasize; ++i)
5033 ia->data[i] = i * 1.234;
5034
5035 // Check named initializers.
5036 struct named_init ni = {
5037 .number = 34,
5038 .name = L"Test wide string",
5039 .average = 543.34343,
5040 };
5041
5042 ni.number = 58;
5043
5044 int dynamic_array[ni.number];
5045 dynamic_array[ni.number - 1] = 543;
5046
5047 // work around unused variable warnings
5048 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5049 || dynamic_array[ni.number - 1] != 543);
5050
5051 ;
5052 return 0;
5053}
5054_ACEOF
5055for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5056do
5057 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005058 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005059 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005060fi
cristy3ed852e2009-09-05 21:47:34 +00005061rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c99" != "xno" && break
5063done
5064rm -f conftest.$ac_ext
5065CC=$ac_save_CC
5066
5067fi
5068# AC_CACHE_VAL
5069case "x$ac_cv_prog_cc_c99" in
5070 x)
cristy8b350f62009-11-15 23:12:43 +00005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005072$as_echo "none needed" >&6; } ;;
5073 xno)
cristy8b350f62009-11-15 23:12:43 +00005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo "unsupported" >&6; } ;;
5076 *)
5077 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005079$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5080esac
cristy8b350f62009-11-15 23:12:43 +00005081if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005082 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5083else
cristy8b350f62009-11-15 23:12:43 +00005084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005085$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005086if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005087 $as_echo_n "(cached) " >&6
5088else
5089 ac_cv_prog_cc_c89=no
5090ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005092/* end confdefs.h. */
5093#include <stdarg.h>
5094#include <stdio.h>
5095#include <sys/types.h>
5096#include <sys/stat.h>
5097/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5098struct buf { int x; };
5099FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100static char *e (p, i)
5101 char **p;
5102 int i;
5103{
5104 return p[i];
5105}
5106static char *f (char * (*g) (char **, int), char **p, ...)
5107{
5108 char *s;
5109 va_list v;
5110 va_start (v,p);
5111 s = g (p, va_arg (v,int));
5112 va_end (v);
5113 return s;
5114}
5115
5116/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5117 function prototypes and stuff, but not '\xHH' hex character constants.
5118 These don't provoke an error unfortunately, instead are silently treated
5119 as 'x'. The following induces an error, until -std is added to get
5120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5121 array size at least. It's necessary to write '\x00'==0 to get something
5122 that's true only with -std. */
5123int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124
5125/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126 inside strings and character constants. */
5127#define FOO(x) 'x'
5128int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129
5130int test (int i, double x);
5131struct s1 {int (*f) (int a);};
5132struct s2 {int (*f) (double a);};
5133int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5134int argc;
5135char **argv;
5136int
5137main ()
5138{
5139return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5140 ;
5141 return 0;
5142}
5143_ACEOF
5144for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146do
5147 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005148 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005149 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005150fi
cristy3ed852e2009-09-05 21:47:34 +00005151rm -f core conftest.err conftest.$ac_objext
5152 test "x$ac_cv_prog_cc_c89" != "xno" && break
5153done
5154rm -f conftest.$ac_ext
5155CC=$ac_save_CC
5156
5157fi
5158# AC_CACHE_VAL
5159case "x$ac_cv_prog_cc_c89" in
5160 x)
cristy8b350f62009-11-15 23:12:43 +00005161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005162$as_echo "none needed" >&6; } ;;
5163 xno)
cristy8b350f62009-11-15 23:12:43 +00005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005165$as_echo "unsupported" >&6; } ;;
5166 *)
5167 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005169$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170esac
cristy8b350f62009-11-15 23:12:43 +00005171if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005172 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5173else
5174 ac_cv_prog_cc_stdc=no
5175fi
5176
cristy3ed852e2009-09-05 21:47:34 +00005177fi
cristy3ed852e2009-09-05 21:47:34 +00005178 ;;
5179esac
cristy8b350f62009-11-15 23:12:43 +00005180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005181$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005182 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005183 $as_echo_n "(cached) " >&6
5184fi
5185
cristy8b350f62009-11-15 23:12:43 +00005186 case $ac_cv_prog_cc_stdc in #(
5187 no) :
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5189$as_echo "unsupported" >&6; } ;; #(
5190 '') :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5192$as_echo "none needed" >&6; } ;; #(
5193 *) :
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005195$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5196esac
5197
cristy3ed852e2009-09-05 21:47:34 +00005198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo_n "checking how to run the C preprocessor... " >&6; }
5205# On Suns, sometimes $CPP names a directory.
5206if test -n "$CPP" && test -d "$CPP"; then
5207 CPP=
5208fi
5209if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005210 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005211 $as_echo_n "(cached) " >&6
5212else
5213 # Double quotes because CPP needs to be expanded
5214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5215 do
5216 ac_preproc_ok=false
5217for ac_c_preproc_warn_flag in '' yes
5218do
5219 # Use a header file that comes with gcc, so configuring glibc
5220 # with a fresh cross-compiler works.
5221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5222 # <limits.h> exists even on freestanding compilers.
5223 # On the NeXT, cc -E runs the code through the compiler's parser,
5224 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005226/* end confdefs.h. */
5227#ifdef __STDC__
5228# include <limits.h>
5229#else
5230# include <assert.h>
5231#endif
5232 Syntax error
5233_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005234if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005235
cristy8b350f62009-11-15 23:12:43 +00005236else
cristy3ed852e2009-09-05 21:47:34 +00005237 # Broken: fails on valid input.
5238continue
5239fi
cristy3ed852e2009-09-05 21:47:34 +00005240rm -f conftest.err conftest.$ac_ext
5241
5242 # OK, works on sane cases. Now check whether nonexistent headers
5243 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005245/* end confdefs.h. */
5246#include <ac_nonexistent.h>
5247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005248if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005249 # Broken: success on invalid input.
5250continue
5251else
cristy3ed852e2009-09-05 21:47:34 +00005252 # Passes both tests.
5253ac_preproc_ok=:
5254break
5255fi
cristy3ed852e2009-09-05 21:47:34 +00005256rm -f conftest.err conftest.$ac_ext
5257
5258done
5259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5260rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005261if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005262 break
5263fi
5264
5265 done
5266 ac_cv_prog_CPP=$CPP
5267
5268fi
5269 CPP=$ac_cv_prog_CPP
5270else
5271 ac_cv_prog_CPP=$CPP
5272fi
cristy8b350f62009-11-15 23:12:43 +00005273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005274$as_echo "$CPP" >&6; }
5275ac_preproc_ok=false
5276for ac_c_preproc_warn_flag in '' yes
5277do
5278 # Use a header file that comes with gcc, so configuring glibc
5279 # with a fresh cross-compiler works.
5280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5281 # <limits.h> exists even on freestanding compilers.
5282 # On the NeXT, cc -E runs the code through the compiler's parser,
5283 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005285/* end confdefs.h. */
5286#ifdef __STDC__
5287# include <limits.h>
5288#else
5289# include <assert.h>
5290#endif
5291 Syntax error
5292_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005293if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005294
cristy8b350f62009-11-15 23:12:43 +00005295else
cristy3ed852e2009-09-05 21:47:34 +00005296 # Broken: fails on valid input.
5297continue
5298fi
cristy3ed852e2009-09-05 21:47:34 +00005299rm -f conftest.err conftest.$ac_ext
5300
5301 # OK, works on sane cases. Now check whether nonexistent headers
5302 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005304/* end confdefs.h. */
5305#include <ac_nonexistent.h>
5306_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005307if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005308 # Broken: success on invalid input.
5309continue
5310else
cristy3ed852e2009-09-05 21:47:34 +00005311 # Passes both tests.
5312ac_preproc_ok=:
5313break
5314fi
cristy3ed852e2009-09-05 21:47:34 +00005315rm -f conftest.err conftest.$ac_ext
5316
5317done
5318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005320if $ac_preproc_ok; then :
5321
cristy3ed852e2009-09-05 21:47:34 +00005322else
cristy8b350f62009-11-15 23:12:43 +00005323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005325as_fn_error "C preprocessor \"$CPP\" fails sanity check
5326See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005327fi
5328
5329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334
cristy8b350f62009-11-15 23:12:43 +00005335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005336$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005337if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005338 $as_echo_n "(cached) " >&6
5339else
5340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5341 for ac_i in 1 2 3 4 5 6 7; do
5342 ac_script="$ac_script$as_nl$ac_script"
5343 done
5344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005345 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005346 if test -z "$SED"; then
5347 ac_path_SED_found=false
5348 # Loop through the user's path and test for each of PROGNAME-LIST
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005354 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5357 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5358# Check for GNU ac_path_SED and select it if it is found.
5359 # Check for GNU $ac_path_SED
5360case `"$ac_path_SED" --version 2>&1` in
5361*GNU*)
5362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5363*)
5364 ac_count=0
5365 $as_echo_n 0123456789 >"conftest.in"
5366 while :
5367 do
5368 cat "conftest.in" "conftest.in" >"conftest.tmp"
5369 mv "conftest.tmp" "conftest.in"
5370 cp "conftest.in" "conftest.nl"
5371 $as_echo '' >> "conftest.nl"
5372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005374 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005375 if test $ac_count -gt ${ac_path_SED_max-0}; then
5376 # Best one so far, save it but keep looking for a better one
5377 ac_cv_path_SED="$ac_path_SED"
5378 ac_path_SED_max=$ac_count
5379 fi
5380 # 10*(2^10) chars as input seems more than enough
5381 test $ac_count -gt 10 && break
5382 done
5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5384esac
5385
5386 $ac_path_SED_found && break 3
5387 done
5388 done
cristy8b350f62009-11-15 23:12:43 +00005389 done
cristy3ed852e2009-09-05 21:47:34 +00005390IFS=$as_save_IFS
5391 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005392 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005393 fi
5394else
5395 ac_cv_path_SED=$SED
5396fi
5397
5398fi
cristy8b350f62009-11-15 23:12:43 +00005399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005400$as_echo "$ac_cv_path_SED" >&6; }
5401 SED="$ac_cv_path_SED"
5402 rm -f conftest.sed
5403
5404test -z "$SED" && SED=sed
5405Xsed="$SED -e 1s/^X//"
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
cristy8b350f62009-11-15 23:12:43 +00005417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005418$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005419if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005420 $as_echo_n "(cached) " >&6
5421else
5422 if test -z "$GREP"; then
5423 ac_path_GREP_found=false
5424 # Loop through the user's path and test for each of PROGNAME-LIST
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5427do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005430 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5433 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5434# Check for GNU ac_path_GREP and select it if it is found.
5435 # Check for GNU $ac_path_GREP
5436case `"$ac_path_GREP" --version 2>&1` in
5437*GNU*)
5438 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5439*)
5440 ac_count=0
5441 $as_echo_n 0123456789 >"conftest.in"
5442 while :
5443 do
5444 cat "conftest.in" "conftest.in" >"conftest.tmp"
5445 mv "conftest.tmp" "conftest.in"
5446 cp "conftest.in" "conftest.nl"
5447 $as_echo 'GREP' >> "conftest.nl"
5448 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005450 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005451 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5452 # Best one so far, save it but keep looking for a better one
5453 ac_cv_path_GREP="$ac_path_GREP"
5454 ac_path_GREP_max=$ac_count
5455 fi
5456 # 10*(2^10) chars as input seems more than enough
5457 test $ac_count -gt 10 && break
5458 done
5459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5460esac
5461
5462 $ac_path_GREP_found && break 3
5463 done
5464 done
cristy8b350f62009-11-15 23:12:43 +00005465 done
cristy3ed852e2009-09-05 21:47:34 +00005466IFS=$as_save_IFS
5467 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005468 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005469 fi
5470else
5471 ac_cv_path_GREP=$GREP
5472fi
5473
5474fi
cristy8b350f62009-11-15 23:12:43 +00005475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005476$as_echo "$ac_cv_path_GREP" >&6; }
5477 GREP="$ac_cv_path_GREP"
5478
5479
cristy8b350f62009-11-15 23:12:43 +00005480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005481$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005482if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005483 $as_echo_n "(cached) " >&6
5484else
5485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5486 then ac_cv_path_EGREP="$GREP -E"
5487 else
5488 if test -z "$EGREP"; then
5489 ac_path_EGREP_found=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005496 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00005497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5499 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5500# Check for GNU ac_path_EGREP and select it if it is found.
5501 # Check for GNU $ac_path_EGREP
5502case `"$ac_path_EGREP" --version 2>&1` in
5503*GNU*)
5504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5505*)
5506 ac_count=0
5507 $as_echo_n 0123456789 >"conftest.in"
5508 while :
5509 do
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'EGREP' >> "conftest.nl"
5514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005516 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_EGREP="$ac_path_EGREP"
5520 ac_path_EGREP_max=$ac_count
5521 fi
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5524 done
5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526esac
5527
5528 $ac_path_EGREP_found && break 3
5529 done
5530 done
cristy8b350f62009-11-15 23:12:43 +00005531 done
cristy3ed852e2009-09-05 21:47:34 +00005532IFS=$as_save_IFS
5533 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005534 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005535 fi
5536else
5537 ac_cv_path_EGREP=$EGREP
5538fi
5539
5540 fi
5541fi
cristy8b350f62009-11-15 23:12:43 +00005542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005543$as_echo "$ac_cv_path_EGREP" >&6; }
5544 EGREP="$ac_cv_path_EGREP"
5545
5546
cristy8b350f62009-11-15 23:12:43 +00005547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005548$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005549if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005550 $as_echo_n "(cached) " >&6
5551else
5552 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5553 then ac_cv_path_FGREP="$GREP -F"
5554 else
5555 if test -z "$FGREP"; then
5556 ac_path_FGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005563 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00005564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5567# Check for GNU ac_path_FGREP and select it if it is found.
5568 # Check for GNU $ac_path_FGREP
5569case `"$ac_path_FGREP" --version 2>&1` in
5570*GNU*)
5571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572*)
5573 ac_count=0
5574 $as_echo_n 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 $as_echo 'FGREP' >> "conftest.nl"
5581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005583 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_FGREP="$ac_path_FGREP"
5587 ac_path_FGREP_max=$ac_count
5588 fi
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593esac
5594
5595 $ac_path_FGREP_found && break 3
5596 done
5597 done
cristy8b350f62009-11-15 23:12:43 +00005598 done
cristy3ed852e2009-09-05 21:47:34 +00005599IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005601 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005602 fi
5603else
5604 ac_cv_path_FGREP=$FGREP
5605fi
5606
5607 fi
5608fi
cristy8b350f62009-11-15 23:12:43 +00005609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005610$as_echo "$ac_cv_path_FGREP" >&6; }
5611 FGREP="$ac_cv_path_FGREP"
5612
5613
5614test -z "$GREP" && GREP=grep
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
cristy932c9122009-11-19 13:57:03 +00005632ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5633ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5634ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5635
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5637$as_echo_n "checking how to print strings... " >&6; }
5638# Test print first, because it will be a builtin if present.
5639if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5640 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5641 ECHO='print -r --'
5642elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5643 ECHO='printf %s\n'
5644else
5645 # Use this function as a fallback that always works.
5646 func_fallback_echo ()
5647 {
5648 eval 'cat <<_LTECHO_EOF
5649$1
5650_LTECHO_EOF'
5651 }
5652 ECHO='func_fallback_echo'
5653fi
5654
5655# func_echo_all arg...
5656# Invoke $ECHO with all args, space-separated.
5657func_echo_all ()
5658{
5659 $ECHO ""
5660}
5661
5662case "$ECHO" in
5663 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5664$as_echo "printf" >&6; } ;;
5665 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5666$as_echo "print -r" >&6; } ;;
5667 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5668$as_echo "cat" >&6; } ;;
5669esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
cristy3ed852e2009-09-05 21:47:34 +00005684
5685
5686# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00005687if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5689else
5690 with_gnu_ld=no
5691fi
5692
5693ac_prog=ld
5694if test "$GCC" = yes; then
5695 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00005696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005697$as_echo_n "checking for ld used by $CC... " >&6; }
5698 case $host in
5699 *-*-mingw*)
5700 # gcc leaves a trailing carriage return which upsets mingw
5701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5702 *)
5703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5704 esac
5705 case $ac_prog in
5706 # Accept absolute paths.
5707 [\\/]* | ?:[\\/]*)
5708 re_direlt='/[^/][^/]*/\.\./'
5709 # Canonicalize the pathname of ld
5710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5713 done
5714 test -z "$LD" && LD="$ac_prog"
5715 ;;
5716 "")
5717 # If it fails, then pretend we aren't using GCC.
5718 ac_prog=ld
5719 ;;
5720 *)
5721 # If it is relative, then search for the first ld in PATH.
5722 with_gnu_ld=unknown
5723 ;;
5724 esac
5725elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00005726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005727$as_echo_n "checking for GNU ld... " >&6; }
5728else
cristy8b350f62009-11-15 23:12:43 +00005729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005730$as_echo_n "checking for non-GNU ld... " >&6; }
5731fi
cristy8b350f62009-11-15 23:12:43 +00005732if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005733 $as_echo_n "(cached) " >&6
5734else
5735 if test -z "$LD"; then
5736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737 for ac_dir in $PATH; do
5738 IFS="$lt_save_ifs"
5739 test -z "$ac_dir" && ac_dir=.
5740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5741 lt_cv_path_LD="$ac_dir/$ac_prog"
5742 # Check to see if the program is GNU ld. I'd rather use --version,
5743 # but apparently some variants of GNU ld only accept -v.
5744 # Break only if it was the GNU/non-GNU ld that we prefer.
5745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5746 *GNU* | *'with BFD'*)
5747 test "$with_gnu_ld" != no && break
5748 ;;
5749 *)
5750 test "$with_gnu_ld" != yes && break
5751 ;;
5752 esac
5753 fi
5754 done
5755 IFS="$lt_save_ifs"
5756else
5757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5758fi
5759fi
5760
5761LD="$lt_cv_path_LD"
5762if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00005763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00005764$as_echo "$LD" >&6; }
5765else
cristy8b350f62009-11-15 23:12:43 +00005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005767$as_echo "no" >&6; }
5768fi
cristy8b350f62009-11-15 23:12:43 +00005769test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005771$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005772if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005773 $as_echo_n "(cached) " >&6
5774else
5775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5776case `$LD -v 2>&1 </dev/null` in
5777*GNU* | *'with BFD'*)
5778 lt_cv_prog_gnu_ld=yes
5779 ;;
5780*)
5781 lt_cv_prog_gnu_ld=no
5782 ;;
5783esac
5784fi
cristy8b350f62009-11-15 23:12:43 +00005785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005786$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5787with_gnu_ld=$lt_cv_prog_gnu_ld
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5799set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005801$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005802if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005803 $as_echo_n "(cached) " >&6
5804else
5805 if test -n "$RANLIB"; then
5806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5807else
5808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809for as_dir in $PATH
5810do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00005816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005817 break 2
5818 fi
5819done
cristy8b350f62009-11-15 23:12:43 +00005820 done
cristy3ed852e2009-09-05 21:47:34 +00005821IFS=$as_save_IFS
5822
5823fi
5824fi
5825RANLIB=$ac_cv_prog_RANLIB
5826if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005828$as_echo "$RANLIB" >&6; }
5829else
cristy8b350f62009-11-15 23:12:43 +00005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005831$as_echo "no" >&6; }
5832fi
5833
5834
5835fi
5836if test -z "$ac_cv_prog_RANLIB"; then
5837 ac_ct_RANLIB=$RANLIB
5838 # Extract the first word of "ranlib", so it can be a program name with args.
5839set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005841$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005842if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005843 $as_echo_n "(cached) " >&6
5844else
5845 if test -n "$ac_ct_RANLIB"; then
5846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00005856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005857 break 2
5858 fi
5859done
cristy8b350f62009-11-15 23:12:43 +00005860 done
cristy3ed852e2009-09-05 21:47:34 +00005861IFS=$as_save_IFS
5862
5863fi
5864fi
5865ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5866if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005868$as_echo "$ac_ct_RANLIB" >&6; }
5869else
cristy8b350f62009-11-15 23:12:43 +00005870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005871$as_echo "no" >&6; }
5872fi
5873
5874 if test "x$ac_ct_RANLIB" = x; then
5875 RANLIB=":"
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878yes:)
cristy8b350f62009-11-15 23:12:43 +00005879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00005880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881ac_tool_warned=yes ;;
5882esac
5883 RANLIB=$ac_ct_RANLIB
5884 fi
5885else
5886 RANLIB="$ac_cv_prog_RANLIB"
5887fi
5888
5889
5890if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00005891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005892$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5893else
cristy8b350f62009-11-15 23:12:43 +00005894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005895$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5896fi
5897set dummy $CC; ac_cc=`$as_echo "$2" |
5898 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00005899if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005900 $as_echo_n "(cached) " >&6
5901else
cristy8b350f62009-11-15 23:12:43 +00005902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005903/* end confdefs.h. */
5904
5905int
5906main ()
5907{
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913# Make sure it works both with $CC and with simple cc.
5914# We do the test twice because some compilers refuse to overwrite an
5915# existing .o file with -o, though they will create one.
5916ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5917rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00005918if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
cristy8b350f62009-11-15 23:12:43 +00005922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5923$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005924 (eval "$ac_try") 2>&5
5925 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; } &&
5928 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
cristy8b350f62009-11-15 23:12:43 +00005932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005934 (eval "$ac_try") 2>&5
5935 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00005938then
5939 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5940 if test "x$CC" != xcc; then
5941 # Test first that cc exists at all.
5942 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00005943 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
cristy8b350f62009-11-15 23:12:43 +00005947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5948$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005949 (eval "$ac_try") 2>&5
5950 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00005953 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5954 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00005955 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
cristy8b350f62009-11-15 23:12:43 +00005959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5960$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005961 (eval "$ac_try") 2>&5
5962 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964 test $ac_status = 0; } &&
5965 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968esac
cristy8b350f62009-11-15 23:12:43 +00005969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5970$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005971 (eval "$ac_try") 2>&5
5972 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00005975 then
5976 # cc works too.
5977 :
5978 else
5979 # cc exists but doesn't like -o.
5980 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5981 fi
5982 fi
5983 fi
5984else
5985 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5986fi
5987rm -f core conftest*
5988
5989fi
5990if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00005991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00005992$as_echo "yes" >&6; }
5993else
cristy8b350f62009-11-15 23:12:43 +00005994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005995$as_echo "no" >&6; }
5996
cristy8b350f62009-11-15 23:12:43 +00005997$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00005998
5999fi
6000
6001# FIXME: we rely on the cache variable name because
6002# there is no other way.
6003set dummy $CC
6004am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6005eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6006if test "$am_t" != yes; then
6007 # Losing compiler, so override with the script.
6008 # FIXME: It is wrong to rewrite CC.
6009 # But if we don't then we get into trouble of one sort or another.
6010 # A longer-term fix would be to have automake use am__CC in this case,
6011 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6012 CC="$am_aux_dir/compile $CC"
6013fi
6014
6015
cristy3ed852e2009-09-05 21:47:34 +00006016
cristy8b350f62009-11-15 23:12:43 +00006017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006018$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6019set x ${MAKE-make}
6020ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006021if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006022 $as_echo_n "(cached) " >&6
6023else
6024 cat >conftest.make <<\_ACEOF
6025SHELL = /bin/sh
6026all:
6027 @echo '@@@%%%=$(MAKE)=@@@%%%'
6028_ACEOF
6029# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6030case `${MAKE-make} -f conftest.make 2>/dev/null` in
6031 *@@@%%%=?*=@@@%%%*)
6032 eval ac_cv_prog_make_${ac_make}_set=yes;;
6033 *)
6034 eval ac_cv_prog_make_${ac_make}_set=no;;
6035esac
6036rm -f conftest.make
6037fi
6038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006040$as_echo "yes" >&6; }
6041 SET_MAKE=
6042else
cristy8b350f62009-11-15 23:12:43 +00006043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006044$as_echo "no" >&6; }
6045 SET_MAKE="MAKE=${MAKE-make}"
6046fi
6047
6048ac_ext=cpp
6049ac_cpp='$CXXCPP $CPPFLAGS'
6050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6053if test -z "$CXX"; then
6054 if test -n "$CCC"; then
6055 CXX=$CCC
6056 else
6057 if test -n "$ac_tool_prefix"; then
6058 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6059 do
6060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006063$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006064if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006065 $as_echo_n "(cached) " >&6
6066else
6067 if test -n "$CXX"; then
6068 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006079 break 2
6080 fi
6081done
cristy8b350f62009-11-15 23:12:43 +00006082 done
cristy3ed852e2009-09-05 21:47:34 +00006083IFS=$as_save_IFS
6084
6085fi
6086fi
6087CXX=$ac_cv_prog_CXX
6088if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006090$as_echo "$CXX" >&6; }
6091else
cristy8b350f62009-11-15 23:12:43 +00006092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006093$as_echo "no" >&6; }
6094fi
6095
6096
6097 test -n "$CXX" && break
6098 done
6099fi
6100if test -z "$CXX"; then
6101 ac_ct_CXX=$CXX
6102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6103do
6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
6105set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006107$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006108if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006109 $as_echo_n "(cached) " >&6
6110else
6111 if test -n "$ac_ct_CXX"; then
6112 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006123 break 2
6124 fi
6125done
cristy8b350f62009-11-15 23:12:43 +00006126 done
cristy3ed852e2009-09-05 21:47:34 +00006127IFS=$as_save_IFS
6128
6129fi
6130fi
6131ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6132if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006134$as_echo "$ac_ct_CXX" >&6; }
6135else
cristy8b350f62009-11-15 23:12:43 +00006136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006137$as_echo "no" >&6; }
6138fi
6139
6140
6141 test -n "$ac_ct_CXX" && break
6142done
6143
6144 if test "x$ac_ct_CXX" = x; then
6145 CXX="g++"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148yes:)
cristy8b350f62009-11-15 23:12:43 +00006149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151ac_tool_warned=yes ;;
6152esac
6153 CXX=$ac_ct_CXX
6154 fi
6155fi
6156
6157 fi
6158fi
6159# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00006160$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006161set X $ac_compile
6162ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00006163for ac_option in --version -v -V -qversion; do
6164 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00006165case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168esac
cristy8b350f62009-11-15 23:12:43 +00006169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6170$as_echo "$ac_try_echo"; } >&5
6171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00006172 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006173 if test -s conftest.err; then
6174 sed '10a\
6175... rest of stderr output deleted ...
6176 10q' conftest.err >conftest.er1
6177 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00006178 fi
cristycd4c5312009-11-22 01:19:08 +00006179 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00006180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; }
6182done
cristy3ed852e2009-09-05 21:47:34 +00006183
cristy8b350f62009-11-15 23:12:43 +00006184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00006185$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006186if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006187 $as_echo_n "(cached) " >&6
6188else
cristy8b350f62009-11-15 23:12:43 +00006189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006190/* end confdefs.h. */
6191
6192int
6193main ()
6194{
6195#ifndef __GNUC__
6196 choke me
6197#endif
6198
6199 ;
6200 return 0;
6201}
6202_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006203if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006204 ac_compiler_gnu=yes
6205else
cristy8b350f62009-11-15 23:12:43 +00006206 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00006207fi
cristy3ed852e2009-09-05 21:47:34 +00006208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6210
6211fi
cristy8b350f62009-11-15 23:12:43 +00006212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00006213$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6214if test $ac_compiler_gnu = yes; then
6215 GXX=yes
6216else
6217 GXX=
6218fi
6219ac_test_CXXFLAGS=${CXXFLAGS+set}
6220ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +00006221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006222$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006223if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006224 $as_echo_n "(cached) " >&6
6225else
6226 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6227 ac_cxx_werror_flag=yes
6228 ac_cv_prog_cxx_g=no
6229 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006231/* end confdefs.h. */
6232
6233int
6234main ()
6235{
6236
6237 ;
6238 return 0;
6239}
6240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006241if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006242 ac_cv_prog_cxx_g=yes
6243else
cristy8b350f62009-11-15 23:12:43 +00006244 CXXFLAGS=""
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006246/* end confdefs.h. */
6247
6248int
6249main ()
6250{
6251
6252 ;
6253 return 0;
6254}
6255_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006256if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006257
cristy8b350f62009-11-15 23:12:43 +00006258else
6259 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00006260 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006262/* end confdefs.h. */
6263
6264int
6265main ()
6266{
6267
6268 ;
6269 return 0;
6270}
6271_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006272if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006273 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +00006274fi
cristy3ed852e2009-09-05 21:47:34 +00006275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276fi
cristy3ed852e2009-09-05 21:47:34 +00006277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278fi
cristy3ed852e2009-09-05 21:47:34 +00006279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6281fi
cristy8b350f62009-11-15 23:12:43 +00006282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006283$as_echo "$ac_cv_prog_cxx_g" >&6; }
6284if test "$ac_test_CXXFLAGS" = set; then
6285 CXXFLAGS=$ac_save_CXXFLAGS
6286elif test $ac_cv_prog_cxx_g = yes; then
6287 if test "$GXX" = yes; then
6288 CXXFLAGS="-g -O2"
6289 else
6290 CXXFLAGS="-g"
6291 fi
6292else
6293 if test "$GXX" = yes; then
6294 CXXFLAGS="-O2"
6295 else
6296 CXXFLAGS=
6297 fi
6298fi
6299ac_ext=c
6300ac_cpp='$CPP $CPPFLAGS'
6301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303ac_compiler_gnu=$ac_cv_c_compiler_gnu
6304
6305depcc="$CXX" am_compiler_list=
6306
cristy8b350f62009-11-15 23:12:43 +00006307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006308$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006309if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006310 $as_echo_n "(cached) " >&6
6311else
6312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6313 # We make a subdir and do the tests there. Otherwise we can end up
6314 # making bogus files that we don't know about and never remove. For
6315 # instance it was reported that on HP-UX the gcc test will end up
6316 # making a dummy file named `D' -- because `-MD' means `put the output
6317 # in D'.
6318 mkdir conftest.dir
6319 # Copy depcomp to subdir because otherwise we won't find it if we're
6320 # using a relative directory.
6321 cp "$am_depcomp" conftest.dir
6322 cd conftest.dir
6323 # We will build objects and dependencies in a subdirectory because
6324 # it helps to detect inapplicable dependency modes. For instance
6325 # both Tru64's cc and ICC support -MD to output dependencies as a
6326 # side effect of compilation, but ICC will put the dependencies in
6327 # the current directory while Tru64 will put them in the object
6328 # directory.
6329 mkdir sub
6330
6331 am_cv_CXX_dependencies_compiler_type=none
6332 if test "$am_compiler_list" = ""; then
6333 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6334 fi
6335 am__universal=false
6336 case " $depcc " in #(
6337 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6338 esac
6339
6340 for depmode in $am_compiler_list; do
6341 # Setup a source with many dependencies, because some compilers
6342 # like to wrap large dependency lists on column 80 (with \), and
6343 # we should not choose a depcomp mode which is confused by this.
6344 #
6345 # We need to recreate these files for each test, as the compiler may
6346 # overwrite some of them when testing with obscure command lines.
6347 # This happens at least with the AIX C compiler.
6348 : > sub/conftest.c
6349 for i in 1 2 3 4 5 6; do
6350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6352 # Solaris 8's {/usr,}/bin/sh.
6353 touch sub/conftst$i.h
6354 done
6355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6356
6357 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6358 # mode. It turns out that the SunPro C++ compiler does not properly
6359 # handle `-M -o', and we need to detect this. Also, some Intel
6360 # versions had trouble with output in subdirs
6361 am__obj=sub/conftest.${OBJEXT-o}
6362 am__minus_obj="-o $am__obj"
6363 case $depmode in
6364 gcc)
6365 # This depmode causes a compiler race in universal mode.
6366 test "$am__universal" = false || continue
6367 ;;
6368 nosideeffect)
6369 # after this tag, mechanisms are not by side-effect, so they'll
6370 # only be used when explicitly requested
6371 if test "x$enable_dependency_tracking" = xyes; then
6372 continue
6373 else
6374 break
6375 fi
6376 ;;
6377 msvisualcpp | msvcmsys)
6378 # This compiler won't grok `-c -o', but also, the minuso test has
6379 # not run yet. These depmodes are late enough in the game, and
6380 # so weak that their functioning should not be impacted.
6381 am__obj=conftest.${OBJEXT-o}
6382 am__minus_obj=
6383 ;;
6384 none) break ;;
6385 esac
6386 if depmode=$depmode \
6387 source=sub/conftest.c object=$am__obj \
6388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6390 >/dev/null 2>conftest.err &&
6391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6395 # icc doesn't choke on unknown options, it will just issue warnings
6396 # or remarks (even with -Werror). So we grep stderr for any message
6397 # that says an option was ignored or not supported.
6398 # When given -MP, icc 7.0 and 7.1 complain thusly:
6399 # icc: Command line warning: ignoring option '-M'; no argument required
6400 # The diagnosis changed in icc 8.0:
6401 # icc: Command line remark: option '-MP' not supported
6402 if (grep 'ignoring option' conftest.err ||
6403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6404 am_cv_CXX_dependencies_compiler_type=$depmode
6405 break
6406 fi
6407 fi
6408 done
6409
6410 cd ..
6411 rm -rf conftest.dir
6412else
6413 am_cv_CXX_dependencies_compiler_type=none
6414fi
6415
6416fi
cristy8b350f62009-11-15 23:12:43 +00006417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006418$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6419CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6420
6421 if
6422 test "x$enable_dependency_tracking" != xno \
6423 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6424 am__fastdepCXX_TRUE=
6425 am__fastdepCXX_FALSE='#'
6426else
6427 am__fastdepCXX_TRUE='#'
6428 am__fastdepCXX_FALSE=
6429fi
6430
6431
6432
cristy8b350f62009-11-15 23:12:43 +00006433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006434$as_echo_n "checking maximum warning verbosity option... " >&6; }
6435
6436
6437
6438
6439# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006440if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006441 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6442else
6443 ac_compile_warnings_on=""
6444fi
6445
6446
6447 if test x"$ac_compile_warnings_on" = xno
6448 then
6449 ac_compile_warnings_msg=no
6450 else
6451 if test -n "$CXX"
6452 then
6453 if test "$GXX" = "yes"
6454 then
6455 ac_compile_warnings_opt='-Wall -W'
6456 fi
6457 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6458 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6459 fi
6460
6461 if test -n "$CC"
6462 then
6463 if test "$GCC" = "yes"
6464 then
6465 ac_compile_warnings_opt='-Wall -W'
6466 fi
6467 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6468 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6469 fi
6470 fi
cristy8b350f62009-11-15 23:12:43 +00006471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006472$as_echo "$ac_compile_warnings_msg" >&6; }
6473 unset ac_compile_warnings_msg
6474 unset ac_compile_warnings_opt
6475
cristy8b350f62009-11-15 23:12:43 +00006476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006477$as_echo_n "checking whether ln -s works... " >&6; }
6478LN_S=$as_ln_s
6479if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006481$as_echo "yes" >&6; }
6482else
cristy8b350f62009-11-15 23:12:43 +00006483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006484$as_echo "no, using $LN_S" >&6; }
6485fi
6486
cristy8b350f62009-11-15 23:12:43 +00006487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006488$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6489
6490# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006491if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006492 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006494$as_echo "yes" >&6; }
6495
cristy8b350f62009-11-15 23:12:43 +00006496$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006497
6498 LIBS="$LIBS -ldmalloc"
6499 LDFLAGS="$LDFLAGS -g"
6500else
cristy8b350f62009-11-15 23:12:43 +00006501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006502$as_echo "no" >&6; }
6503fi
6504else
cristy8b350f62009-11-15 23:12:43 +00006505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006506$as_echo "no" >&6; }
6507fi
6508
6509
6510
6511
6512if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006517$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006518if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006519 $as_echo_n "(cached) " >&6
6520else
6521 case $PKG_CONFIG in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6524 ;;
6525 *)
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006535 break 2
6536 fi
6537done
cristy8b350f62009-11-15 23:12:43 +00006538 done
cristy3ed852e2009-09-05 21:47:34 +00006539IFS=$as_save_IFS
6540
6541 ;;
6542esac
6543fi
6544PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6545if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006547$as_echo "$PKG_CONFIG" >&6; }
6548else
cristy8b350f62009-11-15 23:12:43 +00006549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006550$as_echo "no" >&6; }
6551fi
6552
6553
6554fi
6555if test -z "$ac_cv_path_PKG_CONFIG"; then
6556 ac_pt_PKG_CONFIG=$PKG_CONFIG
6557 # Extract the first word of "pkg-config", so it can be a program name with args.
6558set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006561if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006562 $as_echo_n "(cached) " >&6
6563else
6564 case $ac_pt_PKG_CONFIG in
6565 [\\/]* | ?:[\\/]*)
6566 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6567 ;;
6568 *)
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006578 break 2
6579 fi
6580done
cristy8b350f62009-11-15 23:12:43 +00006581 done
cristy3ed852e2009-09-05 21:47:34 +00006582IFS=$as_save_IFS
6583
6584 ;;
6585esac
6586fi
6587ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6588if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006590$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6591else
cristy8b350f62009-11-15 23:12:43 +00006592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006593$as_echo "no" >&6; }
6594fi
6595
6596 if test "x$ac_pt_PKG_CONFIG" = x; then
6597 PKG_CONFIG=""
6598 else
6599 case $cross_compiling:$ac_tool_warned in
6600yes:)
cristy8b350f62009-11-15 23:12:43 +00006601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6603ac_tool_warned=yes ;;
6604esac
6605 PKG_CONFIG=$ac_pt_PKG_CONFIG
6606 fi
6607else
6608 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6609fi
6610
6611fi
6612if test -n "$PKG_CONFIG"; then
6613 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006615$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6616 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006618$as_echo "yes" >&6; }
6619 else
cristy8b350f62009-11-15 23:12:43 +00006620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006621$as_echo "no" >&6; }
6622 PKG_CONFIG=""
6623 fi
6624
6625fi
6626
6627#
6628# Enable OS features.
6629#
6630
6631
cristy8b350f62009-11-15 23:12:43 +00006632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006633$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006634if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006635 $as_echo_n "(cached) " >&6
6636else
cristy8b350f62009-11-15 23:12:43 +00006637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006638/* end confdefs.h. */
6639#include <stdlib.h>
6640#include <stdarg.h>
6641#include <string.h>
6642#include <float.h>
6643
6644int
6645main ()
6646{
6647
6648 ;
6649 return 0;
6650}
6651_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006652if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006653 ac_cv_header_stdc=yes
6654else
cristy8b350f62009-11-15 23:12:43 +00006655 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006656fi
cristy3ed852e2009-09-05 21:47:34 +00006657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658
6659if test $ac_cv_header_stdc = yes; then
6660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006662/* end confdefs.h. */
6663#include <string.h>
6664
6665_ACEOF
6666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006667 $EGREP "memchr" >/dev/null 2>&1; then :
6668
cristy3ed852e2009-09-05 21:47:34 +00006669else
6670 ac_cv_header_stdc=no
6671fi
6672rm -f conftest*
6673
6674fi
6675
6676if test $ac_cv_header_stdc = yes; then
6677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006679/* end confdefs.h. */
6680#include <stdlib.h>
6681
6682_ACEOF
6683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006684 $EGREP "free" >/dev/null 2>&1; then :
6685
cristy3ed852e2009-09-05 21:47:34 +00006686else
6687 ac_cv_header_stdc=no
6688fi
6689rm -f conftest*
6690
6691fi
6692
6693if test $ac_cv_header_stdc = yes; then
6694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006695 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006696 :
6697else
cristy8b350f62009-11-15 23:12:43 +00006698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006699/* end confdefs.h. */
6700#include <ctype.h>
6701#include <stdlib.h>
6702#if ((' ' & 0x0FF) == 0x020)
6703# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6704# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6705#else
6706# define ISLOWER(c) \
6707 (('a' <= (c) && (c) <= 'i') \
6708 || ('j' <= (c) && (c) <= 'r') \
6709 || ('s' <= (c) && (c) <= 'z'))
6710# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6711#endif
6712
6713#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6714int
6715main ()
6716{
6717 int i;
6718 for (i = 0; i < 256; i++)
6719 if (XOR (islower (i), ISLOWER (i))
6720 || toupper (i) != TOUPPER (i))
6721 return 2;
6722 return 0;
6723}
6724_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006725if ac_fn_c_try_run "$LINENO"; then :
6726
cristy3ed852e2009-09-05 21:47:34 +00006727else
cristy8b350f62009-11-15 23:12:43 +00006728 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006729fi
cristy8b350f62009-11-15 23:12:43 +00006730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6731 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006732fi
6733
cristy3ed852e2009-09-05 21:47:34 +00006734fi
6735fi
cristy8b350f62009-11-15 23:12:43 +00006736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006737$as_echo "$ac_cv_header_stdc" >&6; }
6738if test $ac_cv_header_stdc = yes; then
6739
cristy8b350f62009-11-15 23:12:43 +00006740$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006741
6742fi
6743
6744# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006745for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6746 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006747do :
6748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6749ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6750"
6751eval as_val=\$$as_ac_Header
6752 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006753 cat >>confdefs.h <<_ACEOF
6754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755_ACEOF
6756
6757fi
6758
6759done
6760
6761
6762
cristy8b350f62009-11-15 23:12:43 +00006763 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6764if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006765 MINIX=yes
6766else
6767 MINIX=
6768fi
6769
6770
6771 if test "$MINIX" = yes; then
6772
cristy8b350f62009-11-15 23:12:43 +00006773$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006774
6775
cristy8b350f62009-11-15 23:12:43 +00006776$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006777
6778
cristy8b350f62009-11-15 23:12:43 +00006779$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006780
6781 fi
6782
6783
cristy8b350f62009-11-15 23:12:43 +00006784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006785$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006786if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 $as_echo_n "(cached) " >&6
6788else
cristy8b350f62009-11-15 23:12:43 +00006789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006790/* end confdefs.h. */
6791
6792# define __EXTENSIONS__ 1
6793 $ac_includes_default
6794int
6795main ()
6796{
6797
6798 ;
6799 return 0;
6800}
6801_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006802if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006803 ac_cv_safe_to_define___extensions__=yes
6804else
cristy8b350f62009-11-15 23:12:43 +00006805 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006806fi
cristy3ed852e2009-09-05 21:47:34 +00006807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808fi
cristy8b350f62009-11-15 23:12:43 +00006809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006810$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6811 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006812 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006813
cristy8b350f62009-11-15 23:12:43 +00006814 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006815
cristy8b350f62009-11-15 23:12:43 +00006816 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006817
cristy8b350f62009-11-15 23:12:43 +00006818 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006819
cristy8b350f62009-11-15 23:12:43 +00006820 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6821
cristy3ed852e2009-09-05 21:47:34 +00006822
6823
6824
6825#
6826# Enable run-time checking.
6827#
6828# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006829if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006830 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6831else
6832 enable_bounds_checking='no'
6833fi
6834
6835
6836if test "$enable_bounds_checking" = yes; then
6837
cristy8b350f62009-11-15 23:12:43 +00006838$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006839
6840fi
6841
6842#
6843# Tests for Windows
6844#
6845
6846
6847
6848GDI32_LIBS=''
6849StaticCplusPlusLibraries='no'
6850native_win32_build='no'
6851cygwin_build='no'
6852case "${host_os}" in
6853 cygwin* )
6854 StaticCplusPlusLibraries='yes'
6855 cygwin_build='yes'
6856 GDI32_LIBS='-lgdi32'
6857 ;;
6858 mingw* )
6859 StaticCplusPlusLibraries='yes'
6860 native_win32_build='yes'
6861 GDI32_LIBS='-lgdi32'
6862 ;;
6863esac
6864if test "${GDI32_LIBS}x" != 'x'; then
6865
cristy8b350f62009-11-15 23:12:43 +00006866$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006867
6868fi
6869
6870 if test "${GDI32_LIBS}x" != 'x' ; then
6871 WINGDI32_DELEGATE_TRUE=
6872 WINGDI32_DELEGATE_FALSE='#'
6873else
6874 WINGDI32_DELEGATE_TRUE='#'
6875 WINGDI32_DELEGATE_FALSE=
6876fi
6877
6878 if test "${native_win32_build}" = 'yes' ; then
6879 WIN32_NATIVE_BUILD_TRUE=
6880 WIN32_NATIVE_BUILD_FALSE='#'
6881else
6882 WIN32_NATIVE_BUILD_TRUE='#'
6883 WIN32_NATIVE_BUILD_FALSE=
6884fi
6885
6886 if test "${cygwin_build}" = 'yes' ; then
6887 CYGWIN_BUILD_TRUE=
6888 CYGWIN_BUILD_FALSE='#'
6889else
6890 CYGWIN_BUILD_TRUE='#'
6891 CYGWIN_BUILD_FALSE=
6892fi
6893
6894 if test "x${CC}" = 'xcl.exe' ; then
6895 USING_CL_TRUE=
6896 USING_CL_FALSE='#'
6897else
6898 USING_CL_TRUE='#'
6899 USING_CL_FALSE=
6900fi
6901
6902
6903WinPathScript="${srcdirfull}/winpath.sh"
6904
6905
6906#
6907# Compiler flags tweaks
6908#
6909if test "${GCC}" != "yes"; then
6910 case "${host}" in
6911 *-*-hpux* )
6912 # aCC: HP ANSI C++ B3910B A.03.34
6913 CFLAGS="${CFLAGS} -Wp,-H30000"
6914 if test -n "${CXXFLAGS}"; then
6915 CXXFLAGS='-AA'
6916 else
6917 CXXFLAGS="${CXXFLAGS} -AA"
6918 fi
6919 ;;
6920 *-dec-osf5.* )
6921 # Compaq alphaev68-dec-osf5.1 compiler
6922 if test -n "${CXXFLAGS}"; then
6923 CXXFLAGS='-std strict_ansi -noimplicit_include'
6924 else
6925 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
6926 fi
6927 esac
6928fi
6929
6930# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00006931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006932$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006933if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006934 $as_echo_n "(cached) " >&6
6935else
6936
6937im_cv_ld_lazyload='none'
6938case "${host}" in
6939 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
6940 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
6941 im_cv_ld_lazyload='-Wl,-zlazyload'
6942 fi
6943 ;;
6944esac
6945
6946fi
cristy8b350f62009-11-15 23:12:43 +00006947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00006948$as_echo "$im_cv_ld_lazyload" >&6; }
6949if test "${im_cv_ld_lazyload}" != 'none' ; then
6950 if test -z "${LDFLAGS}" ; then
6951 LDFLAGS="${im_cv_ld_lazyload}"
6952 else
6953 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
6954 fi
6955fi
6956
6957case "$host" in
6958*darwin* | *-macos10*)
6959 if test -d /opt/local ; then
6960 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
6961 LDFLAGS="$LDFLAGS -L/opt/local/lib"
6962 elif test -d /sw ; then
6963 CPPFLAGS="$CPPFLAGS -I/sw/include"
6964 LDFLAGS="$LDFLAGS -L/sw/lib"
6965 fi
6966 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00006967if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006968 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
6969else
6970 build_osxuniversal=no
6971fi
6972
6973
6974 if test "${build_osxuniversal}" != no ; then
6975 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00006976 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00006977Please re-run configure with these options:
6978 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00006979 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006980 fi
6981 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6982 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6983 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6984 fi
6985 ;;
6986esac
6987
6988# Enable support for threads
6989
6990# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00006991if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006992 withval=$with_threads; with_threads=$withval
6993else
6994 with_threads='yes'
6995fi
6996
6997
6998have_threads=no
6999if test "$with_threads" != 'no'; then
7000
7001
7002
7003ac_ext=c
7004ac_cpp='$CPP $CPPFLAGS'
7005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
7009acx_pthread_ok=no
7010
7011# We used to check for pthread.h first, but this fails if pthread.h
7012# requires special compiler flags (e.g. on True64 or Sequent).
7013# It gets checked for in the link test anyway.
7014
7015# First of all, check if the user has set any of the PTHREAD_LIBS,
7016# etcetera environment variables, and if threads linking works using
7017# them:
7018if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7019 save_CFLAGS="$CFLAGS"
7020 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7021 save_LIBS="$LIBS"
7022 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00007024$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007026/* end confdefs.h. */
7027
7028/* Override any GCC internal prototype to avoid an error.
7029 Use char because int might match the return type of a GCC
7030 builtin and then its argument prototype would still apply. */
7031#ifdef __cplusplus
7032extern "C"
7033#endif
7034char pthread_join ();
7035int
7036main ()
7037{
7038return pthread_join ();
7039 ;
7040 return 0;
7041}
7042_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007044 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007045fi
cristy8b350f62009-11-15 23:12:43 +00007046rm -f core conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007049$as_echo "$acx_pthread_ok" >&6; }
7050 if test x"$acx_pthread_ok" = xno; then
7051 PTHREAD_LIBS=""
7052 PTHREAD_CFLAGS=""
7053 fi
7054 LIBS="$save_LIBS"
7055 CFLAGS="$save_CFLAGS"
7056fi
7057
7058# We must check for the threads library under a number of different
7059# names; the ordering is very important because some systems
7060# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7061# libraries is broken (non-POSIX).
7062
7063# Create a list of thread flags to try. Items starting with a "-" are
7064# C compiler flags, and other items are library names, except for "none"
7065# which indicates that we try without any flags at all, and "pthread-config"
7066# which is a program returning the flags for the Pth emulation library.
7067
7068acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7069
7070# The ordering *is* (sometimes) important. Some notes on the
7071# individual items follow:
7072
7073# pthreads: AIX (must check this before -lpthread)
7074# none: in case threads are in libc; should be tried before -Kthread and
7075# other compiler flags to prevent continual compiler warnings
7076# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7077# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7078# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7079# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7080# -pthreads: Solaris/gcc
7081# -mthreads: Mingw32/gcc, Lynx/gcc
7082# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7083# doesn't hurt to check since this sometimes defines pthreads too;
7084# also defines -D_REENTRANT)
7085# ... -mt is also the pthreads flag for HP/aCC
7086# pthread: Linux, etcetera
7087# --thread-safe: KAI C++
7088# pthread-config: use pthread-config program (for GNU Pth library)
7089
7090case "${host_cpu}-${host_os}" in
7091 *solaris*)
7092
7093 # On Solaris (at least, for some versions), libc contains stubbed
7094 # (non-functional) versions of the pthreads routines, so link-based
7095 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7096 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7097 # a function called by this macro, so we could check for that, but
7098 # who knows whether they'll stub that too in a future libc.) So,
7099 # we'll just look for -pthreads and -lpthread first:
7100
7101 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7102 ;;
cristy3ed852e2009-09-05 21:47:34 +00007103esac
7104
7105if test x"$acx_pthread_ok" = xno; then
7106for flag in $acx_pthread_flags; do
7107
7108 case $flag in
7109 none)
cristy8b350f62009-11-15 23:12:43 +00007110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007111$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7112 ;;
7113
7114 -*)
cristy8b350f62009-11-15 23:12:43 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007116$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7117 PTHREAD_CFLAGS="$flag"
7118 ;;
7119
7120 pthread-config)
7121 # Extract the first word of "pthread-config", so it can be a program name with args.
7122set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007124$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007125if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007126 $as_echo_n "(cached) " >&6
7127else
7128 if test -n "$acx_pthread_config"; then
7129 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007140 break 2
7141 fi
7142done
cristy8b350f62009-11-15 23:12:43 +00007143 done
cristy3ed852e2009-09-05 21:47:34 +00007144IFS=$as_save_IFS
7145
7146 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7147fi
7148fi
7149acx_pthread_config=$ac_cv_prog_acx_pthread_config
7150if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007152$as_echo "$acx_pthread_config" >&6; }
7153else
cristy8b350f62009-11-15 23:12:43 +00007154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007155$as_echo "no" >&6; }
7156fi
7157
7158
7159 if test x"$acx_pthread_config" = xno; then continue; fi
7160 PTHREAD_CFLAGS="`pthread-config --cflags`"
7161 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7162 ;;
7163
7164 *)
cristy8b350f62009-11-15 23:12:43 +00007165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007166$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7167 PTHREAD_LIBS="-l$flag"
7168 ;;
7169 esac
7170
7171 save_LIBS="$LIBS"
7172 save_CFLAGS="$CFLAGS"
7173 LIBS="$PTHREAD_LIBS $LIBS"
7174 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7175
7176 # Check for various functions. We must include pthread.h,
7177 # since some functions may be macros. (On the Sequent, we
7178 # need a special flag -Kthread to make this header compile.)
7179 # We check for pthread_join because it is in -lpthread on IRIX
7180 # while pthread_create is in libc. We check for pthread_attr_init
7181 # due to DEC craziness with -lpthreads. We check for
7182 # pthread_cleanup_push because it is one of the few pthread
7183 # functions on Solaris that doesn't have a non-functional libc stub.
7184 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007186/* end confdefs.h. */
7187#include <pthread.h>
7188int
7189main ()
7190{
7191pthread_t th; pthread_join(th, 0);
7192 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7193 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7194 ;
7195 return 0;
7196}
7197_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007199 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007200fi
cristy8b350f62009-11-15 23:12:43 +00007201rm -f core conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007203
7204 LIBS="$save_LIBS"
7205 CFLAGS="$save_CFLAGS"
7206
cristy8b350f62009-11-15 23:12:43 +00007207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007208$as_echo "$acx_pthread_ok" >&6; }
7209 if test "x$acx_pthread_ok" = xyes; then
7210 break;
7211 fi
7212
7213 PTHREAD_LIBS=""
7214 PTHREAD_CFLAGS=""
7215done
7216fi
7217
7218# Various other checks:
7219if test "x$acx_pthread_ok" = xyes; then
7220 save_LIBS="$LIBS"
7221 LIBS="$PTHREAD_LIBS $LIBS"
7222 save_CFLAGS="$CFLAGS"
7223 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7224
7225 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007227$as_echo_n "checking for joinable pthread attribute... " >&6; }
7228 attr_name=unknown
7229 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007231/* end confdefs.h. */
7232#include <pthread.h>
7233int
7234main ()
7235{
7236int attr=$attr; return attr;
7237 ;
7238 return 0;
7239}
7240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007242 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007243fi
cristy8b350f62009-11-15 23:12:43 +00007244rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007246 done
cristy8b350f62009-11-15 23:12:43 +00007247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007248$as_echo "$attr_name" >&6; }
7249 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7250
7251cat >>confdefs.h <<_ACEOF
7252#define PTHREAD_CREATE_JOINABLE $attr_name
7253_ACEOF
7254
7255 fi
7256
cristy8b350f62009-11-15 23:12:43 +00007257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007258$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7259 flag=no
7260 case "${host_cpu}-${host_os}" in
7261 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7262 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7263 esac
cristy8b350f62009-11-15 23:12:43 +00007264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007265$as_echo "${flag}" >&6; }
7266 if test "x$flag" != xno; then
7267 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7268 fi
7269
7270 LIBS="$save_LIBS"
7271 CFLAGS="$save_CFLAGS"
7272
7273 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007274 if test x"$GCC" != xyes; then
7275 for ac_prog in xlc_r cc_r
7276do
7277 # Extract the first word of "$ac_prog", so it can be a program name with args.
7278set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007280$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007281if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007282 $as_echo_n "(cached) " >&6
7283else
7284 if test -n "$PTHREAD_CC"; then
7285 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00007294 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007296 break 2
7297 fi
7298done
cristy8b350f62009-11-15 23:12:43 +00007299 done
cristy3ed852e2009-09-05 21:47:34 +00007300IFS=$as_save_IFS
7301
cristy3ed852e2009-09-05 21:47:34 +00007302fi
7303fi
7304PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7305if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007307$as_echo "$PTHREAD_CC" >&6; }
7308else
cristy8b350f62009-11-15 23:12:43 +00007309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007310$as_echo "no" >&6; }
7311fi
7312
cristy736173a2009-09-20 21:18:22 +00007313
7314 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007315done
cristy736173a2009-09-20 21:18:22 +00007316test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007317
cristy736173a2009-09-20 21:18:22 +00007318 else
7319 PTHREAD_CC=$CC
7320 fi
cristy3ed852e2009-09-05 21:47:34 +00007321else
cristy736173a2009-09-20 21:18:22 +00007322 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007323fi
7324
cristy3ed852e2009-09-05 21:47:34 +00007325
7326
7327
7328
7329# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7330if test x"$acx_pthread_ok" = xyes; then
7331
cristy8b350f62009-11-15 23:12:43 +00007332$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007333
7334 :
7335else
7336 acx_pthread_ok=no
7337
7338fi
7339ac_ext=c
7340ac_cpp='$CPP $CPPFLAGS'
7341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344
7345
7346 if test "$acx_pthread_ok" = yes; then
7347 have_threads=yes
7348 DEF_THREAD="$PTHREAD_CFLAGS"
7349 CFLAGS="$CFLAGS $DEF_THREAD"
7350 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7351 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007352 { $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 +00007353$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7354 CC="$PTHREAD_CC"
7355 fi
7356 fi
7357fi
7358
7359# Enable support for OpenMP
7360if test "$have_threads" != 'yes'; then
7361 ac_cv_prog_c_openmp=unsupported
7362fi
7363
7364 OPENMP_CFLAGS=
7365 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007366if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007367 enableval=$enable_openmp;
7368fi
7369
7370 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007372$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007373if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007374 $as_echo_n "(cached) " >&6
7375else
cristy8b350f62009-11-15 23:12:43 +00007376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007378
7379#ifndef _OPENMP
7380 choke me
7381#endif
7382#include <omp.h>
7383int main () { return omp_get_num_threads (); }
7384
7385_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007387 ac_cv_prog_c_openmp='none needed'
7388else
cristy8b350f62009-11-15 23:12:43 +00007389 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007390 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7391 ac_save_CFLAGS=$CFLAGS
7392 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007395
7396#ifndef _OPENMP
7397 choke me
7398#endif
7399#include <omp.h>
7400int main () { return omp_get_num_threads (); }
7401
7402_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007404 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007405fi
cristy8b350f62009-11-15 23:12:43 +00007406rm -f core conftest.err conftest.$ac_objext \
7407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007408 CFLAGS=$ac_save_CFLAGS
7409 if test "$ac_cv_prog_c_openmp" != unsupported; then
7410 break
7411 fi
7412 done
7413fi
cristy8b350f62009-11-15 23:12:43 +00007414rm -f core conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007416fi
cristy8b350f62009-11-15 23:12:43 +00007417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007418$as_echo "$ac_cv_prog_c_openmp" >&6; }
7419 case $ac_cv_prog_c_openmp in #(
7420 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007421 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007422 *)
cristy8b350f62009-11-15 23:12:43 +00007423 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007424 esac
7425 fi
7426
7427
7428CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7429MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7430
7431
cristy736173a2009-09-20 21:18:22 +00007432# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007433
7434ac_ext=c
7435ac_cpp='$CPP $CPPFLAGS'
7436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439
cristy8b350f62009-11-15 23:12:43 +00007440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007441$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007442if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007443 $as_echo_n "(cached) " >&6
7444else
cristy8b350f62009-11-15 23:12:43 +00007445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007446/* end confdefs.h. */
7447
7448int
7449main ()
7450{
7451#ifndef _MSC_VER
7452 choke me
7453#endif
7454
7455 ;
7456 return 0;
7457}
7458_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007459if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007460 ax_compiler_ms=yes
7461else
cristy8b350f62009-11-15 23:12:43 +00007462 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007463fi
cristy736173a2009-09-20 21:18:22 +00007464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465ax_cv_c_compiler_ms=$ax_compiler_ms
7466
7467fi
cristy8b350f62009-11-15 23:12:43 +00007468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007469$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007470if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007471 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7472fi
7473
cristy736173a2009-09-20 21:18:22 +00007474ax_save_CPPFLAGS=$CPPFLAGS
7475CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007476for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007477do :
7478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7480eval as_val=\$$as_ac_Header
7481 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007482 cat >>confdefs.h <<_ACEOF
7483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7484_ACEOF
7485
7486fi
7487
7488done
7489
7490CPPFLAGS=$ax_save_CPPFLAGS
7491
cristy736173a2009-09-20 21:18:22 +00007492for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007493do :
7494 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7495if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007496 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007497#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007498_ACEOF
7499
7500fi
7501
7502done
7503
7504
7505
7506
cristy8b350f62009-11-15 23:12:43 +00007507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007508$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007509if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007510 $as_echo_n "(cached) " >&6
7511else
7512 ax_cv_check_cl_libcl=no
7513case $host_cpu in
7514 x86_64) ax_check_cl_libdir=lib64 ;;
7515 *) ax_check_cl_libdir=lib ;;
7516esac
7517ax_save_CPPFLAGS=$CPPFLAGS
7518CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7519ax_save_LIBS=$LIBS
7520LIBS=""
cristya49aa422009-09-20 23:40:10 +00007521ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007522for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007523 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007524 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7525else
7526 ax_try_lib=$ax_lib
7527fi
cristy736173a2009-09-20 21:18:22 +00007528 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007530/* end confdefs.h. */
7531
7532# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7533# include <windows.h>
7534# endif
cristya03a0852009-10-13 02:02:39 +00007535# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007536# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007537# elif defined(HAVE_OPENCL_OPENCL_H)
7538# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007539# else
cristya03a0852009-10-13 02:02:39 +00007540# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007541# endif
7542int
7543main ()
7544{
cristyc7083c12009-10-14 03:16:55 +00007545clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007546 ;
7547 return 0;
7548}
7549_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007550if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007551 ax_cv_check_cl_libcl=$ax_try_lib; break
7552else
cristy8b350f62009-11-15 23:12:43 +00007553 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"
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007555/* end confdefs.h. */
7556
7557# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7558# include <windows.h>
7559# endif
cristya03a0852009-10-13 02:02:39 +00007560# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007561# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007562# elif defined(HAVE_OPENCL_OPENCL_H)
7563# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007564# else
cristya03a0852009-10-13 02:02:39 +00007565# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007566# endif
7567int
7568main ()
7569{
cristyc7083c12009-10-14 03:16:55 +00007570clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007571 ;
7572 return 0;
7573}
7574_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007575if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007576 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7577else
cristy8b350f62009-11-15 23:12:43 +00007578 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007580/* end confdefs.h. */
7581
7582# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7583# include <windows.h>
7584# endif
cristya03a0852009-10-13 02:02:39 +00007585# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007586# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007587# elif defined(HAVE_OPENCL_OPENCL_H)
7588# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007589# else
cristya03a0852009-10-13 02:02:39 +00007590# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007591# endif
7592int
7593main ()
7594{
cristyc7083c12009-10-14 03:16:55 +00007595clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007596 ;
7597 return 0;
7598}
7599_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007600if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007601 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007602fi
cristy8b350f62009-11-15 23:12:43 +00007603rm -f core conftest.err conftest.$ac_objext \
7604 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007605fi
cristy8b350f62009-11-15 23:12:43 +00007606rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007608fi
cristy8b350f62009-11-15 23:12:43 +00007609rm -f core conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007611done
7612
cristy8b350f62009-11-15 23:12:43 +00007613if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007614 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007616/* end confdefs.h. */
7617
7618# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7619# include <windows.h>
7620# endif
cristya03a0852009-10-13 02:02:39 +00007621# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007622# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007623# elif defined(HAVE_OPENCL_OPENCL_H)
7624# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007625# else
cristya03a0852009-10-13 02:02:39 +00007626# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007627# endif
7628int
7629main ()
7630{
cristyc7083c12009-10-14 03:16:55 +00007631clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007632 ;
7633 return 0;
7634}
7635_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007636if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007637 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007638fi
cristy8b350f62009-11-15 23:12:43 +00007639rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007641fi
7642
cristy736173a2009-09-20 21:18:22 +00007643LIBS=$ax_save_LIBS
7644CPPFLAGS=$ax_save_CPPFLAGS
7645fi
cristy8b350f62009-11-15 23:12:43 +00007646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007647$as_echo "$ax_cv_check_cl_libcl" >&6; }
7648
cristy8b350f62009-11-15 23:12:43 +00007649if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007650 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7651else
7652 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7653fi
cristy736173a2009-09-20 21:18:22 +00007654ac_ext=c
7655ac_cpp='$CPP $CPPFLAGS'
7656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659
7660
7661
7662
7663
cristyc7083c12009-10-14 03:16:55 +00007664CFLAGS="$CL_CFLAGS $CFLAGS"
7665LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007666
cristy2e8b51d2009-10-17 18:26:15 +00007667
cristy3ed852e2009-09-05 21:47:34 +00007668########
7669#
7670# Check for large file support
7671#
7672########
7673# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007674if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007675 enableval=$enable_largefile;
7676fi
7677
7678if test "$enable_largefile" != no; then
7679
cristy8b350f62009-11-15 23:12:43 +00007680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007681$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007682if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007683 $as_echo_n "(cached) " >&6
7684else
7685 ac_cv_sys_largefile_CC=no
7686 if test "$GCC" != yes; then
7687 ac_save_CC=$CC
7688 while :; do
7689 # IRIX 6.2 and later do not support large files by default,
7690 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007692/* end confdefs.h. */
7693#include <sys/types.h>
7694 /* Check that off_t can represent 2**63 - 1 correctly.
7695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7696 since some C++ compilers masquerading as C compilers
7697 incorrectly reject 9223372036854775807. */
7698#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7700 && LARGE_OFF_T % 2147483647 == 1)
7701 ? 1 : -1];
7702int
7703main ()
7704{
7705
7706 ;
7707 return 0;
7708}
7709_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007710 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007711 break
cristy3ed852e2009-09-05 21:47:34 +00007712fi
cristy3ed852e2009-09-05 21:47:34 +00007713rm -f core conftest.err conftest.$ac_objext
7714 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007715 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007716 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007717fi
cristy3ed852e2009-09-05 21:47:34 +00007718rm -f core conftest.err conftest.$ac_objext
7719 break
7720 done
7721 CC=$ac_save_CC
7722 rm -f conftest.$ac_ext
7723 fi
7724fi
cristy8b350f62009-11-15 23:12:43 +00007725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007726$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7727 if test "$ac_cv_sys_largefile_CC" != no; then
7728 CC=$CC$ac_cv_sys_largefile_CC
7729 fi
7730
cristy8b350f62009-11-15 23:12:43 +00007731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007732$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007733if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007734 $as_echo_n "(cached) " >&6
7735else
7736 while :; do
cristy8b350f62009-11-15 23:12:43 +00007737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007738/* end confdefs.h. */
7739#include <sys/types.h>
7740 /* Check that off_t can represent 2**63 - 1 correctly.
7741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7742 since some C++ compilers masquerading as C compilers
7743 incorrectly reject 9223372036854775807. */
7744#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7746 && LARGE_OFF_T % 2147483647 == 1)
7747 ? 1 : -1];
7748int
7749main ()
7750{
7751
7752 ;
7753 return 0;
7754}
7755_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007756if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007757 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007758fi
cristy3ed852e2009-09-05 21:47:34 +00007759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007761/* end confdefs.h. */
7762#define _FILE_OFFSET_BITS 64
7763#include <sys/types.h>
7764 /* Check that off_t can represent 2**63 - 1 correctly.
7765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7766 since some C++ compilers masquerading as C compilers
7767 incorrectly reject 9223372036854775807. */
7768#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7770 && LARGE_OFF_T % 2147483647 == 1)
7771 ? 1 : -1];
7772int
7773main ()
7774{
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007781 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007782fi
cristy3ed852e2009-09-05 21:47:34 +00007783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 ac_cv_sys_file_offset_bits=unknown
7785 break
7786done
7787fi
cristy8b350f62009-11-15 23:12:43 +00007788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007789$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7790case $ac_cv_sys_file_offset_bits in #(
7791 no | unknown) ;;
7792 *)
7793cat >>confdefs.h <<_ACEOF
7794#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7795_ACEOF
7796;;
7797esac
7798rm -rf conftest*
7799 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007801$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007802if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007803 $as_echo_n "(cached) " >&6
7804else
7805 while :; do
cristy8b350f62009-11-15 23:12:43 +00007806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007807/* end confdefs.h. */
7808#include <sys/types.h>
7809 /* Check that off_t can represent 2**63 - 1 correctly.
7810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7811 since some C++ compilers masquerading as C compilers
7812 incorrectly reject 9223372036854775807. */
7813#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7815 && LARGE_OFF_T % 2147483647 == 1)
7816 ? 1 : -1];
7817int
7818main ()
7819{
7820
7821 ;
7822 return 0;
7823}
7824_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007825if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007826 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007827fi
cristy3ed852e2009-09-05 21:47:34 +00007828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007830/* end confdefs.h. */
7831#define _LARGE_FILES 1
7832#include <sys/types.h>
7833 /* Check that off_t can represent 2**63 - 1 correctly.
7834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7835 since some C++ compilers masquerading as C compilers
7836 incorrectly reject 9223372036854775807. */
7837#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7839 && LARGE_OFF_T % 2147483647 == 1)
7840 ? 1 : -1];
7841int
7842main ()
7843{
7844
7845 ;
7846 return 0;
7847}
7848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007849if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007850 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007851fi
cristy3ed852e2009-09-05 21:47:34 +00007852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 ac_cv_sys_large_files=unknown
7854 break
7855done
7856fi
cristy8b350f62009-11-15 23:12:43 +00007857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007858$as_echo "$ac_cv_sys_large_files" >&6; }
7859case $ac_cv_sys_large_files in #(
7860 no | unknown) ;;
7861 *)
7862cat >>confdefs.h <<_ACEOF
7863#define _LARGE_FILES $ac_cv_sys_large_files
7864_ACEOF
7865;;
7866esac
7867rm -rf conftest*
7868 fi
7869fi
7870
cristy8b350f62009-11-15 23:12:43 +00007871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007872$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007873if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007874 $as_echo_n "(cached) " >&6
7875else
7876 while :; do
cristy8b350f62009-11-15 23:12:43 +00007877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007878/* end confdefs.h. */
7879#include <sys/types.h> /* for off_t */
7880 #include <stdio.h>
7881int
7882main ()
7883{
7884int (*fp) (FILE *, off_t, int) = fseeko;
7885 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7886 ;
7887 return 0;
7888}
7889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007890if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007891 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007892fi
cristy8b350f62009-11-15 23:12:43 +00007893rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007896/* end confdefs.h. */
7897#define _LARGEFILE_SOURCE 1
7898#include <sys/types.h> /* for off_t */
7899 #include <stdio.h>
7900int
7901main ()
7902{
7903int (*fp) (FILE *, off_t, int) = fseeko;
7904 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7905 ;
7906 return 0;
7907}
7908_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007910 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007911fi
cristy8b350f62009-11-15 23:12:43 +00007912rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007914 ac_cv_sys_largefile_source=unknown
7915 break
7916done
7917fi
cristy8b350f62009-11-15 23:12:43 +00007918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00007919$as_echo "$ac_cv_sys_largefile_source" >&6; }
7920case $ac_cv_sys_largefile_source in #(
7921 no | unknown) ;;
7922 *)
7923cat >>confdefs.h <<_ACEOF
7924#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7925_ACEOF
7926;;
7927esac
7928rm -rf conftest*
7929
7930# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7931# in glibc 2.1.3, but that breaks too many other things.
7932# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7933if test $ac_cv_sys_largefile_source != unknown; then
7934
cristy8b350f62009-11-15 23:12:43 +00007935$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007936
7937fi
7938
7939LFS_CPPFLAGS=''
7940if test "$enable_largefile" != no; then
7941 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
7942 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
7943 else
cristy8b350f62009-11-15 23:12:43 +00007944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00007945$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007946 if test "$cross_compiling" = yes; then :
7947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007949as_fn_error "cannot run test program while cross compiling
7950See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007951else
cristy8b350f62009-11-15 23:12:43 +00007952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007954#include <unistd.h>
7955 main () {
7956 exit(!(sizeof(off_t) == 8));
7957 }
7958_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007959if ac_fn_c_try_run "$LINENO"; then :
7960 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007961
cristy8b350f62009-11-15 23:12:43 +00007962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007963$as_echo "yes" >&6; }
7964else
cristy8b350f62009-11-15 23:12:43 +00007965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007966$as_echo "no" >&6; }
7967fi
cristy8b350f62009-11-15 23:12:43 +00007968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7969 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007970fi
7971
cristy3ed852e2009-09-05 21:47:34 +00007972 fi
7973 if test "$ac_cv_sys_large_files" != 'no'; then
7974 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
7975 fi
7976 if test "$ac_cv_sys_largefile_source" != 'no'; then
7977 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
7978 fi
7979fi
7980
7981
7982#
7983# Configure libtool & libltdl
7984#
7985# Configure libtool
7986enable_dlopen=yes
7987
7988
7989
7990case `pwd` in
7991 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00007992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00007993$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7994esac
7995
7996
7997
cristy932c9122009-11-19 13:57:03 +00007998macro_version='2.2.7a'
7999macro_revision='1.3130'
cristy3ed852e2009-09-05 21:47:34 +00008000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013ltmain="$ac_aux_dir/ltmain.sh"
8014
cristy932c9122009-11-19 13:57:03 +00008015# Backslashify metacharacters that are still active within
8016# double-quoted strings.
8017sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8018
8019# Same as above, but do not quote variable references.
8020double_quote_subst='s/\(["`\\]\)/\\\1/g'
8021
8022# Sed substitution to delay expansion of an escaped shell variable in a
8023# double_quote_subst'ed string.
8024delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8025
8026# Sed substitution to delay expansion of an escaped single quote.
8027delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8028
8029# Sed substitution to avoid accidental globbing in evaled expressions
8030no_glob_subst='s/\*/\\\*/g'
8031
cristy8b350f62009-11-15 23:12:43 +00008032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008033$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008034if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008035 $as_echo_n "(cached) " >&6
8036else
8037 if test -n "$NM"; then
8038 # Let the user override the test.
8039 lt_cv_path_NM="$NM"
8040else
8041 lt_nm_to_check="${ac_tool_prefix}nm"
8042 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8043 lt_nm_to_check="$lt_nm_to_check nm"
8044 fi
8045 for lt_tmp_nm in $lt_nm_to_check; do
8046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8047 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8048 IFS="$lt_save_ifs"
8049 test -z "$ac_dir" && ac_dir=.
8050 tmp_nm="$ac_dir/$lt_tmp_nm"
8051 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8052 # Check to see if the nm accepts a BSD-compat flag.
8053 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8054 # nm: unknown option "B" ignored
8055 # Tru64's nm complains that /dev/null is an invalid object file
8056 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8057 */dev/null* | *'Invalid file or object type'*)
8058 lt_cv_path_NM="$tmp_nm -B"
8059 break
8060 ;;
8061 *)
8062 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8063 */dev/null*)
8064 lt_cv_path_NM="$tmp_nm -p"
8065 break
8066 ;;
8067 *)
8068 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8069 continue # so that we can try to find one that supports BSD flags
8070 ;;
8071 esac
8072 ;;
8073 esac
8074 fi
8075 done
8076 IFS="$lt_save_ifs"
8077 done
8078 : ${lt_cv_path_NM=no}
8079fi
8080fi
cristy8b350f62009-11-15 23:12:43 +00008081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo "$lt_cv_path_NM" >&6; }
8083if test "$lt_cv_path_NM" != "no"; then
8084 NM="$lt_cv_path_NM"
8085else
8086 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy932c9122009-11-19 13:57:03 +00008087 if test -n "$DUMPBIN"; then :
8088 # Let the user override the test.
8089 else
8090 if test -n "$ac_tool_prefix"; then
8091 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00008092 do
8093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008096$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008097if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008098 $as_echo_n "(cached) " >&6
8099else
8100 if test -n "$DUMPBIN"; then
8101 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8102else
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008112 break 2
8113 fi
8114done
cristy8b350f62009-11-15 23:12:43 +00008115 done
cristy3ed852e2009-09-05 21:47:34 +00008116IFS=$as_save_IFS
8117
8118fi
8119fi
8120DUMPBIN=$ac_cv_prog_DUMPBIN
8121if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008123$as_echo "$DUMPBIN" >&6; }
8124else
cristy8b350f62009-11-15 23:12:43 +00008125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008126$as_echo "no" >&6; }
8127fi
8128
8129
8130 test -n "$DUMPBIN" && break
8131 done
8132fi
8133if test -z "$DUMPBIN"; then
8134 ac_ct_DUMPBIN=$DUMPBIN
cristy932c9122009-11-19 13:57:03 +00008135 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00008136do
8137 # Extract the first word of "$ac_prog", so it can be a program name with args.
8138set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008141if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008142 $as_echo_n "(cached) " >&6
8143else
8144 if test -n "$ac_ct_DUMPBIN"; then
8145 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008156 break 2
8157 fi
8158done
cristy8b350f62009-11-15 23:12:43 +00008159 done
cristy3ed852e2009-09-05 21:47:34 +00008160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8165if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008167$as_echo "$ac_ct_DUMPBIN" >&6; }
8168else
cristy8b350f62009-11-15 23:12:43 +00008169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008170$as_echo "no" >&6; }
8171fi
8172
8173
8174 test -n "$ac_ct_DUMPBIN" && break
8175done
8176
8177 if test "x$ac_ct_DUMPBIN" = x; then
8178 DUMPBIN=":"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181yes:)
cristy8b350f62009-11-15 23:12:43 +00008182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184ac_tool_warned=yes ;;
8185esac
8186 DUMPBIN=$ac_ct_DUMPBIN
8187 fi
8188fi
8189
cristy932c9122009-11-19 13:57:03 +00008190 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8191 *COFF*)
8192 DUMPBIN="$DUMPBIN -symbols"
8193 ;;
8194 *)
8195 DUMPBIN=:
8196 ;;
8197 esac
8198 fi
cristy3ed852e2009-09-05 21:47:34 +00008199
8200 if test "$DUMPBIN" != ":"; then
8201 NM="$DUMPBIN"
8202 fi
8203fi
8204test -z "$NM" && NM=nm
8205
8206
8207
8208
8209
8210
cristy8b350f62009-11-15 23:12:43 +00008211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008212$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008213if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008214 $as_echo_n "(cached) " >&6
8215else
8216 lt_cv_nm_interface="BSD nm"
8217 echo "int some_variable = 0;" > conftest.$ac_ext
cristy932c9122009-11-19 13:57:03 +00008218 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008219 (eval "$ac_compile" 2>conftest.err)
8220 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +00008221 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008222 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8223 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +00008224 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008225 cat conftest.out >&5
8226 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8227 lt_cv_nm_interface="MS dumpbin"
8228 fi
8229 rm -f conftest*
8230fi
cristy8b350f62009-11-15 23:12:43 +00008231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008232$as_echo "$lt_cv_nm_interface" >&6; }
8233
8234# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008236$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008237if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008238 $as_echo_n "(cached) " >&6
8239else
8240 i=0
8241 teststring="ABCD"
8242
8243 case $build_os in
8244 msdosdjgpp*)
8245 # On DJGPP, this test can blow up pretty badly due to problems in libc
8246 # (any single argument exceeding 2000 bytes causes a buffer overrun
8247 # during glob expansion). Even if it were fixed, the result of this
8248 # check would be larger than it should be.
8249 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8250 ;;
8251
8252 gnu*)
8253 # Under GNU Hurd, this test is not required because there is
8254 # no limit to the length of command line arguments.
8255 # Libtool will interpret -1 as no limit whatsoever
8256 lt_cv_sys_max_cmd_len=-1;
8257 ;;
8258
8259 cygwin* | mingw* | cegcc*)
8260 # On Win9x/ME, this test blows up -- it succeeds, but takes
8261 # about 5 minutes as the teststring grows exponentially.
8262 # Worse, since 9x/ME are not pre-emptively multitasking,
8263 # you end up with a "frozen" computer, even though with patience
8264 # the test eventually succeeds (with a max line length of 256k).
8265 # Instead, let's just punt: use the minimum linelength reported by
8266 # all of the supported platforms: 8192 (on NT/2K/XP).
8267 lt_cv_sys_max_cmd_len=8192;
8268 ;;
8269
cristy932c9122009-11-19 13:57:03 +00008270 mint*)
8271 # On MiNT this can take a long time and run out of memory.
8272 lt_cv_sys_max_cmd_len=8192;
8273 ;;
8274
cristy3ed852e2009-09-05 21:47:34 +00008275 amigaos*)
8276 # On AmigaOS with pdksh, this test takes hours, literally.
8277 # So we just punt and use a minimum line length of 8192.
8278 lt_cv_sys_max_cmd_len=8192;
8279 ;;
8280
8281 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8282 # This has been around since 386BSD, at least. Likely further.
8283 if test -x /sbin/sysctl; then
8284 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8285 elif test -x /usr/sbin/sysctl; then
8286 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8287 else
8288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8289 fi
8290 # And add a safety zone
8291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8293 ;;
8294
8295 interix*)
8296 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8297 lt_cv_sys_max_cmd_len=196608
8298 ;;
8299
8300 osf*)
8301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8303 # nice to cause kernel panics so lets avoid the loop below.
8304 # First set a reasonable default.
8305 lt_cv_sys_max_cmd_len=16384
8306 #
8307 if test -x /sbin/sysconfig; then
8308 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8309 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8310 esac
8311 fi
8312 ;;
8313 sco3.2v5*)
8314 lt_cv_sys_max_cmd_len=102400
8315 ;;
8316 sysv5* | sco5v6* | sysv4.2uw2*)
8317 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8318 if test -n "$kargmax"; then
8319 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8320 else
8321 lt_cv_sys_max_cmd_len=32768
8322 fi
8323 ;;
8324 *)
8325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8326 if test -n "$lt_cv_sys_max_cmd_len"; then
8327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8329 else
8330 # Make teststring a little bigger before we do anything with it.
8331 # a 1K string should be a reasonable start.
8332 for i in 1 2 3 4 5 6 7 8 ; do
8333 teststring=$teststring$teststring
8334 done
8335 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8336 # If test is not a shell built-in, we'll probably end up computing a
8337 # maximum length that is only half of the actual maximum length, but
8338 # we can't tell.
cristy932c9122009-11-19 13:57:03 +00008339 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8340 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008341 test $i != 17 # 1/2 MB should be enough
8342 do
8343 i=`expr $i + 1`
8344 teststring=$teststring$teststring
8345 done
8346 # Only check the string length outside the loop.
8347 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8348 teststring=
8349 # Add a significant safety factor because C++ compilers can tack on
8350 # massive amounts of additional arguments before passing them to the
8351 # linker. It appears as though 1/2 is a usable value.
8352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8353 fi
8354 ;;
8355 esac
8356
8357fi
8358
8359if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008361$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8362else
cristy8b350f62009-11-15 23:12:43 +00008363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008364$as_echo "none" >&6; }
8365fi
8366max_cmd_len=$lt_cv_sys_max_cmd_len
8367
8368
8369
8370
8371
8372
8373: ${CP="cp -f"}
8374: ${MV="mv -f"}
8375: ${RM="rm -f"}
8376
cristy8b350f62009-11-15 23:12:43 +00008377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008378$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8379# Try some XSI features
8380xsi_shell=no
8381( _lt_dummy="a/b/c"
8382 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8383 = c,a/b,, \
8384 && eval 'test $(( 1 + 1 )) -eq 2 \
8385 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8386 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008388$as_echo "$xsi_shell" >&6; }
8389
8390
cristy8b350f62009-11-15 23:12:43 +00008391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008392$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8393lt_shell_append=no
8394( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8395 >/dev/null 2>&1 \
8396 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008398$as_echo "$lt_shell_append" >&6; }
8399
8400
8401if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8402 lt_unset=unset
8403else
8404 lt_unset=false
8405fi
8406
8407
8408
8409
8410
8411# test EBCDIC or ASCII
8412case `echo X|tr X '\101'` in
8413 A) # ASCII based system
8414 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8415 lt_SP2NL='tr \040 \012'
8416 lt_NL2SP='tr \015\012 \040\040'
8417 ;;
8418 *) # EBCDIC based system
8419 lt_SP2NL='tr \100 \n'
8420 lt_NL2SP='tr \r\n \100\100'
8421 ;;
8422esac
8423
8424
8425
8426
8427
8428
8429
8430
8431
cristy8b350f62009-11-15 23:12:43 +00008432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008433$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008434if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008435 $as_echo_n "(cached) " >&6
8436else
8437 lt_cv_ld_reload_flag='-r'
8438fi
cristy8b350f62009-11-15 23:12:43 +00008439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008440$as_echo "$lt_cv_ld_reload_flag" >&6; }
8441reload_flag=$lt_cv_ld_reload_flag
8442case $reload_flag in
8443"" | " "*) ;;
8444*) reload_flag=" $reload_flag" ;;
8445esac
8446reload_cmds='$LD$reload_flag -o $output$reload_objs'
8447case $host_os in
8448 darwin*)
8449 if test "$GCC" = yes; then
8450 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8451 else
8452 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8453 fi
8454 ;;
8455esac
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465if test -n "$ac_tool_prefix"; then
8466 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8467set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008469$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008470if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008471 $as_echo_n "(cached) " >&6
8472else
8473 if test -n "$OBJDUMP"; then
8474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008485 break 2
8486 fi
8487done
cristy8b350f62009-11-15 23:12:43 +00008488 done
cristy3ed852e2009-09-05 21:47:34 +00008489IFS=$as_save_IFS
8490
8491fi
8492fi
8493OBJDUMP=$ac_cv_prog_OBJDUMP
8494if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008496$as_echo "$OBJDUMP" >&6; }
8497else
cristy8b350f62009-11-15 23:12:43 +00008498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008499$as_echo "no" >&6; }
8500fi
8501
8502
8503fi
8504if test -z "$ac_cv_prog_OBJDUMP"; then
8505 ac_ct_OBJDUMP=$OBJDUMP
8506 # Extract the first word of "objdump", so it can be a program name with args.
8507set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008509$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008510if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008511 $as_echo_n "(cached) " >&6
8512else
8513 if test -n "$ac_ct_OBJDUMP"; then
8514 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8515else
8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008525 break 2
8526 fi
8527done
cristy8b350f62009-11-15 23:12:43 +00008528 done
cristy3ed852e2009-09-05 21:47:34 +00008529IFS=$as_save_IFS
8530
8531fi
8532fi
8533ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8534if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008536$as_echo "$ac_ct_OBJDUMP" >&6; }
8537else
cristy8b350f62009-11-15 23:12:43 +00008538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008539$as_echo "no" >&6; }
8540fi
8541
8542 if test "x$ac_ct_OBJDUMP" = x; then
8543 OBJDUMP="false"
8544 else
8545 case $cross_compiling:$ac_tool_warned in
8546yes:)
cristy8b350f62009-11-15 23:12:43 +00008547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8549ac_tool_warned=yes ;;
8550esac
8551 OBJDUMP=$ac_ct_OBJDUMP
8552 fi
8553else
8554 OBJDUMP="$ac_cv_prog_OBJDUMP"
8555fi
8556
8557test -z "$OBJDUMP" && OBJDUMP=objdump
8558
8559
8560
8561
8562
8563
cristy8b350f62009-11-15 23:12:43 +00008564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008565$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008566if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008567 $as_echo_n "(cached) " >&6
8568else
8569 lt_cv_file_magic_cmd='$MAGIC_CMD'
8570lt_cv_file_magic_test_file=
8571lt_cv_deplibs_check_method='unknown'
8572# Need to set the preceding variable on all platforms that support
8573# interlibrary dependencies.
8574# 'none' -- dependencies not supported.
8575# `unknown' -- same as none, but documents that we really don't know.
8576# 'pass_all' -- all dependencies passed with no checks.
8577# 'test_compile' -- check by making test program.
8578# 'file_magic [[regex]]' -- check by looking for files in library path
8579# which responds to the $file_magic_cmd with a given extended regex.
8580# If you have `file' or equivalent on your system and you're not sure
8581# whether `pass_all' will *always* work, you probably want this one.
8582
8583case $host_os in
8584aix[4-9]*)
8585 lt_cv_deplibs_check_method=pass_all
8586 ;;
8587
8588beos*)
8589 lt_cv_deplibs_check_method=pass_all
8590 ;;
8591
8592bsdi[45]*)
8593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8594 lt_cv_file_magic_cmd='/usr/bin/file -L'
8595 lt_cv_file_magic_test_file=/shlib/libc.so
8596 ;;
8597
8598cygwin*)
8599 # func_win32_libid is a shell function defined in ltmain.sh
8600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8601 lt_cv_file_magic_cmd='func_win32_libid'
8602 ;;
8603
8604mingw* | pw32*)
8605 # Base MSYS/MinGW do not provide the 'file' command needed by
8606 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8607 # unless we find 'file', for example because we are cross-compiling.
cristy932c9122009-11-19 13:57:03 +00008608 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8609 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8611 lt_cv_file_magic_cmd='func_win32_libid'
8612 else
8613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8614 lt_cv_file_magic_cmd='$OBJDUMP -f'
8615 fi
8616 ;;
8617
cristy932c9122009-11-19 13:57:03 +00008618cegcc*)
cristy3ed852e2009-09-05 21:47:34 +00008619 # use the weaker test based on 'objdump'. See mingw*.
8620 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8621 lt_cv_file_magic_cmd='$OBJDUMP -f'
8622 ;;
8623
8624darwin* | rhapsody*)
8625 lt_cv_deplibs_check_method=pass_all
8626 ;;
8627
8628freebsd* | dragonfly*)
8629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8630 case $host_cpu in
8631 i*86 )
8632 # Not sure whether the presence of OpenBSD here was a mistake.
8633 # Let's accept both of them until this is cleared up.
8634 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8635 lt_cv_file_magic_cmd=/usr/bin/file
8636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8637 ;;
8638 esac
8639 else
8640 lt_cv_deplibs_check_method=pass_all
8641 fi
8642 ;;
8643
8644gnu*)
8645 lt_cv_deplibs_check_method=pass_all
8646 ;;
8647
cristy932c9122009-11-19 13:57:03 +00008648haiku*)
8649 lt_cv_deplibs_check_method=pass_all
8650 ;;
8651
cristy3ed852e2009-09-05 21:47:34 +00008652hpux10.20* | hpux11*)
8653 lt_cv_file_magic_cmd=/usr/bin/file
8654 case $host_cpu in
8655 ia64*)
8656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8657 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8658 ;;
8659 hppa*64*)
cristy932c9122009-11-19 13:57:03 +00008660 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]'
cristy3ed852e2009-09-05 21:47:34 +00008661 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8662 ;;
8663 *)
cristy932c9122009-11-19 13:57:03 +00008664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +00008665 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8666 ;;
8667 esac
8668 ;;
8669
8670interix[3-9]*)
8671 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8673 ;;
8674
8675irix5* | irix6* | nonstopux*)
8676 case $LD in
8677 *-32|*"-32 ") libmagic=32-bit;;
8678 *-n32|*"-n32 ") libmagic=N32;;
8679 *-64|*"-64 ") libmagic=64-bit;;
8680 *) libmagic=never-match;;
8681 esac
8682 lt_cv_deplibs_check_method=pass_all
8683 ;;
8684
8685# This must be Linux ELF.
cristy932c9122009-11-19 13:57:03 +00008686linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008687 lt_cv_deplibs_check_method=pass_all
8688 ;;
8689
8690netbsd*)
8691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8693 else
8694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8695 fi
8696 ;;
8697
8698newos6*)
8699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8700 lt_cv_file_magic_cmd=/usr/bin/file
8701 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8702 ;;
8703
8704*nto* | *qnx*)
8705 lt_cv_deplibs_check_method=pass_all
8706 ;;
8707
8708openbsd*)
8709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8711 else
8712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8713 fi
8714 ;;
8715
8716osf3* | osf4* | osf5*)
8717 lt_cv_deplibs_check_method=pass_all
8718 ;;
8719
8720rdos*)
8721 lt_cv_deplibs_check_method=pass_all
8722 ;;
8723
8724solaris*)
8725 lt_cv_deplibs_check_method=pass_all
8726 ;;
8727
8728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8729 lt_cv_deplibs_check_method=pass_all
8730 ;;
8731
8732sysv4 | sysv4.3*)
8733 case $host_vendor in
8734 motorola)
8735 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]'
8736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8737 ;;
8738 ncr)
8739 lt_cv_deplibs_check_method=pass_all
8740 ;;
8741 sequent)
8742 lt_cv_file_magic_cmd='/bin/file'
8743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8744 ;;
8745 sni)
8746 lt_cv_file_magic_cmd='/bin/file'
8747 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8748 lt_cv_file_magic_test_file=/lib/libc.so
8749 ;;
8750 siemens)
8751 lt_cv_deplibs_check_method=pass_all
8752 ;;
8753 pc)
8754 lt_cv_deplibs_check_method=pass_all
8755 ;;
8756 esac
8757 ;;
8758
8759tpf*)
8760 lt_cv_deplibs_check_method=pass_all
8761 ;;
8762esac
8763
8764fi
cristy8b350f62009-11-15 23:12:43 +00008765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008766$as_echo "$lt_cv_deplibs_check_method" >&6; }
8767file_magic_cmd=$lt_cv_file_magic_cmd
8768deplibs_check_method=$lt_cv_deplibs_check_method
8769test -z "$deplibs_check_method" && deplibs_check_method=unknown
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782if test -n "$ac_tool_prefix"; then
8783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8784set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008786$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008787if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008788 $as_echo_n "(cached) " >&6
8789else
8790 if test -n "$AR"; then
8791 ac_cv_prog_AR="$AR" # Let the user override the test.
8792else
8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008802 break 2
8803 fi
8804done
cristy8b350f62009-11-15 23:12:43 +00008805 done
cristy3ed852e2009-09-05 21:47:34 +00008806IFS=$as_save_IFS
8807
8808fi
8809fi
8810AR=$ac_cv_prog_AR
8811if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008813$as_echo "$AR" >&6; }
8814else
cristy8b350f62009-11-15 23:12:43 +00008815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008816$as_echo "no" >&6; }
8817fi
8818
8819
8820fi
8821if test -z "$ac_cv_prog_AR"; then
8822 ac_ct_AR=$AR
8823 # Extract the first word of "ar", so it can be a program name with args.
8824set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008827if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008828 $as_echo_n "(cached) " >&6
8829else
8830 if test -n "$ac_ct_AR"; then
8831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008842 break 2
8843 fi
8844done
cristy8b350f62009-11-15 23:12:43 +00008845 done
cristy3ed852e2009-09-05 21:47:34 +00008846IFS=$as_save_IFS
8847
8848fi
8849fi
8850ac_ct_AR=$ac_cv_prog_ac_ct_AR
8851if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008853$as_echo "$ac_ct_AR" >&6; }
8854else
cristy8b350f62009-11-15 23:12:43 +00008855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008856$as_echo "no" >&6; }
8857fi
8858
8859 if test "x$ac_ct_AR" = x; then
8860 AR="false"
8861 else
8862 case $cross_compiling:$ac_tool_warned in
8863yes:)
cristy8b350f62009-11-15 23:12:43 +00008864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866ac_tool_warned=yes ;;
8867esac
8868 AR=$ac_ct_AR
8869 fi
8870else
8871 AR="$ac_cv_prog_AR"
8872fi
8873
8874test -z "$AR" && AR=ar
8875test -z "$AR_FLAGS" && AR_FLAGS=cru
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887if test -n "$ac_tool_prefix"; then
8888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8889set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008891$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008892if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008893 $as_echo_n "(cached) " >&6
8894else
8895 if test -n "$STRIP"; then
8896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8897else
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008907 break 2
8908 fi
8909done
cristy8b350f62009-11-15 23:12:43 +00008910 done
cristy3ed852e2009-09-05 21:47:34 +00008911IFS=$as_save_IFS
8912
8913fi
8914fi
8915STRIP=$ac_cv_prog_STRIP
8916if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008918$as_echo "$STRIP" >&6; }
8919else
cristy8b350f62009-11-15 23:12:43 +00008920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008921$as_echo "no" >&6; }
8922fi
8923
8924
8925fi
8926if test -z "$ac_cv_prog_STRIP"; then
8927 ac_ct_STRIP=$STRIP
8928 # Extract the first word of "strip", so it can be a program name with args.
8929set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008931$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008932if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008933 $as_echo_n "(cached) " >&6
8934else
8935 if test -n "$ac_ct_STRIP"; then
8936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8937else
8938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939for as_dir in $PATH
8940do
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008947 break 2
8948 fi
8949done
cristy8b350f62009-11-15 23:12:43 +00008950 done
cristy3ed852e2009-09-05 21:47:34 +00008951IFS=$as_save_IFS
8952
8953fi
8954fi
8955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8956if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008958$as_echo "$ac_ct_STRIP" >&6; }
8959else
cristy8b350f62009-11-15 23:12:43 +00008960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008961$as_echo "no" >&6; }
8962fi
8963
8964 if test "x$ac_ct_STRIP" = x; then
8965 STRIP=":"
8966 else
8967 case $cross_compiling:$ac_tool_warned in
8968yes:)
cristy8b350f62009-11-15 23:12:43 +00008969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8971ac_tool_warned=yes ;;
8972esac
8973 STRIP=$ac_ct_STRIP
8974 fi
8975else
8976 STRIP="$ac_cv_prog_STRIP"
8977fi
8978
8979test -z "$STRIP" && STRIP=:
8980
8981
8982
8983
8984
8985
8986if test -n "$ac_tool_prefix"; then
8987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8988set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008990$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008991if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008992 $as_echo_n "(cached) " >&6
8993else
8994 if test -n "$RANLIB"; then
8995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009006 break 2
9007 fi
9008done
cristy8b350f62009-11-15 23:12:43 +00009009 done
cristy3ed852e2009-09-05 21:47:34 +00009010IFS=$as_save_IFS
9011
9012fi
9013fi
9014RANLIB=$ac_cv_prog_RANLIB
9015if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009017$as_echo "$RANLIB" >&6; }
9018else
cristy8b350f62009-11-15 23:12:43 +00009019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009020$as_echo "no" >&6; }
9021fi
9022
9023
9024fi
9025if test -z "$ac_cv_prog_RANLIB"; then
9026 ac_ct_RANLIB=$RANLIB
9027 # Extract the first word of "ranlib", so it can be a program name with args.
9028set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009030$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009031if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009032 $as_echo_n "(cached) " >&6
9033else
9034 if test -n "$ac_ct_RANLIB"; then
9035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9036else
9037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009046 break 2
9047 fi
9048done
cristy8b350f62009-11-15 23:12:43 +00009049 done
cristy3ed852e2009-09-05 21:47:34 +00009050IFS=$as_save_IFS
9051
9052fi
9053fi
9054ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9055if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009057$as_echo "$ac_ct_RANLIB" >&6; }
9058else
cristy8b350f62009-11-15 23:12:43 +00009059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009060$as_echo "no" >&6; }
9061fi
9062
9063 if test "x$ac_ct_RANLIB" = x; then
9064 RANLIB=":"
9065 else
9066 case $cross_compiling:$ac_tool_warned in
9067yes:)
cristy8b350f62009-11-15 23:12:43 +00009068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070ac_tool_warned=yes ;;
9071esac
9072 RANLIB=$ac_ct_RANLIB
9073 fi
9074else
9075 RANLIB="$ac_cv_prog_RANLIB"
9076fi
9077
9078test -z "$RANLIB" && RANLIB=:
9079
9080
9081
9082
9083
9084
9085# Determine commands to create old-style static archives.
9086old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9087old_postinstall_cmds='chmod 644 $oldlib'
9088old_postuninstall_cmds=
9089
9090if test -n "$RANLIB"; then
9091 case $host_os in
9092 openbsd*)
9093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9094 ;;
9095 *)
9096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9097 ;;
9098 esac
9099 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9100fi
9101
cristy932c9122009-11-19 13:57:03 +00009102case $host_os in
9103 darwin*)
9104 lock_old_archive_extraction=yes ;;
9105 *)
9106 lock_old_archive_extraction=no ;;
9107esac
9108
9109
9110
9111
9112
9113
cristy3ed852e2009-09-05 21:47:34 +00009114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147# If no C compiler was specified, use CC.
9148LTCC=${LTCC-"$CC"}
9149
9150# If no C compiler flags were specified, use CFLAGS.
9151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9152
9153# Allow CC to be a program name with arguments.
9154compiler=$CC
9155
9156
9157# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009159$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009160if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009161 $as_echo_n "(cached) " >&6
9162else
9163
9164# These are sane defaults that work on at least a few old systems.
9165# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9166
9167# Character class describing NM global symbol codes.
9168symcode='[BCDEGRST]'
9169
9170# Regexp to match symbols that can be accessed directly from C.
9171sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9172
9173# Define system-specific variables.
9174case $host_os in
9175aix*)
9176 symcode='[BCDT]'
9177 ;;
9178cygwin* | mingw* | pw32* | cegcc*)
9179 symcode='[ABCDGISTW]'
9180 ;;
9181hpux*)
9182 if test "$host_cpu" = ia64; then
9183 symcode='[ABCDEGRST]'
9184 fi
9185 ;;
9186irix* | nonstopux*)
9187 symcode='[BCDEGRST]'
9188 ;;
9189osf*)
9190 symcode='[BCDEGQRST]'
9191 ;;
9192solaris*)
9193 symcode='[BDRT]'
9194 ;;
9195sco3.2v5*)
9196 symcode='[DT]'
9197 ;;
9198sysv4.2uw2*)
9199 symcode='[DT]'
9200 ;;
9201sysv5* | sco5v6* | unixware* | OpenUNIX*)
9202 symcode='[ABDT]'
9203 ;;
9204sysv4)
9205 symcode='[DFNSTU]'
9206 ;;
9207esac
9208
9209# If we're using GNU nm, then use its standard symbol codes.
9210case `$NM -V 2>&1` in
9211*GNU* | *'with BFD'*)
9212 symcode='[ABCDGIRSTW]' ;;
9213esac
9214
9215# Transform an extracted symbol line into a proper C declaration.
9216# Some systems (esp. on ia64) link data and code symbols differently,
9217# so use this general approach.
9218lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9219
9220# Transform an extracted symbol line into symbol name and symbol address
9221lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9222lt_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'"
9223
9224# Handle CRLF in mingw tool chain
9225opt_cr=
9226case $build_os in
9227mingw*)
9228 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9229 ;;
9230esac
9231
9232# Try without a prefix underscore, then with it.
9233for ac_symprfx in "" "_"; do
9234
9235 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9236 symxfrm="\\1 $ac_symprfx\\2 \\2"
9237
9238 # Write the raw and C identifiers.
9239 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9240 # Fake it for dumpbin and say T for any non-static function
9241 # and D for any global variable.
9242 # Also find C++ and __fastcall symbols from MSVC++,
9243 # which start with @ or ?.
9244 lt_cv_sys_global_symbol_pipe="$AWK '"\
9245" {last_section=section; section=\$ 3};"\
9246" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9247" \$ 0!~/External *\|/{next};"\
9248" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9249" {if(hide[section]) next};"\
9250" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9251" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9252" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9253" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9254" ' prfx=^$ac_symprfx"
9255 else
9256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9257 fi
9258
9259 # Check to see that the pipe works correctly.
9260 pipe_works=no
9261
9262 rm -f conftest*
9263 cat > conftest.$ac_ext <<_LT_EOF
9264#ifdef __cplusplus
9265extern "C" {
9266#endif
9267char nm_test_var;
9268void nm_test_func(void);
9269void nm_test_func(void){}
9270#ifdef __cplusplus
9271}
9272#endif
9273int main(){nm_test_var='a';nm_test_func();return(0);}
9274_LT_EOF
9275
cristy8b350f62009-11-15 23:12:43 +00009276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009277 (eval $ac_compile) 2>&5
9278 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9280 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009281 # Now try to grab the symbols.
9282 nlist=conftest.nm
cristy932c9122009-11-19 13:57:03 +00009283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9284 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009285 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9287 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009288 # Try sorting and uniquifying the output.
9289 if sort "$nlist" | uniq > "$nlist"T; then
9290 mv -f "$nlist"T "$nlist"
9291 else
9292 rm -f "$nlist"T
9293 fi
9294
9295 # Make sure that we snagged all the symbols we need.
9296 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9297 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9298 cat <<_LT_EOF > conftest.$ac_ext
9299#ifdef __cplusplus
9300extern "C" {
9301#endif
9302
9303_LT_EOF
9304 # Now generate the symbol file.
9305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9306
9307 cat <<_LT_EOF >> conftest.$ac_ext
9308
9309/* The mapping between symbol names and symbols. */
9310const struct {
9311 const char *name;
9312 void *address;
9313}
9314lt__PROGRAM__LTX_preloaded_symbols[] =
9315{
9316 { "@PROGRAM@", (void *) 0 },
9317_LT_EOF
9318 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9319 cat <<\_LT_EOF >> conftest.$ac_ext
9320 {0, (void *) 0}
9321};
9322
9323/* This works around a problem in FreeBSD linker */
9324#ifdef FREEBSD_WORKAROUND
9325static const void *lt_preloaded_setup() {
9326 return lt__PROGRAM__LTX_preloaded_symbols;
9327}
9328#endif
9329
9330#ifdef __cplusplus
9331}
9332#endif
9333_LT_EOF
9334 # Now try linking the two files.
9335 mv conftest.$ac_objext conftstm.$ac_objext
9336 lt_save_LIBS="$LIBS"
9337 lt_save_CFLAGS="$CFLAGS"
9338 LIBS="conftstm.$ac_objext"
9339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009341 (eval $ac_link) 2>&5
9342 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9344 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009345 pipe_works=yes
9346 fi
9347 LIBS="$lt_save_LIBS"
9348 CFLAGS="$lt_save_CFLAGS"
9349 else
9350 echo "cannot find nm_test_func in $nlist" >&5
9351 fi
9352 else
9353 echo "cannot find nm_test_var in $nlist" >&5
9354 fi
9355 else
9356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9357 fi
9358 else
9359 echo "$progname: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 fi
9362 rm -rf conftest* conftst*
9363
9364 # Do not use the global_symbol_pipe unless it works.
9365 if test "$pipe_works" = yes; then
9366 break
9367 else
9368 lt_cv_sys_global_symbol_pipe=
9369 fi
9370done
9371
9372fi
9373
9374if test -z "$lt_cv_sys_global_symbol_pipe"; then
9375 lt_cv_sys_global_symbol_to_cdecl=
9376fi
9377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009379$as_echo "failed" >&6; }
9380else
cristy8b350f62009-11-15 23:12:43 +00009381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009382$as_echo "ok" >&6; }
9383fi
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009407if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009408 enableval=$enable_libtool_lock;
9409fi
9410
9411test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9412
9413# Some flags need to be propagated to the compiler or linker for good
9414# libtool support.
9415case $host in
9416ia64-*-hpux*)
9417 # Find out which ABI we are using.
9418 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009420 (eval $ac_compile) 2>&5
9421 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9423 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009424 case `/usr/bin/file conftest.$ac_objext` in
9425 *ELF-32*)
9426 HPUX_IA64_MODE="32"
9427 ;;
9428 *ELF-64*)
9429 HPUX_IA64_MODE="64"
9430 ;;
9431 esac
9432 fi
9433 rm -rf conftest*
9434 ;;
9435*-*-irix6*)
9436 # Find out which ABI we are using.
cristy932c9122009-11-19 13:57:03 +00009437 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009439 (eval $ac_compile) 2>&5
9440 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9442 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009443 if test "$lt_cv_prog_gnu_ld" = yes; then
9444 case `/usr/bin/file conftest.$ac_objext` in
9445 *32-bit*)
9446 LD="${LD-ld} -melf32bsmip"
9447 ;;
9448 *N32*)
9449 LD="${LD-ld} -melf32bmipn32"
9450 ;;
9451 *64-bit*)
9452 LD="${LD-ld} -melf64bmip"
9453 ;;
9454 esac
9455 else
9456 case `/usr/bin/file conftest.$ac_objext` in
9457 *32-bit*)
9458 LD="${LD-ld} -32"
9459 ;;
9460 *N32*)
9461 LD="${LD-ld} -n32"
9462 ;;
9463 *64-bit*)
9464 LD="${LD-ld} -64"
9465 ;;
9466 esac
9467 fi
9468 fi
9469 rm -rf conftest*
9470 ;;
9471
9472x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9473s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9474 # Find out which ABI we are using.
9475 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009477 (eval $ac_compile) 2>&5
9478 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9480 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009481 case `/usr/bin/file conftest.o` in
9482 *32-bit*)
9483 case $host in
9484 x86_64-*kfreebsd*-gnu)
9485 LD="${LD-ld} -m elf_i386_fbsd"
9486 ;;
9487 x86_64-*linux*)
9488 LD="${LD-ld} -m elf_i386"
9489 ;;
9490 ppc64-*linux*|powerpc64-*linux*)
9491 LD="${LD-ld} -m elf32ppclinux"
9492 ;;
9493 s390x-*linux*)
9494 LD="${LD-ld} -m elf_s390"
9495 ;;
9496 sparc64-*linux*)
9497 LD="${LD-ld} -m elf32_sparc"
9498 ;;
9499 esac
9500 ;;
9501 *64-bit*)
9502 case $host in
9503 x86_64-*kfreebsd*-gnu)
9504 LD="${LD-ld} -m elf_x86_64_fbsd"
9505 ;;
9506 x86_64-*linux*)
9507 LD="${LD-ld} -m elf_x86_64"
9508 ;;
9509 ppc*-*linux*|powerpc*-*linux*)
9510 LD="${LD-ld} -m elf64ppc"
9511 ;;
9512 s390*-*linux*|s390*-*tpf*)
9513 LD="${LD-ld} -m elf64_s390"
9514 ;;
9515 sparc*-*linux*)
9516 LD="${LD-ld} -m elf64_sparc"
9517 ;;
9518 esac
9519 ;;
9520 esac
9521 fi
9522 rm -rf conftest*
9523 ;;
9524
9525*-*-sco3.2v5*)
9526 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9527 SAVE_CFLAGS="$CFLAGS"
9528 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009530$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009531if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009532 $as_echo_n "(cached) " >&6
9533else
9534 ac_ext=c
9535ac_cpp='$CPP $CPPFLAGS'
9536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539
cristy8b350f62009-11-15 23:12:43 +00009540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009541/* end confdefs.h. */
9542
9543int
9544main ()
9545{
9546
9547 ;
9548 return 0;
9549}
9550_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009551if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009552 lt_cv_cc_needs_belf=yes
9553else
cristy8b350f62009-11-15 23:12:43 +00009554 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009555fi
cristy8b350f62009-11-15 23:12:43 +00009556rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009558 ac_ext=c
9559ac_cpp='$CPP $CPPFLAGS'
9560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9562ac_compiler_gnu=$ac_cv_c_compiler_gnu
9563
9564fi
cristy8b350f62009-11-15 23:12:43 +00009565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566$as_echo "$lt_cv_cc_needs_belf" >&6; }
9567 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9568 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9569 CFLAGS="$SAVE_CFLAGS"
9570 fi
9571 ;;
9572sparc*-*solaris*)
9573 # Find out which ABI we are using.
9574 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009576 (eval $ac_compile) 2>&5
9577 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009580 case `/usr/bin/file conftest.o` in
9581 *64-bit*)
9582 case $lt_cv_prog_gnu_ld in
9583 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9584 *)
9585 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9586 LD="${LD-ld} -64"
9587 fi
9588 ;;
9589 esac
9590 ;;
9591 esac
9592 fi
9593 rm -rf conftest*
9594 ;;
9595esac
9596
9597need_locks="$enable_libtool_lock"
9598
9599
9600 case $host_os in
9601 rhapsody* | darwin*)
9602 if test -n "$ac_tool_prefix"; then
9603 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9604set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009606$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009607if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009608 $as_echo_n "(cached) " >&6
9609else
9610 if test -n "$DSYMUTIL"; then
9611 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9612else
9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614for as_dir in $PATH
9615do
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9620 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009622 break 2
9623 fi
9624done
cristy8b350f62009-11-15 23:12:43 +00009625 done
cristy3ed852e2009-09-05 21:47:34 +00009626IFS=$as_save_IFS
9627
9628fi
9629fi
9630DSYMUTIL=$ac_cv_prog_DSYMUTIL
9631if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009633$as_echo "$DSYMUTIL" >&6; }
9634else
cristy8b350f62009-11-15 23:12:43 +00009635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009636$as_echo "no" >&6; }
9637fi
9638
9639
9640fi
9641if test -z "$ac_cv_prog_DSYMUTIL"; then
9642 ac_ct_DSYMUTIL=$DSYMUTIL
9643 # Extract the first word of "dsymutil", so it can be a program name with args.
9644set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009646$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009647if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009648 $as_echo_n "(cached) " >&6
9649else
9650 if test -n "$ac_ct_DSYMUTIL"; then
9651 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009662 break 2
9663 fi
9664done
cristy8b350f62009-11-15 23:12:43 +00009665 done
cristy3ed852e2009-09-05 21:47:34 +00009666IFS=$as_save_IFS
9667
9668fi
9669fi
9670ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9671if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "$ac_ct_DSYMUTIL" >&6; }
9674else
cristy8b350f62009-11-15 23:12:43 +00009675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009676$as_echo "no" >&6; }
9677fi
9678
9679 if test "x$ac_ct_DSYMUTIL" = x; then
9680 DSYMUTIL=":"
9681 else
9682 case $cross_compiling:$ac_tool_warned in
9683yes:)
cristy8b350f62009-11-15 23:12:43 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9686ac_tool_warned=yes ;;
9687esac
9688 DSYMUTIL=$ac_ct_DSYMUTIL
9689 fi
9690else
9691 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9692fi
9693
9694 if test -n "$ac_tool_prefix"; then
9695 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9696set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009698$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009699if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009700 $as_echo_n "(cached) " >&6
9701else
9702 if test -n "$NMEDIT"; then
9703 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9704else
9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009714 break 2
9715 fi
9716done
cristy8b350f62009-11-15 23:12:43 +00009717 done
cristy3ed852e2009-09-05 21:47:34 +00009718IFS=$as_save_IFS
9719
9720fi
9721fi
9722NMEDIT=$ac_cv_prog_NMEDIT
9723if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009725$as_echo "$NMEDIT" >&6; }
9726else
cristy8b350f62009-11-15 23:12:43 +00009727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009728$as_echo "no" >&6; }
9729fi
9730
9731
9732fi
9733if test -z "$ac_cv_prog_NMEDIT"; then
9734 ac_ct_NMEDIT=$NMEDIT
9735 # Extract the first word of "nmedit", so it can be a program name with args.
9736set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009738$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009739if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009740 $as_echo_n "(cached) " >&6
9741else
9742 if test -n "$ac_ct_NMEDIT"; then
9743 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9744else
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746for as_dir in $PATH
9747do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009754 break 2
9755 fi
9756done
cristy8b350f62009-11-15 23:12:43 +00009757 done
cristy3ed852e2009-09-05 21:47:34 +00009758IFS=$as_save_IFS
9759
9760fi
9761fi
9762ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9763if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009765$as_echo "$ac_ct_NMEDIT" >&6; }
9766else
cristy8b350f62009-11-15 23:12:43 +00009767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009768$as_echo "no" >&6; }
9769fi
9770
9771 if test "x$ac_ct_NMEDIT" = x; then
9772 NMEDIT=":"
9773 else
9774 case $cross_compiling:$ac_tool_warned in
9775yes:)
cristy8b350f62009-11-15 23:12:43 +00009776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778ac_tool_warned=yes ;;
9779esac
9780 NMEDIT=$ac_ct_NMEDIT
9781 fi
9782else
9783 NMEDIT="$ac_cv_prog_NMEDIT"
9784fi
9785
9786 if test -n "$ac_tool_prefix"; then
9787 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9788set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009790$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009791if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009792 $as_echo_n "(cached) " >&6
9793else
9794 if test -n "$LIPO"; then
9795 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9796else
9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798for as_dir in $PATH
9799do
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009806 break 2
9807 fi
9808done
cristy8b350f62009-11-15 23:12:43 +00009809 done
cristy3ed852e2009-09-05 21:47:34 +00009810IFS=$as_save_IFS
9811
9812fi
9813fi
9814LIPO=$ac_cv_prog_LIPO
9815if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009817$as_echo "$LIPO" >&6; }
9818else
cristy8b350f62009-11-15 23:12:43 +00009819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009820$as_echo "no" >&6; }
9821fi
9822
9823
9824fi
9825if test -z "$ac_cv_prog_LIPO"; then
9826 ac_ct_LIPO=$LIPO
9827 # Extract the first word of "lipo", so it can be a program name with args.
9828set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009830$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009831if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009832 $as_echo_n "(cached) " >&6
9833else
9834 if test -n "$ac_ct_LIPO"; then
9835 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9836else
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009846 break 2
9847 fi
9848done
cristy8b350f62009-11-15 23:12:43 +00009849 done
cristy3ed852e2009-09-05 21:47:34 +00009850IFS=$as_save_IFS
9851
9852fi
9853fi
9854ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9855if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009857$as_echo "$ac_ct_LIPO" >&6; }
9858else
cristy8b350f62009-11-15 23:12:43 +00009859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009860$as_echo "no" >&6; }
9861fi
9862
9863 if test "x$ac_ct_LIPO" = x; then
9864 LIPO=":"
9865 else
9866 case $cross_compiling:$ac_tool_warned in
9867yes:)
cristy8b350f62009-11-15 23:12:43 +00009868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9870ac_tool_warned=yes ;;
9871esac
9872 LIPO=$ac_ct_LIPO
9873 fi
9874else
9875 LIPO="$ac_cv_prog_LIPO"
9876fi
9877
9878 if test -n "$ac_tool_prefix"; then
9879 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9880set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009882$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009883if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009884 $as_echo_n "(cached) " >&6
9885else
9886 if test -n "$OTOOL"; then
9887 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9888else
9889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890for as_dir in $PATH
9891do
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009898 break 2
9899 fi
9900done
cristy8b350f62009-11-15 23:12:43 +00009901 done
cristy3ed852e2009-09-05 21:47:34 +00009902IFS=$as_save_IFS
9903
9904fi
9905fi
9906OTOOL=$ac_cv_prog_OTOOL
9907if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009909$as_echo "$OTOOL" >&6; }
9910else
cristy8b350f62009-11-15 23:12:43 +00009911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009912$as_echo "no" >&6; }
9913fi
9914
9915
9916fi
9917if test -z "$ac_cv_prog_OTOOL"; then
9918 ac_ct_OTOOL=$OTOOL
9919 # Extract the first word of "otool", so it can be a program name with args.
9920set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009922$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009923if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009924 $as_echo_n "(cached) " >&6
9925else
9926 if test -n "$ac_ct_OTOOL"; then
9927 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9928else
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009938 break 2
9939 fi
9940done
cristy8b350f62009-11-15 23:12:43 +00009941 done
cristy3ed852e2009-09-05 21:47:34 +00009942IFS=$as_save_IFS
9943
9944fi
9945fi
9946ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9947if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009949$as_echo "$ac_ct_OTOOL" >&6; }
9950else
cristy8b350f62009-11-15 23:12:43 +00009951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009952$as_echo "no" >&6; }
9953fi
9954
9955 if test "x$ac_ct_OTOOL" = x; then
9956 OTOOL=":"
9957 else
9958 case $cross_compiling:$ac_tool_warned in
9959yes:)
cristy8b350f62009-11-15 23:12:43 +00009960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9962ac_tool_warned=yes ;;
9963esac
9964 OTOOL=$ac_ct_OTOOL
9965 fi
9966else
9967 OTOOL="$ac_cv_prog_OTOOL"
9968fi
9969
9970 if test -n "$ac_tool_prefix"; then
9971 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9972set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009974$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009975if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009976 $as_echo_n "(cached) " >&6
9977else
9978 if test -n "$OTOOL64"; then
9979 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9980else
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +00009989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009990 break 2
9991 fi
9992done
cristy8b350f62009-11-15 23:12:43 +00009993 done
cristy3ed852e2009-09-05 21:47:34 +00009994IFS=$as_save_IFS
9995
9996fi
9997fi
9998OTOOL64=$ac_cv_prog_OTOOL64
9999if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo "$OTOOL64" >&6; }
10002else
cristy8b350f62009-11-15 23:12:43 +000010003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010004$as_echo "no" >&6; }
10005fi
10006
10007
10008fi
10009if test -z "$ac_cv_prog_OTOOL64"; then
10010 ac_ct_OTOOL64=$OTOOL64
10011 # Extract the first word of "otool64", so it can be a program name with args.
10012set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010014$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010015if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010016 $as_echo_n "(cached) " >&6
10017else
10018 if test -n "$ac_ct_OTOOL64"; then
10019 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010030 break 2
10031 fi
10032done
cristy8b350f62009-11-15 23:12:43 +000010033 done
cristy3ed852e2009-09-05 21:47:34 +000010034IFS=$as_save_IFS
10035
10036fi
10037fi
10038ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10039if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010041$as_echo "$ac_ct_OTOOL64" >&6; }
10042else
cristy8b350f62009-11-15 23:12:43 +000010043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010044$as_echo "no" >&6; }
10045fi
10046
10047 if test "x$ac_ct_OTOOL64" = x; then
10048 OTOOL64=":"
10049 else
10050 case $cross_compiling:$ac_tool_warned in
10051yes:)
cristy8b350f62009-11-15 23:12:43 +000010052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10054ac_tool_warned=yes ;;
10055esac
10056 OTOOL64=$ac_ct_OTOOL64
10057 fi
10058else
10059 OTOOL64="$ac_cv_prog_OTOOL64"
10060fi
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
cristy8b350f62009-11-15 23:12:43 +000010088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010089$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010090if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010091 $as_echo_n "(cached) " >&6
10092else
10093 lt_cv_apple_cc_single_mod=no
10094 if test -z "${LT_MULTI_MODULE}"; then
10095 # By default we will add the -single_module flag. You can override
10096 # by either setting the environment variable LT_MULTI_MODULE
10097 # non-empty at configure time, or by adding -multi_module to the
10098 # link flags.
10099 rm -rf libconftest.dylib*
10100 echo "int foo(void){return 1;}" > conftest.c
10101 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10102-dynamiclib -Wl,-single_module conftest.c" >&5
10103 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10104 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10105 _lt_result=$?
10106 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10107 lt_cv_apple_cc_single_mod=yes
10108 else
10109 cat conftest.err >&5
10110 fi
10111 rm -rf libconftest.dylib*
10112 rm -f conftest.*
10113 fi
10114fi
cristy8b350f62009-11-15 23:12:43 +000010115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010116$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010118$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010119if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010120 $as_echo_n "(cached) " >&6
10121else
10122 lt_cv_ld_exported_symbols_list=no
10123 save_LDFLAGS=$LDFLAGS
10124 echo "_main" > conftest.sym
10125 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010127/* end confdefs.h. */
10128
10129int
10130main ()
10131{
10132
10133 ;
10134 return 0;
10135}
10136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010138 lt_cv_ld_exported_symbols_list=yes
10139else
cristy8b350f62009-11-15 23:12:43 +000010140 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010141fi
cristy8b350f62009-11-15 23:12:43 +000010142rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010144 LDFLAGS="$save_LDFLAGS"
10145
10146fi
cristy8b350f62009-11-15 23:12:43 +000010147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010148$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy932c9122009-11-19 13:57:03 +000010149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10150$as_echo_n "checking for -force_load linker flag... " >&6; }
10151if test "${lt_cv_ld_force_load+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10153else
10154 lt_cv_ld_force_load=no
10155 cat > conftest.c << _LT_EOF
10156int forced_loaded() { return 2;}
10157_LT_EOF
10158 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10159 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10160 echo "$AR cru libconftest.a conftest.o" >&5
10161 $AR cru libconftest.a conftest.o 2>&5
10162 cat > conftest.c << _LT_EOF
10163int main() { return 0;}
10164_LT_EOF
10165 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10166 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10167 _lt_result=$?
10168 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10169 lt_cv_ld_force_load=yes
10170 else
10171 cat conftest.err >&5
10172 fi
10173 rm -f conftest.err libconftest.a conftest conftest.c
10174 rm -rf conftest.dSYM
10175
10176fi
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10178$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010179 case $host_os in
10180 rhapsody* | darwin1.[012])
10181 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10182 darwin1.*)
10183 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10184 darwin*) # darwin 5.x on
10185 # if running on 10.5 or later, the deployment target defaults
10186 # to the OS version, if on x86, and 10.4, the deployment
10187 # target defaults to 10.4. Don't you love it?
10188 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10189 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10190 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10191 10.[012]*)
10192 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10193 10.*)
10194 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10195 esac
10196 ;;
10197 esac
10198 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10199 _lt_dar_single_mod='$single_module'
10200 fi
10201 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10202 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10203 else
10204 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10205 fi
cristy932c9122009-11-19 13:57:03 +000010206 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000010207 _lt_dsymutil='~$DSYMUTIL $lib || :'
10208 else
10209 _lt_dsymutil=
10210 fi
10211 ;;
10212 esac
10213
cristy3ed852e2009-09-05 21:47:34 +000010214for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010215do :
10216 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10217"
10218if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010219 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010220#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010221_ACEOF
10222
10223fi
10224
10225done
10226
10227
10228
cristy3ed852e2009-09-05 21:47:34 +000010229
10230
10231
10232# Set options
10233enable_win32_dll=yes
10234
10235case $host in
cristy932c9122009-11-19 13:57:03 +000010236*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010237 if test -n "$ac_tool_prefix"; then
10238 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10239set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010241$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010242if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010243 $as_echo_n "(cached) " >&6
10244else
10245 if test -n "$AS"; then
10246 ac_cv_prog_AS="$AS" # Let the user override the test.
10247else
10248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249for as_dir in $PATH
10250do
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010257 break 2
10258 fi
10259done
cristy8b350f62009-11-15 23:12:43 +000010260 done
cristy3ed852e2009-09-05 21:47:34 +000010261IFS=$as_save_IFS
10262
10263fi
10264fi
10265AS=$ac_cv_prog_AS
10266if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010268$as_echo "$AS" >&6; }
10269else
cristy8b350f62009-11-15 23:12:43 +000010270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010271$as_echo "no" >&6; }
10272fi
10273
10274
10275fi
10276if test -z "$ac_cv_prog_AS"; then
10277 ac_ct_AS=$AS
10278 # Extract the first word of "as", so it can be a program name with args.
10279set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010281$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010282if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010283 $as_echo_n "(cached) " >&6
10284else
10285 if test -n "$ac_ct_AS"; then
10286 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10287else
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010297 break 2
10298 fi
10299done
cristy8b350f62009-11-15 23:12:43 +000010300 done
cristy3ed852e2009-09-05 21:47:34 +000010301IFS=$as_save_IFS
10302
10303fi
10304fi
10305ac_ct_AS=$ac_cv_prog_ac_ct_AS
10306if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010308$as_echo "$ac_ct_AS" >&6; }
10309else
cristy8b350f62009-11-15 23:12:43 +000010310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010311$as_echo "no" >&6; }
10312fi
10313
10314 if test "x$ac_ct_AS" = x; then
10315 AS="false"
10316 else
10317 case $cross_compiling:$ac_tool_warned in
10318yes:)
cristy8b350f62009-11-15 23:12:43 +000010319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10321ac_tool_warned=yes ;;
10322esac
10323 AS=$ac_ct_AS
10324 fi
10325else
10326 AS="$ac_cv_prog_AS"
10327fi
10328
10329 if test -n "$ac_tool_prefix"; then
10330 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10331set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010333$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010334if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010335 $as_echo_n "(cached) " >&6
10336else
10337 if test -n "$DLLTOOL"; then
10338 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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=.
cristy8b350f62009-11-15 23:12:43 +000010345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010346 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_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010349 break 2
10350 fi
10351done
cristy8b350f62009-11-15 23:12:43 +000010352 done
cristy3ed852e2009-09-05 21:47:34 +000010353IFS=$as_save_IFS
10354
10355fi
10356fi
10357DLLTOOL=$ac_cv_prog_DLLTOOL
10358if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010360$as_echo "$DLLTOOL" >&6; }
10361else
cristy8b350f62009-11-15 23:12:43 +000010362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010363$as_echo "no" >&6; }
10364fi
10365
10366
10367fi
10368if test -z "$ac_cv_prog_DLLTOOL"; then
10369 ac_ct_DLLTOOL=$DLLTOOL
10370 # Extract the first word of "dlltool", so it can be a program name with args.
10371set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010374if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$ac_ct_DLLTOOL"; then
10378 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010386 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_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010389 break 2
10390 fi
10391done
cristy8b350f62009-11-15 23:12:43 +000010392 done
cristy3ed852e2009-09-05 21:47:34 +000010393IFS=$as_save_IFS
10394
10395fi
10396fi
10397ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10398if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010400$as_echo "$ac_ct_DLLTOOL" >&6; }
10401else
cristy8b350f62009-11-15 23:12:43 +000010402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010403$as_echo "no" >&6; }
10404fi
10405
10406 if test "x$ac_ct_DLLTOOL" = x; then
10407 DLLTOOL="false"
10408 else
10409 case $cross_compiling:$ac_tool_warned in
10410yes:)
cristy8b350f62009-11-15 23:12:43 +000010411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10413ac_tool_warned=yes ;;
10414esac
10415 DLLTOOL=$ac_ct_DLLTOOL
10416 fi
10417else
10418 DLLTOOL="$ac_cv_prog_DLLTOOL"
10419fi
10420
10421 if test -n "$ac_tool_prefix"; then
10422 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10423set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010425$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010426if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010427 $as_echo_n "(cached) " >&6
10428else
10429 if test -n "$OBJDUMP"; then
10430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10431else
10432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433for as_dir in $PATH
10434do
10435 IFS=$as_save_IFS
10436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10439 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010441 break 2
10442 fi
10443done
cristy8b350f62009-11-15 23:12:43 +000010444 done
cristy3ed852e2009-09-05 21:47:34 +000010445IFS=$as_save_IFS
10446
10447fi
10448fi
10449OBJDUMP=$ac_cv_prog_OBJDUMP
10450if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010452$as_echo "$OBJDUMP" >&6; }
10453else
cristy8b350f62009-11-15 23:12:43 +000010454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010455$as_echo "no" >&6; }
10456fi
10457
10458
10459fi
10460if test -z "$ac_cv_prog_OBJDUMP"; then
10461 ac_ct_OBJDUMP=$OBJDUMP
10462 # Extract the first word of "objdump", so it can be a program name with args.
10463set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010466if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010467 $as_echo_n "(cached) " >&6
10468else
10469 if test -n "$ac_ct_OBJDUMP"; then
10470 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10471else
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010481 break 2
10482 fi
10483done
cristy8b350f62009-11-15 23:12:43 +000010484 done
cristy3ed852e2009-09-05 21:47:34 +000010485IFS=$as_save_IFS
10486
10487fi
10488fi
10489ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10490if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010492$as_echo "$ac_ct_OBJDUMP" >&6; }
10493else
cristy8b350f62009-11-15 23:12:43 +000010494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010495$as_echo "no" >&6; }
10496fi
10497
10498 if test "x$ac_ct_OBJDUMP" = x; then
10499 OBJDUMP="false"
10500 else
10501 case $cross_compiling:$ac_tool_warned in
10502yes:)
cristy8b350f62009-11-15 23:12:43 +000010503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10505ac_tool_warned=yes ;;
10506esac
10507 OBJDUMP=$ac_ct_OBJDUMP
10508 fi
10509else
10510 OBJDUMP="$ac_cv_prog_OBJDUMP"
10511fi
10512
10513 ;;
10514esac
10515
10516test -z "$AS" && AS=as
10517
10518
10519
10520
10521
10522test -z "$DLLTOOL" && DLLTOOL=dlltool
10523
10524
10525
10526
10527
10528test -z "$OBJDUMP" && OBJDUMP=objdump
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000010539if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010540 enableval=$enable_shared; p=${PACKAGE-default}
10541 case $enableval in
10542 yes) enable_shared=yes ;;
10543 no) enable_shared=no ;;
10544 *)
10545 enable_shared=no
10546 # Look at the argument we got. We use all the common list separators.
10547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10548 for pkg in $enableval; do
10549 IFS="$lt_save_ifs"
10550 if test "X$pkg" = "X$p"; then
10551 enable_shared=yes
10552 fi
10553 done
10554 IFS="$lt_save_ifs"
10555 ;;
10556 esac
10557else
10558 enable_shared=yes
10559fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000010570if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010571 enableval=$enable_static; p=${PACKAGE-default}
10572 case $enableval in
10573 yes) enable_static=yes ;;
10574 no) enable_static=no ;;
10575 *)
10576 enable_static=no
10577 # Look at the argument we got. We use all the common list separators.
10578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10579 for pkg in $enableval; do
10580 IFS="$lt_save_ifs"
10581 if test "X$pkg" = "X$p"; then
10582 enable_static=yes
10583 fi
10584 done
10585 IFS="$lt_save_ifs"
10586 ;;
10587 esac
10588else
10589 enable_static=yes
10590fi
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000010602if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010603 withval=$with_pic; pic_mode="$withval"
10604else
10605 pic_mode=default
10606fi
10607
10608
10609test -z "$pic_mode" && pic_mode=default
10610
10611
10612
10613
10614
10615
10616
10617 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000010618if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010619 enableval=$enable_fast_install; p=${PACKAGE-default}
10620 case $enableval in
10621 yes) enable_fast_install=yes ;;
10622 no) enable_fast_install=no ;;
10623 *)
10624 enable_fast_install=no
10625 # Look at the argument we got. We use all the common list separators.
10626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10627 for pkg in $enableval; do
10628 IFS="$lt_save_ifs"
10629 if test "X$pkg" = "X$p"; then
10630 enable_fast_install=yes
10631 fi
10632 done
10633 IFS="$lt_save_ifs"
10634 ;;
10635 esac
10636else
10637 enable_fast_install=yes
10638fi
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650# This can be used to rebuild libtool when needed
10651LIBTOOL_DEPS="$ltmain"
10652
10653# Always use our own libtool.
10654LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
cristy932c9122009-11-19 13:57:03 +000010680
cristy3ed852e2009-09-05 21:47:34 +000010681test -z "$LN_S" && LN_S="ln -s"
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696if test -n "${ZSH_VERSION+set}" ; then
10697 setopt NO_GLOB_SUBST
10698fi
10699
cristy8b350f62009-11-15 23:12:43 +000010700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000010701$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010702if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010703 $as_echo_n "(cached) " >&6
10704else
10705 rm -f .libs 2>/dev/null
10706mkdir .libs 2>/dev/null
10707if test -d .libs; then
10708 lt_cv_objdir=.libs
10709else
10710 # MS-DOS does not allow filenames that begin with a dot.
10711 lt_cv_objdir=_libs
10712fi
10713rmdir .libs 2>/dev/null
10714fi
cristy8b350f62009-11-15 23:12:43 +000010715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000010716$as_echo "$lt_cv_objdir" >&6; }
10717objdir=$lt_cv_objdir
10718
10719
10720
10721
10722
10723cat >>confdefs.h <<_ACEOF
10724#define LT_OBJDIR "$lt_cv_objdir/"
10725_ACEOF
10726
10727
10728
10729
cristy3ed852e2009-09-05 21:47:34 +000010730case $host_os in
10731aix3*)
10732 # AIX sometimes has problems with the GCC collect2 program. For some
10733 # reason, if we set the COLLECT_NAMES environment variable, the problems
10734 # vanish in a puff of smoke.
10735 if test "X${COLLECT_NAMES+set}" != Xset; then
10736 COLLECT_NAMES=
10737 export COLLECT_NAMES
10738 fi
10739 ;;
10740esac
10741
cristy3ed852e2009-09-05 21:47:34 +000010742# Global variables:
10743ofile=libtool
10744can_build_shared=yes
10745
10746# All known linkers require a `.a' archive for static linking (except MSVC,
10747# which needs '.lib').
10748libext=a
10749
10750with_gnu_ld="$lt_cv_prog_gnu_ld"
10751
10752old_CC="$CC"
10753old_CFLAGS="$CFLAGS"
10754
10755# Set sane defaults for various variables
10756test -z "$CC" && CC=cc
10757test -z "$LTCC" && LTCC=$CC
10758test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10759test -z "$LD" && LD=ld
10760test -z "$ac_objext" && ac_objext=o
10761
10762for cc_temp in $compiler""; do
10763 case $cc_temp in
10764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10766 \-*) ;;
10767 *) break;;
10768 esac
10769done
cristy932c9122009-11-19 13:57:03 +000010770cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000010771
10772
10773# Only perform the check for file, if the check method requires it
10774test -z "$MAGIC_CMD" && MAGIC_CMD=file
10775case $deplibs_check_method in
10776file_magic*)
10777 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000010778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000010779$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010780if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010781 $as_echo_n "(cached) " >&6
10782else
10783 case $MAGIC_CMD in
10784[\\/*] | ?:[\\/]*)
10785 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10786 ;;
10787*)
10788 lt_save_MAGIC_CMD="$MAGIC_CMD"
10789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10790 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10791 for ac_dir in $ac_dummy; do
10792 IFS="$lt_save_ifs"
10793 test -z "$ac_dir" && ac_dir=.
10794 if test -f $ac_dir/${ac_tool_prefix}file; then
10795 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10796 if test -n "$file_magic_test_file"; then
10797 case $deplibs_check_method in
10798 "file_magic "*)
10799 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10800 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10801 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10802 $EGREP "$file_magic_regex" > /dev/null; then
10803 :
10804 else
10805 cat <<_LT_EOF 1>&2
10806
10807*** Warning: the command libtool uses to detect shared libraries,
10808*** $file_magic_cmd, produces output that libtool cannot recognize.
10809*** The result is that libtool may fail to recognize shared libraries
10810*** as such. This will affect the creation of libtool libraries that
10811*** depend on shared libraries, but programs linked with such libtool
10812*** libraries will work regardless of this problem. Nevertheless, you
10813*** may want to report the problem to your system manager and/or to
10814*** bug-libtool@gnu.org
10815
10816_LT_EOF
10817 fi ;;
10818 esac
10819 fi
10820 break
10821 fi
10822 done
10823 IFS="$lt_save_ifs"
10824 MAGIC_CMD="$lt_save_MAGIC_CMD"
10825 ;;
10826esac
10827fi
10828
10829MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10830if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000010831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000010832$as_echo "$MAGIC_CMD" >&6; }
10833else
cristy8b350f62009-11-15 23:12:43 +000010834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010835$as_echo "no" >&6; }
10836fi
10837
10838
10839
10840
10841
10842if test -z "$lt_cv_path_MAGIC_CMD"; then
10843 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000010844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000010845$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010846if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010847 $as_echo_n "(cached) " >&6
10848else
10849 case $MAGIC_CMD in
10850[\\/*] | ?:[\\/]*)
10851 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10852 ;;
10853*)
10854 lt_save_MAGIC_CMD="$MAGIC_CMD"
10855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10857 for ac_dir in $ac_dummy; do
10858 IFS="$lt_save_ifs"
10859 test -z "$ac_dir" && ac_dir=.
10860 if test -f $ac_dir/file; then
10861 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10862 if test -n "$file_magic_test_file"; then
10863 case $deplibs_check_method in
10864 "file_magic "*)
10865 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10868 $EGREP "$file_magic_regex" > /dev/null; then
10869 :
10870 else
10871 cat <<_LT_EOF 1>&2
10872
10873*** Warning: the command libtool uses to detect shared libraries,
10874*** $file_magic_cmd, produces output that libtool cannot recognize.
10875*** The result is that libtool may fail to recognize shared libraries
10876*** as such. This will affect the creation of libtool libraries that
10877*** depend on shared libraries, but programs linked with such libtool
10878*** libraries will work regardless of this problem. Nevertheless, you
10879*** may want to report the problem to your system manager and/or to
10880*** bug-libtool@gnu.org
10881
10882_LT_EOF
10883 fi ;;
10884 esac
10885 fi
10886 break
10887 fi
10888 done
10889 IFS="$lt_save_ifs"
10890 MAGIC_CMD="$lt_save_MAGIC_CMD"
10891 ;;
10892esac
10893fi
10894
10895MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10896if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000010897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000010898$as_echo "$MAGIC_CMD" >&6; }
10899else
cristy8b350f62009-11-15 23:12:43 +000010900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010901$as_echo "no" >&6; }
10902fi
10903
10904
10905 else
10906 MAGIC_CMD=:
10907 fi
10908fi
10909
10910 fi
10911 ;;
10912esac
10913
10914# Use C for the default configuration in the libtool script
10915
10916lt_save_CC="$CC"
10917ac_ext=c
10918ac_cpp='$CPP $CPPFLAGS'
10919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922
10923
10924# Source file extension for C test sources.
10925ac_ext=c
10926
10927# Object file extension for compiled C test sources.
10928objext=o
10929objext=$objext
10930
10931# Code to be used in simple compile tests
10932lt_simple_compile_test_code="int some_variable = 0;"
10933
10934# Code to be used in simple link tests
10935lt_simple_link_test_code='int main(){return(0);}'
10936
10937
10938
10939
10940
10941
10942
10943# If no C compiler was specified, use CC.
10944LTCC=${LTCC-"$CC"}
10945
10946# If no C compiler flags were specified, use CFLAGS.
10947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10948
10949# Allow CC to be a program name with arguments.
10950compiler=$CC
10951
10952# Save the default compiler, since it gets overwritten when the other
10953# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10954compiler_DEFAULT=$CC
10955
10956# save warnings/boilerplate of simple test code
10957ac_outfile=conftest.$ac_objext
10958echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10959eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10960_lt_compiler_boilerplate=`cat conftest.err`
10961$RM conftest*
10962
10963ac_outfile=conftest.$ac_objext
10964echo "$lt_simple_link_test_code" >conftest.$ac_ext
10965eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10966_lt_linker_boilerplate=`cat conftest.err`
10967$RM -r conftest*
10968
10969
10970## CAVEAT EMPTOR:
10971## There is no encapsulation within the following macros, do not change
10972## the running order or otherwise move them around unless you know exactly
10973## what you are doing...
10974if test -n "$compiler"; then
10975
10976lt_prog_compiler_no_builtin_flag=
10977
10978if test "$GCC" = yes; then
cristy932c9122009-11-19 13:57:03 +000010979 case $cc_basename in
10980 nvcc*)
10981 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10982 *)
10983 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10984 esac
cristy3ed852e2009-09-05 21:47:34 +000010985
cristy8b350f62009-11-15 23:12:43 +000010986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000010987$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010988if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010989 $as_echo_n "(cached) " >&6
10990else
10991 lt_cv_prog_compiler_rtti_exceptions=no
10992 ac_outfile=conftest.$ac_objext
10993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10994 lt_compiler_flag="-fno-rtti -fno-exceptions"
10995 # Insert the option either (1) after the last *FLAGS variable, or
10996 # (2) before a word containing "conftest.", or (3) at the end.
10997 # Note that $ac_compile itself does not contain backslashes and begins
10998 # with a dollar sign (not a hyphen), so the echo should work correctly.
10999 # The option is referenced via a variable to avoid confusing sed.
11000 lt_compile=`echo "$ac_compile" | $SED \
11001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11003 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011005 (eval "$lt_compile" 2>conftest.err)
11006 ac_status=$?
11007 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011009 if (exit $ac_status) && test -s "$ac_outfile"; then
11010 # The compiler can only warn and ignore the option if not recognized
11011 # So say no if there are warnings other than the usual output.
cristy932c9122009-11-19 13:57:03 +000011012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11015 lt_cv_prog_compiler_rtti_exceptions=yes
11016 fi
11017 fi
11018 $RM conftest*
11019
11020fi
cristy8b350f62009-11-15 23:12:43 +000011021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011022$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11023
11024if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11025 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11026else
11027 :
11028fi
11029
11030fi
11031
11032
11033
11034
11035
11036
11037 lt_prog_compiler_wl=
11038lt_prog_compiler_pic=
11039lt_prog_compiler_static=
11040
cristy8b350f62009-11-15 23:12:43 +000011041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011042$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11043
11044 if test "$GCC" = yes; then
11045 lt_prog_compiler_wl='-Wl,'
11046 lt_prog_compiler_static='-static'
11047
11048 case $host_os in
11049 aix*)
11050 # All AIX code is PIC.
11051 if test "$host_cpu" = ia64; then
11052 # AIX 5 now supports IA64 processor
11053 lt_prog_compiler_static='-Bstatic'
11054 fi
11055 ;;
11056
11057 amigaos*)
11058 case $host_cpu in
11059 powerpc)
11060 # see comment about AmigaOS4 .so support
11061 lt_prog_compiler_pic='-fPIC'
11062 ;;
11063 m68k)
11064 # FIXME: we need at least 68020 code to build shared libraries, but
11065 # adding the `-m68020' flag to GCC prevents building anything better,
11066 # like `-m68040'.
11067 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11068 ;;
11069 esac
11070 ;;
11071
11072 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11073 # PIC is the default for these OSes.
11074 ;;
11075
11076 mingw* | cygwin* | pw32* | os2* | cegcc*)
11077 # This hack is so that the source file can tell whether it is being
11078 # built for inclusion in a dll (and should export symbols for example).
11079 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11080 # (--disable-auto-import) libraries
11081 lt_prog_compiler_pic='-DDLL_EXPORT'
11082 ;;
11083
11084 darwin* | rhapsody*)
11085 # PIC is the default on this platform
11086 # Common symbols not allowed in MH_DYLIB files
11087 lt_prog_compiler_pic='-fno-common'
11088 ;;
11089
cristy932c9122009-11-19 13:57:03 +000011090 haiku*)
11091 # PIC is the default for Haiku.
11092 # The "-static" flag exists, but is broken.
11093 lt_prog_compiler_static=
11094 ;;
11095
cristy3ed852e2009-09-05 21:47:34 +000011096 hpux*)
11097 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11098 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11099 # sets the default TLS model and affects inlining.
11100 case $host_cpu in
11101 hppa*64*)
11102 # +Z the default
11103 ;;
11104 *)
11105 lt_prog_compiler_pic='-fPIC'
11106 ;;
11107 esac
11108 ;;
11109
11110 interix[3-9]*)
11111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11112 # Instead, we relocate shared libraries at runtime.
11113 ;;
11114
11115 msdosdjgpp*)
11116 # Just because we use GCC doesn't mean we suddenly get shared libraries
11117 # on systems that don't support them.
11118 lt_prog_compiler_can_build_shared=no
11119 enable_shared=no
11120 ;;
11121
11122 *nto* | *qnx*)
11123 # QNX uses GNU C++, but need to define -shared option too, otherwise
11124 # it will coredump.
11125 lt_prog_compiler_pic='-fPIC -shared'
11126 ;;
11127
11128 sysv4*MP*)
11129 if test -d /usr/nec; then
11130 lt_prog_compiler_pic=-Kconform_pic
11131 fi
11132 ;;
11133
11134 *)
11135 lt_prog_compiler_pic='-fPIC'
11136 ;;
11137 esac
cristy932c9122009-11-19 13:57:03 +000011138
11139 case $cc_basename in
11140 nvcc*) # Cuda Compiler Driver 2.2
11141 lt_prog_compiler_wl='-Xlinker '
11142 lt_prog_compiler_pic='-Xcompiler -fPIC'
11143 ;;
11144 esac
cristy3ed852e2009-09-05 21:47:34 +000011145 else
11146 # PORTME Check for flag to pass linker flags through the system compiler.
11147 case $host_os in
11148 aix*)
11149 lt_prog_compiler_wl='-Wl,'
11150 if test "$host_cpu" = ia64; then
11151 # AIX 5 now supports IA64 processor
11152 lt_prog_compiler_static='-Bstatic'
11153 else
11154 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11155 fi
11156 ;;
11157
11158 mingw* | cygwin* | pw32* | os2* | cegcc*)
11159 # This hack is so that the source file can tell whether it is being
11160 # built for inclusion in a dll (and should export symbols for example).
11161 lt_prog_compiler_pic='-DDLL_EXPORT'
11162 ;;
11163
11164 hpux9* | hpux10* | hpux11*)
11165 lt_prog_compiler_wl='-Wl,'
11166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11167 # not for PA HP-UX.
11168 case $host_cpu in
11169 hppa*64*|ia64*)
11170 # +Z the default
11171 ;;
11172 *)
11173 lt_prog_compiler_pic='+Z'
11174 ;;
11175 esac
11176 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11177 lt_prog_compiler_static='${wl}-a ${wl}archive'
11178 ;;
11179
11180 irix5* | irix6* | nonstopux*)
11181 lt_prog_compiler_wl='-Wl,'
11182 # PIC (with -KPIC) is the default.
11183 lt_prog_compiler_static='-non_shared'
11184 ;;
11185
cristy932c9122009-11-19 13:57:03 +000011186 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011187 case $cc_basename in
11188 # old Intel for x86_64 which still supported -KPIC.
11189 ecc*)
11190 lt_prog_compiler_wl='-Wl,'
11191 lt_prog_compiler_pic='-KPIC'
11192 lt_prog_compiler_static='-static'
11193 ;;
11194 # icc used to be incompatible with GCC.
11195 # ICC 10 doesn't accept -KPIC any more.
11196 icc* | ifort*)
11197 lt_prog_compiler_wl='-Wl,'
11198 lt_prog_compiler_pic='-fPIC'
11199 lt_prog_compiler_static='-static'
11200 ;;
11201 # Lahey Fortran 8.1.
11202 lf95*)
11203 lt_prog_compiler_wl='-Wl,'
11204 lt_prog_compiler_pic='--shared'
11205 lt_prog_compiler_static='--static'
11206 ;;
cristy932c9122009-11-19 13:57:03 +000011207 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000011208 # Portland Group compilers (*not* the Pentium gcc compiler,
11209 # which looks to be a dead project)
11210 lt_prog_compiler_wl='-Wl,'
11211 lt_prog_compiler_pic='-fpic'
11212 lt_prog_compiler_static='-Bstatic'
11213 ;;
11214 ccc*)
11215 lt_prog_compiler_wl='-Wl,'
11216 # All Alpha code is PIC.
11217 lt_prog_compiler_static='-non_shared'
11218 ;;
cristy932c9122009-11-19 13:57:03 +000011219 xl* | bgxl* | bgf* | mpixl*)
11220 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000011221 lt_prog_compiler_wl='-Wl,'
11222 lt_prog_compiler_pic='-qpic'
11223 lt_prog_compiler_static='-qstaticlink'
11224 ;;
11225 *)
11226 case `$CC -V 2>&1 | sed 5q` in
cristy932c9122009-11-19 13:57:03 +000011227 *Sun\ F* | *Sun*Fortran*)
11228 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11229 lt_prog_compiler_pic='-KPIC'
11230 lt_prog_compiler_static='-Bstatic'
11231 lt_prog_compiler_wl=''
11232 ;;
cristy3ed852e2009-09-05 21:47:34 +000011233 *Sun\ C*)
11234 # Sun C 5.9
11235 lt_prog_compiler_pic='-KPIC'
11236 lt_prog_compiler_static='-Bstatic'
11237 lt_prog_compiler_wl='-Wl,'
11238 ;;
cristy3ed852e2009-09-05 21:47:34 +000011239 esac
11240 ;;
11241 esac
11242 ;;
11243
11244 newsos6)
11245 lt_prog_compiler_pic='-KPIC'
11246 lt_prog_compiler_static='-Bstatic'
11247 ;;
11248
11249 *nto* | *qnx*)
11250 # QNX uses GNU C++, but need to define -shared option too, otherwise
11251 # it will coredump.
11252 lt_prog_compiler_pic='-fPIC -shared'
11253 ;;
11254
11255 osf3* | osf4* | osf5*)
11256 lt_prog_compiler_wl='-Wl,'
11257 # All OSF/1 code is PIC.
11258 lt_prog_compiler_static='-non_shared'
11259 ;;
11260
11261 rdos*)
11262 lt_prog_compiler_static='-non_shared'
11263 ;;
11264
11265 solaris*)
11266 lt_prog_compiler_pic='-KPIC'
11267 lt_prog_compiler_static='-Bstatic'
11268 case $cc_basename in
11269 f77* | f90* | f95*)
11270 lt_prog_compiler_wl='-Qoption ld ';;
11271 *)
11272 lt_prog_compiler_wl='-Wl,';;
11273 esac
11274 ;;
11275
11276 sunos4*)
11277 lt_prog_compiler_wl='-Qoption ld '
11278 lt_prog_compiler_pic='-PIC'
11279 lt_prog_compiler_static='-Bstatic'
11280 ;;
11281
11282 sysv4 | sysv4.2uw2* | sysv4.3*)
11283 lt_prog_compiler_wl='-Wl,'
11284 lt_prog_compiler_pic='-KPIC'
11285 lt_prog_compiler_static='-Bstatic'
11286 ;;
11287
11288 sysv4*MP*)
11289 if test -d /usr/nec ;then
11290 lt_prog_compiler_pic='-Kconform_pic'
11291 lt_prog_compiler_static='-Bstatic'
11292 fi
11293 ;;
11294
11295 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11296 lt_prog_compiler_wl='-Wl,'
11297 lt_prog_compiler_pic='-KPIC'
11298 lt_prog_compiler_static='-Bstatic'
11299 ;;
11300
11301 unicos*)
11302 lt_prog_compiler_wl='-Wl,'
11303 lt_prog_compiler_can_build_shared=no
11304 ;;
11305
11306 uts4*)
11307 lt_prog_compiler_pic='-pic'
11308 lt_prog_compiler_static='-Bstatic'
11309 ;;
11310
11311 *)
11312 lt_prog_compiler_can_build_shared=no
11313 ;;
11314 esac
11315 fi
11316
11317case $host_os in
11318 # For platforms which do not support PIC, -DPIC is meaningless:
11319 *djgpp*)
11320 lt_prog_compiler_pic=
11321 ;;
11322 *)
11323 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11324 ;;
11325esac
cristy8b350f62009-11-15 23:12:43 +000011326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011327$as_echo "$lt_prog_compiler_pic" >&6; }
11328
11329
11330
11331
11332
11333
11334#
11335# Check to make sure the PIC flag actually works.
11336#
11337if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011339$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011340if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011341 $as_echo_n "(cached) " >&6
11342else
11343 lt_cv_prog_compiler_pic_works=no
11344 ac_outfile=conftest.$ac_objext
11345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11346 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11347 # Insert the option either (1) after the last *FLAGS variable, or
11348 # (2) before a word containing "conftest.", or (3) at the end.
11349 # Note that $ac_compile itself does not contain backslashes and begins
11350 # with a dollar sign (not a hyphen), so the echo should work correctly.
11351 # The option is referenced via a variable to avoid confusing sed.
11352 lt_compile=`echo "$ac_compile" | $SED \
11353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11355 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011357 (eval "$lt_compile" 2>conftest.err)
11358 ac_status=$?
11359 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011361 if (exit $ac_status) && test -s "$ac_outfile"; then
11362 # The compiler can only warn and ignore the option if not recognized
11363 # So say no if there are warnings other than the usual output.
cristy932c9122009-11-19 13:57:03 +000011364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11367 lt_cv_prog_compiler_pic_works=yes
11368 fi
11369 fi
11370 $RM conftest*
11371
11372fi
cristy8b350f62009-11-15 23:12:43 +000011373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011374$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11375
11376if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11377 case $lt_prog_compiler_pic in
11378 "" | " "*) ;;
11379 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11380 esac
11381else
11382 lt_prog_compiler_pic=
11383 lt_prog_compiler_can_build_shared=no
11384fi
11385
11386fi
11387
11388
11389
11390
11391
11392
11393#
11394# Check to make sure the static flag actually works.
11395#
11396wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011398$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011399if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011400 $as_echo_n "(cached) " >&6
11401else
11402 lt_cv_prog_compiler_static_works=no
11403 save_LDFLAGS="$LDFLAGS"
11404 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11405 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11407 # The linker can only warn and ignore the option if not recognized
11408 # So say no if there are warnings
11409 if test -s conftest.err; then
11410 # Append any errors to the config.log.
11411 cat conftest.err 1>&5
cristy932c9122009-11-19 13:57:03 +000011412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11414 if diff conftest.exp conftest.er2 >/dev/null; then
11415 lt_cv_prog_compiler_static_works=yes
11416 fi
11417 else
11418 lt_cv_prog_compiler_static_works=yes
11419 fi
11420 fi
11421 $RM -r conftest*
11422 LDFLAGS="$save_LDFLAGS"
11423
11424fi
cristy8b350f62009-11-15 23:12:43 +000011425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011426$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11427
11428if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11429 :
11430else
11431 lt_prog_compiler_static=
11432fi
11433
11434
11435
11436
11437
11438
11439
cristy8b350f62009-11-15 23:12:43 +000011440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011441$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011442if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011443 $as_echo_n "(cached) " >&6
11444else
11445 lt_cv_prog_compiler_c_o=no
11446 $RM -r conftest 2>/dev/null
11447 mkdir conftest
11448 cd conftest
11449 mkdir out
11450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11451
11452 lt_compiler_flag="-o out/conftest2.$ac_objext"
11453 # Insert the option either (1) after the last *FLAGS variable, or
11454 # (2) before a word containing "conftest.", or (3) at the end.
11455 # Note that $ac_compile itself does not contain backslashes and begins
11456 # with a dollar sign (not a hyphen), so the echo should work correctly.
11457 lt_compile=`echo "$ac_compile" | $SED \
11458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11460 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011462 (eval "$lt_compile" 2>out/conftest.err)
11463 ac_status=$?
11464 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11467 then
11468 # The compiler can only warn and ignore the option if not recognized
11469 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000011470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11473 lt_cv_prog_compiler_c_o=yes
11474 fi
11475 fi
11476 chmod u+w . 2>&5
11477 $RM conftest*
11478 # SGI C++ compiler will create directory out/ii_files/ for
11479 # template instantiation
11480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11481 $RM out/* && rmdir out
11482 cd ..
11483 $RM -r conftest
11484 $RM conftest*
11485
11486fi
cristy8b350f62009-11-15 23:12:43 +000011487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011488$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11489
11490
11491
11492
11493
11494
cristy8b350f62009-11-15 23:12:43 +000011495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011496$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011497if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011498 $as_echo_n "(cached) " >&6
11499else
11500 lt_cv_prog_compiler_c_o=no
11501 $RM -r conftest 2>/dev/null
11502 mkdir conftest
11503 cd conftest
11504 mkdir out
11505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11506
11507 lt_compiler_flag="-o out/conftest2.$ac_objext"
11508 # Insert the option either (1) after the last *FLAGS variable, or
11509 # (2) before a word containing "conftest.", or (3) at the end.
11510 # Note that $ac_compile itself does not contain backslashes and begins
11511 # with a dollar sign (not a hyphen), so the echo should work correctly.
11512 lt_compile=`echo "$ac_compile" | $SED \
11513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11515 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011517 (eval "$lt_compile" 2>out/conftest.err)
11518 ac_status=$?
11519 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11522 then
11523 # The compiler can only warn and ignore the option if not recognized
11524 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000011525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11528 lt_cv_prog_compiler_c_o=yes
11529 fi
11530 fi
11531 chmod u+w . 2>&5
11532 $RM conftest*
11533 # SGI C++ compiler will create directory out/ii_files/ for
11534 # template instantiation
11535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11536 $RM out/* && rmdir out
11537 cd ..
11538 $RM -r conftest
11539 $RM conftest*
11540
11541fi
cristy8b350f62009-11-15 23:12:43 +000011542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011543$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11544
11545
11546
11547
11548hard_links="nottested"
11549if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11550 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000011551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000011552$as_echo_n "checking if we can lock with hard links... " >&6; }
11553 hard_links=yes
11554 $RM conftest*
11555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11556 touch conftest.a
11557 ln conftest.a conftest.b 2>&5 || hard_links=no
11558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000011559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000011560$as_echo "$hard_links" >&6; }
11561 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000011562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000011563$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11564 need_locks=warn
11565 fi
11566else
11567 need_locks=no
11568fi
11569
11570
11571
11572
11573
11574
cristy8b350f62009-11-15 23:12:43 +000011575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000011576$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11577
11578 runpath_var=
11579 allow_undefined_flag=
11580 always_export_symbols=no
11581 archive_cmds=
11582 archive_expsym_cmds=
11583 compiler_needs_object=no
11584 enable_shared_with_static_runtimes=no
11585 export_dynamic_flag_spec=
11586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11587 hardcode_automatic=no
11588 hardcode_direct=no
11589 hardcode_direct_absolute=no
11590 hardcode_libdir_flag_spec=
11591 hardcode_libdir_flag_spec_ld=
11592 hardcode_libdir_separator=
11593 hardcode_minus_L=no
11594 hardcode_shlibpath_var=unsupported
11595 inherit_rpath=no
11596 link_all_deplibs=unknown
11597 module_cmds=
11598 module_expsym_cmds=
11599 old_archive_from_new_cmds=
11600 old_archive_from_expsyms_cmds=
11601 thread_safe_flag_spec=
11602 whole_archive_flag_spec=
11603 # include_expsyms should be a list of space-separated symbols to be *always*
11604 # included in the symbol list
11605 include_expsyms=
11606 # exclude_expsyms can be an extended regexp of symbols to exclude
11607 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11608 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11609 # as well as any symbol that contains `d'.
11610 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11611 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11612 # platforms (ab)use it in PIC code, but their linkers get confused if
11613 # the symbol is explicitly referenced. Since portable code cannot
11614 # rely on this symbol name, it's probably fine to never include it in
11615 # preloaded symbol tables.
11616 # Exclude shared library initialization/finalization symbols.
11617 extract_expsyms_cmds=
11618
11619 case $host_os in
11620 cygwin* | mingw* | pw32* | cegcc*)
11621 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11622 # When not using gcc, we currently assume that we are using
11623 # Microsoft Visual C++.
11624 if test "$GCC" != yes; then
11625 with_gnu_ld=no
11626 fi
11627 ;;
11628 interix*)
11629 # we just hope/assume this is gcc and not c89 (= MSVC++)
11630 with_gnu_ld=yes
11631 ;;
11632 openbsd*)
11633 with_gnu_ld=no
11634 ;;
11635 esac
11636
11637 ld_shlibs=yes
cristy932c9122009-11-19 13:57:03 +000011638
11639 # On some targets, GNU ld is compatible enough with the native linker
11640 # that we're better off using the native interface for both.
11641 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000011642 if test "$with_gnu_ld" = yes; then
cristy932c9122009-11-19 13:57:03 +000011643 case $host_os in
11644 aix*)
11645 # The AIX port of GNU ld has always aspired to compatibility
11646 # with the native linker. However, as the warning in the GNU ld
11647 # block says, versions before 2.19.5* couldn't really create working
11648 # shared libraries, regardless of the interface used.
11649 case `$LD -v 2>&1` in
11650 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11651 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11652 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11653 *)
11654 lt_use_gnu_ld_interface=yes
11655 ;;
11656 esac
11657 ;;
11658 *)
11659 lt_use_gnu_ld_interface=yes
11660 ;;
11661 esac
11662 fi
11663
11664 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000011665 # If archive_cmds runs LD, not CC, wlarc should be empty
11666 wlarc='${wl}'
11667
11668 # Set some defaults for GNU ld with shared library support. These
11669 # are reset later if shared libraries are not supported. Putting them
11670 # here allows them to be overridden if necessary.
11671 runpath_var=LD_RUN_PATH
11672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11673 export_dynamic_flag_spec='${wl}--export-dynamic'
11674 # ancient GNU ld didn't support --whole-archive et. al.
11675 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11676 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11677 else
11678 whole_archive_flag_spec=
11679 fi
11680 supports_anon_versioning=no
11681 case `$LD -v 2>&1` in
11682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11685 *\ 2.11.*) ;; # other 2.11 versions
11686 *) supports_anon_versioning=yes ;;
11687 esac
11688
11689 # See if GNU ld supports shared libraries.
11690 case $host_os in
11691 aix[3-9]*)
11692 # On AIX/PPC, the GNU linker is very broken
11693 if test "$host_cpu" != ia64; then
11694 ld_shlibs=no
11695 cat <<_LT_EOF 1>&2
11696
cristy932c9122009-11-19 13:57:03 +000011697*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000011698*** to be unable to reliably create shared libraries on AIX.
11699*** Therefore, libtool is disabling shared libraries support. If you
cristy932c9122009-11-19 13:57:03 +000011700*** really care for shared libraries, you may want to install binutils
11701*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11702*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000011703
11704_LT_EOF
11705 fi
11706 ;;
11707
11708 amigaos*)
11709 case $host_cpu in
11710 powerpc)
11711 # see comment about AmigaOS4 .so support
11712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11713 archive_expsym_cmds=''
11714 ;;
11715 m68k)
11716 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)'
11717 hardcode_libdir_flag_spec='-L$libdir'
11718 hardcode_minus_L=yes
11719 ;;
11720 esac
11721 ;;
11722
11723 beos*)
11724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11725 allow_undefined_flag=unsupported
11726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11727 # support --undefined. This deserves some investigation. FIXME
11728 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11729 else
11730 ld_shlibs=no
11731 fi
11732 ;;
11733
11734 cygwin* | mingw* | pw32* | cegcc*)
11735 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11736 # as there is no search path for DLLs.
11737 hardcode_libdir_flag_spec='-L$libdir'
cristy932c9122009-11-19 13:57:03 +000011738 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000011739 allow_undefined_flag=unsupported
11740 always_export_symbols=no
11741 enable_shared_with_static_runtimes=yes
11742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11743
11744 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11746 # If the export-symbols file already is a .def file (1st line
11747 # is EXPORTS), use it as is; otherwise, prepend...
11748 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11749 cp $export_symbols $output_objdir/$soname.def;
11750 else
11751 echo EXPORTS > $output_objdir/$soname.def;
11752 cat $export_symbols >> $output_objdir/$soname.def;
11753 fi~
11754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11755 else
11756 ld_shlibs=no
11757 fi
11758 ;;
11759
cristy932c9122009-11-19 13:57:03 +000011760 haiku*)
11761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762 link_all_deplibs=yes
11763 ;;
11764
cristy3ed852e2009-09-05 21:47:34 +000011765 interix[3-9]*)
11766 hardcode_direct=no
11767 hardcode_shlibpath_var=no
11768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11769 export_dynamic_flag_spec='${wl}-E'
11770 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11771 # Instead, shared libraries are loaded at an image base (0x10000000 by
11772 # default) and relocated if they conflict, which is a slow very memory
11773 # consuming and fragmenting process. To avoid this, we pick a random,
11774 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11775 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11777 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'
11778 ;;
11779
cristy932c9122009-11-19 13:57:03 +000011780 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011781 tmp_diet=no
11782 if test "$host_os" = linux-dietlibc; then
11783 case $cc_basename in
11784 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11785 esac
11786 fi
11787 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11788 && test "$tmp_diet" = no
11789 then
11790 tmp_addflag=
11791 tmp_sharedflag='-shared'
11792 case $cc_basename,$host_cpu in
11793 pgcc*) # Portland Group C compiler
cristy932c9122009-11-19 13:57:03 +000011794 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'
cristy3ed852e2009-09-05 21:47:34 +000011795 tmp_addflag=' $pic_flag'
11796 ;;
cristy932c9122009-11-19 13:57:03 +000011797 pgf77* | pgf90* | pgf95* | pgfortran*)
11798 # Portland Group f77 and f90 compilers
11799 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'
cristy3ed852e2009-09-05 21:47:34 +000011800 tmp_addflag=' $pic_flag -Mnomain' ;;
11801 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11802 tmp_addflag=' -i_dynamic' ;;
11803 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11804 tmp_addflag=' -i_dynamic -nofor_main' ;;
11805 ifc* | ifort*) # Intel Fortran compiler
11806 tmp_addflag=' -nofor_main' ;;
11807 lf95*) # Lahey Fortran 8.1
11808 whole_archive_flag_spec=
11809 tmp_sharedflag='--shared' ;;
cristy932c9122009-11-19 13:57:03 +000011810 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000011811 tmp_sharedflag='-qmkshrobj'
11812 tmp_addflag= ;;
cristy932c9122009-11-19 13:57:03 +000011813 nvcc*) # Cuda Compiler Driver 2.2
11814 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'
11815 compiler_needs_object=yes
11816 ;;
cristy3ed852e2009-09-05 21:47:34 +000011817 esac
11818 case `$CC -V 2>&1 | sed 5q` in
11819 *Sun\ C*) # Sun C 5.9
cristy932c9122009-11-19 13:57:03 +000011820 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'
cristy3ed852e2009-09-05 21:47:34 +000011821 compiler_needs_object=yes
11822 tmp_sharedflag='-G' ;;
11823 *Sun\ F*) # Sun Fortran 8.3
11824 tmp_sharedflag='-G' ;;
11825 esac
11826 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11827
11828 if test "x$supports_anon_versioning" = xyes; then
11829 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11831 echo "local: *; };" >> $output_objdir/$libname.ver~
11832 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11833 fi
11834
11835 case $cc_basename in
cristy932c9122009-11-19 13:57:03 +000011836 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000011837 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11838 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11839 hardcode_libdir_flag_spec=
11840 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11841 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11842 if test "x$supports_anon_versioning" = xyes; then
11843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11845 echo "local: *; };" >> $output_objdir/$libname.ver~
11846 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11847 fi
11848 ;;
11849 esac
11850 else
11851 ld_shlibs=no
11852 fi
11853 ;;
11854
11855 netbsd*)
11856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11857 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11858 wlarc=
11859 else
11860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11862 fi
11863 ;;
11864
11865 solaris*)
11866 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11867 ld_shlibs=no
11868 cat <<_LT_EOF 1>&2
11869
11870*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11871*** create shared libraries on Solaris systems. Therefore, libtool
11872*** is disabling shared libraries support. We urge you to upgrade GNU
11873*** binutils to release 2.9.1 or newer. Another option is to modify
11874*** your PATH or compiler configuration so that the native linker is
11875*** used, and then restart.
11876
11877_LT_EOF
11878 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11881 else
11882 ld_shlibs=no
11883 fi
11884 ;;
11885
11886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11887 case `$LD -v 2>&1` in
11888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11889 ld_shlibs=no
11890 cat <<_LT_EOF 1>&2
11891
11892*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11893*** reliably create shared libraries on SCO systems. Therefore, libtool
11894*** is disabling shared libraries support. We urge you to upgrade GNU
11895*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11896*** your PATH or compiler configuration so that the native linker is
11897*** used, and then restart.
11898
11899_LT_EOF
11900 ;;
11901 *)
11902 # For security reasons, it is highly recommended that you always
11903 # use absolute paths for naming shared libraries, and exclude the
11904 # DT_RUNPATH tag from executables and libraries. But doing so
11905 # requires that you compile everything twice, which is a pain.
11906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11910 else
11911 ld_shlibs=no
11912 fi
11913 ;;
11914 esac
11915 ;;
11916
11917 sunos4*)
11918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11919 wlarc=
11920 hardcode_direct=yes
11921 hardcode_shlibpath_var=no
11922 ;;
11923
11924 *)
11925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11928 else
11929 ld_shlibs=no
11930 fi
11931 ;;
11932 esac
11933
11934 if test "$ld_shlibs" = no; then
11935 runpath_var=
11936 hardcode_libdir_flag_spec=
11937 export_dynamic_flag_spec=
11938 whole_archive_flag_spec=
11939 fi
11940 else
11941 # PORTME fill in a description of your system's linker (not GNU ld)
11942 case $host_os in
11943 aix3*)
11944 allow_undefined_flag=unsupported
11945 always_export_symbols=yes
11946 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'
11947 # Note: this linker hardcodes the directories in LIBPATH if there
11948 # are no directories specified by -L.
11949 hardcode_minus_L=yes
11950 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11951 # Neither direct hardcoding nor static linking is supported with a
11952 # broken collect2.
11953 hardcode_direct=unsupported
11954 fi
11955 ;;
11956
11957 aix[4-9]*)
11958 if test "$host_cpu" = ia64; then
11959 # On IA64, the linker does run time linking by default, so we don't
11960 # have to do anything special.
11961 aix_use_runtimelinking=no
11962 exp_sym_flag='-Bexport'
11963 no_entry_flag=""
11964 else
11965 # If we're using GNU nm, then we don't want the "-C" option.
11966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy932c9122009-11-19 13:57:03 +000011967 # Also, AIX nm treats weak defined symbols like other global
11968 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000011969 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy932c9122009-11-19 13:57:03 +000011970 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'
cristy3ed852e2009-09-05 21:47:34 +000011971 else
11972 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'
11973 fi
11974 aix_use_runtimelinking=no
11975
11976 # Test if we are trying to use run time linking or normal
11977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11978 # need to do runtime linking.
11979 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11980 for ld_flag in $LDFLAGS; do
11981 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11982 aix_use_runtimelinking=yes
11983 break
11984 fi
11985 done
11986 ;;
11987 esac
11988
11989 exp_sym_flag='-bexport'
11990 no_entry_flag='-bnoentry'
11991 fi
11992
11993 # When large executables or shared objects are built, AIX ld can
11994 # have problems creating the table of contents. If linking a library
11995 # or program results in "error TOC overflow" add -mminimal-toc to
11996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11998
11999 archive_cmds=''
12000 hardcode_direct=yes
12001 hardcode_direct_absolute=yes
12002 hardcode_libdir_separator=':'
12003 link_all_deplibs=yes
12004 file_list_spec='${wl}-f,'
12005
12006 if test "$GCC" = yes; then
12007 case $host_os in aix4.[012]|aix4.[012].*)
12008 # We only want to do this on AIX 4.2 and lower, the check
12009 # below for broken collect2 doesn't work under 4.3+
12010 collect2name=`${CC} -print-prog-name=collect2`
12011 if test -f "$collect2name" &&
12012 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12013 then
12014 # We have reworked collect2
12015 :
12016 else
12017 # We have old collect2
12018 hardcode_direct=unsupported
12019 # It fails to find uninstalled libraries when the uninstalled
12020 # path is not listed in the libpath. Setting hardcode_minus_L
12021 # to unsupported forces relinking
12022 hardcode_minus_L=yes
12023 hardcode_libdir_flag_spec='-L$libdir'
12024 hardcode_libdir_separator=
12025 fi
12026 ;;
12027 esac
12028 shared_flag='-shared'
12029 if test "$aix_use_runtimelinking" = yes; then
12030 shared_flag="$shared_flag "'${wl}-G'
12031 fi
12032 else
12033 # not using gcc
12034 if test "$host_cpu" = ia64; then
12035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12036 # chokes on -Wl,-G. The following line is correct:
12037 shared_flag='-G'
12038 else
12039 if test "$aix_use_runtimelinking" = yes; then
12040 shared_flag='${wl}-G'
12041 else
12042 shared_flag='${wl}-bM:SRE'
12043 fi
12044 fi
12045 fi
12046
12047 export_dynamic_flag_spec='${wl}-bexpall'
12048 # It seems that -bexpall does not export symbols beginning with
12049 # underscore (_), so it is better to generate a list of symbols to export.
12050 always_export_symbols=yes
12051 if test "$aix_use_runtimelinking" = yes; then
12052 # Warning - without using the other runtime loading flags (-brtl),
12053 # -berok will link without error, but may produce a broken library.
12054 allow_undefined_flag='-berok'
12055 # Determine the default libpath from the value encoded in an
12056 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012058/* end confdefs.h. */
12059
12060int
12061main ()
12062{
12063
12064 ;
12065 return 0;
12066}
12067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012068if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012069
12070lt_aix_libpath_sed='
12071 /Import File Strings/,/^$/ {
12072 /^0/ {
12073 s/^0 *\(.*\)$/\1/
12074 p
12075 }
12076 }'
12077aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12078# Check for a 64-bit object if we didn't find anything.
12079if test -z "$aix_libpath"; then
12080 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12081fi
cristy3ed852e2009-09-05 21:47:34 +000012082fi
cristy8b350f62009-11-15 23:12:43 +000012083rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12086
12087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy932c9122009-11-19 13:57:03 +000012088 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"
cristy3ed852e2009-09-05 21:47:34 +000012089 else
12090 if test "$host_cpu" = ia64; then
12091 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12092 allow_undefined_flag="-z nodefs"
12093 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"
12094 else
12095 # Determine the default libpath from the value encoded in an
12096 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012098/* end confdefs.h. */
12099
12100int
12101main ()
12102{
12103
12104 ;
12105 return 0;
12106}
12107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012109
12110lt_aix_libpath_sed='
12111 /Import File Strings/,/^$/ {
12112 /^0/ {
12113 s/^0 *\(.*\)$/\1/
12114 p
12115 }
12116 }'
12117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12118# Check for a 64-bit object if we didn't find anything.
12119if test -z "$aix_libpath"; then
12120 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12121fi
cristy3ed852e2009-09-05 21:47:34 +000012122fi
cristy8b350f62009-11-15 23:12:43 +000012123rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012125if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12126
12127 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12128 # Warning - without using the other run time loading flags,
12129 # -berok will link without error, but may produce a broken library.
12130 no_undefined_flag=' ${wl}-bernotok'
12131 allow_undefined_flag=' ${wl}-berok'
cristy932c9122009-11-19 13:57:03 +000012132 if test "$with_gnu_ld" = yes; then
12133 # We only use this code for GNU lds that support --whole-archive.
12134 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12135 else
12136 # Exported symbols can be pulled into shared objects from archives
12137 whole_archive_flag_spec='$convenience'
12138 fi
cristy3ed852e2009-09-05 21:47:34 +000012139 archive_cmds_need_lc=yes
12140 # This is similar to how AIX traditionally builds its shared libraries.
12141 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'
12142 fi
12143 fi
12144 ;;
12145
12146 amigaos*)
12147 case $host_cpu in
12148 powerpc)
12149 # see comment about AmigaOS4 .so support
12150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 archive_expsym_cmds=''
12152 ;;
12153 m68k)
12154 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)'
12155 hardcode_libdir_flag_spec='-L$libdir'
12156 hardcode_minus_L=yes
12157 ;;
12158 esac
12159 ;;
12160
12161 bsdi[45]*)
12162 export_dynamic_flag_spec=-rdynamic
12163 ;;
12164
12165 cygwin* | mingw* | pw32* | cegcc*)
12166 # When not using gcc, we currently assume that we are using
12167 # Microsoft Visual C++.
12168 # hardcode_libdir_flag_spec is actually meaningless, as there is
12169 # no search path for DLLs.
12170 hardcode_libdir_flag_spec=' '
12171 allow_undefined_flag=unsupported
12172 # Tell ltmain to make .lib files, not .a files.
12173 libext=lib
12174 # Tell ltmain to make .dll files, not .so files.
12175 shrext_cmds=".dll"
12176 # FIXME: Setting linknames here is a bad hack.
cristy932c9122009-11-19 13:57:03 +000012177 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012178 # The linker will automatically build a .lib file if we build a DLL.
12179 old_archive_from_new_cmds='true'
12180 # FIXME: Should let the user specify the lib program.
12181 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12182 fix_srcfile_path='`cygpath -w "$srcfile"`'
12183 enable_shared_with_static_runtimes=yes
12184 ;;
12185
12186 darwin* | rhapsody*)
12187
12188
12189 archive_cmds_need_lc=no
12190 hardcode_direct=no
12191 hardcode_automatic=yes
12192 hardcode_shlibpath_var=unsupported
cristy932c9122009-11-19 13:57:03 +000012193 if test "$lt_cv_ld_force_load" = "yes"; then
12194 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\"`'
12195 else
12196 whole_archive_flag_spec=''
12197 fi
cristy3ed852e2009-09-05 21:47:34 +000012198 link_all_deplibs=yes
12199 allow_undefined_flag="$_lt_dar_allow_undefined"
12200 case $cc_basename in
12201 ifort*) _lt_dar_can_shared=yes ;;
12202 *) _lt_dar_can_shared=$GCC ;;
12203 esac
12204 if test "$_lt_dar_can_shared" = "yes"; then
cristy932c9122009-11-19 13:57:03 +000012205 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000012206 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12207 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12208 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}"
12209 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}"
12210
12211 else
12212 ld_shlibs=no
12213 fi
12214
12215 ;;
12216
12217 dgux*)
12218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12219 hardcode_libdir_flag_spec='-L$libdir'
12220 hardcode_shlibpath_var=no
12221 ;;
12222
12223 freebsd1*)
12224 ld_shlibs=no
12225 ;;
12226
12227 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12228 # support. Future versions do this automatically, but an explicit c++rt0.o
12229 # does not break anything, and helps significantly (at the cost of a little
12230 # extra space).
12231 freebsd2.2*)
12232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12233 hardcode_libdir_flag_spec='-R$libdir'
12234 hardcode_direct=yes
12235 hardcode_shlibpath_var=no
12236 ;;
12237
12238 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12239 freebsd2*)
12240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12241 hardcode_direct=yes
12242 hardcode_minus_L=yes
12243 hardcode_shlibpath_var=no
12244 ;;
12245
12246 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12247 freebsd* | dragonfly*)
12248 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12249 hardcode_libdir_flag_spec='-R$libdir'
12250 hardcode_direct=yes
12251 hardcode_shlibpath_var=no
12252 ;;
12253
12254 hpux9*)
12255 if test "$GCC" = yes; then
12256 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12257 else
12258 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'
12259 fi
12260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12261 hardcode_libdir_separator=:
12262 hardcode_direct=yes
12263
12264 # hardcode_minus_L: Not really in the search PATH,
12265 # but as the default location of the library.
12266 hardcode_minus_L=yes
12267 export_dynamic_flag_spec='${wl}-E'
12268 ;;
12269
12270 hpux10*)
cristy932c9122009-11-19 13:57:03 +000012271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012272 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12273 else
12274 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12275 fi
12276 if test "$with_gnu_ld" = no; then
12277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12278 hardcode_libdir_flag_spec_ld='+b $libdir'
12279 hardcode_libdir_separator=:
12280 hardcode_direct=yes
12281 hardcode_direct_absolute=yes
12282 export_dynamic_flag_spec='${wl}-E'
12283 # hardcode_minus_L: Not really in the search PATH,
12284 # but as the default location of the library.
12285 hardcode_minus_L=yes
12286 fi
12287 ;;
12288
12289 hpux11*)
cristy932c9122009-11-19 13:57:03 +000012290 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012291 case $host_cpu in
12292 hppa*64*)
12293 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 ;;
12295 ia64*)
12296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12297 ;;
12298 *)
12299 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12300 ;;
12301 esac
12302 else
12303 case $host_cpu in
12304 hppa*64*)
12305 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12306 ;;
12307 ia64*)
12308 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12309 ;;
12310 *)
cristy932c9122009-11-19 13:57:03 +000012311
12312 # Older versions of the 11.00 compiler do not understand -b yet
12313 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12315$as_echo_n "checking if $CC understands -b... " >&6; }
12316if test "${lt_cv_prog_compiler__b+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318else
12319 lt_cv_prog_compiler__b=no
12320 save_LDFLAGS="$LDFLAGS"
12321 LDFLAGS="$LDFLAGS -b"
12322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12324 # The linker can only warn and ignore the option if not recognized
12325 # So say no if there are warnings
12326 if test -s conftest.err; then
12327 # Append any errors to the config.log.
12328 cat conftest.err 1>&5
12329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12331 if diff conftest.exp conftest.er2 >/dev/null; then
12332 lt_cv_prog_compiler__b=yes
12333 fi
12334 else
12335 lt_cv_prog_compiler__b=yes
12336 fi
12337 fi
12338 $RM -r conftest*
12339 LDFLAGS="$save_LDFLAGS"
12340
12341fi
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12343$as_echo "$lt_cv_prog_compiler__b" >&6; }
12344
12345if test x"$lt_cv_prog_compiler__b" = xyes; then
12346 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12347else
12348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12349fi
12350
cristy3ed852e2009-09-05 21:47:34 +000012351 ;;
12352 esac
12353 fi
12354 if test "$with_gnu_ld" = no; then
12355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12356 hardcode_libdir_separator=:
12357
12358 case $host_cpu in
12359 hppa*64*|ia64*)
12360 hardcode_direct=no
12361 hardcode_shlibpath_var=no
12362 ;;
12363 *)
12364 hardcode_direct=yes
12365 hardcode_direct_absolute=yes
12366 export_dynamic_flag_spec='${wl}-E'
12367
12368 # hardcode_minus_L: Not really in the search PATH,
12369 # but as the default location of the library.
12370 hardcode_minus_L=yes
12371 ;;
12372 esac
12373 fi
12374 ;;
12375
12376 irix5* | irix6* | nonstopux*)
12377 if test "$GCC" = yes; then
cristy932c9122009-11-19 13:57:03 +000012378 archive_cmds='$CC -shared $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'
cristy3ed852e2009-09-05 21:47:34 +000012379 # Try to use the -exported_symbol ld option, if it does not
12380 # work, assume that -exports_file does not work either and
12381 # implicitly export all symbols.
12382 save_LDFLAGS="$LDFLAGS"
12383 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012386int foo(void) {}
12387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012388if ac_fn_c_try_link "$LINENO"; then :
cristy932c9122009-11-19 13:57:03 +000012389 archive_expsym_cmds='$CC -shared $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'
cristy3ed852e2009-09-05 21:47:34 +000012390
cristy3ed852e2009-09-05 21:47:34 +000012391fi
cristy8b350f62009-11-15 23:12:43 +000012392rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012394 LDFLAGS="$save_LDFLAGS"
12395 else
cristy932c9122009-11-19 13:57:03 +000012396 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'
12397 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'
cristy3ed852e2009-09-05 21:47:34 +000012398 fi
12399 archive_cmds_need_lc='no'
12400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12401 hardcode_libdir_separator=:
12402 inherit_rpath=yes
12403 link_all_deplibs=yes
12404 ;;
12405
12406 netbsd*)
12407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12409 else
12410 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12411 fi
12412 hardcode_libdir_flag_spec='-R$libdir'
12413 hardcode_direct=yes
12414 hardcode_shlibpath_var=no
12415 ;;
12416
12417 newsos6)
12418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12419 hardcode_direct=yes
12420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12421 hardcode_libdir_separator=:
12422 hardcode_shlibpath_var=no
12423 ;;
12424
12425 *nto* | *qnx*)
12426 ;;
12427
12428 openbsd*)
12429 if test -f /usr/libexec/ld.so; then
12430 hardcode_direct=yes
12431 hardcode_shlibpath_var=no
12432 hardcode_direct_absolute=yes
12433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12435 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12437 export_dynamic_flag_spec='${wl}-E'
12438 else
12439 case $host_os in
12440 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12442 hardcode_libdir_flag_spec='-R$libdir'
12443 ;;
12444 *)
12445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12447 ;;
12448 esac
12449 fi
12450 else
12451 ld_shlibs=no
12452 fi
12453 ;;
12454
12455 os2*)
12456 hardcode_libdir_flag_spec='-L$libdir'
12457 hardcode_minus_L=yes
12458 allow_undefined_flag=unsupported
cristy932c9122009-11-19 13:57:03 +000012459 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'
cristy3ed852e2009-09-05 21:47:34 +000012460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12461 ;;
12462
12463 osf3*)
12464 if test "$GCC" = yes; then
12465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy932c9122009-11-19 13:57:03 +000012466 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'
cristy3ed852e2009-09-05 21:47:34 +000012467 else
12468 allow_undefined_flag=' -expect_unresolved \*'
cristy932c9122009-11-19 13:57:03 +000012469 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'
cristy3ed852e2009-09-05 21:47:34 +000012470 fi
12471 archive_cmds_need_lc='no'
12472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12473 hardcode_libdir_separator=:
12474 ;;
12475
12476 osf4* | osf5*) # as osf3* with the addition of -msym flag
12477 if test "$GCC" = yes; then
12478 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy932c9122009-11-19 13:57:03 +000012479 archive_cmds='$CC -shared${allow_undefined_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'
cristy3ed852e2009-09-05 21:47:34 +000012480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12481 else
12482 allow_undefined_flag=' -expect_unresolved \*'
cristy932c9122009-11-19 13:57:03 +000012483 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'
cristy3ed852e2009-09-05 21:47:34 +000012484 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~
cristy932c9122009-11-19 13:57:03 +000012485 $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'
cristy3ed852e2009-09-05 21:47:34 +000012486
12487 # Both c and cxx compiler support -rpath directly
12488 hardcode_libdir_flag_spec='-rpath $libdir'
12489 fi
12490 archive_cmds_need_lc='no'
12491 hardcode_libdir_separator=:
12492 ;;
12493
12494 solaris*)
12495 no_undefined_flag=' -z defs'
12496 if test "$GCC" = yes; then
12497 wlarc='${wl}'
12498 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12500 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12501 else
12502 case `$CC -V 2>&1` in
12503 *"Compilers 5.0"*)
12504 wlarc=''
12505 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12508 ;;
12509 *)
12510 wlarc='${wl}'
12511 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12513 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12514 ;;
12515 esac
12516 fi
12517 hardcode_libdir_flag_spec='-R$libdir'
12518 hardcode_shlibpath_var=no
12519 case $host_os in
12520 solaris2.[0-5] | solaris2.[0-5].*) ;;
12521 *)
12522 # The compiler driver will combine and reorder linker options,
12523 # but understands `-z linker_flag'. GCC discards it without `$wl',
12524 # but is careful enough not to reorder.
12525 # Supported since Solaris 2.6 (maybe 2.5.1?)
12526 if test "$GCC" = yes; then
12527 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12528 else
12529 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12530 fi
12531 ;;
12532 esac
12533 link_all_deplibs=yes
12534 ;;
12535
12536 sunos4*)
12537 if test "x$host_vendor" = xsequent; then
12538 # Use $CC to link under sequent, because it throws in some extra .o
12539 # files that make .init and .fini sections work.
12540 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12541 else
12542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12543 fi
12544 hardcode_libdir_flag_spec='-L$libdir'
12545 hardcode_direct=yes
12546 hardcode_minus_L=yes
12547 hardcode_shlibpath_var=no
12548 ;;
12549
12550 sysv4)
12551 case $host_vendor in
12552 sni)
12553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12554 hardcode_direct=yes # is this really true???
12555 ;;
12556 siemens)
12557 ## LD is ld it makes a PLAMLIB
12558 ## CC just makes a GrossModule.
12559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12560 reload_cmds='$CC -r -o $output$reload_objs'
12561 hardcode_direct=no
12562 ;;
12563 motorola)
12564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12566 ;;
12567 esac
12568 runpath_var='LD_RUN_PATH'
12569 hardcode_shlibpath_var=no
12570 ;;
12571
12572 sysv4.3*)
12573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574 hardcode_shlibpath_var=no
12575 export_dynamic_flag_spec='-Bexport'
12576 ;;
12577
12578 sysv4*MP*)
12579 if test -d /usr/nec; then
12580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12581 hardcode_shlibpath_var=no
12582 runpath_var=LD_RUN_PATH
12583 hardcode_runpath_var=yes
12584 ld_shlibs=yes
12585 fi
12586 ;;
12587
12588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12589 no_undefined_flag='${wl}-z,text'
12590 archive_cmds_need_lc=no
12591 hardcode_shlibpath_var=no
12592 runpath_var='LD_RUN_PATH'
12593
12594 if test "$GCC" = yes; then
12595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597 else
12598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12600 fi
12601 ;;
12602
12603 sysv5* | sco3.2v5* | sco5v6*)
12604 # Note: We can NOT use -z defs as we might desire, because we do not
12605 # link with -lc, and that would cause any symbols used from libc to
12606 # always be unresolved, which means just about no library would
12607 # ever link correctly. If we're not using GNU ld we use -z text
12608 # though, which does catch some bad symbols but isn't as heavy-handed
12609 # as -z defs.
12610 no_undefined_flag='${wl}-z,text'
12611 allow_undefined_flag='${wl}-z,nodefs'
12612 archive_cmds_need_lc=no
12613 hardcode_shlibpath_var=no
12614 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12615 hardcode_libdir_separator=':'
12616 link_all_deplibs=yes
12617 export_dynamic_flag_spec='${wl}-Bexport'
12618 runpath_var='LD_RUN_PATH'
12619
12620 if test "$GCC" = yes; then
12621 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 else
12624 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12626 fi
12627 ;;
12628
12629 uts4*)
12630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12631 hardcode_libdir_flag_spec='-L$libdir'
12632 hardcode_shlibpath_var=no
12633 ;;
12634
12635 *)
12636 ld_shlibs=no
12637 ;;
12638 esac
12639
12640 if test x$host_vendor = xsni; then
12641 case $host in
12642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12643 export_dynamic_flag_spec='${wl}-Blargedynsym'
12644 ;;
12645 esac
12646 fi
12647 fi
12648
cristy8b350f62009-11-15 23:12:43 +000012649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000012650$as_echo "$ld_shlibs" >&6; }
12651test "$ld_shlibs" = no && can_build_shared=no
12652
12653with_gnu_ld=$with_gnu_ld
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669#
12670# Do we need to explicitly link libc?
12671#
12672case "x$archive_cmds_need_lc" in
12673x|xyes)
12674 # Assume -lc should be added
12675 archive_cmds_need_lc=yes
12676
12677 if test "$enable_shared" = yes && test "$GCC" = yes; then
12678 case $archive_cmds in
12679 *'~'*)
12680 # FIXME: we may have to deal with multi-command sequences.
12681 ;;
12682 '$CC '*)
12683 # Test whether the compiler implicitly links with -lc since on some
12684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12685 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000012686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000012687$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy932c9122009-11-19 13:57:03 +000012688if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12690else
12691 $RM conftest*
12692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012693
cristy932c9122009-11-19 13:57:03 +000012694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000012695 (eval $ac_compile) 2>&5
12696 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000012697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698 test $ac_status = 0; } 2>conftest.err; then
cristy932c9122009-11-19 13:57:03 +000012699 soname=conftest
12700 lib=conftest
12701 libobjs=conftest.$ac_objext
12702 deplibs=
12703 wl=$lt_prog_compiler_wl
12704 pic_flag=$lt_prog_compiler_pic
12705 compiler_flags=-v
12706 linker_flags=-v
12707 verstring=
12708 output_objdir=.
12709 libname=conftest
12710 lt_save_allow_undefined_flag=$allow_undefined_flag
12711 allow_undefined_flag=
12712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000012713 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12714 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000012715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12716 test $ac_status = 0; }
cristy932c9122009-11-19 13:57:03 +000012717 then
12718 lt_cv_archive_cmds_need_lc=no
12719 else
12720 lt_cv_archive_cmds_need_lc=yes
12721 fi
12722 allow_undefined_flag=$lt_save_allow_undefined_flag
12723 else
12724 cat conftest.err 1>&5
12725 fi
12726 $RM conftest*
12727
12728fi
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12730$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12731 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000012732 ;;
12733 esac
12734 fi
12735 ;;
12736esac
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
cristy8b350f62009-11-15 23:12:43 +000012894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000012895$as_echo_n "checking dynamic linker characteristics... " >&6; }
12896
12897if test "$GCC" = yes; then
12898 case $host_os in
12899 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12900 *) lt_awk_arg="/^libraries:/" ;;
12901 esac
cristy932c9122009-11-19 13:57:03 +000012902 case $host_os in
12903 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12904 *) lt_sed_strip_eq="s,=/,/,g" ;;
12905 esac
12906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12907 case $lt_search_path_spec in
12908 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000012909 # if the path contains ";" then we assume it to be the separator
12910 # otherwise default to the standard path separator (i.e. ":") - it is
12911 # assumed that no part of a normal pathname contains ";" but that should
12912 # okay in the real world where ";" in dirpaths is itself problematic.
cristy932c9122009-11-19 13:57:03 +000012913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12914 ;;
12915 *)
12916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12917 ;;
12918 esac
cristy3ed852e2009-09-05 21:47:34 +000012919 # Ok, now we have the path, separated by spaces, we can step through it
12920 # and add multilib dir if necessary.
12921 lt_tmp_lt_search_path_spec=
12922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12923 for lt_sys_path in $lt_search_path_spec; do
12924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12926 else
12927 test -d "$lt_sys_path" && \
12928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12929 fi
12930 done
cristy932c9122009-11-19 13:57:03 +000012931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000012932BEGIN {RS=" "; FS="/|\n";} {
12933 lt_foo="";
12934 lt_count=0;
12935 for (lt_i = NF; lt_i > 0; lt_i--) {
12936 if ($lt_i != "" && $lt_i != ".") {
12937 if ($lt_i == "..") {
12938 lt_count++;
12939 } else {
12940 if (lt_count == 0) {
12941 lt_foo="/" $lt_i lt_foo;
12942 } else {
12943 lt_count--;
12944 }
12945 }
12946 }
12947 }
12948 if (lt_foo != "") { lt_freq[lt_foo]++; }
12949 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12950}'`
cristy932c9122009-11-19 13:57:03 +000012951 # AWK program above erroneously prepends '/' to C:/dos/paths
12952 # for these hosts.
12953 case $host_os in
12954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12955 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12956 esac
12957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000012958else
12959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12960fi
12961library_names_spec=
12962libname_spec='lib$name'
12963soname_spec=
12964shrext_cmds=".so"
12965postinstall_cmds=
12966postuninstall_cmds=
12967finish_cmds=
12968finish_eval=
12969shlibpath_var=
12970shlibpath_overrides_runpath=unknown
12971version_type=none
12972dynamic_linker="$host_os ld.so"
12973sys_lib_dlsearch_path_spec="/lib /usr/lib"
12974need_lib_prefix=unknown
12975hardcode_into_libs=no
12976
12977# when you set need_version to no, make sure it does not cause -set_version
12978# flags to be left without arguments
12979need_version=unknown
12980
12981case $host_os in
12982aix3*)
12983 version_type=linux
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12985 shlibpath_var=LIBPATH
12986
12987 # AIX 3 has no versioning support, so we append a major version to the name.
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 ;;
12990
12991aix[4-9]*)
12992 version_type=linux
12993 need_lib_prefix=no
12994 need_version=no
12995 hardcode_into_libs=yes
12996 if test "$host_cpu" = ia64; then
12997 # AIX 5 supports IA64
12998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 else
13001 # With GCC up to 2.95.x, collect2 would create an import file
13002 # for dependence libraries. The import file would start with
13003 # the line `#! .'. This would cause the generated library to
13004 # depend on `.', always an invalid library. This was fixed in
13005 # development snapshots of GCC prior to 3.0.
13006 case $host_os in
13007 aix4 | aix4.[01] | aix4.[01].*)
13008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13009 echo ' yes '
13010 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13011 :
13012 else
13013 can_build_shared=no
13014 fi
13015 ;;
13016 esac
13017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13018 # soname into executable. Probably we can add versioning support to
13019 # collect2, so additional links can be useful in future.
13020 if test "$aix_use_runtimelinking" = yes; then
13021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13022 # instead of lib<name>.a to let people know that these are not
13023 # typical AIX shared libraries.
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 else
13026 # We preserve .a as extension for shared libraries through AIX4.2
13027 # and later when we are not doing run time linking.
13028 library_names_spec='${libname}${release}.a $libname.a'
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 fi
13031 shlibpath_var=LIBPATH
13032 fi
13033 ;;
13034
13035amigaos*)
13036 case $host_cpu in
13037 powerpc)
13038 # Since July 2007 AmigaOS4 officially supports .so libraries.
13039 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 ;;
13042 m68k)
13043 library_names_spec='$libname.ixlibrary $libname.a'
13044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy932c9122009-11-19 13:57:03 +000013045 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'
cristy3ed852e2009-09-05 21:47:34 +000013046 ;;
13047 esac
13048 ;;
13049
13050beos*)
13051 library_names_spec='${libname}${shared_ext}'
13052 dynamic_linker="$host_os ld.so"
13053 shlibpath_var=LIBRARY_PATH
13054 ;;
13055
13056bsdi[45]*)
13057 version_type=linux
13058 need_version=no
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13060 soname_spec='${libname}${release}${shared_ext}$major'
13061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13062 shlibpath_var=LD_LIBRARY_PATH
13063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13065 # the default ld.so.conf also contains /usr/contrib/lib and
13066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13067 # libtool to hard-code these into programs
13068 ;;
13069
13070cygwin* | mingw* | pw32* | cegcc*)
13071 version_type=windows
13072 shrext_cmds=".dll"
13073 need_version=no
13074 need_lib_prefix=no
13075
13076 case $GCC,$host_os in
13077 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13078 library_names_spec='$libname.dll.a'
13079 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13080 postinstall_cmds='base_file=`basename \${file}`~
13081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13082 dldir=$destdir/`dirname \$dlpath`~
13083 test -d \$dldir || mkdir -p \$dldir~
13084 $install_prog $dir/$dlname \$dldir/$dlname~
13085 chmod a+x \$dldir/$dlname~
13086 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13087 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13088 fi'
13089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13090 dlpath=$dir/\$dldll~
13091 $RM \$dlpath'
13092 shlibpath_overrides_runpath=yes
13093
13094 case $host_os in
13095 cygwin*)
13096 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13097 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy932c9122009-11-19 13:57:03 +000013098
13099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000013100 ;;
13101 mingw* | cegcc*)
13102 # MinGW DLLs use traditional 'lib' prefix
13103 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000013104 ;;
13105 pw32*)
13106 # pw32 DLLs use 'pw' prefix rather than 'lib'
13107 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13108 ;;
13109 esac
13110 ;;
13111
13112 *)
13113 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13114 ;;
13115 esac
13116 dynamic_linker='Win32 ld.exe'
13117 # FIXME: first we should search . and the directory the executable is in
13118 shlibpath_var=PATH
13119 ;;
13120
13121darwin* | rhapsody*)
13122 dynamic_linker="$host_os dyld"
13123 version_type=darwin
13124 need_lib_prefix=no
13125 need_version=no
13126 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13127 soname_spec='${libname}${release}${major}$shared_ext'
13128 shlibpath_overrides_runpath=yes
13129 shlibpath_var=DYLD_LIBRARY_PATH
13130 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13131
13132 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13133 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13134 ;;
13135
13136dgux*)
13137 version_type=linux
13138 need_lib_prefix=no
13139 need_version=no
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 ;;
13144
13145freebsd1*)
13146 dynamic_linker=no
13147 ;;
13148
13149freebsd* | dragonfly*)
13150 # DragonFly does not have aout. When/if they implement a new
13151 # versioning mechanism, adjust this.
13152 if test -x /usr/bin/objformat; then
13153 objformat=`/usr/bin/objformat`
13154 else
13155 case $host_os in
13156 freebsd[123]*) objformat=aout ;;
13157 *) objformat=elf ;;
13158 esac
13159 fi
13160 version_type=freebsd-$objformat
13161 case $version_type in
13162 freebsd-elf*)
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13164 need_version=no
13165 need_lib_prefix=no
13166 ;;
13167 freebsd-*)
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13169 need_version=yes
13170 ;;
13171 esac
13172 shlibpath_var=LD_LIBRARY_PATH
13173 case $host_os in
13174 freebsd2*)
13175 shlibpath_overrides_runpath=yes
13176 ;;
13177 freebsd3.[01]* | freebsdelf3.[01]*)
13178 shlibpath_overrides_runpath=yes
13179 hardcode_into_libs=yes
13180 ;;
13181 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13182 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13183 shlibpath_overrides_runpath=no
13184 hardcode_into_libs=yes
13185 ;;
13186 *) # from 4.6 on, and DragonFly
13187 shlibpath_overrides_runpath=yes
13188 hardcode_into_libs=yes
13189 ;;
13190 esac
13191 ;;
13192
13193gnu*)
13194 version_type=linux
13195 need_lib_prefix=no
13196 need_version=no
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 hardcode_into_libs=yes
13201 ;;
13202
cristy932c9122009-11-19 13:57:03 +000013203haiku*)
13204 version_type=linux
13205 need_lib_prefix=no
13206 need_version=no
13207 dynamic_linker="$host_os runtime_loader"
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 shlibpath_var=LIBRARY_PATH
13211 shlibpath_overrides_runpath=yes
13212 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13213 hardcode_into_libs=yes
13214 ;;
13215
cristy3ed852e2009-09-05 21:47:34 +000013216hpux9* | hpux10* | hpux11*)
13217 # Give a soname corresponding to the major version so that dld.sl refuses to
13218 # link against other versions.
13219 version_type=sunos
13220 need_lib_prefix=no
13221 need_version=no
13222 case $host_cpu in
13223 ia64*)
13224 shrext_cmds='.so'
13225 hardcode_into_libs=yes
13226 dynamic_linker="$host_os dld.so"
13227 shlibpath_var=LD_LIBRARY_PATH
13228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230 soname_spec='${libname}${release}${shared_ext}$major'
13231 if test "X$HPUX_IA64_MODE" = X32; then
13232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13233 else
13234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13235 fi
13236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13237 ;;
13238 hppa*64*)
13239 shrext_cmds='.sl'
13240 hardcode_into_libs=yes
13241 dynamic_linker="$host_os dld.sl"
13242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13248 ;;
13249 *)
13250 shrext_cmds='.sl'
13251 dynamic_linker="$host_os dld.sl"
13252 shlibpath_var=SHLIB_PATH
13253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 ;;
13257 esac
cristy932c9122009-11-19 13:57:03 +000013258 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000013259 postinstall_cmds='chmod 555 $lib'
cristy932c9122009-11-19 13:57:03 +000013260 # or fails outright, so override atomically:
13261 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000013262 ;;
13263
13264interix[3-9]*)
13265 version_type=linux
13266 need_lib_prefix=no
13267 need_version=no
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=no
13273 hardcode_into_libs=yes
13274 ;;
13275
13276irix5* | irix6* | nonstopux*)
13277 case $host_os in
13278 nonstopux*) version_type=nonstopux ;;
13279 *)
13280 if test "$lt_cv_prog_gnu_ld" = yes; then
13281 version_type=linux
13282 else
13283 version_type=irix
13284 fi ;;
13285 esac
13286 need_lib_prefix=no
13287 need_version=no
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13290 case $host_os in
13291 irix5* | nonstopux*)
13292 libsuff= shlibsuff=
13293 ;;
13294 *)
13295 case $LD in # libtool.m4 will add one of these switches to LD
13296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13297 libsuff= shlibsuff= libmagic=32-bit;;
13298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13299 libsuff=32 shlibsuff=N32 libmagic=N32;;
13300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13302 *) libsuff= shlibsuff= libmagic=never-match;;
13303 esac
13304 ;;
13305 esac
13306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13307 shlibpath_overrides_runpath=no
13308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13310 hardcode_into_libs=yes
13311 ;;
13312
13313# No shared lib support for Linux oldld, aout, or coff.
13314linux*oldld* | linux*aout* | linux*coff*)
13315 dynamic_linker=no
13316 ;;
13317
13318# This must be Linux ELF.
cristy932c9122009-11-19 13:57:03 +000013319linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013320 version_type=linux
13321 need_lib_prefix=no
13322 need_version=no
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13326 shlibpath_var=LD_LIBRARY_PATH
13327 shlibpath_overrides_runpath=no
cristy932c9122009-11-19 13:57:03 +000013328
cristy3ed852e2009-09-05 21:47:34 +000013329 # Some binutils ld are patched to set DT_RUNPATH
cristy932c9122009-11-19 13:57:03 +000013330 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13332else
13333 lt_cv_shlibpath_overrides_runpath=no
13334 save_LDFLAGS=$LDFLAGS
13335 save_libdir=$libdir
13336 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13337 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013339/* end confdefs.h. */
13340
13341int
13342main ()
13343{
13344
13345 ;
13346 return 0;
13347}
13348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013349if ac_fn_c_try_link "$LINENO"; then :
13350 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy932c9122009-11-19 13:57:03 +000013351 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013352fi
cristy3ed852e2009-09-05 21:47:34 +000013353fi
cristy8b350f62009-11-15 23:12:43 +000013354rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
cristy932c9122009-11-19 13:57:03 +000013356 LDFLAGS=$save_LDFLAGS
13357 libdir=$save_libdir
13358
13359fi
13360
13361 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000013362
13363 # This implies no fast_install, which is unacceptable.
13364 # Some rework will be needed to allow for fast_install
13365 # before this can be enabled.
13366 hardcode_into_libs=yes
13367
cristy3ed852e2009-09-05 21:47:34 +000013368 # Append ld.so.conf contents to the search path
13369 if test -f /etc/ld.so.conf; then
cristy932c9122009-11-19 13:57:03 +000013370 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' ' '`
13371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013372 fi
13373
13374 # We used to test for /lib/ld.so.1 and disable shared libraries on
13375 # powerpc, because MkLinux only supported shared libraries with the
13376 # GNU dynamic linker. Since this was broken with cross compilers,
13377 # most powerpc-linux boxes support dynamic linking these days and
13378 # people can always --disable-shared, the test was removed, and we
13379 # assume the GNU/Linux dynamic linker is in use.
13380 dynamic_linker='GNU/Linux ld.so'
13381 ;;
13382
13383netbsd*)
13384 version_type=sunos
13385 need_lib_prefix=no
13386 need_version=no
13387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390 dynamic_linker='NetBSD (a.out) ld.so'
13391 else
13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13393 soname_spec='${libname}${release}${shared_ext}$major'
13394 dynamic_linker='NetBSD ld.elf_so'
13395 fi
13396 shlibpath_var=LD_LIBRARY_PATH
13397 shlibpath_overrides_runpath=yes
13398 hardcode_into_libs=yes
13399 ;;
13400
13401newsos6)
13402 version_type=linux
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13406 ;;
13407
13408*nto* | *qnx*)
13409 version_type=qnx
13410 need_lib_prefix=no
13411 need_version=no
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=no
13416 hardcode_into_libs=yes
13417 dynamic_linker='ldqnx.so'
13418 ;;
13419
13420openbsd*)
13421 version_type=sunos
13422 sys_lib_dlsearch_path_spec="/usr/lib"
13423 need_lib_prefix=no
13424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13425 case $host_os in
13426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13427 *) need_version=no ;;
13428 esac
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13433 case $host_os in
13434 openbsd2.[89] | openbsd2.[89].*)
13435 shlibpath_overrides_runpath=no
13436 ;;
13437 *)
13438 shlibpath_overrides_runpath=yes
13439 ;;
13440 esac
13441 else
13442 shlibpath_overrides_runpath=yes
13443 fi
13444 ;;
13445
13446os2*)
13447 libname_spec='$name'
13448 shrext_cmds=".dll"
13449 need_lib_prefix=no
13450 library_names_spec='$libname${shared_ext} $libname.a'
13451 dynamic_linker='OS/2 ld.exe'
13452 shlibpath_var=LIBPATH
13453 ;;
13454
13455osf3* | osf4* | osf5*)
13456 version_type=osf
13457 need_lib_prefix=no
13458 need_version=no
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13464 ;;
13465
13466rdos*)
13467 dynamic_linker=no
13468 ;;
13469
13470solaris*)
13471 version_type=linux
13472 need_lib_prefix=no
13473 need_version=no
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 soname_spec='${libname}${release}${shared_ext}$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath=yes
13478 hardcode_into_libs=yes
13479 # ldd complains unless libraries are executable
13480 postinstall_cmds='chmod +x $lib'
13481 ;;
13482
13483sunos4*)
13484 version_type=sunos
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes
13489 if test "$with_gnu_ld" = yes; then
13490 need_lib_prefix=no
13491 fi
13492 need_version=yes
13493 ;;
13494
13495sysv4 | sysv4.3*)
13496 version_type=linux
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 shlibpath_var=LD_LIBRARY_PATH
13500 case $host_vendor in
13501 sni)
13502 shlibpath_overrides_runpath=no
13503 need_lib_prefix=no
13504 runpath_var=LD_RUN_PATH
13505 ;;
13506 siemens)
13507 need_lib_prefix=no
13508 ;;
13509 motorola)
13510 need_lib_prefix=no
13511 need_version=no
13512 shlibpath_overrides_runpath=no
13513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13514 ;;
13515 esac
13516 ;;
13517
13518sysv4*MP*)
13519 if test -d /usr/nec ;then
13520 version_type=linux
13521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13522 soname_spec='$libname${shared_ext}.$major'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 fi
13525 ;;
13526
13527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13528 version_type=freebsd-elf
13529 need_lib_prefix=no
13530 need_version=no
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 shlibpath_overrides_runpath=yes
13535 hardcode_into_libs=yes
13536 if test "$with_gnu_ld" = yes; then
13537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13538 else
13539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13540 case $host_os in
13541 sco3.2v5*)
13542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13543 ;;
13544 esac
13545 fi
13546 sys_lib_dlsearch_path_spec='/usr/lib'
13547 ;;
13548
13549tpf*)
13550 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13551 version_type=linux
13552 need_lib_prefix=no
13553 need_version=no
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=no
13557 hardcode_into_libs=yes
13558 ;;
13559
13560uts4*)
13561 version_type=linux
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 shlibpath_var=LD_LIBRARY_PATH
13565 ;;
13566
13567*)
13568 dynamic_linker=no
13569 ;;
13570esac
cristy8b350f62009-11-15 23:12:43 +000013571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013572$as_echo "$dynamic_linker" >&6; }
13573test "$dynamic_linker" = no && can_build_shared=no
13574
13575variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13576if test "$GCC" = yes; then
13577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13578fi
13579
13580if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13581 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13582fi
13583if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13584 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13585fi
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
cristy932c9122009-11-19 13:57:03 +000013673
13674
13675
13676
13677
cristy8b350f62009-11-15 23:12:43 +000013678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013679$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13680hardcode_action=
13681if test -n "$hardcode_libdir_flag_spec" ||
13682 test -n "$runpath_var" ||
13683 test "X$hardcode_automatic" = "Xyes" ; then
13684
13685 # We can hardcode non-existent directories.
13686 if test "$hardcode_direct" != no &&
13687 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13688 # have to relink, otherwise we might link with an installed library
13689 # when we should be linking with a yet-to-be-installed one
13690 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13691 test "$hardcode_minus_L" != no; then
13692 # Linking always hardcodes the temporary library directory.
13693 hardcode_action=relink
13694 else
13695 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13696 hardcode_action=immediate
13697 fi
13698else
13699 # We cannot hardcode anything, or else we can only hardcode existing
13700 # directories.
13701 hardcode_action=unsupported
13702fi
cristy8b350f62009-11-15 23:12:43 +000013703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000013704$as_echo "$hardcode_action" >&6; }
13705
13706if test "$hardcode_action" = relink ||
13707 test "$inherit_rpath" = yes; then
13708 # Fast installation is not supported
13709 enable_fast_install=no
13710elif test "$shlibpath_overrides_runpath" = yes ||
13711 test "$enable_shared" = no; then
13712 # Fast installation is not necessary
13713 enable_fast_install=needless
13714fi
13715
13716
13717
13718
13719
13720
13721 if test "x$enable_dlopen" != xyes; then
13722 enable_dlopen=unknown
13723 enable_dlopen_self=unknown
13724 enable_dlopen_self_static=unknown
13725else
13726 lt_cv_dlopen=no
13727 lt_cv_dlopen_libs=
13728
13729 case $host_os in
13730 beos*)
13731 lt_cv_dlopen="load_add_on"
13732 lt_cv_dlopen_libs=
13733 lt_cv_dlopen_self=yes
13734 ;;
13735
13736 mingw* | pw32* | cegcc*)
13737 lt_cv_dlopen="LoadLibrary"
13738 lt_cv_dlopen_libs=
13739 ;;
13740
13741 cygwin*)
13742 lt_cv_dlopen="dlopen"
13743 lt_cv_dlopen_libs=
13744 ;;
13745
13746 darwin*)
13747 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000013748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000013749$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013750if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013751 $as_echo_n "(cached) " >&6
13752else
13753 ac_check_lib_save_LIBS=$LIBS
13754LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013756/* end confdefs.h. */
13757
13758/* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13761#ifdef __cplusplus
13762extern "C"
13763#endif
13764char dlopen ();
13765int
13766main ()
13767{
13768return dlopen ();
13769 ;
13770 return 0;
13771}
13772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013774 ac_cv_lib_dl_dlopen=yes
13775else
cristy8b350f62009-11-15 23:12:43 +000013776 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000013777fi
cristy8b350f62009-11-15 23:12:43 +000013778rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013780LIBS=$ac_check_lib_save_LIBS
13781fi
cristy8b350f62009-11-15 23:12:43 +000013782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013783$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013784if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13786else
13787
13788 lt_cv_dlopen="dyld"
13789 lt_cv_dlopen_libs=
13790 lt_cv_dlopen_self=yes
13791
13792fi
13793
13794 ;;
13795
13796 *)
cristy8b350f62009-11-15 23:12:43 +000013797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13798if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013799 lt_cv_dlopen="shl_load"
13800else
cristy8b350f62009-11-15 23:12:43 +000013801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000013802$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013803if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013804 $as_echo_n "(cached) " >&6
13805else
13806 ac_check_lib_save_LIBS=$LIBS
13807LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013809/* end confdefs.h. */
13810
13811/* Override any GCC internal prototype to avoid an error.
13812 Use char because int might match the return type of a GCC
13813 builtin and then its argument prototype would still apply. */
13814#ifdef __cplusplus
13815extern "C"
13816#endif
13817char shl_load ();
13818int
13819main ()
13820{
13821return shl_load ();
13822 ;
13823 return 0;
13824}
13825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013827 ac_cv_lib_dld_shl_load=yes
13828else
cristy8b350f62009-11-15 23:12:43 +000013829 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000013830fi
cristy8b350f62009-11-15 23:12:43 +000013831rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013833LIBS=$ac_check_lib_save_LIBS
13834fi
cristy8b350f62009-11-15 23:12:43 +000013835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000013836$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013837if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13839else
cristy8b350f62009-11-15 23:12:43 +000013840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13841if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013842 lt_cv_dlopen="dlopen"
13843else
cristy8b350f62009-11-15 23:12:43 +000013844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000013845$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013846if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013847 $as_echo_n "(cached) " >&6
13848else
13849 ac_check_lib_save_LIBS=$LIBS
13850LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013852/* end confdefs.h. */
13853
13854/* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
13857#ifdef __cplusplus
13858extern "C"
13859#endif
13860char dlopen ();
13861int
13862main ()
13863{
13864return dlopen ();
13865 ;
13866 return 0;
13867}
13868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013870 ac_cv_lib_dl_dlopen=yes
13871else
cristy8b350f62009-11-15 23:12:43 +000013872 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000013873fi
cristy8b350f62009-11-15 23:12:43 +000013874rm -f core conftest.err conftest.$ac_objext \
13875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013876LIBS=$ac_check_lib_save_LIBS
13877fi
cristy8b350f62009-11-15 23:12:43 +000013878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013880if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13882else
cristy8b350f62009-11-15 23:12:43 +000013883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000013884$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013885if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013886 $as_echo_n "(cached) " >&6
13887else
13888 ac_check_lib_save_LIBS=$LIBS
13889LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013891/* end confdefs.h. */
13892
13893/* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13896#ifdef __cplusplus
13897extern "C"
13898#endif
13899char dlopen ();
13900int
13901main ()
13902{
13903return dlopen ();
13904 ;
13905 return 0;
13906}
13907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013909 ac_cv_lib_svld_dlopen=yes
13910else
cristy8b350f62009-11-15 23:12:43 +000013911 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000013912fi
cristy8b350f62009-11-15 23:12:43 +000013913rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013915LIBS=$ac_check_lib_save_LIBS
13916fi
cristy8b350f62009-11-15 23:12:43 +000013917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013918$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013919if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13921else
cristy8b350f62009-11-15 23:12:43 +000013922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000013923$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013924if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013925 $as_echo_n "(cached) " >&6
13926else
13927 ac_check_lib_save_LIBS=$LIBS
13928LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013930/* end confdefs.h. */
13931
13932/* Override any GCC internal prototype to avoid an error.
13933 Use char because int might match the return type of a GCC
13934 builtin and then its argument prototype would still apply. */
13935#ifdef __cplusplus
13936extern "C"
13937#endif
13938char dld_link ();
13939int
13940main ()
13941{
13942return dld_link ();
13943 ;
13944 return 0;
13945}
13946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013948 ac_cv_lib_dld_dld_link=yes
13949else
cristy8b350f62009-11-15 23:12:43 +000013950 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000013951fi
cristy8b350f62009-11-15 23:12:43 +000013952rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013954LIBS=$ac_check_lib_save_LIBS
13955fi
cristy8b350f62009-11-15 23:12:43 +000013956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000013957$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013958if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13960fi
13961
13962
13963fi
13964
13965
13966fi
13967
13968
13969fi
13970
13971
13972fi
13973
13974
13975fi
13976
13977 ;;
13978 esac
13979
13980 if test "x$lt_cv_dlopen" != xno; then
13981 enable_dlopen=yes
13982 else
13983 enable_dlopen=no
13984 fi
13985
13986 case $lt_cv_dlopen in
13987 dlopen)
13988 save_CPPFLAGS="$CPPFLAGS"
13989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13990
13991 save_LDFLAGS="$LDFLAGS"
13992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13993
13994 save_LIBS="$LIBS"
13995 LIBS="$lt_cv_dlopen_libs $LIBS"
13996
cristy8b350f62009-11-15 23:12:43 +000013997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000013998$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013999if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014000 $as_echo_n "(cached) " >&6
14001else
14002 if test "$cross_compiling" = yes; then :
14003 lt_cv_dlopen_self=cross
14004else
14005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14006 lt_status=$lt_dlunknown
14007 cat > conftest.$ac_ext <<_LT_EOF
cristycd4c5312009-11-22 01:19:08 +000014008#line 14008 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014009#include "confdefs.h"
14010
14011#if HAVE_DLFCN_H
14012#include <dlfcn.h>
14013#endif
14014
14015#include <stdio.h>
14016
14017#ifdef RTLD_GLOBAL
14018# define LT_DLGLOBAL RTLD_GLOBAL
14019#else
14020# ifdef DL_GLOBAL
14021# define LT_DLGLOBAL DL_GLOBAL
14022# else
14023# define LT_DLGLOBAL 0
14024# endif
14025#endif
14026
14027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14028 find out it does not work in some platform. */
14029#ifndef LT_DLLAZY_OR_NOW
14030# ifdef RTLD_LAZY
14031# define LT_DLLAZY_OR_NOW RTLD_LAZY
14032# else
14033# ifdef DL_LAZY
14034# define LT_DLLAZY_OR_NOW DL_LAZY
14035# else
14036# ifdef RTLD_NOW
14037# define LT_DLLAZY_OR_NOW RTLD_NOW
14038# else
14039# ifdef DL_NOW
14040# define LT_DLLAZY_OR_NOW DL_NOW
14041# else
14042# define LT_DLLAZY_OR_NOW 0
14043# endif
14044# endif
14045# endif
14046# endif
14047#endif
14048
cristy932c9122009-11-19 13:57:03 +000014049/* When -fvisbility=hidden is used, assume the code has been annotated
14050 correspondingly for the symbols needed. */
14051#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14052void fnord () __attribute__((visibility("default")));
14053#endif
14054
14055void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000014056int main ()
14057{
14058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14059 int status = $lt_dlunknown;
14060
14061 if (self)
14062 {
14063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy932c9122009-11-19 13:57:03 +000014064 else
14065 {
14066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14067 else puts (dlerror ());
14068 }
cristy3ed852e2009-09-05 21:47:34 +000014069 /* dlclose (self); */
14070 }
14071 else
14072 puts (dlerror ());
14073
14074 return status;
14075}
14076_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014078 (eval $ac_link) 2>&5
14079 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14081 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014082 (./conftest; exit; ) >&5 2>/dev/null
14083 lt_status=$?
14084 case x$lt_status in
14085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14088 esac
14089 else :
14090 # compilation failed
14091 lt_cv_dlopen_self=no
14092 fi
14093fi
14094rm -fr conftest*
14095
14096
14097fi
cristy8b350f62009-11-15 23:12:43 +000014098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014099$as_echo "$lt_cv_dlopen_self" >&6; }
14100
14101 if test "x$lt_cv_dlopen_self" = xyes; then
14102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014104$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014105if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014106 $as_echo_n "(cached) " >&6
14107else
14108 if test "$cross_compiling" = yes; then :
14109 lt_cv_dlopen_self_static=cross
14110else
14111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14112 lt_status=$lt_dlunknown
14113 cat > conftest.$ac_ext <<_LT_EOF
cristycd4c5312009-11-22 01:19:08 +000014114#line 14114 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014115#include "confdefs.h"
14116
14117#if HAVE_DLFCN_H
14118#include <dlfcn.h>
14119#endif
14120
14121#include <stdio.h>
14122
14123#ifdef RTLD_GLOBAL
14124# define LT_DLGLOBAL RTLD_GLOBAL
14125#else
14126# ifdef DL_GLOBAL
14127# define LT_DLGLOBAL DL_GLOBAL
14128# else
14129# define LT_DLGLOBAL 0
14130# endif
14131#endif
14132
14133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14134 find out it does not work in some platform. */
14135#ifndef LT_DLLAZY_OR_NOW
14136# ifdef RTLD_LAZY
14137# define LT_DLLAZY_OR_NOW RTLD_LAZY
14138# else
14139# ifdef DL_LAZY
14140# define LT_DLLAZY_OR_NOW DL_LAZY
14141# else
14142# ifdef RTLD_NOW
14143# define LT_DLLAZY_OR_NOW RTLD_NOW
14144# else
14145# ifdef DL_NOW
14146# define LT_DLLAZY_OR_NOW DL_NOW
14147# else
14148# define LT_DLLAZY_OR_NOW 0
14149# endif
14150# endif
14151# endif
14152# endif
14153#endif
14154
cristy932c9122009-11-19 13:57:03 +000014155/* When -fvisbility=hidden is used, assume the code has been annotated
14156 correspondingly for the symbols needed. */
14157#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14158void fnord () __attribute__((visibility("default")));
14159#endif
14160
14161void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000014162int main ()
14163{
14164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14165 int status = $lt_dlunknown;
14166
14167 if (self)
14168 {
14169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy932c9122009-11-19 13:57:03 +000014170 else
14171 {
14172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14173 else puts (dlerror ());
14174 }
cristy3ed852e2009-09-05 21:47:34 +000014175 /* dlclose (self); */
14176 }
14177 else
14178 puts (dlerror ());
14179
14180 return status;
14181}
14182_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014184 (eval $ac_link) 2>&5
14185 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014188 (./conftest; exit; ) >&5 2>/dev/null
14189 lt_status=$?
14190 case x$lt_status in
14191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14194 esac
14195 else :
14196 # compilation failed
14197 lt_cv_dlopen_self_static=no
14198 fi
14199fi
14200rm -fr conftest*
14201
14202
14203fi
cristy8b350f62009-11-15 23:12:43 +000014204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014205$as_echo "$lt_cv_dlopen_self_static" >&6; }
14206 fi
14207
14208 CPPFLAGS="$save_CPPFLAGS"
14209 LDFLAGS="$save_LDFLAGS"
14210 LIBS="$save_LIBS"
14211 ;;
14212 esac
14213
14214 case $lt_cv_dlopen_self in
14215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14216 *) enable_dlopen_self=unknown ;;
14217 esac
14218
14219 case $lt_cv_dlopen_self_static in
14220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14221 *) enable_dlopen_self_static=unknown ;;
14222 esac
14223fi
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241striplib=
14242old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014244$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14245if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14247 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014249$as_echo "yes" >&6; }
14250else
14251# FIXME - insert some real tests, host_os isn't really good enough
14252 case $host_os in
14253 darwin*)
14254 if test -n "$STRIP" ; then
14255 striplib="$STRIP -x"
14256 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014258$as_echo "yes" >&6; }
14259 else
cristy8b350f62009-11-15 23:12:43 +000014260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014261$as_echo "no" >&6; }
14262 fi
14263 ;;
14264 *)
cristy8b350f62009-11-15 23:12:43 +000014265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014266$as_echo "no" >&6; }
14267 ;;
14268 esac
14269fi
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014284$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014286$as_echo "$can_build_shared" >&6; }
14287
cristy8b350f62009-11-15 23:12:43 +000014288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014289$as_echo_n "checking whether to build shared libraries... " >&6; }
14290 test "$can_build_shared" = "no" && enable_shared=no
14291
14292 # On AIX, shared libraries and static libraries use the same namespace, and
14293 # are all built from PIC.
14294 case $host_os in
14295 aix3*)
14296 test "$enable_shared" = yes && enable_static=no
14297 if test -n "$RANLIB"; then
14298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14299 postinstall_cmds='$RANLIB $lib'
14300 fi
14301 ;;
14302
14303 aix[4-9]*)
14304 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14305 test "$enable_shared" = yes && enable_static=no
14306 fi
14307 ;;
14308 esac
cristy8b350f62009-11-15 23:12:43 +000014309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014310$as_echo "$enable_shared" >&6; }
14311
cristy8b350f62009-11-15 23:12:43 +000014312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014313$as_echo_n "checking whether to build static libraries... " >&6; }
14314 # Make sure either enable_shared or enable_static is yes.
14315 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014317$as_echo "$enable_static" >&6; }
14318
14319
14320
14321
14322fi
14323ac_ext=c
14324ac_cpp='$CPP $CPPFLAGS'
14325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328
14329CC="$lt_save_CC"
14330
cristy932c9122009-11-19 13:57:03 +000014331 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14332 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14333 (test "X$CXX" != "Xg++"))) ; then
14334 ac_ext=cpp
14335ac_cpp='$CXXCPP $CPPFLAGS'
14336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14340$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14341if test -z "$CXXCPP"; then
14342 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344else
14345 # Double quotes because CXXCPP needs to be expanded
14346 for CXXCPP in "$CXX -E" "/lib/cpp"
14347 do
14348 ac_preproc_ok=false
14349for ac_cxx_preproc_warn_flag in '' yes
14350do
14351 # Use a header file that comes with gcc, so configuring glibc
14352 # with a fresh cross-compiler works.
14353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 # <limits.h> exists even on freestanding compilers.
14355 # On the NeXT, cc -E runs the code through the compiler's parser,
14356 # not just through cpp. "Syntax error" is here to catch this case.
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358/* end confdefs.h. */
14359#ifdef __STDC__
14360# include <limits.h>
14361#else
14362# include <assert.h>
14363#endif
14364 Syntax error
14365_ACEOF
14366if ac_fn_cxx_try_cpp "$LINENO"; then :
14367
14368else
14369 # Broken: fails on valid input.
14370continue
14371fi
14372rm -f conftest.err conftest.$ac_ext
14373
14374 # OK, works on sane cases. Now check whether nonexistent headers
14375 # can be detected and how.
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h. */
14378#include <ac_nonexistent.h>
14379_ACEOF
14380if ac_fn_cxx_try_cpp "$LINENO"; then :
14381 # Broken: success on invalid input.
14382continue
14383else
14384 # Passes both tests.
14385ac_preproc_ok=:
14386break
14387fi
14388rm -f conftest.err conftest.$ac_ext
14389
14390done
14391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14392rm -f conftest.err conftest.$ac_ext
14393if $ac_preproc_ok; then :
14394 break
14395fi
14396
14397 done
14398 ac_cv_prog_CXXCPP=$CXXCPP
14399
14400fi
14401 CXXCPP=$ac_cv_prog_CXXCPP
14402else
14403 ac_cv_prog_CXXCPP=$CXXCPP
14404fi
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14406$as_echo "$CXXCPP" >&6; }
14407ac_preproc_ok=false
14408for ac_cxx_preproc_warn_flag in '' yes
14409do
14410 # Use a header file that comes with gcc, so configuring glibc
14411 # with a fresh cross-compiler works.
14412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14413 # <limits.h> exists even on freestanding compilers.
14414 # On the NeXT, cc -E runs the code through the compiler's parser,
14415 # not just through cpp. "Syntax error" is here to catch this case.
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417/* end confdefs.h. */
14418#ifdef __STDC__
14419# include <limits.h>
14420#else
14421# include <assert.h>
14422#endif
14423 Syntax error
14424_ACEOF
14425if ac_fn_cxx_try_cpp "$LINENO"; then :
14426
14427else
14428 # Broken: fails on valid input.
14429continue
14430fi
14431rm -f conftest.err conftest.$ac_ext
14432
14433 # OK, works on sane cases. Now check whether nonexistent headers
14434 # can be detected and how.
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436/* end confdefs.h. */
14437#include <ac_nonexistent.h>
14438_ACEOF
14439if ac_fn_cxx_try_cpp "$LINENO"; then :
14440 # Broken: success on invalid input.
14441continue
14442else
14443 # Passes both tests.
14444ac_preproc_ok=:
14445break
14446fi
14447rm -f conftest.err conftest.$ac_ext
14448
14449done
14450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14451rm -f conftest.err conftest.$ac_ext
14452if $ac_preproc_ok; then :
14453
14454else
14455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14457as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
14458See \`config.log' for more details." "$LINENO" 5; }
14459fi
14460
14461ac_ext=c
14462ac_cpp='$CPP $CPPFLAGS'
14463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14465ac_compiler_gnu=$ac_cv_c_compiler_gnu
14466
14467else
14468 _lt_caught_CXX_error=yes
14469fi
cristy3ed852e2009-09-05 21:47:34 +000014470
14471ac_ext=cpp
14472ac_cpp='$CXXCPP $CPPFLAGS'
14473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14476
14477archive_cmds_need_lc_CXX=no
14478allow_undefined_flag_CXX=
14479always_export_symbols_CXX=no
14480archive_expsym_cmds_CXX=
14481compiler_needs_object_CXX=no
14482export_dynamic_flag_spec_CXX=
14483hardcode_direct_CXX=no
14484hardcode_direct_absolute_CXX=no
14485hardcode_libdir_flag_spec_CXX=
14486hardcode_libdir_flag_spec_ld_CXX=
14487hardcode_libdir_separator_CXX=
14488hardcode_minus_L_CXX=no
14489hardcode_shlibpath_var_CXX=unsupported
14490hardcode_automatic_CXX=no
14491inherit_rpath_CXX=no
14492module_cmds_CXX=
14493module_expsym_cmds_CXX=
14494link_all_deplibs_CXX=unknown
14495old_archive_cmds_CXX=$old_archive_cmds
cristy932c9122009-11-19 13:57:03 +000014496reload_flag_CXX=$reload_flag
14497reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000014498no_undefined_flag_CXX=
14499whole_archive_flag_spec_CXX=
14500enable_shared_with_static_runtimes_CXX=no
14501
14502# Source file extension for C++ test sources.
14503ac_ext=cpp
14504
14505# Object file extension for compiled C++ test sources.
14506objext=o
14507objext_CXX=$objext
14508
14509# No sense in running all these tests if we already determined that
14510# the CXX compiler isn't working. Some variables (like enable_shared)
14511# are currently assumed to apply to all compilers on this platform,
14512# and will be corrupted by setting them based on a non-working compiler.
14513if test "$_lt_caught_CXX_error" != yes; then
14514 # Code to be used in simple compile tests
14515 lt_simple_compile_test_code="int some_variable = 0;"
14516
14517 # Code to be used in simple link tests
14518 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14519
14520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14521
14522
14523
14524
14525
14526
14527# If no C compiler was specified, use CC.
14528LTCC=${LTCC-"$CC"}
14529
14530# If no C compiler flags were specified, use CFLAGS.
14531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14532
14533# Allow CC to be a program name with arguments.
14534compiler=$CC
14535
14536
14537 # save warnings/boilerplate of simple test code
14538 ac_outfile=conftest.$ac_objext
14539echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14541_lt_compiler_boilerplate=`cat conftest.err`
14542$RM conftest*
14543
14544 ac_outfile=conftest.$ac_objext
14545echo "$lt_simple_link_test_code" >conftest.$ac_ext
14546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14547_lt_linker_boilerplate=`cat conftest.err`
14548$RM -r conftest*
14549
14550
14551 # Allow CC to be a program name with arguments.
14552 lt_save_CC=$CC
14553 lt_save_LD=$LD
14554 lt_save_GCC=$GCC
14555 GCC=$GXX
14556 lt_save_with_gnu_ld=$with_gnu_ld
14557 lt_save_path_LD=$lt_cv_path_LD
14558 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14559 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14560 else
14561 $as_unset lt_cv_prog_gnu_ld
14562 fi
14563 if test -n "${lt_cv_path_LDCXX+set}"; then
14564 lt_cv_path_LD=$lt_cv_path_LDCXX
14565 else
14566 $as_unset lt_cv_path_LD
14567 fi
14568 test -z "${LDCXX+set}" || LD=$LDCXX
14569 CC=${CXX-"c++"}
14570 compiler=$CC
14571 compiler_CXX=$CC
14572 for cc_temp in $compiler""; do
14573 case $cc_temp in
14574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14576 \-*) ;;
14577 *) break;;
14578 esac
14579done
cristy932c9122009-11-19 13:57:03 +000014580cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014581
14582
14583 if test -n "$compiler"; then
14584 # We don't want -fno-exception when compiling C++ code, so set the
14585 # no_builtin_flag separately
14586 if test "$GXX" = yes; then
14587 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14588 else
14589 lt_prog_compiler_no_builtin_flag_CXX=
14590 fi
14591
14592 if test "$GXX" = yes; then
14593 # Set up default GNU C++ configuration
14594
14595
14596
14597# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014598if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014599 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14600else
14601 with_gnu_ld=no
14602fi
14603
14604ac_prog=ld
14605if test "$GCC" = yes; then
14606 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014608$as_echo_n "checking for ld used by $CC... " >&6; }
14609 case $host in
14610 *-*-mingw*)
14611 # gcc leaves a trailing carriage return which upsets mingw
14612 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14613 *)
14614 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14615 esac
14616 case $ac_prog in
14617 # Accept absolute paths.
14618 [\\/]* | ?:[\\/]*)
14619 re_direlt='/[^/][^/]*/\.\./'
14620 # Canonicalize the pathname of ld
14621 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14622 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14623 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14624 done
14625 test -z "$LD" && LD="$ac_prog"
14626 ;;
14627 "")
14628 # If it fails, then pretend we aren't using GCC.
14629 ac_prog=ld
14630 ;;
14631 *)
14632 # If it is relative, then search for the first ld in PATH.
14633 with_gnu_ld=unknown
14634 ;;
14635 esac
14636elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014638$as_echo_n "checking for GNU ld... " >&6; }
14639else
cristy8b350f62009-11-15 23:12:43 +000014640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014641$as_echo_n "checking for non-GNU ld... " >&6; }
14642fi
cristy8b350f62009-11-15 23:12:43 +000014643if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014644 $as_echo_n "(cached) " >&6
14645else
14646 if test -z "$LD"; then
14647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14648 for ac_dir in $PATH; do
14649 IFS="$lt_save_ifs"
14650 test -z "$ac_dir" && ac_dir=.
14651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14652 lt_cv_path_LD="$ac_dir/$ac_prog"
14653 # Check to see if the program is GNU ld. I'd rather use --version,
14654 # but apparently some variants of GNU ld only accept -v.
14655 # Break only if it was the GNU/non-GNU ld that we prefer.
14656 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14657 *GNU* | *'with BFD'*)
14658 test "$with_gnu_ld" != no && break
14659 ;;
14660 *)
14661 test "$with_gnu_ld" != yes && break
14662 ;;
14663 esac
14664 fi
14665 done
14666 IFS="$lt_save_ifs"
14667else
14668 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14669fi
14670fi
14671
14672LD="$lt_cv_path_LD"
14673if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014675$as_echo "$LD" >&6; }
14676else
cristy8b350f62009-11-15 23:12:43 +000014677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014678$as_echo "no" >&6; }
14679fi
cristy8b350f62009-11-15 23:12:43 +000014680test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014682$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014683if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014684 $as_echo_n "(cached) " >&6
14685else
14686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14687case `$LD -v 2>&1 </dev/null` in
14688*GNU* | *'with BFD'*)
14689 lt_cv_prog_gnu_ld=yes
14690 ;;
14691*)
14692 lt_cv_prog_gnu_ld=no
14693 ;;
14694esac
14695fi
cristy8b350f62009-11-15 23:12:43 +000014696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014697$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14698with_gnu_ld=$lt_cv_prog_gnu_ld
14699
14700
14701
14702
14703
14704
14705
14706 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14707 # archiving commands below assume that GNU ld is being used.
14708 if test "$with_gnu_ld" = yes; then
14709 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14710 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14711
14712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14714
14715 # If archive_cmds runs LD, not CC, wlarc should be empty
14716 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14717 # investigate it a little bit more. (MM)
14718 wlarc='${wl}'
14719
14720 # ancient GNU ld didn't support --whole-archive et. al.
14721 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14722 $GREP 'no-whole-archive' > /dev/null; then
14723 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14724 else
14725 whole_archive_flag_spec_CXX=
14726 fi
14727 else
14728 with_gnu_ld=no
14729 wlarc=
14730
14731 # A generic and very simple default shared library creation
14732 # command for GNU C++ for the case where it uses the native
14733 # linker, instead of GNU ld. If possible, this setting should
14734 # overridden to take advantage of the native linker features on
14735 # the platform it is being used on.
14736 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14737 fi
14738
14739 # Commands to make compiler produce verbose output that lists
14740 # what "hidden" libraries, object files and flags are used when
14741 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000014742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000014743
14744 else
14745 GXX=no
14746 with_gnu_ld=no
14747 wlarc=
14748 fi
14749
14750 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000014751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014752$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14753 ld_shlibs_CXX=yes
14754 case $host_os in
14755 aix3*)
14756 # FIXME: insert proper C++ library support
14757 ld_shlibs_CXX=no
14758 ;;
14759 aix[4-9]*)
14760 if test "$host_cpu" = ia64; then
14761 # On IA64, the linker does run time linking by default, so we don't
14762 # have to do anything special.
14763 aix_use_runtimelinking=no
14764 exp_sym_flag='-Bexport'
14765 no_entry_flag=""
14766 else
14767 aix_use_runtimelinking=no
14768
14769 # Test if we are trying to use run time linking or normal
14770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14771 # need to do runtime linking.
14772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14773 for ld_flag in $LDFLAGS; do
14774 case $ld_flag in
14775 *-brtl*)
14776 aix_use_runtimelinking=yes
14777 break
14778 ;;
14779 esac
14780 done
14781 ;;
14782 esac
14783
14784 exp_sym_flag='-bexport'
14785 no_entry_flag='-bnoentry'
14786 fi
14787
14788 # When large executables or shared objects are built, AIX ld can
14789 # have problems creating the table of contents. If linking a library
14790 # or program results in "error TOC overflow" add -mminimal-toc to
14791 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14792 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14793
14794 archive_cmds_CXX=''
14795 hardcode_direct_CXX=yes
14796 hardcode_direct_absolute_CXX=yes
14797 hardcode_libdir_separator_CXX=':'
14798 link_all_deplibs_CXX=yes
14799 file_list_spec_CXX='${wl}-f,'
14800
14801 if test "$GXX" = yes; then
14802 case $host_os in aix4.[012]|aix4.[012].*)
14803 # We only want to do this on AIX 4.2 and lower, the check
14804 # below for broken collect2 doesn't work under 4.3+
14805 collect2name=`${CC} -print-prog-name=collect2`
14806 if test -f "$collect2name" &&
14807 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14808 then
14809 # We have reworked collect2
14810 :
14811 else
14812 # We have old collect2
14813 hardcode_direct_CXX=unsupported
14814 # It fails to find uninstalled libraries when the uninstalled
14815 # path is not listed in the libpath. Setting hardcode_minus_L
14816 # to unsupported forces relinking
14817 hardcode_minus_L_CXX=yes
14818 hardcode_libdir_flag_spec_CXX='-L$libdir'
14819 hardcode_libdir_separator_CXX=
14820 fi
14821 esac
14822 shared_flag='-shared'
14823 if test "$aix_use_runtimelinking" = yes; then
14824 shared_flag="$shared_flag "'${wl}-G'
14825 fi
14826 else
14827 # not using gcc
14828 if test "$host_cpu" = ia64; then
14829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14830 # chokes on -Wl,-G. The following line is correct:
14831 shared_flag='-G'
14832 else
14833 if test "$aix_use_runtimelinking" = yes; then
14834 shared_flag='${wl}-G'
14835 else
14836 shared_flag='${wl}-bM:SRE'
14837 fi
14838 fi
14839 fi
14840
14841 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14842 # It seems that -bexpall does not export symbols beginning with
14843 # underscore (_), so it is better to generate a list of symbols to
14844 # export.
14845 always_export_symbols_CXX=yes
14846 if test "$aix_use_runtimelinking" = yes; then
14847 # Warning - without using the other runtime loading flags (-brtl),
14848 # -berok will link without error, but may produce a broken library.
14849 allow_undefined_flag_CXX='-berok'
14850 # Determine the default libpath from the value encoded in an empty
14851 # executable.
cristy8b350f62009-11-15 23:12:43 +000014852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014853/* end confdefs.h. */
14854
14855int
14856main ()
14857{
14858
14859 ;
14860 return 0;
14861}
14862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014863if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014864
14865lt_aix_libpath_sed='
14866 /Import File Strings/,/^$/ {
14867 /^0/ {
14868 s/^0 *\(.*\)$/\1/
14869 p
14870 }
14871 }'
14872aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14873# Check for a 64-bit object if we didn't find anything.
14874if test -z "$aix_libpath"; then
14875 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14876fi
cristy3ed852e2009-09-05 21:47:34 +000014877fi
cristy8b350f62009-11-15 23:12:43 +000014878rm -f core conftest.err conftest.$ac_objext \
14879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014880if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14881
14882 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14883
cristy932c9122009-11-19 13:57:03 +000014884 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"
cristy3ed852e2009-09-05 21:47:34 +000014885 else
14886 if test "$host_cpu" = ia64; then
14887 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14888 allow_undefined_flag_CXX="-z nodefs"
14889 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"
14890 else
14891 # Determine the default libpath from the value encoded in an
14892 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014894/* end confdefs.h. */
14895
14896int
14897main ()
14898{
14899
14900 ;
14901 return 0;
14902}
14903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014904if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014905
14906lt_aix_libpath_sed='
14907 /Import File Strings/,/^$/ {
14908 /^0/ {
14909 s/^0 *\(.*\)$/\1/
14910 p
14911 }
14912 }'
14913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14914# Check for a 64-bit object if we didn't find anything.
14915if test -z "$aix_libpath"; then
14916 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14917fi
cristy3ed852e2009-09-05 21:47:34 +000014918fi
cristy8b350f62009-11-15 23:12:43 +000014919rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014921if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14922
14923 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14924 # Warning - without using the other run time loading flags,
14925 # -berok will link without error, but may produce a broken library.
14926 no_undefined_flag_CXX=' ${wl}-bernotok'
14927 allow_undefined_flag_CXX=' ${wl}-berok'
cristy932c9122009-11-19 13:57:03 +000014928 if test "$with_gnu_ld" = yes; then
14929 # We only use this code for GNU lds that support --whole-archive.
14930 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14931 else
14932 # Exported symbols can be pulled into shared objects from archives
14933 whole_archive_flag_spec_CXX='$convenience'
14934 fi
cristy3ed852e2009-09-05 21:47:34 +000014935 archive_cmds_need_lc_CXX=yes
14936 # This is similar to how AIX traditionally builds its shared
14937 # libraries.
14938 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'
14939 fi
14940 fi
14941 ;;
14942
14943 beos*)
14944 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14945 allow_undefined_flag_CXX=unsupported
14946 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14947 # support --undefined. This deserves some investigation. FIXME
14948 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949 else
14950 ld_shlibs_CXX=no
14951 fi
14952 ;;
14953
14954 chorus*)
14955 case $cc_basename in
14956 *)
14957 # FIXME: insert proper C++ library support
14958 ld_shlibs_CXX=no
14959 ;;
14960 esac
14961 ;;
14962
14963 cygwin* | mingw* | pw32* | cegcc*)
14964 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14965 # as there is no search path for DLLs.
14966 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy932c9122009-11-19 13:57:03 +000014967 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000014968 allow_undefined_flag_CXX=unsupported
14969 always_export_symbols_CXX=no
14970 enable_shared_with_static_runtimes_CXX=yes
14971
14972 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14973 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'
14974 # If the export-symbols file already is a .def file (1st line
14975 # is EXPORTS), use it as is; otherwise, prepend...
14976 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14977 cp $export_symbols $output_objdir/$soname.def;
14978 else
14979 echo EXPORTS > $output_objdir/$soname.def;
14980 cat $export_symbols >> $output_objdir/$soname.def;
14981 fi~
14982 $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'
14983 else
14984 ld_shlibs_CXX=no
14985 fi
14986 ;;
14987 darwin* | rhapsody*)
14988
14989
14990 archive_cmds_need_lc_CXX=no
14991 hardcode_direct_CXX=no
14992 hardcode_automatic_CXX=yes
14993 hardcode_shlibpath_var_CXX=unsupported
cristy932c9122009-11-19 13:57:03 +000014994 if test "$lt_cv_ld_force_load" = "yes"; then
14995 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\"`'
14996 else
14997 whole_archive_flag_spec_CXX=''
14998 fi
cristy3ed852e2009-09-05 21:47:34 +000014999 link_all_deplibs_CXX=yes
15000 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15001 case $cc_basename in
15002 ifort*) _lt_dar_can_shared=yes ;;
15003 *) _lt_dar_can_shared=$GCC ;;
15004 esac
15005 if test "$_lt_dar_can_shared" = "yes"; then
cristy932c9122009-11-19 13:57:03 +000015006 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000015007 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}"
15008 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15009 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}"
15010 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}"
15011 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15012 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}"
15013 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}"
15014 fi
15015
15016 else
15017 ld_shlibs_CXX=no
15018 fi
15019
15020 ;;
15021
15022 dgux*)
15023 case $cc_basename in
15024 ec++*)
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 ;;
15028 ghcx*)
15029 # Green Hills C++ Compiler
15030 # FIXME: insert proper C++ library support
15031 ld_shlibs_CXX=no
15032 ;;
15033 *)
15034 # FIXME: insert proper C++ library support
15035 ld_shlibs_CXX=no
15036 ;;
15037 esac
15038 ;;
15039
15040 freebsd[12]*)
15041 # C++ shared libraries reported to be fairly broken before
15042 # switch to ELF
15043 ld_shlibs_CXX=no
15044 ;;
15045
15046 freebsd-elf*)
15047 archive_cmds_need_lc_CXX=no
15048 ;;
15049
15050 freebsd* | dragonfly*)
15051 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15052 # conventions
15053 ld_shlibs_CXX=yes
15054 ;;
15055
15056 gnu*)
15057 ;;
15058
cristy932c9122009-11-19 13:57:03 +000015059 haiku*)
15060 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061 link_all_deplibs_CXX=yes
15062 ;;
15063
cristy3ed852e2009-09-05 21:47:34 +000015064 hpux9*)
15065 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15066 hardcode_libdir_separator_CXX=:
15067 export_dynamic_flag_spec_CXX='${wl}-E'
15068 hardcode_direct_CXX=yes
15069 hardcode_minus_L_CXX=yes # Not in the search PATH,
15070 # but as the default
15071 # location of the library.
15072
15073 case $cc_basename in
15074 CC*)
15075 # FIXME: insert proper C++ library support
15076 ld_shlibs_CXX=no
15077 ;;
15078 aCC*)
15079 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'
15080 # Commands to make compiler produce verbose output that lists
15081 # what "hidden" libraries, object files and flags are used when
15082 # linking a shared library.
15083 #
15084 # There doesn't appear to be a way to prevent this compiler from
15085 # explicitly linking system object files so we need to strip them
15086 # from the output so that they don't get included in the library
15087 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015088 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"'
cristy3ed852e2009-09-05 21:47:34 +000015089 ;;
15090 *)
15091 if test "$GXX" = yes; then
15092 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
15093 else
15094 # FIXME: insert proper C++ library support
15095 ld_shlibs_CXX=no
15096 fi
15097 ;;
15098 esac
15099 ;;
15100
15101 hpux10*|hpux11*)
15102 if test $with_gnu_ld = no; then
15103 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15104 hardcode_libdir_separator_CXX=:
15105
15106 case $host_cpu in
15107 hppa*64*|ia64*)
15108 ;;
15109 *)
15110 export_dynamic_flag_spec_CXX='${wl}-E'
15111 ;;
15112 esac
15113 fi
15114 case $host_cpu in
15115 hppa*64*|ia64*)
15116 hardcode_direct_CXX=no
15117 hardcode_shlibpath_var_CXX=no
15118 ;;
15119 *)
15120 hardcode_direct_CXX=yes
15121 hardcode_direct_absolute_CXX=yes
15122 hardcode_minus_L_CXX=yes # Not in the search PATH,
15123 # but as the default
15124 # location of the library.
15125 ;;
15126 esac
15127
15128 case $cc_basename in
15129 CC*)
15130 # FIXME: insert proper C++ library support
15131 ld_shlibs_CXX=no
15132 ;;
15133 aCC*)
15134 case $host_cpu in
15135 hppa*64*)
15136 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15137 ;;
15138 ia64*)
15139 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15140 ;;
15141 *)
15142 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15143 ;;
15144 esac
15145 # Commands to make compiler produce verbose output that lists
15146 # what "hidden" libraries, object files and flags are used when
15147 # linking a shared library.
15148 #
15149 # There doesn't appear to be a way to prevent this compiler from
15150 # explicitly linking system object files so we need to strip them
15151 # from the output so that they don't get included in the library
15152 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015153 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"'
cristy3ed852e2009-09-05 21:47:34 +000015154 ;;
15155 *)
15156 if test "$GXX" = yes; then
15157 if test $with_gnu_ld = no; then
15158 case $host_cpu in
15159 hppa*64*)
15160 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15161 ;;
15162 ia64*)
15163 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15164 ;;
15165 *)
15166 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15167 ;;
15168 esac
15169 fi
15170 else
15171 # FIXME: insert proper C++ library support
15172 ld_shlibs_CXX=no
15173 fi
15174 ;;
15175 esac
15176 ;;
15177
15178 interix[3-9]*)
15179 hardcode_direct_CXX=no
15180 hardcode_shlibpath_var_CXX=no
15181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15182 export_dynamic_flag_spec_CXX='${wl}-E'
15183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15184 # Instead, shared libraries are loaded at an image base (0x10000000 by
15185 # default) and relocated if they conflict, which is a slow very memory
15186 # consuming and fragmenting process. To avoid this, we pick a random,
15187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15189 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'
15190 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'
15191 ;;
15192 irix5* | irix6*)
15193 case $cc_basename in
15194 CC*)
15195 # SGI C++
cristy932c9122009-11-19 13:57:03 +000015196 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'
cristy3ed852e2009-09-05 21:47:34 +000015197
15198 # Archives containing C++ object files must be created using
15199 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15200 # necessary to make sure instantiated templates are included
15201 # in the archive.
15202 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15203 ;;
15204 *)
15205 if test "$GXX" = yes; then
15206 if test "$with_gnu_ld" = no; then
cristy932c9122009-11-19 13:57:03 +000015207 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000015208 else
cristy932c9122009-11-19 13:57:03 +000015209 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000015210 fi
15211 fi
15212 link_all_deplibs_CXX=yes
15213 ;;
15214 esac
15215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15216 hardcode_libdir_separator_CXX=:
15217 inherit_rpath_CXX=yes
15218 ;;
15219
cristy932c9122009-11-19 13:57:03 +000015220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015221 case $cc_basename in
15222 KCC*)
15223 # Kuck and Associates, Inc. (KAI) C++ Compiler
15224
15225 # KCC will only create a shared library if the output file
15226 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15227 # to its proper name (with version) after linking.
15228 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'
15229 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'
15230 # Commands to make compiler produce verbose output that lists
15231 # what "hidden" libraries, object files and flags are used when
15232 # linking a shared library.
15233 #
15234 # There doesn't appear to be a way to prevent this compiler from
15235 # explicitly linking system object files so we need to strip them
15236 # from the output so that they don't get included in the library
15237 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015238 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"'
cristy3ed852e2009-09-05 21:47:34 +000015239
15240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15242
15243 # Archives containing C++ object files must be created using
15244 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15245 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15246 ;;
15247 icpc* | ecpc* )
15248 # Intel C++
15249 with_gnu_ld=yes
15250 # version 8.0 and above of icpc choke on multiply defined symbols
15251 # if we add $predep_objects and $postdep_objects, however 7.1 and
15252 # earlier do not add the objects themselves.
15253 case `$CC -V 2>&1` in
15254 *"Version 7."*)
15255 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15256 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'
15257 ;;
15258 *) # Version 8.0 or newer
15259 tmp_idyn=
15260 case $host_cpu in
15261 ia64*) tmp_idyn=' -i_dynamic';;
15262 esac
15263 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264 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'
15265 ;;
15266 esac
15267 archive_cmds_need_lc_CXX=no
15268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15270 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15271 ;;
15272 pgCC* | pgcpp*)
15273 # Portland Group C++ compiler
15274 case `$CC -V` in
15275 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15276 prelink_cmds_CXX='tpldir=Template.dir~
15277 rm -rf $tpldir~
15278 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15279 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15280 old_archive_cmds_CXX='tpldir=Template.dir~
15281 rm -rf $tpldir~
15282 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15283 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15284 $RANLIB $oldlib'
15285 archive_cmds_CXX='tpldir=Template.dir~
15286 rm -rf $tpldir~
15287 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15288 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15289 archive_expsym_cmds_CXX='tpldir=Template.dir~
15290 rm -rf $tpldir~
15291 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15292 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15293 ;;
15294 *) # Version 6 will use weak symbols
15295 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15296 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'
15297 ;;
15298 esac
15299
15300 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15301 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy932c9122009-11-19 13:57:03 +000015302 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'
cristy3ed852e2009-09-05 21:47:34 +000015303 ;;
15304 cxx*)
15305 # Compaq C++
15306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15307 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'
15308
15309 runpath_var=LD_RUN_PATH
15310 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15311 hardcode_libdir_separator_CXX=:
15312
15313 # Commands to make compiler produce verbose output that lists
15314 # what "hidden" libraries, object files and flags are used when
15315 # linking a shared library.
15316 #
15317 # There doesn't appear to be a way to prevent this compiler from
15318 # explicitly linking system object files so we need to strip them
15319 # from the output so that they don't get included in the library
15320 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015321 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'
cristy3ed852e2009-09-05 21:47:34 +000015322 ;;
cristy932c9122009-11-19 13:57:03 +000015323 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000015324 # IBM XL 8.0 on PPC, with GNU ld
15325 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15327 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328 if test "x$supports_anon_versioning" = xyes; then
15329 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15331 echo "local: *; };" >> $output_objdir/$libname.ver~
15332 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15333 fi
15334 ;;
15335 *)
15336 case `$CC -V 2>&1 | sed 5q` in
15337 *Sun\ C*)
15338 # Sun C++ 5.9
15339 no_undefined_flag_CXX=' -zdefs'
15340 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15341 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'
15342 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy932c9122009-11-19 13:57:03 +000015343 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'
cristy3ed852e2009-09-05 21:47:34 +000015344 compiler_needs_object_CXX=yes
15345
15346 # Not sure whether something based on
15347 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15348 # would be better.
cristy932c9122009-11-19 13:57:03 +000015349 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000015350
15351 # Archives containing C++ object files must be created using
15352 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15353 # necessary to make sure instantiated templates are included
15354 # in the archive.
15355 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15356 ;;
15357 esac
15358 ;;
15359 esac
15360 ;;
15361
15362 lynxos*)
15363 # FIXME: insert proper C++ library support
15364 ld_shlibs_CXX=no
15365 ;;
15366
15367 m88k*)
15368 # FIXME: insert proper C++ library support
15369 ld_shlibs_CXX=no
15370 ;;
15371
15372 mvs*)
15373 case $cc_basename in
15374 cxx*)
15375 # FIXME: insert proper C++ library support
15376 ld_shlibs_CXX=no
15377 ;;
15378 *)
15379 # FIXME: insert proper C++ library support
15380 ld_shlibs_CXX=no
15381 ;;
15382 esac
15383 ;;
15384
15385 netbsd*)
15386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15387 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15388 wlarc=
15389 hardcode_libdir_flag_spec_CXX='-R$libdir'
15390 hardcode_direct_CXX=yes
15391 hardcode_shlibpath_var_CXX=no
15392 fi
15393 # Workaround some broken pre-1.5 toolchains
15394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15395 ;;
15396
15397 *nto* | *qnx*)
15398 ld_shlibs_CXX=yes
15399 ;;
15400
15401 openbsd2*)
15402 # C++ shared libraries are fairly broken
15403 ld_shlibs_CXX=no
15404 ;;
15405
15406 openbsd*)
15407 if test -f /usr/libexec/ld.so; then
15408 hardcode_direct_CXX=yes
15409 hardcode_shlibpath_var_CXX=no
15410 hardcode_direct_absolute_CXX=yes
15411 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15412 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15414 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15415 export_dynamic_flag_spec_CXX='${wl}-E'
15416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15417 fi
cristy932c9122009-11-19 13:57:03 +000015418 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000015419 else
15420 ld_shlibs_CXX=no
15421 fi
15422 ;;
15423
15424 osf3* | osf4* | osf5*)
15425 case $cc_basename in
15426 KCC*)
15427 # Kuck and Associates, Inc. (KAI) C++ Compiler
15428
15429 # KCC will only create a shared library if the output file
15430 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15431 # to its proper name (with version) after linking.
15432 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'
15433
15434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15435 hardcode_libdir_separator_CXX=:
15436
15437 # Archives containing C++ object files must be created using
15438 # the KAI C++ compiler.
15439 case $host in
15440 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15441 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15442 esac
15443 ;;
15444 RCC*)
15445 # Rational C++ 2.4.1
15446 # FIXME: insert proper C++ library support
15447 ld_shlibs_CXX=no
15448 ;;
15449 cxx*)
15450 case $host in
15451 osf3*)
15452 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy932c9122009-11-19 13:57:03 +000015453 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'
cristy3ed852e2009-09-05 21:47:34 +000015454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15455 ;;
15456 *)
15457 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy932c9122009-11-19 13:57:03 +000015458 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'
cristy3ed852e2009-09-05 21:47:34 +000015459 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15460 echo "-hidden">> $lib.exp~
cristy932c9122009-11-19 13:57:03 +000015461 $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~
cristy3ed852e2009-09-05 21:47:34 +000015462 $RM $lib.exp'
15463 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15464 ;;
15465 esac
15466
15467 hardcode_libdir_separator_CXX=:
15468
15469 # Commands to make compiler produce verbose output that lists
15470 # what "hidden" libraries, object files and flags are used when
15471 # linking a shared library.
15472 #
15473 # There doesn't appear to be a way to prevent this compiler from
15474 # explicitly linking system object files so we need to strip them
15475 # from the output so that they don't get included in the library
15476 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015477 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"'
cristy3ed852e2009-09-05 21:47:34 +000015478 ;;
15479 *)
15480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15482 case $host in
15483 osf3*)
cristy932c9122009-11-19 13:57:03 +000015484 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'
cristy3ed852e2009-09-05 21:47:34 +000015485 ;;
15486 *)
cristy932c9122009-11-19 13:57:03 +000015487 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000015488 ;;
15489 esac
15490
15491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15492 hardcode_libdir_separator_CXX=:
15493
15494 # Commands to make compiler produce verbose output that lists
15495 # what "hidden" libraries, object files and flags are used when
15496 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000015497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015498
15499 else
15500 # FIXME: insert proper C++ library support
15501 ld_shlibs_CXX=no
15502 fi
15503 ;;
15504 esac
15505 ;;
15506
15507 psos*)
15508 # FIXME: insert proper C++ library support
15509 ld_shlibs_CXX=no
15510 ;;
15511
15512 sunos4*)
15513 case $cc_basename in
15514 CC*)
15515 # Sun C++ 4.x
15516 # FIXME: insert proper C++ library support
15517 ld_shlibs_CXX=no
15518 ;;
15519 lcc*)
15520 # Lucid
15521 # FIXME: insert proper C++ library support
15522 ld_shlibs_CXX=no
15523 ;;
15524 *)
15525 # FIXME: insert proper C++ library support
15526 ld_shlibs_CXX=no
15527 ;;
15528 esac
15529 ;;
15530
15531 solaris*)
15532 case $cc_basename in
15533 CC*)
15534 # Sun C++ 4.2, 5.x and Centerline C++
15535 archive_cmds_need_lc_CXX=yes
15536 no_undefined_flag_CXX=' -zdefs'
15537 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15538 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15539 $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'
15540
15541 hardcode_libdir_flag_spec_CXX='-R$libdir'
15542 hardcode_shlibpath_var_CXX=no
15543 case $host_os in
15544 solaris2.[0-5] | solaris2.[0-5].*) ;;
15545 *)
15546 # The compiler driver will combine and reorder linker options,
15547 # but understands `-z linker_flag'.
15548 # Supported since Solaris 2.6 (maybe 2.5.1?)
15549 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15550 ;;
15551 esac
15552 link_all_deplibs_CXX=yes
15553
cristy932c9122009-11-19 13:57:03 +000015554 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000015555
15556 # Archives containing C++ object files must be created using
15557 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15558 # necessary to make sure instantiated templates are included
15559 # in the archive.
15560 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15561 ;;
15562 gcx*)
15563 # Green Hills C++ Compiler
15564 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15565
15566 # The C++ compiler must be used to create the archive.
15567 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15568 ;;
15569 *)
15570 # GNU C++ compiler with Solaris linker
15571 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15572 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15573 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15574 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15575 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15576 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15577
15578 # Commands to make compiler produce verbose output that lists
15579 # what "hidden" libraries, object files and flags are used when
15580 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000015581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015582 else
15583 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15584 # platform.
15585 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15586 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15587 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15588
15589 # Commands to make compiler produce verbose output that lists
15590 # what "hidden" libraries, object files and flags are used when
15591 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000015592 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015593 fi
15594
15595 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15596 case $host_os in
15597 solaris2.[0-5] | solaris2.[0-5].*) ;;
15598 *)
15599 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15600 ;;
15601 esac
15602 fi
15603 ;;
15604 esac
15605 ;;
15606
15607 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15608 no_undefined_flag_CXX='${wl}-z,text'
15609 archive_cmds_need_lc_CXX=no
15610 hardcode_shlibpath_var_CXX=no
15611 runpath_var='LD_RUN_PATH'
15612
15613 case $cc_basename in
15614 CC*)
15615 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 ;;
15618 *)
15619 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15620 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 ;;
15622 esac
15623 ;;
15624
15625 sysv5* | sco3.2v5* | sco5v6*)
15626 # Note: We can NOT use -z defs as we might desire, because we do not
15627 # link with -lc, and that would cause any symbols used from libc to
15628 # always be unresolved, which means just about no library would
15629 # ever link correctly. If we're not using GNU ld we use -z text
15630 # though, which does catch some bad symbols but isn't as heavy-handed
15631 # as -z defs.
15632 no_undefined_flag_CXX='${wl}-z,text'
15633 allow_undefined_flag_CXX='${wl}-z,nodefs'
15634 archive_cmds_need_lc_CXX=no
15635 hardcode_shlibpath_var_CXX=no
15636 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15637 hardcode_libdir_separator_CXX=':'
15638 link_all_deplibs_CXX=yes
15639 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15640 runpath_var='LD_RUN_PATH'
15641
15642 case $cc_basename in
15643 CC*)
15644 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy932c9122009-11-19 13:57:03 +000015646 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15647 '"$old_archive_cmds_CXX"
15648 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15649 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000015650 ;;
15651 *)
15652 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15653 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15654 ;;
15655 esac
15656 ;;
15657
15658 tandem*)
15659 case $cc_basename in
15660 NCC*)
15661 # NonStop-UX NCC 3.20
15662 # FIXME: insert proper C++ library support
15663 ld_shlibs_CXX=no
15664 ;;
15665 *)
15666 # FIXME: insert proper C++ library support
15667 ld_shlibs_CXX=no
15668 ;;
15669 esac
15670 ;;
15671
15672 vxworks*)
15673 # FIXME: insert proper C++ library support
15674 ld_shlibs_CXX=no
15675 ;;
15676
15677 *)
15678 # FIXME: insert proper C++ library support
15679 ld_shlibs_CXX=no
15680 ;;
15681 esac
15682
cristy8b350f62009-11-15 23:12:43 +000015683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015684$as_echo "$ld_shlibs_CXX" >&6; }
15685 test "$ld_shlibs_CXX" = no && can_build_shared=no
15686
15687 GCC_CXX="$GXX"
15688 LD_CXX="$LD"
15689
15690 ## CAVEAT EMPTOR:
15691 ## There is no encapsulation within the following macros, do not change
15692 ## the running order or otherwise move them around unless you know exactly
15693 ## what you are doing...
15694 # Dependencies to place before and after the object being linked:
15695predep_objects_CXX=
15696postdep_objects_CXX=
15697predeps_CXX=
15698postdeps_CXX=
15699compiler_lib_search_path_CXX=
15700
15701cat > conftest.$ac_ext <<_LT_EOF
15702class Foo
15703{
15704public:
15705 Foo (void) { a = 0; }
15706private:
15707 int a;
15708};
15709_LT_EOF
15710
cristy8b350f62009-11-15 23:12:43 +000015711if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015712 (eval $ac_compile) 2>&5
15713 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015716 # Parse the compiler output and extract the necessary
15717 # objects, libraries and library flags.
15718
15719 # Sentinel used to keep track of whether or not we are before
15720 # the conftest object file.
15721 pre_test_object_deps_done=no
15722
15723 for p in `eval "$output_verbose_link_cmd"`; do
15724 case $p in
15725
15726 -L* | -R* | -l*)
15727 # Some compilers place space between "-{L,R}" and the path.
15728 # Remove the space.
15729 if test $p = "-L" ||
15730 test $p = "-R"; then
15731 prev=$p
15732 continue
15733 else
15734 prev=
15735 fi
15736
15737 if test "$pre_test_object_deps_done" = no; then
15738 case $p in
15739 -L* | -R*)
15740 # Internal compiler library paths should come after those
15741 # provided the user. The postdeps already come after the
15742 # user supplied libs so there is no need to process them.
15743 if test -z "$compiler_lib_search_path_CXX"; then
15744 compiler_lib_search_path_CXX="${prev}${p}"
15745 else
15746 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15747 fi
15748 ;;
15749 # The "-l" case would never come before the object being
15750 # linked, so don't bother handling this case.
15751 esac
15752 else
15753 if test -z "$postdeps_CXX"; then
15754 postdeps_CXX="${prev}${p}"
15755 else
15756 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15757 fi
15758 fi
15759 ;;
15760
15761 *.$objext)
15762 # This assumes that the test object file only shows up
15763 # once in the compiler output.
15764 if test "$p" = "conftest.$objext"; then
15765 pre_test_object_deps_done=yes
15766 continue
15767 fi
15768
15769 if test "$pre_test_object_deps_done" = no; then
15770 if test -z "$predep_objects_CXX"; then
15771 predep_objects_CXX="$p"
15772 else
15773 predep_objects_CXX="$predep_objects_CXX $p"
15774 fi
15775 else
15776 if test -z "$postdep_objects_CXX"; then
15777 postdep_objects_CXX="$p"
15778 else
15779 postdep_objects_CXX="$postdep_objects_CXX $p"
15780 fi
15781 fi
15782 ;;
15783
15784 *) ;; # Ignore the rest.
15785
15786 esac
15787 done
15788
15789 # Clean up.
15790 rm -f a.out a.exe
15791else
15792 echo "libtool.m4: error: problem compiling CXX test program"
15793fi
15794
15795$RM -f confest.$objext
15796
15797# PORTME: override above test on systems where it is broken
15798case $host_os in
15799interix[3-9]*)
15800 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15801 # hack all around it, let's just trust "g++" to DTRT.
15802 predep_objects_CXX=
15803 postdep_objects_CXX=
15804 postdeps_CXX=
15805 ;;
15806
15807linux*)
15808 case `$CC -V 2>&1 | sed 5q` in
15809 *Sun\ C*)
15810 # Sun C++ 5.9
15811
15812 # The more standards-conforming stlport4 library is
15813 # incompatible with the Cstd library. Avoid specifying
15814 # it if it's in CXXFLAGS. Ignore libCrun as
15815 # -library=stlport4 depends on it.
15816 case " $CXX $CXXFLAGS " in
15817 *" -library=stlport4 "*)
15818 solaris_use_stlport4=yes
15819 ;;
15820 esac
15821
15822 if test "$solaris_use_stlport4" != yes; then
15823 postdeps_CXX='-library=Cstd -library=Crun'
15824 fi
15825 ;;
15826 esac
15827 ;;
15828
15829solaris*)
15830 case $cc_basename in
15831 CC*)
15832 # The more standards-conforming stlport4 library is
15833 # incompatible with the Cstd library. Avoid specifying
15834 # it if it's in CXXFLAGS. Ignore libCrun as
15835 # -library=stlport4 depends on it.
15836 case " $CXX $CXXFLAGS " in
15837 *" -library=stlport4 "*)
15838 solaris_use_stlport4=yes
15839 ;;
15840 esac
15841
15842 # Adding this requires a known-good setup of shared libraries for
15843 # Sun compiler versions before 5.6, else PIC objects from an old
15844 # archive will be linked into the output, leading to subtle bugs.
15845 if test "$solaris_use_stlport4" != yes; then
15846 postdeps_CXX='-library=Cstd -library=Crun'
15847 fi
15848 ;;
15849 esac
15850 ;;
15851esac
15852
15853
15854case " $postdeps_CXX " in
15855*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15856esac
15857 compiler_lib_search_dirs_CXX=
15858if test -n "${compiler_lib_search_path_CXX}"; then
15859 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15860fi
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892 lt_prog_compiler_wl_CXX=
15893lt_prog_compiler_pic_CXX=
15894lt_prog_compiler_static_CXX=
15895
cristy8b350f62009-11-15 23:12:43 +000015896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015897$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15898
15899 # C++ specific cases for pic, static, wl, etc.
15900 if test "$GXX" = yes; then
15901 lt_prog_compiler_wl_CXX='-Wl,'
15902 lt_prog_compiler_static_CXX='-static'
15903
15904 case $host_os in
15905 aix*)
15906 # All AIX code is PIC.
15907 if test "$host_cpu" = ia64; then
15908 # AIX 5 now supports IA64 processor
15909 lt_prog_compiler_static_CXX='-Bstatic'
15910 fi
15911 ;;
15912
15913 amigaos*)
15914 case $host_cpu in
15915 powerpc)
15916 # see comment about AmigaOS4 .so support
15917 lt_prog_compiler_pic_CXX='-fPIC'
15918 ;;
15919 m68k)
15920 # FIXME: we need at least 68020 code to build shared libraries, but
15921 # adding the `-m68020' flag to GCC prevents building anything better,
15922 # like `-m68040'.
15923 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15924 ;;
15925 esac
15926 ;;
15927
15928 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15929 # PIC is the default for these OSes.
15930 ;;
15931 mingw* | cygwin* | os2* | pw32* | cegcc*)
15932 # This hack is so that the source file can tell whether it is being
15933 # built for inclusion in a dll (and should export symbols for example).
15934 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15935 # (--disable-auto-import) libraries
15936 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15937 ;;
15938 darwin* | rhapsody*)
15939 # PIC is the default on this platform
15940 # Common symbols not allowed in MH_DYLIB files
15941 lt_prog_compiler_pic_CXX='-fno-common'
15942 ;;
15943 *djgpp*)
15944 # DJGPP does not support shared libraries at all
15945 lt_prog_compiler_pic_CXX=
15946 ;;
cristy932c9122009-11-19 13:57:03 +000015947 haiku*)
15948 # PIC is the default for Haiku.
15949 # The "-static" flag exists, but is broken.
15950 lt_prog_compiler_static_CXX=
15951 ;;
cristy3ed852e2009-09-05 21:47:34 +000015952 interix[3-9]*)
15953 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15954 # Instead, we relocate shared libraries at runtime.
15955 ;;
15956 sysv4*MP*)
15957 if test -d /usr/nec; then
15958 lt_prog_compiler_pic_CXX=-Kconform_pic
15959 fi
15960 ;;
15961 hpux*)
15962 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15963 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15964 # sets the default TLS model and affects inlining.
15965 case $host_cpu in
15966 hppa*64*)
15967 ;;
15968 *)
15969 lt_prog_compiler_pic_CXX='-fPIC'
15970 ;;
15971 esac
15972 ;;
15973 *qnx* | *nto*)
15974 # QNX uses GNU C++, but need to define -shared option too, otherwise
15975 # it will coredump.
15976 lt_prog_compiler_pic_CXX='-fPIC -shared'
15977 ;;
15978 *)
15979 lt_prog_compiler_pic_CXX='-fPIC'
15980 ;;
15981 esac
15982 else
15983 case $host_os in
15984 aix[4-9]*)
15985 # All AIX code is PIC.
15986 if test "$host_cpu" = ia64; then
15987 # AIX 5 now supports IA64 processor
15988 lt_prog_compiler_static_CXX='-Bstatic'
15989 else
15990 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15991 fi
15992 ;;
15993 chorus*)
15994 case $cc_basename in
15995 cxch68*)
15996 # Green Hills C++ Compiler
15997 # _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"
15998 ;;
15999 esac
16000 ;;
16001 dgux*)
16002 case $cc_basename in
16003 ec++*)
16004 lt_prog_compiler_pic_CXX='-KPIC'
16005 ;;
16006 ghcx*)
16007 # Green Hills C++ Compiler
16008 lt_prog_compiler_pic_CXX='-pic'
16009 ;;
16010 *)
16011 ;;
16012 esac
16013 ;;
16014 freebsd* | dragonfly*)
16015 # FreeBSD uses GNU C++
16016 ;;
16017 hpux9* | hpux10* | hpux11*)
16018 case $cc_basename in
16019 CC*)
16020 lt_prog_compiler_wl_CXX='-Wl,'
16021 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16022 if test "$host_cpu" != ia64; then
16023 lt_prog_compiler_pic_CXX='+Z'
16024 fi
16025 ;;
16026 aCC*)
16027 lt_prog_compiler_wl_CXX='-Wl,'
16028 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16029 case $host_cpu in
16030 hppa*64*|ia64*)
16031 # +Z the default
16032 ;;
16033 *)
16034 lt_prog_compiler_pic_CXX='+Z'
16035 ;;
16036 esac
16037 ;;
16038 *)
16039 ;;
16040 esac
16041 ;;
16042 interix*)
16043 # This is c89, which is MS Visual C++ (no shared libs)
16044 # Anyone wants to do a port?
16045 ;;
16046 irix5* | irix6* | nonstopux*)
16047 case $cc_basename in
16048 CC*)
16049 lt_prog_compiler_wl_CXX='-Wl,'
16050 lt_prog_compiler_static_CXX='-non_shared'
16051 # CC pic flag -KPIC is the default.
16052 ;;
16053 *)
16054 ;;
16055 esac
16056 ;;
cristy932c9122009-11-19 13:57:03 +000016057 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016058 case $cc_basename in
16059 KCC*)
16060 # KAI C++ Compiler
16061 lt_prog_compiler_wl_CXX='--backend -Wl,'
16062 lt_prog_compiler_pic_CXX='-fPIC'
16063 ;;
16064 ecpc* )
16065 # old Intel C++ for x86_64 which still supported -KPIC.
16066 lt_prog_compiler_wl_CXX='-Wl,'
16067 lt_prog_compiler_pic_CXX='-KPIC'
16068 lt_prog_compiler_static_CXX='-static'
16069 ;;
16070 icpc* )
16071 # Intel C++, used to be incompatible with GCC.
16072 # ICC 10 doesn't accept -KPIC any more.
16073 lt_prog_compiler_wl_CXX='-Wl,'
16074 lt_prog_compiler_pic_CXX='-fPIC'
16075 lt_prog_compiler_static_CXX='-static'
16076 ;;
16077 pgCC* | pgcpp*)
16078 # Portland Group C++ compiler
16079 lt_prog_compiler_wl_CXX='-Wl,'
16080 lt_prog_compiler_pic_CXX='-fpic'
16081 lt_prog_compiler_static_CXX='-Bstatic'
16082 ;;
16083 cxx*)
16084 # Compaq C++
16085 # Make sure the PIC flag is empty. It appears that all Alpha
16086 # Linux and Compaq Tru64 Unix objects are PIC.
16087 lt_prog_compiler_pic_CXX=
16088 lt_prog_compiler_static_CXX='-non_shared'
16089 ;;
cristy932c9122009-11-19 13:57:03 +000016090 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16091 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000016092 lt_prog_compiler_wl_CXX='-Wl,'
16093 lt_prog_compiler_pic_CXX='-qpic'
16094 lt_prog_compiler_static_CXX='-qstaticlink'
16095 ;;
16096 *)
16097 case `$CC -V 2>&1 | sed 5q` in
16098 *Sun\ C*)
16099 # Sun C++ 5.9
16100 lt_prog_compiler_pic_CXX='-KPIC'
16101 lt_prog_compiler_static_CXX='-Bstatic'
16102 lt_prog_compiler_wl_CXX='-Qoption ld '
16103 ;;
16104 esac
16105 ;;
16106 esac
16107 ;;
16108 lynxos*)
16109 ;;
16110 m88k*)
16111 ;;
16112 mvs*)
16113 case $cc_basename in
16114 cxx*)
16115 lt_prog_compiler_pic_CXX='-W c,exportall'
16116 ;;
16117 *)
16118 ;;
16119 esac
16120 ;;
16121 netbsd*)
16122 ;;
16123 *qnx* | *nto*)
16124 # QNX uses GNU C++, but need to define -shared option too, otherwise
16125 # it will coredump.
16126 lt_prog_compiler_pic_CXX='-fPIC -shared'
16127 ;;
16128 osf3* | osf4* | osf5*)
16129 case $cc_basename in
16130 KCC*)
16131 lt_prog_compiler_wl_CXX='--backend -Wl,'
16132 ;;
16133 RCC*)
16134 # Rational C++ 2.4.1
16135 lt_prog_compiler_pic_CXX='-pic'
16136 ;;
16137 cxx*)
16138 # Digital/Compaq C++
16139 lt_prog_compiler_wl_CXX='-Wl,'
16140 # Make sure the PIC flag is empty. It appears that all Alpha
16141 # Linux and Compaq Tru64 Unix objects are PIC.
16142 lt_prog_compiler_pic_CXX=
16143 lt_prog_compiler_static_CXX='-non_shared'
16144 ;;
16145 *)
16146 ;;
16147 esac
16148 ;;
16149 psos*)
16150 ;;
16151 solaris*)
16152 case $cc_basename in
16153 CC*)
16154 # Sun C++ 4.2, 5.x and Centerline C++
16155 lt_prog_compiler_pic_CXX='-KPIC'
16156 lt_prog_compiler_static_CXX='-Bstatic'
16157 lt_prog_compiler_wl_CXX='-Qoption ld '
16158 ;;
16159 gcx*)
16160 # Green Hills C++ Compiler
16161 lt_prog_compiler_pic_CXX='-PIC'
16162 ;;
16163 *)
16164 ;;
16165 esac
16166 ;;
16167 sunos4*)
16168 case $cc_basename in
16169 CC*)
16170 # Sun C++ 4.x
16171 lt_prog_compiler_pic_CXX='-pic'
16172 lt_prog_compiler_static_CXX='-Bstatic'
16173 ;;
16174 lcc*)
16175 # Lucid
16176 lt_prog_compiler_pic_CXX='-pic'
16177 ;;
16178 *)
16179 ;;
16180 esac
16181 ;;
16182 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16183 case $cc_basename in
16184 CC*)
16185 lt_prog_compiler_wl_CXX='-Wl,'
16186 lt_prog_compiler_pic_CXX='-KPIC'
16187 lt_prog_compiler_static_CXX='-Bstatic'
16188 ;;
16189 esac
16190 ;;
16191 tandem*)
16192 case $cc_basename in
16193 NCC*)
16194 # NonStop-UX NCC 3.20
16195 lt_prog_compiler_pic_CXX='-KPIC'
16196 ;;
16197 *)
16198 ;;
16199 esac
16200 ;;
16201 vxworks*)
16202 ;;
16203 *)
16204 lt_prog_compiler_can_build_shared_CXX=no
16205 ;;
16206 esac
16207 fi
16208
16209case $host_os in
16210 # For platforms which do not support PIC, -DPIC is meaningless:
16211 *djgpp*)
16212 lt_prog_compiler_pic_CXX=
16213 ;;
16214 *)
16215 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16216 ;;
16217esac
cristy8b350f62009-11-15 23:12:43 +000016218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016219$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16220
16221
16222
16223#
16224# Check to make sure the PIC flag actually works.
16225#
16226if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016228$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016229if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016230 $as_echo_n "(cached) " >&6
16231else
16232 lt_cv_prog_compiler_pic_works_CXX=no
16233 ac_outfile=conftest.$ac_objext
16234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16235 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16236 # Insert the option either (1) after the last *FLAGS variable, or
16237 # (2) before a word containing "conftest.", or (3) at the end.
16238 # Note that $ac_compile itself does not contain backslashes and begins
16239 # with a dollar sign (not a hyphen), so the echo should work correctly.
16240 # The option is referenced via a variable to avoid confusing sed.
16241 lt_compile=`echo "$ac_compile" | $SED \
16242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16244 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000016245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016246 (eval "$lt_compile" 2>conftest.err)
16247 ac_status=$?
16248 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000016249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016250 if (exit $ac_status) && test -s "$ac_outfile"; then
16251 # The compiler can only warn and ignore the option if not recognized
16252 # So say no if there are warnings other than the usual output.
cristy932c9122009-11-19 13:57:03 +000016253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16256 lt_cv_prog_compiler_pic_works_CXX=yes
16257 fi
16258 fi
16259 $RM conftest*
16260
16261fi
cristy8b350f62009-11-15 23:12:43 +000016262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016263$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16264
16265if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16266 case $lt_prog_compiler_pic_CXX in
16267 "" | " "*) ;;
16268 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16269 esac
16270else
16271 lt_prog_compiler_pic_CXX=
16272 lt_prog_compiler_can_build_shared_CXX=no
16273fi
16274
16275fi
16276
16277
16278
16279#
16280# Check to make sure the static flag actually works.
16281#
16282wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016284$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016285if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016286 $as_echo_n "(cached) " >&6
16287else
16288 lt_cv_prog_compiler_static_works_CXX=no
16289 save_LDFLAGS="$LDFLAGS"
16290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16293 # The linker can only warn and ignore the option if not recognized
16294 # So say no if there are warnings
16295 if test -s conftest.err; then
16296 # Append any errors to the config.log.
16297 cat conftest.err 1>&5
cristy932c9122009-11-19 13:57:03 +000016298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16300 if diff conftest.exp conftest.er2 >/dev/null; then
16301 lt_cv_prog_compiler_static_works_CXX=yes
16302 fi
16303 else
16304 lt_cv_prog_compiler_static_works_CXX=yes
16305 fi
16306 fi
16307 $RM -r conftest*
16308 LDFLAGS="$save_LDFLAGS"
16309
16310fi
cristy8b350f62009-11-15 23:12:43 +000016311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016312$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16313
16314if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16315 :
16316else
16317 lt_prog_compiler_static_CXX=
16318fi
16319
16320
16321
16322
cristy8b350f62009-11-15 23:12:43 +000016323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016324$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016325if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016326 $as_echo_n "(cached) " >&6
16327else
16328 lt_cv_prog_compiler_c_o_CXX=no
16329 $RM -r conftest 2>/dev/null
16330 mkdir conftest
16331 cd conftest
16332 mkdir out
16333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16334
16335 lt_compiler_flag="-o out/conftest2.$ac_objext"
16336 # Insert the option either (1) after the last *FLAGS variable, or
16337 # (2) before a word containing "conftest.", or (3) at the end.
16338 # Note that $ac_compile itself does not contain backslashes and begins
16339 # with a dollar sign (not a hyphen), so the echo should work correctly.
16340 lt_compile=`echo "$ac_compile" | $SED \
16341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16343 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000016344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016345 (eval "$lt_compile" 2>out/conftest.err)
16346 ac_status=$?
16347 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000016348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16350 then
16351 # The compiler can only warn and ignore the option if not recognized
16352 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000016353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16356 lt_cv_prog_compiler_c_o_CXX=yes
16357 fi
16358 fi
16359 chmod u+w . 2>&5
16360 $RM conftest*
16361 # SGI C++ compiler will create directory out/ii_files/ for
16362 # template instantiation
16363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16364 $RM out/* && rmdir out
16365 cd ..
16366 $RM -r conftest
16367 $RM conftest*
16368
16369fi
cristy8b350f62009-11-15 23:12:43 +000016370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016371$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16372
16373
16374
cristy8b350f62009-11-15 23:12:43 +000016375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016376$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016377if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016378 $as_echo_n "(cached) " >&6
16379else
16380 lt_cv_prog_compiler_c_o_CXX=no
16381 $RM -r conftest 2>/dev/null
16382 mkdir conftest
16383 cd conftest
16384 mkdir out
16385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16386
16387 lt_compiler_flag="-o out/conftest2.$ac_objext"
16388 # Insert the option either (1) after the last *FLAGS variable, or
16389 # (2) before a word containing "conftest.", or (3) at the end.
16390 # Note that $ac_compile itself does not contain backslashes and begins
16391 # with a dollar sign (not a hyphen), so the echo should work correctly.
16392 lt_compile=`echo "$ac_compile" | $SED \
16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16395 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000016396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016397 (eval "$lt_compile" 2>out/conftest.err)
16398 ac_status=$?
16399 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000016400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16402 then
16403 # The compiler can only warn and ignore the option if not recognized
16404 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000016405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16408 lt_cv_prog_compiler_c_o_CXX=yes
16409 fi
16410 fi
16411 chmod u+w . 2>&5
16412 $RM conftest*
16413 # SGI C++ compiler will create directory out/ii_files/ for
16414 # template instantiation
16415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16416 $RM out/* && rmdir out
16417 cd ..
16418 $RM -r conftest
16419 $RM conftest*
16420
16421fi
cristy8b350f62009-11-15 23:12:43 +000016422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016423$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16424
16425
16426
16427
16428hard_links="nottested"
16429if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16430 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016432$as_echo_n "checking if we can lock with hard links... " >&6; }
16433 hard_links=yes
16434 $RM conftest*
16435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16436 touch conftest.a
16437 ln conftest.a conftest.b 2>&5 || hard_links=no
16438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016440$as_echo "$hard_links" >&6; }
16441 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000016443$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16444 need_locks=warn
16445 fi
16446else
16447 need_locks=no
16448fi
16449
16450
16451
cristy8b350f62009-11-15 23:12:43 +000016452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016453$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16454
16455 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16456 case $host_os in
16457 aix[4-9]*)
16458 # If we're using GNU nm, then we don't want the "-C" option.
16459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy932c9122009-11-19 13:57:03 +000016460 # Also, AIX nm treats weak defined symbols like other global defined
16461 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000016462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy932c9122009-11-19 13:57:03 +000016463 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'
cristy3ed852e2009-09-05 21:47:34 +000016464 else
16465 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'
16466 fi
16467 ;;
16468 pw32*)
16469 export_symbols_cmds_CXX="$ltdll_cmds"
16470 ;;
16471 cygwin* | mingw* | cegcc*)
16472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16473 ;;
16474 *)
16475 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16476 ;;
16477 esac
16478 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16479
cristy8b350f62009-11-15 23:12:43 +000016480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016481$as_echo "$ld_shlibs_CXX" >&6; }
16482test "$ld_shlibs_CXX" = no && can_build_shared=no
16483
16484with_gnu_ld_CXX=$with_gnu_ld
16485
16486
16487
16488
16489
16490
16491#
16492# Do we need to explicitly link libc?
16493#
16494case "x$archive_cmds_need_lc_CXX" in
16495x|xyes)
16496 # Assume -lc should be added
16497 archive_cmds_need_lc_CXX=yes
16498
16499 if test "$enable_shared" = yes && test "$GCC" = yes; then
16500 case $archive_cmds_CXX in
16501 *'~'*)
16502 # FIXME: we may have to deal with multi-command sequences.
16503 ;;
16504 '$CC '*)
16505 # Test whether the compiler implicitly links with -lc since on some
16506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16507 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016509$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy932c9122009-11-19 13:57:03 +000016510if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16512else
16513 $RM conftest*
16514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016515
cristy932c9122009-11-19 13:57:03 +000016516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016517 (eval $ac_compile) 2>&5
16518 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520 test $ac_status = 0; } 2>conftest.err; then
cristy932c9122009-11-19 13:57:03 +000016521 soname=conftest
16522 lib=conftest
16523 libobjs=conftest.$ac_objext
16524 deplibs=
16525 wl=$lt_prog_compiler_wl_CXX
16526 pic_flag=$lt_prog_compiler_pic_CXX
16527 compiler_flags=-v
16528 linker_flags=-v
16529 verstring=
16530 output_objdir=.
16531 libname=conftest
16532 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16533 allow_undefined_flag_CXX=
16534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016535 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16536 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16538 test $ac_status = 0; }
cristy932c9122009-11-19 13:57:03 +000016539 then
16540 lt_cv_archive_cmds_need_lc_CXX=no
16541 else
16542 lt_cv_archive_cmds_need_lc_CXX=yes
16543 fi
16544 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16545 else
16546 cat conftest.err 1>&5
16547 fi
16548 $RM conftest*
16549
16550fi
16551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16552$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16553 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000016554 ;;
16555 esac
16556 fi
16557 ;;
16558esac
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
cristy8b350f62009-11-15 23:12:43 +000016623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016624$as_echo_n "checking dynamic linker characteristics... " >&6; }
16625
16626library_names_spec=
16627libname_spec='lib$name'
16628soname_spec=
16629shrext_cmds=".so"
16630postinstall_cmds=
16631postuninstall_cmds=
16632finish_cmds=
16633finish_eval=
16634shlibpath_var=
16635shlibpath_overrides_runpath=unknown
16636version_type=none
16637dynamic_linker="$host_os ld.so"
16638sys_lib_dlsearch_path_spec="/lib /usr/lib"
16639need_lib_prefix=unknown
16640hardcode_into_libs=no
16641
16642# when you set need_version to no, make sure it does not cause -set_version
16643# flags to be left without arguments
16644need_version=unknown
16645
16646case $host_os in
16647aix3*)
16648 version_type=linux
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16650 shlibpath_var=LIBPATH
16651
16652 # AIX 3 has no versioning support, so we append a major version to the name.
16653 soname_spec='${libname}${release}${shared_ext}$major'
16654 ;;
16655
16656aix[4-9]*)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 hardcode_into_libs=yes
16661 if test "$host_cpu" = ia64; then
16662 # AIX 5 supports IA64
16663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 else
16666 # With GCC up to 2.95.x, collect2 would create an import file
16667 # for dependence libraries. The import file would start with
16668 # the line `#! .'. This would cause the generated library to
16669 # depend on `.', always an invalid library. This was fixed in
16670 # development snapshots of GCC prior to 3.0.
16671 case $host_os in
16672 aix4 | aix4.[01] | aix4.[01].*)
16673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16674 echo ' yes '
16675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16676 :
16677 else
16678 can_build_shared=no
16679 fi
16680 ;;
16681 esac
16682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16683 # soname into executable. Probably we can add versioning support to
16684 # collect2, so additional links can be useful in future.
16685 if test "$aix_use_runtimelinking" = yes; then
16686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16687 # instead of lib<name>.a to let people know that these are not
16688 # typical AIX shared libraries.
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 else
16691 # We preserve .a as extension for shared libraries through AIX4.2
16692 # and later when we are not doing run time linking.
16693 library_names_spec='${libname}${release}.a $libname.a'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 fi
16696 shlibpath_var=LIBPATH
16697 fi
16698 ;;
16699
16700amigaos*)
16701 case $host_cpu in
16702 powerpc)
16703 # Since July 2007 AmigaOS4 officially supports .so libraries.
16704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 ;;
16707 m68k)
16708 library_names_spec='$libname.ixlibrary $libname.a'
16709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy932c9122009-11-19 13:57:03 +000016710 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'
cristy3ed852e2009-09-05 21:47:34 +000016711 ;;
16712 esac
16713 ;;
16714
16715beos*)
16716 library_names_spec='${libname}${shared_ext}'
16717 dynamic_linker="$host_os ld.so"
16718 shlibpath_var=LIBRARY_PATH
16719 ;;
16720
16721bsdi[45]*)
16722 version_type=linux
16723 need_version=no
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16730 # the default ld.so.conf also contains /usr/contrib/lib and
16731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16732 # libtool to hard-code these into programs
16733 ;;
16734
16735cygwin* | mingw* | pw32* | cegcc*)
16736 version_type=windows
16737 shrext_cmds=".dll"
16738 need_version=no
16739 need_lib_prefix=no
16740
16741 case $GCC,$host_os in
16742 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16743 library_names_spec='$libname.dll.a'
16744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16745 postinstall_cmds='base_file=`basename \${file}`~
16746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16747 dldir=$destdir/`dirname \$dlpath`~
16748 test -d \$dldir || mkdir -p \$dldir~
16749 $install_prog $dir/$dlname \$dldir/$dlname~
16750 chmod a+x \$dldir/$dlname~
16751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16753 fi'
16754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16755 dlpath=$dir/\$dldll~
16756 $RM \$dlpath'
16757 shlibpath_overrides_runpath=yes
16758
16759 case $host_os in
16760 cygwin*)
16761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy932c9122009-11-19 13:57:03 +000016763
cristy3ed852e2009-09-05 21:47:34 +000016764 ;;
16765 mingw* | cegcc*)
16766 # MinGW DLLs use traditional 'lib' prefix
16767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000016768 ;;
16769 pw32*)
16770 # pw32 DLLs use 'pw' prefix rather than 'lib'
16771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16772 ;;
16773 esac
16774 ;;
16775
16776 *)
16777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16778 ;;
16779 esac
16780 dynamic_linker='Win32 ld.exe'
16781 # FIXME: first we should search . and the directory the executable is in
16782 shlibpath_var=PATH
16783 ;;
16784
16785darwin* | rhapsody*)
16786 dynamic_linker="$host_os dyld"
16787 version_type=darwin
16788 need_lib_prefix=no
16789 need_version=no
16790 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16791 soname_spec='${libname}${release}${major}$shared_ext'
16792 shlibpath_overrides_runpath=yes
16793 shlibpath_var=DYLD_LIBRARY_PATH
16794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16795
16796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16797 ;;
16798
16799dgux*)
16800 version_type=linux
16801 need_lib_prefix=no
16802 need_version=no
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 ;;
16807
16808freebsd1*)
16809 dynamic_linker=no
16810 ;;
16811
16812freebsd* | dragonfly*)
16813 # DragonFly does not have aout. When/if they implement a new
16814 # versioning mechanism, adjust this.
16815 if test -x /usr/bin/objformat; then
16816 objformat=`/usr/bin/objformat`
16817 else
16818 case $host_os in
16819 freebsd[123]*) objformat=aout ;;
16820 *) objformat=elf ;;
16821 esac
16822 fi
16823 version_type=freebsd-$objformat
16824 case $version_type in
16825 freebsd-elf*)
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16827 need_version=no
16828 need_lib_prefix=no
16829 ;;
16830 freebsd-*)
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16832 need_version=yes
16833 ;;
16834 esac
16835 shlibpath_var=LD_LIBRARY_PATH
16836 case $host_os in
16837 freebsd2*)
16838 shlibpath_overrides_runpath=yes
16839 ;;
16840 freebsd3.[01]* | freebsdelf3.[01]*)
16841 shlibpath_overrides_runpath=yes
16842 hardcode_into_libs=yes
16843 ;;
16844 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16845 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16846 shlibpath_overrides_runpath=no
16847 hardcode_into_libs=yes
16848 ;;
16849 *) # from 4.6 on, and DragonFly
16850 shlibpath_overrides_runpath=yes
16851 hardcode_into_libs=yes
16852 ;;
16853 esac
16854 ;;
16855
16856gnu*)
16857 version_type=linux
16858 need_lib_prefix=no
16859 need_version=no
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 shlibpath_var=LD_LIBRARY_PATH
16863 hardcode_into_libs=yes
16864 ;;
16865
cristy932c9122009-11-19 13:57:03 +000016866haiku*)
16867 version_type=linux
16868 need_lib_prefix=no
16869 need_version=no
16870 dynamic_linker="$host_os runtime_loader"
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 shlibpath_var=LIBRARY_PATH
16874 shlibpath_overrides_runpath=yes
16875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16876 hardcode_into_libs=yes
16877 ;;
16878
cristy3ed852e2009-09-05 21:47:34 +000016879hpux9* | hpux10* | hpux11*)
16880 # Give a soname corresponding to the major version so that dld.sl refuses to
16881 # link against other versions.
16882 version_type=sunos
16883 need_lib_prefix=no
16884 need_version=no
16885 case $host_cpu in
16886 ia64*)
16887 shrext_cmds='.so'
16888 hardcode_into_libs=yes
16889 dynamic_linker="$host_os dld.so"
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 if test "X$HPUX_IA64_MODE" = X32; then
16895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16896 else
16897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16898 fi
16899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16900 ;;
16901 hppa*64*)
16902 shrext_cmds='.sl'
16903 hardcode_into_libs=yes
16904 dynamic_linker="$host_os dld.sl"
16905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16911 ;;
16912 *)
16913 shrext_cmds='.sl'
16914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=SHLIB_PATH
16916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 ;;
16920 esac
cristy932c9122009-11-19 13:57:03 +000016921 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000016922 postinstall_cmds='chmod 555 $lib'
cristy932c9122009-11-19 13:57:03 +000016923 # or fails outright, so override atomically:
16924 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000016925 ;;
16926
16927interix[3-9]*)
16928 version_type=linux
16929 need_lib_prefix=no
16930 need_version=no
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16934 shlibpath_var=LD_LIBRARY_PATH
16935 shlibpath_overrides_runpath=no
16936 hardcode_into_libs=yes
16937 ;;
16938
16939irix5* | irix6* | nonstopux*)
16940 case $host_os in
16941 nonstopux*) version_type=nonstopux ;;
16942 *)
16943 if test "$lt_cv_prog_gnu_ld" = yes; then
16944 version_type=linux
16945 else
16946 version_type=irix
16947 fi ;;
16948 esac
16949 need_lib_prefix=no
16950 need_version=no
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16953 case $host_os in
16954 irix5* | nonstopux*)
16955 libsuff= shlibsuff=
16956 ;;
16957 *)
16958 case $LD in # libtool.m4 will add one of these switches to LD
16959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16960 libsuff= shlibsuff= libmagic=32-bit;;
16961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16962 libsuff=32 shlibsuff=N32 libmagic=N32;;
16963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16965 *) libsuff= shlibsuff= libmagic=never-match;;
16966 esac
16967 ;;
16968 esac
16969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16970 shlibpath_overrides_runpath=no
16971 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16972 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16973 hardcode_into_libs=yes
16974 ;;
16975
16976# No shared lib support for Linux oldld, aout, or coff.
16977linux*oldld* | linux*aout* | linux*coff*)
16978 dynamic_linker=no
16979 ;;
16980
16981# This must be Linux ELF.
cristy932c9122009-11-19 13:57:03 +000016982linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016983 version_type=linux
16984 need_lib_prefix=no
16985 need_version=no
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 shlibpath_overrides_runpath=no
cristy932c9122009-11-19 13:57:03 +000016991
cristy3ed852e2009-09-05 21:47:34 +000016992 # Some binutils ld are patched to set DT_RUNPATH
cristy932c9122009-11-19 13:57:03 +000016993 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16994 $as_echo_n "(cached) " >&6
16995else
16996 lt_cv_shlibpath_overrides_runpath=no
16997 save_LDFLAGS=$LDFLAGS
16998 save_libdir=$libdir
16999 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17000 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017002/* end confdefs.h. */
17003
17004int
17005main ()
17006{
17007
17008 ;
17009 return 0;
17010}
17011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017012if ac_fn_cxx_try_link "$LINENO"; then :
17013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy932c9122009-11-19 13:57:03 +000017014 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017015fi
cristy3ed852e2009-09-05 21:47:34 +000017016fi
cristy8b350f62009-11-15 23:12:43 +000017017rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
cristy932c9122009-11-19 13:57:03 +000017019 LDFLAGS=$save_LDFLAGS
17020 libdir=$save_libdir
17021
17022fi
17023
17024 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000017025
17026 # This implies no fast_install, which is unacceptable.
17027 # Some rework will be needed to allow for fast_install
17028 # before this can be enabled.
17029 hardcode_into_libs=yes
17030
cristy3ed852e2009-09-05 21:47:34 +000017031 # Append ld.so.conf contents to the search path
17032 if test -f /etc/ld.so.conf; then
cristy932c9122009-11-19 13:57:03 +000017033 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' ' '`
17034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017035 fi
17036
17037 # We used to test for /lib/ld.so.1 and disable shared libraries on
17038 # powerpc, because MkLinux only supported shared libraries with the
17039 # GNU dynamic linker. Since this was broken with cross compilers,
17040 # most powerpc-linux boxes support dynamic linking these days and
17041 # people can always --disable-shared, the test was removed, and we
17042 # assume the GNU/Linux dynamic linker is in use.
17043 dynamic_linker='GNU/Linux ld.so'
17044 ;;
17045
17046netbsd*)
17047 version_type=sunos
17048 need_lib_prefix=no
17049 need_version=no
17050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17053 dynamic_linker='NetBSD (a.out) ld.so'
17054 else
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 dynamic_linker='NetBSD ld.elf_so'
17058 fi
17059 shlibpath_var=LD_LIBRARY_PATH
17060 shlibpath_overrides_runpath=yes
17061 hardcode_into_libs=yes
17062 ;;
17063
17064newsos6)
17065 version_type=linux
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 shlibpath_var=LD_LIBRARY_PATH
17068 shlibpath_overrides_runpath=yes
17069 ;;
17070
17071*nto* | *qnx*)
17072 version_type=qnx
17073 need_lib_prefix=no
17074 need_version=no
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=no
17079 hardcode_into_libs=yes
17080 dynamic_linker='ldqnx.so'
17081 ;;
17082
17083openbsd*)
17084 version_type=sunos
17085 sys_lib_dlsearch_path_spec="/usr/lib"
17086 need_lib_prefix=no
17087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17088 case $host_os in
17089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17090 *) need_version=no ;;
17091 esac
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17096 case $host_os in
17097 openbsd2.[89] | openbsd2.[89].*)
17098 shlibpath_overrides_runpath=no
17099 ;;
17100 *)
17101 shlibpath_overrides_runpath=yes
17102 ;;
17103 esac
17104 else
17105 shlibpath_overrides_runpath=yes
17106 fi
17107 ;;
17108
17109os2*)
17110 libname_spec='$name'
17111 shrext_cmds=".dll"
17112 need_lib_prefix=no
17113 library_names_spec='$libname${shared_ext} $libname.a'
17114 dynamic_linker='OS/2 ld.exe'
17115 shlibpath_var=LIBPATH
17116 ;;
17117
17118osf3* | osf4* | osf5*)
17119 version_type=osf
17120 need_lib_prefix=no
17121 need_version=no
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17127 ;;
17128
17129rdos*)
17130 dynamic_linker=no
17131 ;;
17132
17133solaris*)
17134 version_type=linux
17135 need_lib_prefix=no
17136 need_version=no
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec='${libname}${release}${shared_ext}$major'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 shlibpath_overrides_runpath=yes
17141 hardcode_into_libs=yes
17142 # ldd complains unless libraries are executable
17143 postinstall_cmds='chmod +x $lib'
17144 ;;
17145
17146sunos4*)
17147 version_type=sunos
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 if test "$with_gnu_ld" = yes; then
17153 need_lib_prefix=no
17154 fi
17155 need_version=yes
17156 ;;
17157
17158sysv4 | sysv4.3*)
17159 version_type=linux
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 case $host_vendor in
17164 sni)
17165 shlibpath_overrides_runpath=no
17166 need_lib_prefix=no
17167 runpath_var=LD_RUN_PATH
17168 ;;
17169 siemens)
17170 need_lib_prefix=no
17171 ;;
17172 motorola)
17173 need_lib_prefix=no
17174 need_version=no
17175 shlibpath_overrides_runpath=no
17176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17177 ;;
17178 esac
17179 ;;
17180
17181sysv4*MP*)
17182 if test -d /usr/nec ;then
17183 version_type=linux
17184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17185 soname_spec='$libname${shared_ext}.$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 fi
17188 ;;
17189
17190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17191 version_type=freebsd-elf
17192 need_lib_prefix=no
17193 need_version=no
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 hardcode_into_libs=yes
17199 if test "$with_gnu_ld" = yes; then
17200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17201 else
17202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17203 case $host_os in
17204 sco3.2v5*)
17205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17206 ;;
17207 esac
17208 fi
17209 sys_lib_dlsearch_path_spec='/usr/lib'
17210 ;;
17211
17212tpf*)
17213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17214 version_type=linux
17215 need_lib_prefix=no
17216 need_version=no
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=no
17220 hardcode_into_libs=yes
17221 ;;
17222
17223uts4*)
17224 version_type=linux
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 ;;
17229
17230*)
17231 dynamic_linker=no
17232 ;;
17233esac
cristy8b350f62009-11-15 23:12:43 +000017234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017235$as_echo "$dynamic_linker" >&6; }
17236test "$dynamic_linker" = no && can_build_shared=no
17237
17238variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17239if test "$GCC" = yes; then
17240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17241fi
17242
17243if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17245fi
17246if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17247 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17248fi
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
cristy932c9122009-11-19 13:57:03 +000017285
17286
cristy8b350f62009-11-15 23:12:43 +000017287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017288$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17289hardcode_action_CXX=
17290if test -n "$hardcode_libdir_flag_spec_CXX" ||
17291 test -n "$runpath_var_CXX" ||
17292 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17293
17294 # We can hardcode non-existent directories.
17295 if test "$hardcode_direct_CXX" != no &&
17296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17297 # have to relink, otherwise we might link with an installed library
17298 # when we should be linking with a yet-to-be-installed one
17299 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17300 test "$hardcode_minus_L_CXX" != no; then
17301 # Linking always hardcodes the temporary library directory.
17302 hardcode_action_CXX=relink
17303 else
17304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17305 hardcode_action_CXX=immediate
17306 fi
17307else
17308 # We cannot hardcode anything, or else we can only hardcode existing
17309 # directories.
17310 hardcode_action_CXX=unsupported
17311fi
cristy8b350f62009-11-15 23:12:43 +000017312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017313$as_echo "$hardcode_action_CXX" >&6; }
17314
17315if test "$hardcode_action_CXX" = relink ||
17316 test "$inherit_rpath_CXX" = yes; then
17317 # Fast installation is not supported
17318 enable_fast_install=no
17319elif test "$shlibpath_overrides_runpath" = yes ||
17320 test "$enable_shared" = no; then
17321 # Fast installation is not necessary
17322 enable_fast_install=needless
17323fi
17324
17325
17326
17327
17328
17329
17330
17331 fi # test -n "$compiler"
17332
17333 CC=$lt_save_CC
17334 LDCXX=$LD
17335 LD=$lt_save_LD
17336 GCC=$lt_save_GCC
17337 with_gnu_ld=$lt_save_with_gnu_ld
17338 lt_cv_path_LDCXX=$lt_cv_path_LD
17339 lt_cv_path_LD=$lt_save_path_LD
17340 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17341 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17342fi # test "$_lt_caught_CXX_error" != yes
17343
17344ac_ext=c
17345ac_cpp='$CPP $CPPFLAGS'
17346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17348ac_compiler_gnu=$ac_cv_c_compiler_gnu
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362 ac_config_commands="$ac_config_commands libtool"
17363
17364
17365
17366
17367# Only expand once:
17368
17369
17370
17371
17372
17373# Configure libltdl
17374
17375
17376
17377
17378
17379
17380
cristy8b350f62009-11-15 23:12:43 +000017381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017382$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017383if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017384 $as_echo_n "(cached) " >&6
17385else
17386
17387module=yes
17388eval libltdl_cv_shlibext=$shrext_cmds
17389
17390fi
cristy8b350f62009-11-15 23:12:43 +000017391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017392$as_echo "$libltdl_cv_shlibext" >&6; }
17393if test -n "$libltdl_cv_shlibext"; then
17394
17395cat >>confdefs.h <<_ACEOF
17396#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17397_ACEOF
17398
17399fi
17400
cristy8b350f62009-11-15 23:12:43 +000017401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017402$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017403if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017404 $as_echo_n "(cached) " >&6
17405else
17406 lt_cv_module_path_var="$shlibpath_var"
17407fi
cristy8b350f62009-11-15 23:12:43 +000017408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017409$as_echo "$lt_cv_module_path_var" >&6; }
17410if test -n "$lt_cv_module_path_var"; then
17411
17412cat >>confdefs.h <<_ACEOF
17413#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17414_ACEOF
17415
17416fi
17417
cristy8b350f62009-11-15 23:12:43 +000017418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017419$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017420if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017421 $as_echo_n "(cached) " >&6
17422else
17423 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17424fi
cristy8b350f62009-11-15 23:12:43 +000017425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017426$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17427if test -n "$lt_cv_sys_dlsearch_path"; then
17428 sys_dlsearch_path=
17429 for dir in $lt_cv_sys_dlsearch_path; do
17430 if test -z "$sys_dlsearch_path"; then
17431 sys_dlsearch_path="$dir"
17432 else
17433 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17434 fi
17435 done
17436
17437cat >>confdefs.h <<_ACEOF
17438#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17439_ACEOF
17440
17441fi
17442
17443
17444LT_DLLOADERS=
17445
17446
17447ac_ext=c
17448ac_cpp='$CPP $CPPFLAGS'
17449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17451ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452
17453
17454LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017456$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017457if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017458 $as_echo_n "(cached) " >&6
17459else
17460 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017462/* end confdefs.h. */
17463
17464/* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17467#ifdef __cplusplus
17468extern "C"
17469#endif
17470char dlopen ();
17471int
17472main ()
17473{
17474return dlopen ();
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479for ac_lib in '' dl; do
17480 if test -z "$ac_lib"; then
17481 ac_res="none required"
17482 else
17483 ac_res=-l$ac_lib
17484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17485 fi
cristy8b350f62009-11-15 23:12:43 +000017486 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017487 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017488fi
cristy8b350f62009-11-15 23:12:43 +000017489rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext
17491 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017492 break
17493fi
17494done
cristy8b350f62009-11-15 23:12:43 +000017495if test "${ac_cv_search_dlopen+set}" = set; then :
17496
cristy3ed852e2009-09-05 21:47:34 +000017497else
17498 ac_cv_search_dlopen=no
17499fi
17500rm conftest.$ac_ext
17501LIBS=$ac_func_search_save_LIBS
17502fi
cristy8b350f62009-11-15 23:12:43 +000017503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017504$as_echo "$ac_cv_search_dlopen" >&6; }
17505ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017506if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17508
cristy8b350f62009-11-15 23:12:43 +000017509$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017510
17511 if test "$ac_cv_search_dlopen" != "none required" ; then
17512 LIBADD_DLOPEN="-ldl"
17513 fi
17514 libltdl_cv_lib_dl_dlopen="yes"
17515 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17516else
cristy8b350f62009-11-15 23:12:43 +000017517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017518/* end confdefs.h. */
17519#if HAVE_DLFCN_H
17520# include <dlfcn.h>
17521#endif
17522
17523int
17524main ()
17525{
17526dlopen(0, 0);
17527 ;
17528 return 0;
17529}
17530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017531if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017532
cristy8b350f62009-11-15 23:12:43 +000017533$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017534
17535 libltdl_cv_func_dlopen="yes"
17536 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17537else
cristy8b350f62009-11-15 23:12:43 +000017538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017539$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017540if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017541 $as_echo_n "(cached) " >&6
17542else
17543 ac_check_lib_save_LIBS=$LIBS
17544LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017546/* end confdefs.h. */
17547
17548/* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551#ifdef __cplusplus
17552extern "C"
17553#endif
17554char dlopen ();
17555int
17556main ()
17557{
17558return dlopen ();
17559 ;
17560 return 0;
17561}
17562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017564 ac_cv_lib_svld_dlopen=yes
17565else
cristy8b350f62009-11-15 23:12:43 +000017566 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017567fi
cristy8b350f62009-11-15 23:12:43 +000017568rm -f core conftest.err conftest.$ac_objext \
17569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017570LIBS=$ac_check_lib_save_LIBS
17571fi
cristy8b350f62009-11-15 23:12:43 +000017572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017573$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017574if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017575
cristy8b350f62009-11-15 23:12:43 +000017576$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017577
17578 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17579 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17580fi
17581
17582fi
cristy8b350f62009-11-15 23:12:43 +000017583rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017585fi
17586
17587if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17588then
17589 lt_save_LIBS="$LIBS"
17590 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017591 for ac_func in dlerror
17592do :
17593 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17594if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017595 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017596#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017597_ACEOF
17598
17599fi
17600done
17601
17602 LIBS="$lt_save_LIBS"
17603fi
17604
17605
17606LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017607ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17608if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017609
cristy8b350f62009-11-15 23:12:43 +000017610$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017611
17612 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17613else
cristy8b350f62009-11-15 23:12:43 +000017614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017615$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017616if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017617 $as_echo_n "(cached) " >&6
17618else
17619 ac_check_lib_save_LIBS=$LIBS
17620LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017622/* end confdefs.h. */
17623
17624/* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17627#ifdef __cplusplus
17628extern "C"
17629#endif
17630char shl_load ();
17631int
17632main ()
17633{
17634return shl_load ();
17635 ;
17636 return 0;
17637}
17638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017639if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017640 ac_cv_lib_dld_shl_load=yes
17641else
cristy8b350f62009-11-15 23:12:43 +000017642 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017643fi
cristy8b350f62009-11-15 23:12:43 +000017644rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017646LIBS=$ac_check_lib_save_LIBS
17647fi
cristy8b350f62009-11-15 23:12:43 +000017648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017649$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017650if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017651
cristy8b350f62009-11-15 23:12:43 +000017652$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017653
17654 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17655 LIBADD_SHL_LOAD="-ldld"
17656fi
17657
17658fi
17659
17660
17661
17662case $host_os in
17663darwin[1567].*)
17664# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017665 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17666if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017667
cristy8b350f62009-11-15 23:12:43 +000017668$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017669
17670 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17671fi
17672
17673 ;;
17674beos*)
17675 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17676 ;;
17677cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017678 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17679"
17680if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17681 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017682else
cristy8b350f62009-11-15 23:12:43 +000017683 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017684fi
17685
cristy3ed852e2009-09-05 21:47:34 +000017686cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017687#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017688_ACEOF
17689
cristy3ed852e2009-09-05 21:47:34 +000017690 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17691 ;;
17692esac
17693
cristy8b350f62009-11-15 23:12:43 +000017694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017695$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017696if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017697 $as_echo_n "(cached) " >&6
17698else
17699 ac_check_lib_save_LIBS=$LIBS
17700LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017702/* end confdefs.h. */
17703
17704/* Override any GCC internal prototype to avoid an error.
17705 Use char because int might match the return type of a GCC
17706 builtin and then its argument prototype would still apply. */
17707#ifdef __cplusplus
17708extern "C"
17709#endif
17710char dld_link ();
17711int
17712main ()
17713{
17714return dld_link ();
17715 ;
17716 return 0;
17717}
17718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017720 ac_cv_lib_dld_dld_link=yes
17721else
cristy8b350f62009-11-15 23:12:43 +000017722 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017723fi
cristy8b350f62009-11-15 23:12:43 +000017724rm -f core conftest.err conftest.$ac_objext \
17725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017726LIBS=$ac_check_lib_save_LIBS
17727fi
cristy8b350f62009-11-15 23:12:43 +000017728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017729$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017730if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017731
cristy8b350f62009-11-15 23:12:43 +000017732$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017733
17734 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17735fi
17736
17737
17738
17739
17740LT_DLPREOPEN=
17741if test -n "$LT_DLLOADERS"
17742then
17743 for lt_loader in $LT_DLLOADERS; do
17744 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17745 done
17746
cristy8b350f62009-11-15 23:12:43 +000017747$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017748
17749fi
17750
17751
17752LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17753
17754
17755ac_ext=c
17756ac_cpp='$CPP $CPPFLAGS'
17757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17759ac_compiler_gnu=$ac_cv_c_compiler_gnu
17760
17761
cristy8b350f62009-11-15 23:12:43 +000017762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017763$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017764if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017765 $as_echo_n "(cached) " >&6
17766else
17767 lt_cv_sys_symbol_underscore=no
17768 cat > conftest.$ac_ext <<_LT_EOF
17769void nm_test_func(){}
17770int main(){nm_test_func;return 0;}
17771_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017773 (eval $ac_compile) 2>&5
17774 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017777 # Now try to grab the symbols.
17778 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017780 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17781 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17783 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017784 # See whether the symbols have a leading underscore.
17785 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17786 lt_cv_sys_symbol_underscore=yes
17787 else
17788 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17789 :
17790 else
17791 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17792 fi
17793 fi
17794 else
17795 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17796 fi
17797 else
17798 echo "configure: failed program was:" >&5
17799 cat conftest.c >&5
17800 fi
17801 rm -rf conftest*
17802
17803fi
cristy8b350f62009-11-15 23:12:43 +000017804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017805$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
17806 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
17807
17808
17809if test x"$lt_cv_sys_symbol_underscore" = xyes; then
17810 if test x"$libltdl_cv_func_dlopen" = xyes ||
17811 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000017812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000017813$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017814if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017815 $as_echo_n "(cached) " >&6
17816else
17817 libltdl_cv_need_uscore=unknown
17818 save_LIBS="$LIBS"
17819 LIBS="$LIBS $LIBADD_DLOPEN"
17820 if test "$cross_compiling" = yes; then :
17821 libltdl_cv_need_uscore=cross
17822else
17823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17824 lt_status=$lt_dlunknown
17825 cat > conftest.$ac_ext <<_LT_EOF
cristycd4c5312009-11-22 01:19:08 +000017826#line 17826 "configure"
cristy3ed852e2009-09-05 21:47:34 +000017827#include "confdefs.h"
17828
17829#if HAVE_DLFCN_H
17830#include <dlfcn.h>
17831#endif
17832
17833#include <stdio.h>
17834
17835#ifdef RTLD_GLOBAL
17836# define LT_DLGLOBAL RTLD_GLOBAL
17837#else
17838# ifdef DL_GLOBAL
17839# define LT_DLGLOBAL DL_GLOBAL
17840# else
17841# define LT_DLGLOBAL 0
17842# endif
17843#endif
17844
17845/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17846 find out it does not work in some platform. */
17847#ifndef LT_DLLAZY_OR_NOW
17848# ifdef RTLD_LAZY
17849# define LT_DLLAZY_OR_NOW RTLD_LAZY
17850# else
17851# ifdef DL_LAZY
17852# define LT_DLLAZY_OR_NOW DL_LAZY
17853# else
17854# ifdef RTLD_NOW
17855# define LT_DLLAZY_OR_NOW RTLD_NOW
17856# else
17857# ifdef DL_NOW
17858# define LT_DLLAZY_OR_NOW DL_NOW
17859# else
17860# define LT_DLLAZY_OR_NOW 0
17861# endif
17862# endif
17863# endif
17864# endif
17865#endif
17866
cristy932c9122009-11-19 13:57:03 +000017867/* When -fvisbility=hidden is used, assume the code has been annotated
17868 correspondingly for the symbols needed. */
17869#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17870void fnord () __attribute__((visibility("default")));
17871#endif
17872
17873void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000017874int main ()
17875{
17876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17877 int status = $lt_dlunknown;
17878
17879 if (self)
17880 {
17881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy932c9122009-11-19 13:57:03 +000017882 else
17883 {
17884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17885 else puts (dlerror ());
17886 }
cristy3ed852e2009-09-05 21:47:34 +000017887 /* dlclose (self); */
17888 }
17889 else
17890 puts (dlerror ());
17891
17892 return status;
17893}
17894_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017896 (eval $ac_link) 2>&5
17897 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000017900 (./conftest; exit; ) >&5 2>/dev/null
17901 lt_status=$?
17902 case x$lt_status in
17903 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
17904 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
17905 x$lt_dlunknown|x*) ;;
17906 esac
17907 else :
17908 # compilation failed
17909
17910 fi
17911fi
17912rm -fr conftest*
17913
17914 LIBS="$save_LIBS"
17915
17916fi
cristy8b350f62009-11-15 23:12:43 +000017917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017918$as_echo "$libltdl_cv_need_uscore" >&6; }
17919 fi
17920fi
17921
17922if test x"$libltdl_cv_need_uscore" = xyes; then
17923
cristy8b350f62009-11-15 23:12:43 +000017924$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017925
17926fi
17927
cristy8b350f62009-11-15 23:12:43 +000017928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017929$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017930if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017931 $as_echo_n "(cached) " >&6
17932else
17933 # PORTME does your system automatically load deplibs for dlopen?
17934 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
17935 # For now, we just catch OSes we know something about -- in the
17936 # future, we'll try test this programmatically.
17937 lt_cv_sys_dlopen_deplibs=unknown
17938 case $host_os in
17939 aix3*|aix4.1.*|aix4.2.*)
17940 # Unknown whether this is true for these versions of AIX, but
17941 # we want this `case' here to explicitly catch those versions.
17942 lt_cv_sys_dlopen_deplibs=unknown
17943 ;;
17944 aix[4-9]*)
17945 lt_cv_sys_dlopen_deplibs=yes
17946 ;;
17947 amigaos*)
17948 case $host_cpu in
17949 powerpc)
17950 lt_cv_sys_dlopen_deplibs=no
17951 ;;
17952 esac
17953 ;;
17954 darwin*)
17955 # Assuming the user has installed a libdl from somewhere, this is true
17956 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
17957 lt_cv_sys_dlopen_deplibs=yes
17958 ;;
17959 freebsd* | dragonfly*)
17960 lt_cv_sys_dlopen_deplibs=yes
17961 ;;
cristy932c9122009-11-19 13:57:03 +000017962 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017963 # GNU and its variants, using gnu ld.so (Glibc)
17964 lt_cv_sys_dlopen_deplibs=yes
17965 ;;
17966 hpux10*|hpux11*)
17967 lt_cv_sys_dlopen_deplibs=yes
17968 ;;
17969 interix*)
17970 lt_cv_sys_dlopen_deplibs=yes
17971 ;;
17972 irix[12345]*|irix6.[01]*)
17973 # Catch all versions of IRIX before 6.2, and indicate that we don't
17974 # know how it worked for any of those versions.
17975 lt_cv_sys_dlopen_deplibs=unknown
17976 ;;
17977 irix*)
17978 # The case above catches anything before 6.2, and it's known that
17979 # at 6.2 and later dlopen does load deplibs.
17980 lt_cv_sys_dlopen_deplibs=yes
17981 ;;
17982 netbsd*)
17983 lt_cv_sys_dlopen_deplibs=yes
17984 ;;
17985 openbsd*)
17986 lt_cv_sys_dlopen_deplibs=yes
17987 ;;
17988 osf[1234]*)
17989 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
17990 # it did *not* use an RPATH in a shared library to find objects the
17991 # library depends on, so we explicitly say `no'.
17992 lt_cv_sys_dlopen_deplibs=no
17993 ;;
17994 osf5.0|osf5.0a|osf5.1)
17995 # dlopen *does* load deplibs and with the right loader patch applied
17996 # it even uses RPATH in a shared library to search for shared objects
17997 # that the library depends on, but there's no easy way to know if that
17998 # patch is installed. Since this is the case, all we can really
17999 # say is unknown -- it depends on the patch being installed. If
18000 # it is, this changes to `yes'. Without it, it would be `no'.
18001 lt_cv_sys_dlopen_deplibs=unknown
18002 ;;
18003 osf*)
18004 # the two cases above should catch all versions of osf <= 5.1. Read
18005 # the comments above for what we know about them.
18006 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18007 # is used to find them so we can finally say `yes'.
18008 lt_cv_sys_dlopen_deplibs=yes
18009 ;;
18010 qnx*)
18011 lt_cv_sys_dlopen_deplibs=yes
18012 ;;
18013 solaris*)
18014 lt_cv_sys_dlopen_deplibs=yes
18015 ;;
18016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18017 libltdl_cv_sys_dlopen_deplibs=yes
18018 ;;
18019 esac
18020
18021fi
cristy8b350f62009-11-15 23:12:43 +000018022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018023$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18024if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18025
cristy8b350f62009-11-15 23:12:43 +000018026$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018027
18028fi
18029
18030:
18031
cristy3ed852e2009-09-05 21:47:34 +000018032for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018033do :
18034 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18035"
18036if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018037 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018038#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018039_ACEOF
18040
18041fi
18042
18043done
18044
18045
cristy8b350f62009-11-15 23:12:43 +000018046ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018047# include <argz.h>
18048#endif
cristy8b350f62009-11-15 23:12:43 +000018049"
18050if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018051
18052cat >>confdefs.h <<_ACEOF
18053#define HAVE_ERROR_T 1
18054_ACEOF
18055
18056
18057else
18058
cristy8b350f62009-11-15 23:12:43 +000018059$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018060
18061
cristy8b350f62009-11-15 23:12:43 +000018062$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018063
18064fi
18065
18066
18067ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018068for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18069 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018070do :
18071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18073eval as_val=\$$as_ac_var
18074 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018075 cat >>confdefs.h <<_ACEOF
18076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18077_ACEOF
18078
18079else
18080 ARGZ_H=argz.h;
18081
18082 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18083
18084fi
18085done
18086
18087
cristy8b350f62009-11-15 23:12:43 +000018088if test -z "$ARGZ_H"; then :
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018090$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018091if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018092 $as_echo_n "(cached) " >&6
18093else
18094 case $host_os in #(
18095 *cygwin*)
18096 lt_cv_sys_argz_works=no
18097 if test "$cross_compiling" != no; then
18098 lt_cv_sys_argz_works="guessing no"
18099 else
18100 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18101 save_IFS=$IFS
18102 IFS=-.
18103 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18104 IFS=$save_IFS
18105 lt_os_major=${2-0}
18106 lt_os_minor=${3-0}
18107 lt_os_micro=${4-0}
18108 if test "$lt_os_major" -gt 1 \
18109 || { test "$lt_os_major" -eq 1 \
18110 && { test "$lt_os_minor" -gt 5 \
18111 || { test "$lt_os_minor" -eq 5 \
18112 && test "$lt_os_micro" -gt 24; }; }; }; then
18113 lt_cv_sys_argz_works=yes
18114 fi
18115 fi
18116 ;; #(
18117 *) lt_cv_sys_argz_works=yes ;;
18118 esac
18119fi
cristy8b350f62009-11-15 23:12:43 +000018120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018121$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018122 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018123
cristy8b350f62009-11-15 23:12:43 +000018124$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018125
18126else
18127 ARGZ_H=argz.h
18128
18129
18130 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18131
18132fi
cristy3ed852e2009-09-05 21:47:34 +000018133fi
18134
18135
18136
cristy8b350f62009-11-15 23:12:43 +000018137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018138$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018139if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018140 $as_echo_n "(cached) " >&6
18141else
18142 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18143 libltdl_cv_preloaded_symbols=yes
18144 else
18145 libltdl_cv_preloaded_symbols=no
18146 fi
18147
18148fi
cristy8b350f62009-11-15 23:12:43 +000018149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018150$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18151if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18152
cristy8b350f62009-11-15 23:12:43 +000018153$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018154
18155fi
18156
18157# Set options
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018170if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018171 withval=$with_included_ltdl;
18172fi
18173
18174
18175if test "x$with_included_ltdl" != xyes; then
18176 # We are not being forced to use the included libltdl sources, so
18177 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018178 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018179
cristy8b350f62009-11-15 23:12:43 +000018180"
18181if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18182 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018183 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018184"
18185if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018187$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018188if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018189 $as_echo_n "(cached) " >&6
18190else
18191 ac_check_lib_save_LIBS=$LIBS
18192LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018194/* end confdefs.h. */
18195
18196/* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18199#ifdef __cplusplus
18200extern "C"
18201#endif
18202char lt_dladvise_preload ();
18203int
18204main ()
18205{
18206return lt_dladvise_preload ();
18207 ;
18208 return 0;
18209}
18210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018211if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018212 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18213else
cristy8b350f62009-11-15 23:12:43 +000018214 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018215fi
cristy8b350f62009-11-15 23:12:43 +000018216rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018218LIBS=$ac_check_lib_save_LIBS
18219fi
cristy8b350f62009-11-15 23:12:43 +000018220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018221$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018222if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018223 with_included_ltdl=no
18224else
18225 with_included_ltdl=yes
18226fi
18227
18228else
18229 with_included_ltdl=yes
18230fi
18231
18232else
18233 with_included_ltdl=yes
18234fi
18235
18236
18237fi
18238
18239
18240
18241
18242# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018243if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018244 withval=$with_ltdl_include;
18245fi
18246
18247
18248if test -n "$with_ltdl_include"; then
18249 if test -f "$with_ltdl_include/ltdl.h"; then :
18250 else
cristy8b350f62009-11-15 23:12:43 +000018251 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018252 fi
18253else
18254 with_ltdl_include=no
18255fi
18256
18257
18258# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018259if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018260 withval=$with_ltdl_lib;
18261fi
18262
18263
18264if test -n "$with_ltdl_lib"; then
18265 if test -f "$with_ltdl_lib/libltdl.la"; then :
18266 else
cristy8b350f62009-11-15 23:12:43 +000018267 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018268 fi
18269else
18270 with_ltdl_lib=no
18271fi
18272
18273case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18274 ,yes,no,no,)
18275 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018276 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018277 "") enable_ltdl_convenience=yes
18278 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18279esac
18280LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18281LTDLDEPS=$LIBLTDL
18282LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18283
18284
18285
18286
18287
18288# For backwards non-gettext consistent compatibility...
18289INCLTDL="$LTDLINCL"
18290
18291
18292 ;;
18293 ,no,no,no,)
18294 # If the included ltdl is not to be used, then use the
18295 # preinstalled libltdl we found.
18296
cristy8b350f62009-11-15 23:12:43 +000018297$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018298
18299 LIBLTDL=-lltdl
18300 LTDLDEPS=
18301 LTDLINCL=
18302 ;;
18303 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018304 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018305 ;;
18306 *) with_included_ltdl=no
18307 LIBLTDL="-L$with_ltdl_lib -lltdl"
18308 LTDLDEPS=
18309 LTDLINCL="-I$with_ltdl_include"
18310 ;;
18311esac
18312INCLTDL="$LTDLINCL"
18313
18314# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018316$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018318$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018320$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018322$as_echo "$LIBLTDL" >&6; }
18323
18324
18325
18326# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018327if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018328 enableval=$enable_ltdl_install;
18329fi
18330
18331
18332case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18333 *yes*) ;;
18334 *) enable_ltdl_convenience=yes ;;
18335esac
18336
18337 if test x"${enable_ltdl_install-no}" != xno; then
18338 INSTALL_LTDL_TRUE=
18339 INSTALL_LTDL_FALSE='#'
18340else
18341 INSTALL_LTDL_TRUE='#'
18342 INSTALL_LTDL_FALSE=
18343fi
18344
18345 if test x"${enable_ltdl_convenience-no}" != xno; then
18346 CONVENIENCE_LTDL_TRUE=
18347 CONVENIENCE_LTDL_FALSE='#'
18348else
18349 CONVENIENCE_LTDL_TRUE='#'
18350 CONVENIENCE_LTDL_FALSE=
18351fi
18352
18353
18354
18355
18356
18357
cristy3ed852e2009-09-05 21:47:34 +000018358# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18359# the user used. This is so that ltdl.h can pick up the parent projects
18360# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18361# definitions required by ltdl.c.
18362# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18363
18364
18365
cristy3ed852e2009-09-05 21:47:34 +000018366for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018367do :
18368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18369ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18370"
18371eval as_val=\$$as_ac_Header
18372 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018373 cat >>confdefs.h <<_ACEOF
18374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18375_ACEOF
18376
18377fi
18378
18379done
18380
18381
cristy3ed852e2009-09-05 21:47:34 +000018382for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018383do :
18384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18386eval as_val=\$$as_ac_var
18387 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018388 cat >>confdefs.h <<_ACEOF
18389#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18390_ACEOF
18391
18392else
18393
18394
18395 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18396
18397fi
18398done
18399
cristy3ed852e2009-09-05 21:47:34 +000018400for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018401do :
18402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18403ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18404eval as_val=\$$as_ac_var
18405 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018406 cat >>confdefs.h <<_ACEOF
18407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18408_ACEOF
18409
18410else
18411
18412
18413 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18414
18415fi
18416done
18417
18418
18419
18420cat >>confdefs.h <<_ACEOF
18421#define LT_LIBEXT "$libext"
18422_ACEOF
18423
18424
18425name=ltdl
18426LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18427
18428
18429
18430
18431
18432
18433
18434
18435# Only expand once:
18436
18437
18438
18439# Check to see if building shared libraries
18440libtool_build_shared_libs='no'
18441if test "$enable_shared" = 'yes'; then
18442 libtool_build_shared_libs='yes'
18443fi
18444
18445# Check to see if building static libraries
18446libtool_build_static_libs='no'
18447if test "$enable_static" = 'yes'; then
18448 libtool_build_static_libs='yes'
18449fi
18450
18451# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18452if test "${StaticCplusPlusLibraries}" = 'yes'; then
18453 LTCXXLIBOPTS='--static'
18454
18455fi
18456
18457#
18458# Enable support for building loadable modules
18459#
18460
18461# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018462if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018463 withval=$with_modules; with_modules=$withval
18464else
18465 with_modules=$libtool_build_shared_libs
18466fi
18467
18468
18469# Only allow building loadable modules if we are building shared libraries
18470if test "$with_modules" != 'no' ; then
18471 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018472 { $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 +000018473$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18474 with_modules='no'
18475 fi
18476fi
18477if test "$with_modules" != 'no'; then
18478
cristy8b350f62009-11-15 23:12:43 +000018479$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018480
18481fi
18482 if test "$with_modules" != 'no'; then
18483 WITH_MODULES_TRUE=
18484 WITH_MODULES_FALSE='#'
18485else
18486 WITH_MODULES_TRUE='#'
18487 WITH_MODULES_FALSE=
18488fi
18489
18490
18491# Enable building/use of libltdl if we are building shared libraries regardless
18492# of whether modules are built or not.
18493with_ltdl='no'
18494if test "$libtool_build_shared_libs" != 'no'; then
18495 with_ltdl='yes'
18496fi
18497
18498 if test "$with_ltdl" != 'no'; then
18499 WITH_LTDL_TRUE=
18500 WITH_LTDL_FALSE='#'
18501else
18502 WITH_LTDL_TRUE='#'
18503 WITH_LTDL_FALSE=
18504fi
18505
18506if test "$with_ltdl" != 'no'; then
18507
cristy8b350f62009-11-15 23:12:43 +000018508$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018509
18510
18511 # Set DLLDFLAGS
18512 if test X"$enable_shared" = Xyes; then
18513 DLLDFLAGS=-export-dynamic
18514
18515 fi
18516fi
18517
18518# Enable build using delegate libraries built in subdirectories rather than installed
18519# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18520# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018521if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018522 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18523else
18524 enable_delegate_build='no'
18525fi
18526
18527
18528# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018529if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018530 enableval=$enable_deprecated; enable_deprecated=$enableval
18531else
18532 enable_deprecated='no'
18533fi
18534
18535
18536if test "$enable_deprecated" = 'yes'; then
18537
cristy8b350f62009-11-15 23:12:43 +000018538$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018539
18540else
18541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18542fi
18543
18544# Build a version of ImageMagick which operates uninstalled.
18545# Used to build distributions located via MAGICK_HOME / executable path
18546# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018547if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018548 enableval=$enable_installed; enable_installed=$enableval
18549else
18550 enable_installed='yes'
18551fi
18552
18553
18554if test "$enable_installed" = 'yes'; then
18555
cristy8b350f62009-11-15 23:12:43 +000018556$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018557
18558else
18559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18560fi
18561
18562# Permit enciphering and deciphering image pixels.
18563# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018564if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018565 enableval=$enable_cipher; enable_cipher=$enableval
18566else
18567 enable_cipher='yes'
18568fi
18569
18570
18571if test "$enable_cipher" = 'yes'; then
18572
cristy8b350f62009-11-15 23:12:43 +000018573$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018574
18575fi
18576
18577# Build an embeddable version of ImageMagick.
18578# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018579if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018580 enableval=$enable_embeddable; enable_embeddable=$enableval
18581else
18582 enable_embeddable='no'
18583fi
18584
18585
18586if test "$enable_embeddable" = 'yes'; then
18587
cristy8b350f62009-11-15 23:12:43 +000018588$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018589
18590fi
18591
18592# Build a high dynamic range version of ImageMagick.
18593# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018594if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018595 enableval=$enable_hdri; enable_hdri=$enableval
18596else
18597 enable_hdri='no'
18598fi
18599
18600
18601MAGICK_HDRI=""
18602if test "$enable_hdri" = 'yes'; then
18603 MAGICK_HDRI="HDRI"
18604
cristy8b350f62009-11-15 23:12:43 +000018605$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018606
18607fi
18608
cristy3ed852e2009-09-05 21:47:34 +000018609# Build a version of ImageMagick with assert statements.
18610# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018611if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018612 enableval=$enable_assert; enable_assert=$enableval
18613else
18614 enable_assert='yes'
18615fi
18616
18617
18618if test "$enable_assert" = 'no'; then
18619
cristy8b350f62009-11-15 23:12:43 +000018620$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018621
18622fi
18623
18624# Add configure option --enable-maintainer-mode which enables dependency
18625# checking and generation useful to package maintainers. This is made an
18626# option to avoid confusing end users.
18627
cristy8b350f62009-11-15 23:12:43 +000018628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018629$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18630 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018631if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018632 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18633else
18634 USE_MAINTAINER_MODE=no
18635fi
18636
cristy8b350f62009-11-15 23:12:43 +000018637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018638$as_echo "$USE_MAINTAINER_MODE" >&6; }
18639 if test $USE_MAINTAINER_MODE = yes; then
18640 MAINTAINER_MODE_TRUE=
18641 MAINTAINER_MODE_FALSE='#'
18642else
18643 MAINTAINER_MODE_TRUE='#'
18644 MAINTAINER_MODE_FALSE=
18645fi
18646
18647 MAINT=$MAINTAINER_MODE_TRUE
18648
18649
18650
18651
18652# Enable ccmalloc memory debugging support
18653# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018654if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018655 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18656else
18657 enable_ccmalloc='no'
18658fi
18659
18660
18661# Enable Electric Fence memory debugging support
18662# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018663if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018664 enableval=$enable_efence; enable_efence=$enableval
18665else
18666 enable_efence='no'
18667fi
18668
18669
18670# Enable prof-based profiling support
18671# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018672if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018673 enableval=$enable_prof; enable_prof=$enableval
18674else
18675 enable_prof='no'
18676fi
18677
18678
18679# Enable gprof-based profiling support
18680# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018681if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018682 enableval=$enable_gprof; enable_gprof=$enableval
18683else
18684 enable_gprof='no'
18685fi
18686
18687
18688# Enable gcov-based profiling support
18689# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018690if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018691 enableval=$enable_gcov; enable_gcov=$enableval
18692else
18693 enable_gcov='no'
18694fi
18695
18696
18697enable_profiling='no'
18698if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18699 enable_profiling='yes'
18700 if test "$libtool_build_shared_libs" = 'yes'; then
18701 echo "Warning: Can not profile code using shared libraries"
18702 fi
18703fi
18704
18705# Magick API method prefix
18706
18707# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018708if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018709 withval=$with_method_prefix; with_method_prefix=$enableval
18710else
18711 with_method_prefix=''
18712fi
18713
18714
18715if test "$with_method_prefix" != ''; then
18716
18717cat >>confdefs.h <<_ACEOF
18718#define NAMESPACE_PREFIX $with_method_prefix
18719_ACEOF
18720
18721fi
18722
18723# Number of bits in a Quantum
18724
18725# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018726if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018727 withval=$with_quantum_depth; with_quantum_depth=$withval
18728else
18729 with_quantum_depth=16
18730fi
18731
18732
18733if test "$with_quantum_depth" != '8'; then
18734 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18735fi
18736
18737case "${with_quantum_depth}" in
18738 8 ) ;;
18739 16 ) ;;
18740 32 ) ;;
18741 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018742 * ) { as_fn_set_status 16
18743as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018744esac
18745QUANTUM_DEPTH="$with_quantum_depth"
18746
18747cat >>confdefs.h <<_ACEOF
18748#define QUANTUM_DEPTH $QUANTUM_DEPTH
18749_ACEOF
18750
18751
18752# Set pixel cache threshold
18753
18754# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018755if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018756 withval=$with_cache; with_cache=$withval
18757else
18758 with_cache=''
18759fi
18760
18761
18762if test "$with_cache" != ''; then
18763
18764cat >>confdefs.h <<_ACEOF
18765#define PixelCacheThreshold $with_cache
18766_ACEOF
18767
18768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18769fi
18770
18771# Disable/Enable support for full delegate paths
18772
18773# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018774if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018775 withval=$with_frozenpaths; with_frozenpaths=$withval
18776else
18777 with_frozenpaths='no'
18778fi
18779
18780
18781# Enable build/install of Magick++
18782
18783# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018784if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018785 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18786else
18787 with_magick_plus_plus='yes'
18788fi
18789
18790
18791# Disable build/install of PerlMagick.
18792
18793# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018794if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018795 withval=$with_perl; with_perl=$withval
18796else
18797 with_perl=$libtool_build_shared_libs
18798fi
18799
18800
18801# Options to pass when configuring PerlMagick
18802
18803# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000018804if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018805 withval=$with_perl_options;
18806fi
18807
18808
18809PERL_MAKE_OPTIONS=$with_perl_options
18810
18811
18812
18813# Enable umem, object-caching memory allocation library.
18814
18815# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000018816if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018817 withval=$with_umem; with_umem=$withval
18818else
18819 with_umem='no'
18820fi
18821
18822if test "$with_umem" != 'yes' ; then
18823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
18824fi
18825
18826#
18827# Specify path to shared libstdc++ if not in normal location
18828#
18829
18830# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000018831if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018832 withval=$with_libstdc; with_libstdc=$withval
18833else
18834 with_libstdc=''
18835fi
18836
18837
18838if test "$with_libstdc" != ''; then
18839 if test -d "$with_libstdc"; then
18840 LIBSTDCLDFLAGS="-L$with_libstdc"
18841 fi
18842fi
18843
18844
18845# Does gcc required -traditional?
18846if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000018847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018848$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018849if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018850 $as_echo_n "(cached) " >&6
18851else
18852 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000018853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018854/* end confdefs.h. */
18855#include <sgtty.h>
18856Autoconf TIOCGETP
18857_ACEOF
18858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018859 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018860 ac_cv_prog_gcc_traditional=yes
18861else
18862 ac_cv_prog_gcc_traditional=no
18863fi
18864rm -f conftest*
18865
18866
18867 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000018868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018869/* end confdefs.h. */
18870#include <termio.h>
18871Autoconf TCGETA
18872_ACEOF
18873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018874 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018875 ac_cv_prog_gcc_traditional=yes
18876fi
18877rm -f conftest*
18878
18879 fi
18880fi
cristy8b350f62009-11-15 23:12:43 +000018881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018882$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
18883 if test $ac_cv_prog_gcc_traditional = yes; then
18884 CC="$CC -traditional"
18885 fi
18886fi
18887
18888
18889########
18890#
18891# Set defines required to build DLLs and modules using MinGW
18892#
18893########
18894# These options are set for multi-thread DLL module build
18895# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
18896# module: _DLL
18897# executable/Magick++: _DLL _MAGICKMOD_
18898MODULE_EXTRA_CPPFLAGS=''
18899LIBRARY_EXTRA_CPPFLAGS=''
18900if test "${native_win32_build}" = 'yes'; then
18901 if test "${libtool_build_shared_libs}" = 'yes'; then
18902 CPPFLAGS="$CPPFLAGS -D_DLL"
18903 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
18904 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
18905 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
18906 if test "$with_modules" = 'yes'; then
18907 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
18908 else
18909 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
18910 fi
18911 else
18912 CPPFLAGS="$CPPFLAGS -D_LIB"
18913 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
18914 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
18915 fi
18916 if test "$with_threads" = 'yes'; then
18917 CPPFLAGS="$CPPFLAGS -D_MT"
18918 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
18919 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
18920 fi
18921fi
18922
18923
18924
18925# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000018926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000018927$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018928if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018929 $as_echo_n "(cached) " >&6
18930else
cristy8b350f62009-11-15 23:12:43 +000018931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018932/* end confdefs.h. */
18933#include <stdlib.h>
18934#include <stdarg.h>
18935#include <string.h>
18936#include <float.h>
18937
18938int
18939main ()
18940{
18941
18942 ;
18943 return 0;
18944}
18945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018946if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018947 ac_cv_header_stdc=yes
18948else
cristy8b350f62009-11-15 23:12:43 +000018949 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000018950fi
cristy3ed852e2009-09-05 21:47:34 +000018951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952
18953if test $ac_cv_header_stdc = yes; then
18954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000018955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018956/* end confdefs.h. */
18957#include <string.h>
18958
18959_ACEOF
18960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018961 $EGREP "memchr" >/dev/null 2>&1; then :
18962
cristy3ed852e2009-09-05 21:47:34 +000018963else
18964 ac_cv_header_stdc=no
18965fi
18966rm -f conftest*
18967
18968fi
18969
18970if test $ac_cv_header_stdc = yes; then
18971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000018972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018973/* end confdefs.h. */
18974#include <stdlib.h>
18975
18976_ACEOF
18977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018978 $EGREP "free" >/dev/null 2>&1; then :
18979
cristy3ed852e2009-09-05 21:47:34 +000018980else
18981 ac_cv_header_stdc=no
18982fi
18983rm -f conftest*
18984
18985fi
18986
18987if test $ac_cv_header_stdc = yes; then
18988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000018989 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018990 :
18991else
cristy8b350f62009-11-15 23:12:43 +000018992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018993/* end confdefs.h. */
18994#include <ctype.h>
18995#include <stdlib.h>
18996#if ((' ' & 0x0FF) == 0x020)
18997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18999#else
19000# define ISLOWER(c) \
19001 (('a' <= (c) && (c) <= 'i') \
19002 || ('j' <= (c) && (c) <= 'r') \
19003 || ('s' <= (c) && (c) <= 'z'))
19004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19005#endif
19006
19007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19008int
19009main ()
19010{
19011 int i;
19012 for (i = 0; i < 256; i++)
19013 if (XOR (islower (i), ISLOWER (i))
19014 || toupper (i) != TOUPPER (i))
19015 return 2;
19016 return 0;
19017}
19018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019019if ac_fn_c_try_run "$LINENO"; then :
19020
cristy3ed852e2009-09-05 21:47:34 +000019021else
cristy8b350f62009-11-15 23:12:43 +000019022 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019023fi
cristy8b350f62009-11-15 23:12:43 +000019024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19025 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019026fi
19027
cristy3ed852e2009-09-05 21:47:34 +000019028fi
19029fi
cristy8b350f62009-11-15 23:12:43 +000019030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019031$as_echo "$ac_cv_header_stdc" >&6; }
19032if test $ac_cv_header_stdc = yes; then
19033
cristy8b350f62009-11-15 23:12:43 +000019034$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019035
19036fi
19037
19038if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019039 { $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 +000019040 header files. Compilation cannot proceed. Please install the ANSI C
19041 headers and rerun this script." >&5
19042$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19043 header files. Compilation cannot proceed. Please install the ANSI C
19044 headers and rerun this script." >&2;};
19045fi
cristy3ed852e2009-09-05 21:47:34 +000019046ac_header_dirent=no
19047for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19048 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019050$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019052 $as_echo_n "(cached) " >&6
19053else
cristy8b350f62009-11-15 23:12:43 +000019054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019055/* end confdefs.h. */
19056#include <sys/types.h>
19057#include <$ac_hdr>
19058
19059int
19060main ()
19061{
19062if ((DIR *) 0)
19063return 0;
19064 ;
19065 return 0;
19066}
19067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019068if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019069 eval "$as_ac_Header=yes"
19070else
cristy8b350f62009-11-15 23:12:43 +000019071 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019072fi
cristy3ed852e2009-09-05 21:47:34 +000019073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074fi
cristy8b350f62009-11-15 23:12:43 +000019075eval ac_res=\$$as_ac_Header
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019077$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019078eval as_val=\$$as_ac_Header
19079 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019080 cat >>confdefs.h <<_ACEOF
19081#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19082_ACEOF
19083
19084ac_header_dirent=$ac_hdr; break
19085fi
19086
19087done
19088# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19089if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019091$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019092if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019093 $as_echo_n "(cached) " >&6
19094else
19095 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019097/* end confdefs.h. */
19098
19099/* Override any GCC internal prototype to avoid an error.
19100 Use char because int might match the return type of a GCC
19101 builtin and then its argument prototype would still apply. */
19102#ifdef __cplusplus
19103extern "C"
19104#endif
19105char opendir ();
19106int
19107main ()
19108{
19109return opendir ();
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114for ac_lib in '' dir; do
19115 if test -z "$ac_lib"; then
19116 ac_res="none required"
19117 else
19118 ac_res=-l$ac_lib
19119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19120 fi
cristy8b350f62009-11-15 23:12:43 +000019121 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019122 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019123fi
cristy8b350f62009-11-15 23:12:43 +000019124rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext
19126 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019127 break
19128fi
19129done
cristy8b350f62009-11-15 23:12:43 +000019130if test "${ac_cv_search_opendir+set}" = set; then :
19131
cristy3ed852e2009-09-05 21:47:34 +000019132else
19133 ac_cv_search_opendir=no
19134fi
19135rm conftest.$ac_ext
19136LIBS=$ac_func_search_save_LIBS
19137fi
cristy8b350f62009-11-15 23:12:43 +000019138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019139$as_echo "$ac_cv_search_opendir" >&6; }
19140ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019141if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19143
19144fi
19145
19146else
cristy8b350f62009-11-15 23:12:43 +000019147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019148$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019149if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019150 $as_echo_n "(cached) " >&6
19151else
19152 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019154/* end confdefs.h. */
19155
19156/* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159#ifdef __cplusplus
19160extern "C"
19161#endif
19162char opendir ();
19163int
19164main ()
19165{
19166return opendir ();
19167 ;
19168 return 0;
19169}
19170_ACEOF
19171for ac_lib in '' x; do
19172 if test -z "$ac_lib"; then
19173 ac_res="none required"
19174 else
19175 ac_res=-l$ac_lib
19176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19177 fi
cristy8b350f62009-11-15 23:12:43 +000019178 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019179 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019180fi
cristy8b350f62009-11-15 23:12:43 +000019181rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext
19183 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019184 break
19185fi
19186done
cristy8b350f62009-11-15 23:12:43 +000019187if test "${ac_cv_search_opendir+set}" = set; then :
19188
cristy3ed852e2009-09-05 21:47:34 +000019189else
19190 ac_cv_search_opendir=no
19191fi
19192rm conftest.$ac_ext
19193LIBS=$ac_func_search_save_LIBS
19194fi
cristy8b350f62009-11-15 23:12:43 +000019195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019196$as_echo "$ac_cv_search_opendir" >&6; }
19197ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019198if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19200
19201fi
19202
19203fi
19204
19205
19206# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019207for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000019208do :
19209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19210ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19211eval as_val=\$$as_ac_Header
19212 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019213 cat >>confdefs.h <<_ACEOF
19214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19215_ACEOF
19216
19217fi
19218
19219done
19220
19221
19222########
19223#
19224# Checks for typedefs, structures, and compiler characteristics.
19225#
19226########
19227
cristy8b350f62009-11-15 23:12:43 +000019228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019229$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019230if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019231 $as_echo_n "(cached) " >&6
19232else
cristy8b350f62009-11-15 23:12:43 +000019233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019234/* end confdefs.h. */
19235
19236#include <stdbool.h>
19237#ifndef bool
19238 "error: bool is not defined"
19239#endif
19240#ifndef false
19241 "error: false is not defined"
19242#endif
19243#if false
19244 "error: false is not 0"
19245#endif
19246#ifndef true
19247 "error: true is not defined"
19248#endif
19249#if true != 1
19250 "error: true is not 1"
19251#endif
19252#ifndef __bool_true_false_are_defined
19253 "error: __bool_true_false_are_defined is not defined"
19254#endif
19255
19256 struct s { _Bool s: 1; _Bool t; } s;
19257
19258 char a[true == 1 ? 1 : -1];
19259 char b[false == 0 ? 1 : -1];
19260 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19261 char d[(bool) 0.5 == true ? 1 : -1];
19262 bool e = &s;
19263 char f[(_Bool) 0.0 == false ? 1 : -1];
19264 char g[true];
19265 char h[sizeof (_Bool)];
19266 char i[sizeof s.t];
19267 enum { j = false, k = true, l = false * true, m = true * 256 };
19268 /* The following fails for
19269 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19270 _Bool n[m];
19271 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19272 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19273# if defined __xlc__ || defined __GNUC__
19274 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19275 reported by James Lemley on 2005-10-05; see
19276 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19277 This test is not quite right, since xlc is allowed to
19278 reject this program, as the initializer for xlcbug is
19279 not one of the forms that C requires support for.
19280 However, doing the test right would require a runtime
19281 test, and that would make cross-compilation harder.
19282 Let us hope that IBM fixes the xlc bug, and also adds
19283 support for this kind of constant expression. In the
19284 meantime, this test will reject xlc, which is OK, since
19285 our stdbool.h substitute should suffice. We also test
19286 this with GCC, where it should work, to detect more
19287 quickly whether someone messes up the test in the
19288 future. */
19289 char digs[] = "0123456789";
19290 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19291# endif
19292 /* Catch a bug in an HP-UX C compiler. See
19293 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19294 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19295 */
19296 _Bool q = true;
19297 _Bool *pq = &q;
19298
19299int
19300main ()
19301{
19302
19303 *pq |= q;
19304 *pq |= ! q;
19305 /* Refer to every declared value, to avoid compiler optimizations. */
19306 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19307 + !m + !n + !o + !p + !q + !pq);
19308
19309 ;
19310 return 0;
19311}
19312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019313if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019314 ac_cv_header_stdbool_h=yes
19315else
cristy8b350f62009-11-15 23:12:43 +000019316 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019317fi
cristy3ed852e2009-09-05 21:47:34 +000019318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319fi
cristy8b350f62009-11-15 23:12:43 +000019320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019321$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019322ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19323if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019324
19325cat >>confdefs.h <<_ACEOF
19326#define HAVE__BOOL 1
19327_ACEOF
19328
19329
19330fi
19331
19332if test $ac_cv_header_stdbool_h = yes; then
19333
cristy8b350f62009-11-15 23:12:43 +000019334$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019335
19336fi
19337
cristy8b350f62009-11-15 23:12:43 +000019338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019339$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019340if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019341 $as_echo_n "(cached) " >&6
19342else
cristy8b350f62009-11-15 23:12:43 +000019343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019344/* end confdefs.h. */
19345
19346int
19347main ()
19348{
19349
19350volatile int x;
19351int * volatile y = (int *) 0;
19352return !x && !y;
19353 ;
19354 return 0;
19355}
19356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019357if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019358 ac_cv_c_volatile=yes
19359else
cristy8b350f62009-11-15 23:12:43 +000019360 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019361fi
cristy3ed852e2009-09-05 21:47:34 +000019362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363fi
cristy8b350f62009-11-15 23:12:43 +000019364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019365$as_echo "$ac_cv_c_volatile" >&6; }
19366if test $ac_cv_c_volatile = no; then
19367
cristy8b350f62009-11-15 23:12:43 +000019368$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019369
19370fi
19371
cristy8b350f62009-11-15 23:12:43 +000019372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019373$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019374if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019375 $as_echo_n "(cached) " >&6
19376else
cristy8b350f62009-11-15 23:12:43 +000019377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019378/* end confdefs.h. */
19379#define x(y) #y
19380
19381char *s = x(teststring);
19382_ACEOF
19383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019384 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019385 ac_cv_c_stringize=no
19386else
19387 ac_cv_c_stringize=yes
19388fi
19389rm -f conftest*
19390
19391fi
cristy8b350f62009-11-15 23:12:43 +000019392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019393$as_echo "$ac_cv_c_stringize" >&6; }
19394if test $ac_cv_c_stringize = yes; then
19395
cristy8b350f62009-11-15 23:12:43 +000019396$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019397
19398fi
19399
cristy8b350f62009-11-15 23:12:43 +000019400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019401$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019402if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019403 $as_echo_n "(cached) " >&6
19404else
cristy8b350f62009-11-15 23:12:43 +000019405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019406/* end confdefs.h. */
19407#include <sys/types.h>
19408#include <sys/stat.h>
19409
19410#if defined S_ISBLK && defined S_IFDIR
19411extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19412#endif
19413
19414#if defined S_ISBLK && defined S_IFCHR
19415extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19416#endif
19417
19418#if defined S_ISLNK && defined S_IFREG
19419extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19420#endif
19421
19422#if defined S_ISSOCK && defined S_IFREG
19423extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19424#endif
19425
19426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019427if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019428 ac_cv_header_stat_broken=no
19429else
cristy8b350f62009-11-15 23:12:43 +000019430 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019431fi
cristy3ed852e2009-09-05 21:47:34 +000019432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433fi
cristy8b350f62009-11-15 23:12:43 +000019434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019435$as_echo "$ac_cv_header_stat_broken" >&6; }
19436if test $ac_cv_header_stat_broken = yes; then
19437
cristy8b350f62009-11-15 23:12:43 +000019438$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019439
19440fi
19441
cristy8b350f62009-11-15 23:12:43 +000019442{ $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 +000019443$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019444if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019445 $as_echo_n "(cached) " >&6
19446else
cristy8b350f62009-11-15 23:12:43 +000019447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019448/* end confdefs.h. */
19449#include <sys/types.h>
19450#include <sys/time.h>
19451#include <time.h>
19452
19453int
19454main ()
19455{
19456if ((struct tm *) 0)
19457return 0;
19458 ;
19459 return 0;
19460}
19461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019463 ac_cv_header_time=yes
19464else
cristy8b350f62009-11-15 23:12:43 +000019465 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019466fi
cristy3ed852e2009-09-05 21:47:34 +000019467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468fi
cristy8b350f62009-11-15 23:12:43 +000019469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019470$as_echo "$ac_cv_header_time" >&6; }
19471if test $ac_cv_header_time = yes; then
19472
cristy8b350f62009-11-15 23:12:43 +000019473$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019474
19475fi
19476
cristy8b350f62009-11-15 23:12:43 +000019477{ $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 +000019478$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019479if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019480 $as_echo_n "(cached) " >&6
19481else
cristy8b350f62009-11-15 23:12:43 +000019482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019483/* end confdefs.h. */
19484#include <sys/types.h>
19485#include <time.h>
19486
19487int
19488main ()
19489{
19490struct tm tm;
19491 int *p = &tm.tm_sec;
19492 return !p;
19493 ;
19494 return 0;
19495}
19496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019497if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019498 ac_cv_struct_tm=time.h
19499else
cristy8b350f62009-11-15 23:12:43 +000019500 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019501fi
cristy3ed852e2009-09-05 21:47:34 +000019502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503fi
cristy8b350f62009-11-15 23:12:43 +000019504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019505$as_echo "$ac_cv_struct_tm" >&6; }
19506if test $ac_cv_struct_tm = sys/time.h; then
19507
cristy8b350f62009-11-15 23:12:43 +000019508$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019509
19510fi
19511
cristy8b350f62009-11-15 23:12:43 +000019512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019513$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019514if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019515 $as_echo_n "(cached) " >&6
19516else
19517 echo '#! /bin/cat
19518exit 69
19519' >conftest
19520chmod u+x conftest
19521(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19522if test $? -ne 69; then
19523 ac_cv_sys_interpreter=yes
19524else
19525 ac_cv_sys_interpreter=no
19526fi
19527rm -f conftest
19528fi
cristy8b350f62009-11-15 23:12:43 +000019529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019530$as_echo "$ac_cv_sys_interpreter" >&6; }
19531interpval=$ac_cv_sys_interpreter
19532
19533
19534# If the C compiler does not fully support the ANSI C qualifier const,
19535# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019537$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019538if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019539 $as_echo_n "(cached) " >&6
19540else
cristy8b350f62009-11-15 23:12:43 +000019541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019542/* end confdefs.h. */
19543
19544int
19545main ()
19546{
19547/* FIXME: Include the comments suggested by Paul. */
19548#ifndef __cplusplus
19549 /* Ultrix mips cc rejects this. */
19550 typedef int charset[2];
19551 const charset cs;
19552 /* SunOS 4.1.1 cc rejects this. */
19553 char const *const *pcpcc;
19554 char **ppc;
19555 /* NEC SVR4.0.2 mips cc rejects this. */
19556 struct point {int x, y;};
19557 static struct point const zero = {0,0};
19558 /* AIX XL C 1.02.0.0 rejects this.
19559 It does not let you subtract one const X* pointer from another in
19560 an arm of an if-expression whose if-part is not a constant
19561 expression */
19562 const char *g = "string";
19563 pcpcc = &g + (g ? g-g : 0);
19564 /* HPUX 7.0 cc rejects these. */
19565 ++pcpcc;
19566 ppc = (char**) pcpcc;
19567 pcpcc = (char const *const *) ppc;
19568 { /* SCO 3.2v4 cc rejects this. */
19569 char *t;
19570 char const *s = 0 ? (char *) 0 : (char const *) 0;
19571
19572 *t++ = 0;
19573 if (s) return 0;
19574 }
19575 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19576 int x[] = {25, 17};
19577 const int *foo = &x[0];
19578 ++foo;
19579 }
19580 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19581 typedef const int *iptr;
19582 iptr p = 0;
19583 ++p;
19584 }
19585 { /* AIX XL C 1.02.0.0 rejects this saying
19586 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19587 struct s { int j; const int *ap[3]; };
19588 struct s *b; b->j = 5;
19589 }
19590 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19591 const int foo = 10;
19592 if (!foo) return 0;
19593 }
19594 return !cs[0] && !zero.x;
19595#endif
19596
19597 ;
19598 return 0;
19599}
19600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019601if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019602 ac_cv_c_const=yes
19603else
cristy8b350f62009-11-15 23:12:43 +000019604 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019605fi
cristy3ed852e2009-09-05 21:47:34 +000019606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19607fi
cristy8b350f62009-11-15 23:12:43 +000019608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019609$as_echo "$ac_cv_c_const" >&6; }
19610if test $ac_cv_c_const = no; then
19611
cristy8b350f62009-11-15 23:12:43 +000019612$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019613
19614fi
19615
19616
19617# If the C compiler supports the keyword inline, do nothing. Otherwise
19618# define inline to __inline__ or __inline if it accepts one of those,
19619# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019621$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019622if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019623 $as_echo_n "(cached) " >&6
19624else
19625 ac_cv_c_inline=no
19626for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019628/* end confdefs.h. */
19629#ifndef __cplusplus
19630typedef int foo_t;
19631static $ac_kw foo_t static_foo () {return 0; }
19632$ac_kw foo_t foo () {return 0; }
19633#endif
19634
19635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019636if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019637 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019638fi
cristy3ed852e2009-09-05 21:47:34 +000019639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 test "$ac_cv_c_inline" != no && break
19641done
19642
19643fi
cristy8b350f62009-11-15 23:12:43 +000019644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019645$as_echo "$ac_cv_c_inline" >&6; }
19646
cristy3ed852e2009-09-05 21:47:34 +000019647case $ac_cv_c_inline in
19648 inline | yes) ;;
19649 *)
19650 case $ac_cv_c_inline in
19651 no) ac_val=;;
19652 *) ac_val=$ac_cv_c_inline;;
19653 esac
19654 cat >>confdefs.h <<_ACEOF
19655#ifndef __cplusplus
19656#define inline $ac_val
19657#endif
19658_ACEOF
19659 ;;
19660esac
19661
19662
19663# If the C compiler supports the keyword restrict, do nothing. Otherwise
19664# define restrict to __restrict__ or __restrict if it accepts one of those,
19665# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019667$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019668if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019669 $as_echo_n "(cached) " >&6
19670else
19671 ac_cv_c_restrict=no
19672 # The order here caters to the fact that C++ does not require restrict.
19673 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019675/* end confdefs.h. */
19676typedef int * int_ptr;
19677 int foo (int_ptr $ac_kw ip) {
19678 return ip[0];
19679 }
19680int
19681main ()
19682{
19683int s[1];
19684 int * $ac_kw t = s;
19685 t[0] = 0;
19686 return foo(t)
19687 ;
19688 return 0;
19689}
19690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019692 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019693fi
cristy3ed852e2009-09-05 21:47:34 +000019694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695 test "$ac_cv_c_restrict" != no && break
19696 done
19697
19698fi
cristy8b350f62009-11-15 23:12:43 +000019699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019700$as_echo "$ac_cv_c_restrict" >&6; }
19701
cristy3ed852e2009-09-05 21:47:34 +000019702 case $ac_cv_c_restrict in
19703 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019704 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019705 ;;
19706 *) cat >>confdefs.h <<_ACEOF
19707#define restrict $ac_cv_c_restrict
19708_ACEOF
19709 ;;
19710 esac
19711
19712
19713# If words are stored with the most significant byte first (like
19714# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019716$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019717if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019718 $as_echo_n "(cached) " >&6
19719else
19720 ac_cv_c_bigendian=unknown
19721 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019723/* end confdefs.h. */
19724#ifndef __APPLE_CC__
19725 not a universal capable compiler
19726 #endif
19727 typedef int dummy;
19728
19729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019730if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019731
19732 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019733 # there are at least two -arch flags with different values.
19734 ac_arch=
19735 ac_prev=
19736 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19737 if test -n "$ac_prev"; then
19738 case $ac_word in
19739 i?86 | x86_64 | ppc | ppc64)
19740 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19741 ac_arch=$ac_word
19742 else
19743 ac_cv_c_bigendian=universal
19744 break
19745 fi
19746 ;;
19747 esac
19748 ac_prev=
19749 elif test "x$ac_word" = "x-arch"; then
19750 ac_prev=arch
19751 fi
19752 done
cristy3ed852e2009-09-05 21:47:34 +000019753fi
cristy3ed852e2009-09-05 21:47:34 +000019754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755 if test $ac_cv_c_bigendian = unknown; then
19756 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019758/* end confdefs.h. */
19759#include <sys/types.h>
19760 #include <sys/param.h>
19761
19762int
19763main ()
19764{
19765#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19766 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19767 && LITTLE_ENDIAN)
19768 bogus endian macros
19769 #endif
19770
19771 ;
19772 return 0;
19773}
19774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019776 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019778/* end confdefs.h. */
19779#include <sys/types.h>
19780 #include <sys/param.h>
19781
19782int
19783main ()
19784{
19785#if BYTE_ORDER != BIG_ENDIAN
19786 not big endian
19787 #endif
19788
19789 ;
19790 return 0;
19791}
19792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019793if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019794 ac_cv_c_bigendian=yes
19795else
cristy8b350f62009-11-15 23:12:43 +000019796 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019797fi
cristy3ed852e2009-09-05 21:47:34 +000019798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019799fi
cristy3ed852e2009-09-05 21:47:34 +000019800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801 fi
19802 if test $ac_cv_c_bigendian = unknown; then
19803 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000019804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019805/* end confdefs.h. */
19806#include <limits.h>
19807
19808int
19809main ()
19810{
19811#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19812 bogus endian macros
19813 #endif
19814
19815 ;
19816 return 0;
19817}
19818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019819if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019820 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019822/* end confdefs.h. */
19823#include <limits.h>
19824
19825int
19826main ()
19827{
19828#ifndef _BIG_ENDIAN
19829 not big endian
19830 #endif
19831
19832 ;
19833 return 0;
19834}
19835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019836if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019837 ac_cv_c_bigendian=yes
19838else
cristy8b350f62009-11-15 23:12:43 +000019839 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019840fi
cristy3ed852e2009-09-05 21:47:34 +000019841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019842fi
cristy3ed852e2009-09-05 21:47:34 +000019843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 fi
19845 if test $ac_cv_c_bigendian = unknown; then
19846 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000019847 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019848 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000019849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019850/* end confdefs.h. */
19851short int ascii_mm[] =
19852 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19853 short int ascii_ii[] =
19854 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19855 int use_ascii (int i) {
19856 return ascii_mm[i] + ascii_ii[i];
19857 }
19858 short int ebcdic_ii[] =
19859 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19860 short int ebcdic_mm[] =
19861 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19862 int use_ebcdic (int i) {
19863 return ebcdic_mm[i] + ebcdic_ii[i];
19864 }
19865 extern int foo;
19866
19867int
19868main ()
19869{
19870return use_ascii (foo) == use_ebcdic (foo);
19871 ;
19872 return 0;
19873}
19874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019875if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019876 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19877 ac_cv_c_bigendian=yes
19878 fi
19879 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19880 if test "$ac_cv_c_bigendian" = unknown; then
19881 ac_cv_c_bigendian=no
19882 else
19883 # finding both strings is unlikely to happen, but who knows?
19884 ac_cv_c_bigendian=unknown
19885 fi
19886 fi
cristy3ed852e2009-09-05 21:47:34 +000019887fi
cristy3ed852e2009-09-05 21:47:34 +000019888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889else
cristy8b350f62009-11-15 23:12:43 +000019890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019891/* end confdefs.h. */
19892$ac_includes_default
19893int
19894main ()
19895{
19896
19897 /* Are we little or big endian? From Harbison&Steele. */
19898 union
19899 {
19900 long int l;
19901 char c[sizeof (long int)];
19902 } u;
19903 u.l = 1;
19904 return u.c[sizeof (long int) - 1] == 1;
19905
19906 ;
19907 return 0;
19908}
19909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019910if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019911 ac_cv_c_bigendian=no
19912else
cristy8b350f62009-11-15 23:12:43 +000019913 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000019914fi
cristy8b350f62009-11-15 23:12:43 +000019915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19916 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019917fi
19918
cristy3ed852e2009-09-05 21:47:34 +000019919 fi
19920fi
cristy8b350f62009-11-15 23:12:43 +000019921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019922$as_echo "$ac_cv_c_bigendian" >&6; }
19923 case $ac_cv_c_bigendian in #(
19924 yes)
cristy8b350f62009-11-15 23:12:43 +000019925 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019926;; #(
19927 no)
19928 ;; #(
19929 universal)
19930
cristy8b350f62009-11-15 23:12:43 +000019931$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019932
19933 ;; #(
19934 *)
cristy8b350f62009-11-15 23:12:43 +000019935 as_fn_error "unknown endianness
19936 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019937 esac
19938
19939
19940# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019941ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19942if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019943
cristy3ed852e2009-09-05 21:47:34 +000019944else
19945
19946cat >>confdefs.h <<_ACEOF
19947#define mode_t int
19948_ACEOF
19949
19950fi
19951
19952
19953# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019954ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19955if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019956
cristy3ed852e2009-09-05 21:47:34 +000019957else
19958
19959cat >>confdefs.h <<_ACEOF
19960#define off_t long int
19961_ACEOF
19962
19963fi
19964
19965
19966# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019967ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19968if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019969
cristy3ed852e2009-09-05 21:47:34 +000019970else
19971
19972cat >>confdefs.h <<_ACEOF
19973#define pid_t int
19974_ACEOF
19975
19976fi
19977
19978
19979# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019980ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19981if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019982
cristy3ed852e2009-09-05 21:47:34 +000019983else
19984
19985cat >>confdefs.h <<_ACEOF
19986#define size_t unsigned int
19987_ACEOF
19988
19989fi
19990
19991
19992# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019993ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
19994if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019995
cristy3ed852e2009-09-05 21:47:34 +000019996else
19997
19998cat >>confdefs.h <<_ACEOF
19999#define ssize_t int
20000_ACEOF
20001
20002fi
20003
20004
20005# If the C compiler supports a working long double type with more range
20006# or precision than the double type, define HAVE_LONG_DOUBLE.
20007
cristy8b350f62009-11-15 23:12:43 +000020008 { $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 +000020009$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020010if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020011 $as_echo_n "(cached) " >&6
20012else
cristy8b350f62009-11-15 23:12:43 +000020013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020014/* end confdefs.h. */
20015#include <float.h>
20016 long double const a[] =
20017 {
20018 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20019 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20020 };
20021 long double
20022 f (long double x)
20023 {
20024 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20025 + (x ? f (x) : 'c'));
20026 }
20027
20028int
20029main ()
20030{
20031static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20032 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20033 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20034 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20035 && (int) LDBL_EPSILON == 0
20036 )];
20037test_array [0] = 0
20038
20039 ;
20040 return 0;
20041}
20042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020043if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020044 ac_cv_type_long_double_wider=yes
20045else
cristy8b350f62009-11-15 23:12:43 +000020046 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020047fi
cristy3ed852e2009-09-05 21:47:34 +000020048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049fi
cristy8b350f62009-11-15 23:12:43 +000020050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020051$as_echo "$ac_cv_type_long_double_wider" >&6; }
20052 if test $ac_cv_type_long_double_wider = yes; then
20053
cristy8b350f62009-11-15 23:12:43 +000020054$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020055
20056 fi
20057
20058
20059# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20060# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020062$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020063if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020064 $as_echo_n "(cached) " >&6
20065else
cristy8b350f62009-11-15 23:12:43 +000020066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020067/* end confdefs.h. */
20068$ac_includes_default
20069int
20070main ()
20071{
20072static int test_array [1 - 2 * !(((char) -1) < 0)];
20073test_array [0] = 0
20074
20075 ;
20076 return 0;
20077}
20078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020080 ac_cv_c_char_unsigned=no
20081else
cristy8b350f62009-11-15 23:12:43 +000020082 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020083fi
cristy3ed852e2009-09-05 21:47:34 +000020084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20085fi
cristy8b350f62009-11-15 23:12:43 +000020086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020087$as_echo "$ac_cv_c_char_unsigned" >&6; }
20088if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020089 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020090
20091fi
20092
20093
20094# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20095# The cast to long int works around a bug in the HP C Compiler
20096# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20097# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20098# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020100$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020101if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020102 $as_echo_n "(cached) " >&6
20103else
cristy8b350f62009-11-15 23:12:43 +000020104 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 +000020105
cristy3ed852e2009-09-05 21:47:34 +000020106else
cristy8b350f62009-11-15 23:12:43 +000020107 if test "$ac_cv_type_signed_short" = yes; then
20108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020110{ as_fn_set_status 77
20111as_fn_error "cannot compute sizeof (signed short)
20112See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020113 else
20114 ac_cv_sizeof_signed_short=0
20115 fi
20116fi
cristy8b350f62009-11-15 23:12:43 +000020117
cristy3ed852e2009-09-05 21:47:34 +000020118fi
cristy8b350f62009-11-15 23:12:43 +000020119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020120$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20121
20122
20123
20124cat >>confdefs.h <<_ACEOF
20125#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20126_ACEOF
20127
20128
20129
20130# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20131# The cast to long int works around a bug in the HP C Compiler
20132# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20133# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20134# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020136$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020137if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020138 $as_echo_n "(cached) " >&6
20139else
cristy8b350f62009-11-15 23:12:43 +000020140 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 +000020141
cristy3ed852e2009-09-05 21:47:34 +000020142else
cristy8b350f62009-11-15 23:12:43 +000020143 if test "$ac_cv_type_unsigned_short" = yes; then
20144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020146{ as_fn_set_status 77
20147as_fn_error "cannot compute sizeof (unsigned short)
20148See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020149 else
20150 ac_cv_sizeof_unsigned_short=0
20151 fi
20152fi
cristy8b350f62009-11-15 23:12:43 +000020153
cristy3ed852e2009-09-05 21:47:34 +000020154fi
cristy8b350f62009-11-15 23:12:43 +000020155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020156$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20157
20158
20159
20160cat >>confdefs.h <<_ACEOF
20161#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20162_ACEOF
20163
20164
20165
20166# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20167# The cast to long int works around a bug in the HP C Compiler
20168# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20169# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20170# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020172$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020173if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020174 $as_echo_n "(cached) " >&6
20175else
cristy8b350f62009-11-15 23:12:43 +000020176 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 +000020177
cristy3ed852e2009-09-05 21:47:34 +000020178else
cristy8b350f62009-11-15 23:12:43 +000020179 if test "$ac_cv_type_signed_int" = yes; then
20180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020182{ as_fn_set_status 77
20183as_fn_error "cannot compute sizeof (signed int)
20184See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020185 else
20186 ac_cv_sizeof_signed_int=0
20187 fi
20188fi
cristy8b350f62009-11-15 23:12:43 +000020189
cristy3ed852e2009-09-05 21:47:34 +000020190fi
cristy8b350f62009-11-15 23:12:43 +000020191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020192$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20193
20194
20195
20196cat >>confdefs.h <<_ACEOF
20197#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20198_ACEOF
20199
20200
20201
20202# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20203# The cast to long int works around a bug in the HP C Compiler
20204# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20205# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20206# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020208$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020209if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020210 $as_echo_n "(cached) " >&6
20211else
cristy8b350f62009-11-15 23:12:43 +000020212 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 +000020213
cristy3ed852e2009-09-05 21:47:34 +000020214else
cristy8b350f62009-11-15 23:12:43 +000020215 if test "$ac_cv_type_unsigned_int" = yes; then
20216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020218{ as_fn_set_status 77
20219as_fn_error "cannot compute sizeof (unsigned int)
20220See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020221 else
20222 ac_cv_sizeof_unsigned_int=0
20223 fi
20224fi
cristy8b350f62009-11-15 23:12:43 +000020225
cristy3ed852e2009-09-05 21:47:34 +000020226fi
cristy8b350f62009-11-15 23:12:43 +000020227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020228$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20229
20230
20231
20232cat >>confdefs.h <<_ACEOF
20233#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20234_ACEOF
20235
20236
20237
20238# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20239# The cast to long int works around a bug in the HP C Compiler
20240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20242# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020244$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020245if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020246 $as_echo_n "(cached) " >&6
20247else
cristy8b350f62009-11-15 23:12:43 +000020248 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 +000020249
cristy3ed852e2009-09-05 21:47:34 +000020250else
cristy8b350f62009-11-15 23:12:43 +000020251 if test "$ac_cv_type_signed_long" = yes; then
20252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020254{ as_fn_set_status 77
20255as_fn_error "cannot compute sizeof (signed long)
20256See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020257 else
20258 ac_cv_sizeof_signed_long=0
20259 fi
20260fi
cristy8b350f62009-11-15 23:12:43 +000020261
cristy3ed852e2009-09-05 21:47:34 +000020262fi
cristy8b350f62009-11-15 23:12:43 +000020263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020264$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20265
20266
20267
20268cat >>confdefs.h <<_ACEOF
20269#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20270_ACEOF
20271
20272
20273
20274# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20275# The cast to long int works around a bug in the HP C Compiler
20276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20278# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020280$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020281if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020282 $as_echo_n "(cached) " >&6
20283else
cristy8b350f62009-11-15 23:12:43 +000020284 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 +000020285
cristy3ed852e2009-09-05 21:47:34 +000020286else
cristy8b350f62009-11-15 23:12:43 +000020287 if test "$ac_cv_type_unsigned_long" = yes; then
20288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020290{ as_fn_set_status 77
20291as_fn_error "cannot compute sizeof (unsigned long)
20292See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020293 else
20294 ac_cv_sizeof_unsigned_long=0
20295 fi
20296fi
cristy8b350f62009-11-15 23:12:43 +000020297
cristy3ed852e2009-09-05 21:47:34 +000020298fi
cristy8b350f62009-11-15 23:12:43 +000020299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020300$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20301
20302
20303
20304cat >>confdefs.h <<_ACEOF
20305#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20306_ACEOF
20307
20308
20309
20310# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20311# 'signed long long' is not supported then the value defined is zero.
20312# The cast to long int works around a bug in the HP C Compiler
20313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20315# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020317$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020318if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020319 $as_echo_n "(cached) " >&6
20320else
cristy8b350f62009-11-15 23:12:43 +000020321 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 +000020322
cristy3ed852e2009-09-05 21:47:34 +000020323else
cristy8b350f62009-11-15 23:12:43 +000020324 if test "$ac_cv_type_signed_long_long" = yes; then
20325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020327{ as_fn_set_status 77
20328as_fn_error "cannot compute sizeof (signed long long)
20329See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020330 else
20331 ac_cv_sizeof_signed_long_long=0
20332 fi
20333fi
cristy8b350f62009-11-15 23:12:43 +000020334
cristy3ed852e2009-09-05 21:47:34 +000020335fi
cristy8b350f62009-11-15 23:12:43 +000020336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020337$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20338
20339
20340
20341cat >>confdefs.h <<_ACEOF
20342#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20343_ACEOF
20344
20345
20346
20347# Obtain size of a 'unsigned long long' and define as
20348# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20349# supported then the value defined is zero.
20350# The cast to long int works around a bug in the HP C Compiler
20351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20353# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020355$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020356if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020357 $as_echo_n "(cached) " >&6
20358else
cristy8b350f62009-11-15 23:12:43 +000020359 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 +000020360
cristy3ed852e2009-09-05 21:47:34 +000020361else
cristy8b350f62009-11-15 23:12:43 +000020362 if test "$ac_cv_type_unsigned_long_long" = yes; then
20363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020365{ as_fn_set_status 77
20366as_fn_error "cannot compute sizeof (unsigned long long)
20367See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020368 else
20369 ac_cv_sizeof_unsigned_long_long=0
20370 fi
20371fi
cristy8b350f62009-11-15 23:12:43 +000020372
cristy3ed852e2009-09-05 21:47:34 +000020373fi
cristy8b350f62009-11-15 23:12:43 +000020374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020375$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20376
20377
20378
20379cat >>confdefs.h <<_ACEOF
20380#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20381_ACEOF
20382
20383
20384
20385# Obtain size of off_t and define as SIZEOF_OFF_T
20386# The cast to long int works around a bug in the HP C Compiler
20387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20389# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020391$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020392if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020393 $as_echo_n "(cached) " >&6
20394else
cristy8b350f62009-11-15 23:12:43 +000020395 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 +000020396
cristy3ed852e2009-09-05 21:47:34 +000020397else
cristy8b350f62009-11-15 23:12:43 +000020398 if test "$ac_cv_type_off_t" = yes; then
20399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020401{ as_fn_set_status 77
20402as_fn_error "cannot compute sizeof (off_t)
20403See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020404 else
20405 ac_cv_sizeof_off_t=0
20406 fi
20407fi
cristy8b350f62009-11-15 23:12:43 +000020408
cristy3ed852e2009-09-05 21:47:34 +000020409fi
cristy8b350f62009-11-15 23:12:43 +000020410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020411$as_echo "$ac_cv_sizeof_off_t" >&6; }
20412
20413
20414
20415cat >>confdefs.h <<_ACEOF
20416#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20417_ACEOF
20418
20419
20420
20421# Obtain size of size_t and define as SIZEOF_SIZE_T
20422# The cast to long int works around a bug in the HP C Compiler
20423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20425# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020427$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020428if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020429 $as_echo_n "(cached) " >&6
20430else
cristy8b350f62009-11-15 23:12:43 +000020431 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 +000020432
cristy3ed852e2009-09-05 21:47:34 +000020433else
cristy8b350f62009-11-15 23:12:43 +000020434 if test "$ac_cv_type_size_t" = yes; then
20435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020437{ as_fn_set_status 77
20438as_fn_error "cannot compute sizeof (size_t)
20439See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020440 else
20441 ac_cv_sizeof_size_t=0
20442 fi
20443fi
cristy8b350f62009-11-15 23:12:43 +000020444
cristy3ed852e2009-09-05 21:47:34 +000020445fi
cristy8b350f62009-11-15 23:12:43 +000020446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020447$as_echo "$ac_cv_sizeof_size_t" >&6; }
20448
20449
20450
20451cat >>confdefs.h <<_ACEOF
20452#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20453_ACEOF
20454
20455
20456
20457# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20458# The cast to long int works around a bug in the HP C Compiler
20459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20461# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020463$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020464if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020465 $as_echo_n "(cached) " >&6
20466else
cristy8b350f62009-11-15 23:12:43 +000020467 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 +000020468
cristy3ed852e2009-09-05 21:47:34 +000020469else
cristy8b350f62009-11-15 23:12:43 +000020470 if test "$ac_cv_type_unsigned_intp" = yes; then
20471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020473{ as_fn_set_status 77
20474as_fn_error "cannot compute sizeof (unsigned int*)
20475See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020476 else
20477 ac_cv_sizeof_unsigned_intp=0
20478 fi
20479fi
cristy8b350f62009-11-15 23:12:43 +000020480
cristy3ed852e2009-09-05 21:47:34 +000020481fi
cristy8b350f62009-11-15 23:12:43 +000020482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020483$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20484
20485
20486
20487cat >>confdefs.h <<_ACEOF
20488#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20489_ACEOF
20490
20491
20492
20493#
20494# Compute sized types for current CPU and compiler options.
20495#
20496
cristy8b350f62009-11-15 23:12:43 +000020497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020498$as_echo_n "checking for signed 8-bit type... " >&6; }
20499INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020501$as_echo "$INT8_T" >&6; }
20502
20503
cristy8b350f62009-11-15 23:12:43 +000020504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020505$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20506UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020508$as_echo "$UINT8_T" >&6; }
20509
20510
cristy8b350f62009-11-15 23:12:43 +000020511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020512$as_echo_n "checking for signed 16-bit type... " >&6; }
20513INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020515$as_echo "$INT16_T" >&6; }
20516
20517
cristy8b350f62009-11-15 23:12:43 +000020518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020519$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20520UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020522$as_echo "$UINT16_T" >&6; }
20523
20524
cristy8b350f62009-11-15 23:12:43 +000020525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020526$as_echo_n "checking for signed 32-bit type... " >&6; }
20527INT32_T='none'
20528if test $ac_cv_sizeof_signed_int -eq 4; then
20529 INT32_T='signed int'
20530elif test $ac_cv_sizeof_signed_long -eq 4; then
20531 INT32_T='signed long'
20532fi
cristy8b350f62009-11-15 23:12:43 +000020533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020534$as_echo "$INT32_T" >&6; }
20535
20536
cristy8b350f62009-11-15 23:12:43 +000020537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020538$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20539UINT32_T='none'
20540if test $ac_cv_sizeof_unsigned_int -eq 4; then
20541 UINT32_T='unsigned int'
20542elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20543 UINT32_T='unsigned long'
20544fi
cristy8b350f62009-11-15 23:12:43 +000020545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020546$as_echo "$UINT32_T" >&6; }
20547
20548
cristy8b350f62009-11-15 23:12:43 +000020549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020550$as_echo_n "checking for signed 64-bit type... " >&6; }
20551INT64_T='none'
20552if test $ac_cv_sizeof_signed_long -eq 8; then
20553 INT64_T='signed long'
20554elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20555 INT64_T='signed long long'
20556fi
cristy8b350f62009-11-15 23:12:43 +000020557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020558$as_echo "$INT64_T" >&6; }
20559
20560
cristy8b350f62009-11-15 23:12:43 +000020561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020562$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20563UINT64_T='none'
20564if test $ac_cv_sizeof_unsigned_long -eq 8; then
20565 UINT64_T='unsigned long'
20566elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20567 UINT64_T='unsigned long long'
20568fi
cristy8b350f62009-11-15 23:12:43 +000020569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020570$as_echo "$UINT64_T" >&6; }
20571
20572
cristy8b350f62009-11-15 23:12:43 +000020573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020574$as_echo_n "checking for unsigned maximum type... " >&6; }
20575UINTMAX_T='none'
20576if test "$UINT64_T" != 'none'; then
20577 UINTMAX_T=$UINT64_T
20578elif test "$UINT32_T" != 'none'; then
20579 UINTMAX_T=$UINT32_T
20580fi
cristy8b350f62009-11-15 23:12:43 +000020581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020582$as_echo "$UINTMAX_T" >&6; }
20583
20584
cristy8b350f62009-11-15 23:12:43 +000020585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020586$as_echo_n "checking for pointer difference type... " >&6; }
20587UINTPTR_T='none'
20588if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20589 UINTPTR_T='unsigned long'
20590elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20591 UINTPTR_T='unsigned long long'
20592fi
cristy8b350f62009-11-15 23:12:43 +000020593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020594$as_echo "$UINTPTR_T" >&6; }
20595
20596
cristy8b350f62009-11-15 23:12:43 +000020597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020598$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020600/* end confdefs.h. */
20601
20602int
20603main ()
20604{
20605{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20606 ;
20607 return 0;
20608}
20609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020610if ac_fn_c_try_compile "$LINENO"; then :
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020612$as_echo "yes" >&6; }
20613else
cristy8b350f62009-11-15 23:12:43 +000020614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020615$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020617$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020619/* end confdefs.h. */
20620
20621int
20622main ()
20623{
20624{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20625 ;
20626 return 0;
20627}
20628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020629if ac_fn_c_try_compile "$LINENO"; then :
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020631$as_echo "yes" >&6; }
20632
cristy8b350f62009-11-15 23:12:43 +000020633$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020634
20635else
cristy8b350f62009-11-15 23:12:43 +000020636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020637$as_echo "no" >&6; }
20638
cristy8b350f62009-11-15 23:12:43 +000020639$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020640
20641fi
cristy3ed852e2009-09-05 21:47:34 +000020642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643fi
cristy3ed852e2009-09-05 21:47:34 +000020644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645
20646########
20647#
20648# Check for functions
20649#
20650########
cristy3ed852e2009-09-05 21:47:34 +000020651for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020652do :
20653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20654ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20655eval as_val=\$$as_ac_Header
20656 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020657 cat >>confdefs.h <<_ACEOF
20658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20659_ACEOF
20660
20661fi
20662
20663done
20664
cristy3ed852e2009-09-05 21:47:34 +000020665for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020666do :
20667 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20668if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020669 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020670#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020671_ACEOF
20672
20673fi
20674done
20675
cristy8b350f62009-11-15 23:12:43 +000020676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020677$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020678if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020679 $as_echo_n "(cached) " >&6
20680else
cristy8b350f62009-11-15 23:12:43 +000020681 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020682 magick_cv_func_mmap_fileio=no
20683else
cristy8b350f62009-11-15 23:12:43 +000020684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020685/* end confdefs.h. */
20686$ac_includes_default
20687/* malloc might have been renamed as rpl_malloc. */
20688#undef malloc
20689
20690/*
20691 This test is derived from GNU Autoconf's similar macro.
20692 The purpose of this test is to verify that files may be memory
20693 mapped, and that memory mapping and file I/O are coherent.
20694
20695 The test creates a test file, memory maps the file, updates
20696 the file using the memory map, and then reads the file using
20697 file I/O to verify that the file contains the updates.
20698*/
20699
20700#include <fcntl.h>
20701#include <sys/mman.h>
20702
20703#if !STDC_HEADERS && !HAVE_STDLIB_H
20704char *malloc ();
20705#endif
20706
20707/* This mess was copied from the GNU getpagesize.h. */
20708#if !HAVE_GETPAGESIZE
20709/* Assume that all systems that can run configure have sys/param.h. */
20710# if !HAVE_SYS_PARAM_H
20711# define HAVE_SYS_PARAM_H 1
20712# endif
20713
20714# ifdef _SC_PAGESIZE
20715# define getpagesize() sysconf(_SC_PAGESIZE)
20716# else /* no _SC_PAGESIZE */
20717# if HAVE_SYS_PARAM_H
20718# include <sys/param.h>
20719# ifdef EXEC_PAGESIZE
20720# define getpagesize() EXEC_PAGESIZE
20721# else /* no EXEC_PAGESIZE */
20722# ifdef NBPG
20723# define getpagesize() NBPG * CLSIZE
20724# ifndef CLSIZE
20725# define CLSIZE 1
20726# endif /* no CLSIZE */
20727# else /* no NBPG */
20728# ifdef NBPC
20729# define getpagesize() NBPC
20730# else /* no NBPC */
20731# ifdef PAGESIZE
20732# define getpagesize() PAGESIZE
20733# endif /* PAGESIZE */
20734# endif /* no NBPC */
20735# endif /* no NBPG */
20736# endif /* no EXEC_PAGESIZE */
20737# else /* no HAVE_SYS_PARAM_H */
20738# define getpagesize() 8192 /* punt totally */
20739# endif /* no HAVE_SYS_PARAM_H */
20740# endif /* no _SC_PAGESIZE */
20741
20742#endif /* no HAVE_GETPAGESIZE */
20743
20744int
20745main ()
20746{
20747 char *data, *data2, *data3;
20748 int i, pagesize;
20749 int fd;
20750
20751 pagesize = getpagesize ();
20752
20753 /* First, make a file with some known garbage in it. */
20754 data = (char *) malloc (pagesize);
20755 if (!data)
20756 exit (1);
20757 for (i = 0; i < pagesize; ++i)
20758 *(data + i) = rand ();
20759 umask (0);
20760 fd = creat ("conftest.mmap", 0600);
20761 if (fd < 0)
20762 exit (1);
20763 if (write (fd, data, pagesize) != pagesize)
20764 exit (1);
20765 close (fd);
20766
20767 /* Mmap the file as read/write/shared and verify that we see the
20768 same garbage. */
20769 fd = open ("conftest.mmap", O_RDWR);
20770 if (fd < 0)
20771 exit (1);
20772 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20773 if (data2 == 0)
20774 exit (1);
20775 for (i = 0; i < pagesize; ++i)
20776 if (*(data + i) != *(data2 + i))
20777 exit (1);
20778
20779 /* Finally, make sure that changes to the mapped area
20780 percolate back to the file as seen by read(). */
20781 for (i = 0; i < pagesize; ++i)
20782 *(data2 + i) = *(data2 + i) + 1;
20783 data3 = (char *) malloc (pagesize);
20784 if (!data3)
20785 exit (1);
20786 if (read (fd, data3, pagesize) != pagesize)
20787 exit (1);
20788 for (i = 0; i < pagesize; ++i)
20789 if (*(data2 + i) != *(data3 + i))
20790 exit (1);
20791 close (fd);
20792 exit (0);
20793}
20794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020795if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020796 magick_cv_func_mmap_fileio=yes
20797else
cristy8b350f62009-11-15 23:12:43 +000020798 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000020799fi
cristy8b350f62009-11-15 23:12:43 +000020800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20801 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020802fi
20803
cristy3ed852e2009-09-05 21:47:34 +000020804fi
cristy8b350f62009-11-15 23:12:43 +000020805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000020806$as_echo "$magick_cv_func_mmap_fileio" >&6; }
20807if test $magick_cv_func_mmap_fileio = yes; then
20808
cristy8b350f62009-11-15 23:12:43 +000020809$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020810
20811fi
20812rm -f conftest.mmap
20813
cristy8b350f62009-11-15 23:12:43 +000020814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020815$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020816if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020817 $as_echo_n "(cached) " >&6
20818else
cristy8b350f62009-11-15 23:12:43 +000020819 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020820 ac_cv_func_closedir_void=yes
20821else
cristy8b350f62009-11-15 23:12:43 +000020822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020823/* end confdefs.h. */
20824$ac_includes_default
20825#include <$ac_header_dirent>
20826#ifndef __cplusplus
20827int closedir ();
20828#endif
20829
20830int
20831main ()
20832{
20833return closedir (opendir (".")) != 0;
20834 ;
20835 return 0;
20836}
20837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020838if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020839 ac_cv_func_closedir_void=no
20840else
cristy8b350f62009-11-15 23:12:43 +000020841 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000020842fi
cristy8b350f62009-11-15 23:12:43 +000020843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20844 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020845fi
20846
cristy3ed852e2009-09-05 21:47:34 +000020847fi
cristy8b350f62009-11-15 23:12:43 +000020848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020849$as_echo "$ac_cv_func_closedir_void" >&6; }
20850if test $ac_cv_func_closedir_void = yes; then
20851
cristy8b350f62009-11-15 23:12:43 +000020852$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020853
20854fi
20855
cristycd4c5312009-11-22 01:19:08 +000020856
20857
20858
20859 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000020860do :
20861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000020862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20863"
cristy8b350f62009-11-15 23:12:43 +000020864eval as_val=\$$as_ac_Header
20865 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 cat >>confdefs.h <<_ACEOF
20867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20868_ACEOF
20869
20870fi
20871
20872done
20873
cristycd4c5312009-11-22 01:19:08 +000020874
20875
20876
20877
20878
20879
20880
cristy3ed852e2009-09-05 21:47:34 +000020881for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020882do :
20883 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20884if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020885 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020886#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020887_ACEOF
20888
20889fi
20890done
20891
cristy8b350f62009-11-15 23:12:43 +000020892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000020893$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020894if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 $as_echo_n "(cached) " >&6
20896else
cristy8b350f62009-11-15 23:12:43 +000020897 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020898 ac_cv_func_mmap_fixed_mapped=no
20899else
cristy8b350f62009-11-15 23:12:43 +000020900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020901/* end confdefs.h. */
20902$ac_includes_default
20903/* malloc might have been renamed as rpl_malloc. */
20904#undef malloc
20905
20906/* Thanks to Mike Haertel and Jim Avera for this test.
20907 Here is a matrix of mmap possibilities:
20908 mmap private not fixed
20909 mmap private fixed at somewhere currently unmapped
20910 mmap private fixed at somewhere already mapped
20911 mmap shared not fixed
20912 mmap shared fixed at somewhere currently unmapped
20913 mmap shared fixed at somewhere already mapped
20914 For private mappings, we should verify that changes cannot be read()
20915 back from the file, nor mmap's back from the file at a different
20916 address. (There have been systems where private was not correctly
20917 implemented like the infamous i386 svr4.0, and systems where the
20918 VM page cache was not coherent with the file system buffer cache
20919 like early versions of FreeBSD and possibly contemporary NetBSD.)
20920 For shared mappings, we should conversely verify that changes get
20921 propagated back to all the places they're supposed to be.
20922
20923 Grep wants private fixed already mapped.
20924 The main things grep needs to know about mmap are:
20925 * does it exist and is it safe to write into the mmap'd area
20926 * how to use it (BSD variants) */
20927
20928#include <fcntl.h>
20929#include <sys/mman.h>
20930
20931#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20932char *malloc ();
20933#endif
20934
20935/* This mess was copied from the GNU getpagesize.h. */
20936#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000020937# ifdef _SC_PAGESIZE
20938# define getpagesize() sysconf(_SC_PAGESIZE)
20939# else /* no _SC_PAGESIZE */
20940# ifdef HAVE_SYS_PARAM_H
20941# include <sys/param.h>
20942# ifdef EXEC_PAGESIZE
20943# define getpagesize() EXEC_PAGESIZE
20944# else /* no EXEC_PAGESIZE */
20945# ifdef NBPG
20946# define getpagesize() NBPG * CLSIZE
20947# ifndef CLSIZE
20948# define CLSIZE 1
20949# endif /* no CLSIZE */
20950# else /* no NBPG */
20951# ifdef NBPC
20952# define getpagesize() NBPC
20953# else /* no NBPC */
20954# ifdef PAGESIZE
20955# define getpagesize() PAGESIZE
20956# endif /* PAGESIZE */
20957# endif /* no NBPC */
20958# endif /* no NBPG */
20959# endif /* no EXEC_PAGESIZE */
20960# else /* no HAVE_SYS_PARAM_H */
20961# define getpagesize() 8192 /* punt totally */
20962# endif /* no HAVE_SYS_PARAM_H */
20963# endif /* no _SC_PAGESIZE */
20964
20965#endif /* no HAVE_GETPAGESIZE */
20966
20967int
20968main ()
20969{
20970 char *data, *data2, *data3;
20971 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000020972 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000020973
20974 pagesize = getpagesize ();
20975
20976 /* First, make a file with some known garbage in it. */
20977 data = (char *) malloc (pagesize);
20978 if (!data)
20979 return 1;
20980 for (i = 0; i < pagesize; ++i)
20981 *(data + i) = rand ();
20982 umask (0);
20983 fd = creat ("conftest.mmap", 0600);
20984 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000020985 return 2;
cristy3ed852e2009-09-05 21:47:34 +000020986 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000020987 return 3;
cristy3ed852e2009-09-05 21:47:34 +000020988 close (fd);
20989
cristycd4c5312009-11-22 01:19:08 +000020990 /* Next, check that the tail of a page is zero-filled. File must have
20991 non-zero length, otherwise we risk SIGBUS for entire page. */
20992 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20993 if (fd2 < 0)
20994 return 4;
20995 data2 = "";
20996 if (write (fd2, data2, 1) != 1)
20997 return 5;
20998 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20999 if (data2 == MAP_FAILED)
21000 return 6;
21001 for (i = 0; i < pagesize; ++i)
21002 if (*(data2 + i))
21003 return 7;
21004 close (fd2);
21005 if (munmap (data2, pagesize))
21006 return 8;
21007
cristy3ed852e2009-09-05 21:47:34 +000021008 /* Next, try to mmap the file at a fixed address which already has
21009 something else allocated at it. If we can, also make sure that
21010 we see the same garbage. */
21011 fd = open ("conftest.mmap", O_RDWR);
21012 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021013 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021016 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021017 for (i = 0; i < pagesize; ++i)
21018 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021019 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021020
21021 /* Finally, make sure that changes to the mapped area do not
21022 percolate back to the file as seen by read(). (This is a bug on
21023 some variants of i386 svr4.0.) */
21024 for (i = 0; i < pagesize; ++i)
21025 *(data2 + i) = *(data2 + i) + 1;
21026 data3 = (char *) malloc (pagesize);
21027 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021028 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021029 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021030 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021031 for (i = 0; i < pagesize; ++i)
21032 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021033 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021034 close (fd);
21035 return 0;
21036}
21037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021038if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021039 ac_cv_func_mmap_fixed_mapped=yes
21040else
cristy8b350f62009-11-15 23:12:43 +000021041 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021042fi
cristy8b350f62009-11-15 23:12:43 +000021043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21044 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021045fi
21046
cristy3ed852e2009-09-05 21:47:34 +000021047fi
cristy8b350f62009-11-15 23:12:43 +000021048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021049$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21050if test $ac_cv_func_mmap_fixed_mapped = yes; then
21051
cristy8b350f62009-11-15 23:12:43 +000021052$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021053
21054fi
cristycd4c5312009-11-22 01:19:08 +000021055rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021056
cristy3ed852e2009-09-05 21:47:34 +000021057for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021058do :
21059 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21060if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021061 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021062#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021063_ACEOF
21064
21065fi
21066
21067done
21068
cristy3ed852e2009-09-05 21:47:34 +000021069for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021070do :
21071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21073eval as_val=\$$as_ac_var
21074 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 cat >>confdefs.h <<_ACEOF
21076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21077_ACEOF
21078
21079fi
21080done
21081
21082if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021084$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021085if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 $as_echo_n "(cached) " >&6
21087else
cristy8b350f62009-11-15 23:12:43 +000021088 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021089 ac_cv_func_fork_works=cross
21090else
cristy8b350f62009-11-15 23:12:43 +000021091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021092/* end confdefs.h. */
21093$ac_includes_default
21094int
21095main ()
21096{
21097
21098 /* By Ruediger Kuhlmann. */
21099 return fork () < 0;
21100
21101 ;
21102 return 0;
21103}
21104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021105if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021106 ac_cv_func_fork_works=yes
21107else
cristy8b350f62009-11-15 23:12:43 +000021108 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021109fi
cristy8b350f62009-11-15 23:12:43 +000021110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21111 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021112fi
21113
cristy3ed852e2009-09-05 21:47:34 +000021114fi
cristy8b350f62009-11-15 23:12:43 +000021115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021116$as_echo "$ac_cv_func_fork_works" >&6; }
21117
21118else
21119 ac_cv_func_fork_works=$ac_cv_func_fork
21120fi
21121if test "x$ac_cv_func_fork_works" = xcross; then
21122 case $host in
21123 *-*-amigaos* | *-*-msdosdjgpp*)
21124 # Override, as these systems have only a dummy fork() stub
21125 ac_cv_func_fork_works=no
21126 ;;
21127 *)
21128 ac_cv_func_fork_works=yes
21129 ;;
21130 esac
cristy8b350f62009-11-15 23:12:43 +000021131 { $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 +000021132$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21133fi
21134ac_cv_func_vfork_works=$ac_cv_func_vfork
21135if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021137$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021138if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 $as_echo_n "(cached) " >&6
21140else
cristy8b350f62009-11-15 23:12:43 +000021141 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021142 ac_cv_func_vfork_works=cross
21143else
cristy8b350f62009-11-15 23:12:43 +000021144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021145/* end confdefs.h. */
21146/* Thanks to Paul Eggert for this test. */
21147$ac_includes_default
21148#include <sys/wait.h>
21149#ifdef HAVE_VFORK_H
21150# include <vfork.h>
21151#endif
21152/* On some sparc systems, changes by the child to local and incoming
21153 argument registers are propagated back to the parent. The compiler
21154 is told about this with #include <vfork.h>, but some compilers
21155 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21156 static variable whose address is put into a register that is
21157 clobbered by the vfork. */
21158static void
21159#ifdef __cplusplus
21160sparc_address_test (int arg)
21161# else
21162sparc_address_test (arg) int arg;
21163#endif
21164{
21165 static pid_t child;
21166 if (!child) {
21167 child = vfork ();
21168 if (child < 0) {
21169 perror ("vfork");
21170 _exit(2);
21171 }
21172 if (!child) {
21173 arg = getpid();
21174 write(-1, "", 0);
21175 _exit (arg);
21176 }
21177 }
21178}
21179
21180int
21181main ()
21182{
21183 pid_t parent = getpid ();
21184 pid_t child;
21185
21186 sparc_address_test (0);
21187
21188 child = vfork ();
21189
21190 if (child == 0) {
21191 /* Here is another test for sparc vfork register problems. This
21192 test uses lots of local variables, at least as many local
21193 variables as main has allocated so far including compiler
21194 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21195 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21196 reuse the register of parent for one of the local variables,
21197 since it will think that parent can't possibly be used any more
21198 in this routine. Assigning to the local variable will thus
21199 munge parent in the parent process. */
21200 pid_t
21201 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21202 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21203 /* Convince the compiler that p..p7 are live; otherwise, it might
21204 use the same hardware register for all 8 local variables. */
21205 if (p != p1 || p != p2 || p != p3 || p != p4
21206 || p != p5 || p != p6 || p != p7)
21207 _exit(1);
21208
21209 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21210 from child file descriptors. If the child closes a descriptor
21211 before it execs or exits, this munges the parent's descriptor
21212 as well. Test for this by closing stdout in the child. */
21213 _exit(close(fileno(stdout)) != 0);
21214 } else {
21215 int status;
21216 struct stat st;
21217
21218 while (wait(&status) != child)
21219 ;
21220 return (
21221 /* Was there some problem with vforking? */
21222 child < 0
21223
21224 /* Did the child fail? (This shouldn't happen.) */
21225 || status
21226
21227 /* Did the vfork/compiler bug occur? */
21228 || parent != getpid()
21229
21230 /* Did the file descriptor bug occur? */
21231 || fstat(fileno(stdout), &st) != 0
21232 );
21233 }
21234}
21235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021236if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021237 ac_cv_func_vfork_works=yes
21238else
cristy8b350f62009-11-15 23:12:43 +000021239 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021240fi
cristy8b350f62009-11-15 23:12:43 +000021241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21242 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021243fi
21244
cristy3ed852e2009-09-05 21:47:34 +000021245fi
cristy8b350f62009-11-15 23:12:43 +000021246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021247$as_echo "$ac_cv_func_vfork_works" >&6; }
21248
21249fi;
21250if test "x$ac_cv_func_fork_works" = xcross; then
21251 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021252 { $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 +000021253$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21254fi
21255
21256if test "x$ac_cv_func_vfork_works" = xyes; then
21257
cristy8b350f62009-11-15 23:12:43 +000021258$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021259
21260else
21261
cristy8b350f62009-11-15 23:12:43 +000021262$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021263
21264fi
21265if test "x$ac_cv_func_fork_works" = xyes; then
21266
cristy8b350f62009-11-15 23:12:43 +000021267$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021268
21269fi
21270
cristy8b350f62009-11-15 23:12:43 +000021271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021272$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021273if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 $as_echo_n "(cached) " >&6
21275else
cristy8b350f62009-11-15 23:12:43 +000021276 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021277 ac_cv_func_memcmp_working=no
21278else
cristy8b350f62009-11-15 23:12:43 +000021279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021280/* end confdefs.h. */
21281$ac_includes_default
21282int
21283main ()
21284{
21285
21286 /* Some versions of memcmp are not 8-bit clean. */
21287 char c0 = '\100', c1 = '\200', c2 = '\201';
21288 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21289 return 1;
21290
21291 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21292 or more and with at least one buffer not starting on a 4-byte boundary.
21293 William Lewis provided this test program. */
21294 {
21295 char foo[21];
21296 char bar[21];
21297 int i;
21298 for (i = 0; i < 4; i++)
21299 {
21300 char *a = foo + i;
21301 char *b = bar + i;
21302 strcpy (a, "--------01111111");
21303 strcpy (b, "--------10000000");
21304 if (memcmp (a, b, 16) >= 0)
21305 return 1;
21306 }
21307 return 0;
21308 }
21309
21310 ;
21311 return 0;
21312}
21313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021314if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021315 ac_cv_func_memcmp_working=yes
21316else
cristy8b350f62009-11-15 23:12:43 +000021317 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021318fi
cristy8b350f62009-11-15 23:12:43 +000021319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21320 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021321fi
21322
cristy3ed852e2009-09-05 21:47:34 +000021323fi
cristy8b350f62009-11-15 23:12:43 +000021324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021325$as_echo "$ac_cv_func_memcmp_working" >&6; }
21326test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21327 *" memcmp.$ac_objext "* ) ;;
21328 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21329 ;;
21330esac
21331
21332
cristy3ed852e2009-09-05 21:47:34 +000021333for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021334do :
21335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21336ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21337eval as_val=\$$as_ac_Header
21338 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 cat >>confdefs.h <<_ACEOF
21340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21341_ACEOF
21342
21343fi
21344
21345done
21346
cristy8b350f62009-11-15 23:12:43 +000021347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021348$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021349if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021350 $as_echo_n "(cached) " >&6
21351else
21352 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21353 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21354 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021356/* end confdefs.h. */
21357$ac_includes_default
21358#ifdef HAVE_SYS_SELECT_H
21359# include <sys/select.h>
21360#endif
21361#ifdef HAVE_SYS_SOCKET_H
21362# include <sys/socket.h>
21363#endif
21364
21365int
21366main ()
21367{
21368extern int select ($ac_arg1,
21369 $ac_arg234, $ac_arg234, $ac_arg234,
21370 $ac_arg5);
21371 ;
21372 return 0;
21373}
21374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021375if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021376 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021377fi
cristy3ed852e2009-09-05 21:47:34 +000021378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 done
21380 done
21381done
21382# Provide a safe default value.
21383: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21384
21385fi
cristy8b350f62009-11-15 23:12:43 +000021386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021387$as_echo "$ac_cv_func_select_args" >&6; }
21388ac_save_IFS=$IFS; IFS=','
21389set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21390IFS=$ac_save_IFS
21391shift
21392
21393cat >>confdefs.h <<_ACEOF
21394#define SELECT_TYPE_ARG1 $1
21395_ACEOF
21396
21397
21398cat >>confdefs.h <<_ACEOF
21399#define SELECT_TYPE_ARG234 ($2)
21400_ACEOF
21401
21402
21403cat >>confdefs.h <<_ACEOF
21404#define SELECT_TYPE_ARG5 ($3)
21405_ACEOF
21406
21407rm -f conftest*
21408
cristy8b350f62009-11-15 23:12:43 +000021409if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 $as_echo_n "(cached) " >&6
21411else
21412 ac_cv_func_setvbuf_reversed=no
21413fi
21414
21415
cristy8b350f62009-11-15 23:12:43 +000021416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021417$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021418if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021419 $as_echo_n "(cached) " >&6
21420else
cristy8b350f62009-11-15 23:12:43 +000021421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021422/* end confdefs.h. */
21423#include <sys/types.h>
21424#include <signal.h>
21425
21426int
21427main ()
21428{
21429return *(signal (0, 0)) (0) == 1;
21430 ;
21431 return 0;
21432}
21433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021434if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021435 ac_cv_type_signal=int
21436else
cristy8b350f62009-11-15 23:12:43 +000021437 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021438fi
cristy3ed852e2009-09-05 21:47:34 +000021439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440fi
cristy8b350f62009-11-15 23:12:43 +000021441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021442$as_echo "$ac_cv_type_signal" >&6; }
21443
21444cat >>confdefs.h <<_ACEOF
21445#define RETSIGTYPE $ac_cv_type_signal
21446_ACEOF
21447
21448
cristy8b350f62009-11-15 23:12:43 +000021449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021450$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021451if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021452 $as_echo_n "(cached) " >&6
21453else
cristy8b350f62009-11-15 23:12:43 +000021454 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 ac_cv_func_strtod=no
21456else
cristy8b350f62009-11-15 23:12:43 +000021457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021458/* end confdefs.h. */
21459
21460$ac_includes_default
21461#ifndef strtod
21462double strtod ();
21463#endif
21464int
21465main()
21466{
21467 {
21468 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21469 char *string = " +69";
21470 char *term;
21471 double value;
21472 value = strtod (string, &term);
21473 if (value != 69 || term != (string + 4))
21474 return 1;
21475 }
21476
21477 {
21478 /* Under Solaris 2.4, strtod returns the wrong value for the
21479 terminating character under some conditions. */
21480 char *string = "NaN";
21481 char *term;
21482 strtod (string, &term);
21483 if (term != string && *(term - 1) == 0)
21484 return 1;
21485 }
21486 return 0;
21487}
21488
21489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021490if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021491 ac_cv_func_strtod=yes
21492else
cristy8b350f62009-11-15 23:12:43 +000021493 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021494fi
cristy8b350f62009-11-15 23:12:43 +000021495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21496 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021497fi
21498
cristy3ed852e2009-09-05 21:47:34 +000021499fi
cristy8b350f62009-11-15 23:12:43 +000021500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021501$as_echo "$ac_cv_func_strtod" >&6; }
21502if test $ac_cv_func_strtod = no; then
21503 case " $LIBOBJS " in
21504 *" strtod.$ac_objext "* ) ;;
21505 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21506 ;;
21507esac
21508
cristy8b350f62009-11-15 23:12:43 +000021509ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21510if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021511
cristy3ed852e2009-09-05 21:47:34 +000021512fi
21513
cristy3ed852e2009-09-05 21:47:34 +000021514if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021516$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021517if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021518 $as_echo_n "(cached) " >&6
21519else
21520 ac_check_lib_save_LIBS=$LIBS
21521LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021523/* end confdefs.h. */
21524
21525/* Override any GCC internal prototype to avoid an error.
21526 Use char because int might match the return type of a GCC
21527 builtin and then its argument prototype would still apply. */
21528#ifdef __cplusplus
21529extern "C"
21530#endif
21531char pow ();
21532int
21533main ()
21534{
21535return pow ();
21536 ;
21537 return 0;
21538}
21539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021541 ac_cv_lib_m_pow=yes
21542else
cristy8b350f62009-11-15 23:12:43 +000021543 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021544fi
cristy8b350f62009-11-15 23:12:43 +000021545rm -f core conftest.err conftest.$ac_objext \
21546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021547LIBS=$ac_check_lib_save_LIBS
21548fi
cristy8b350f62009-11-15 23:12:43 +000021549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021550$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021551if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 POW_LIB=-lm
21553else
cristy8b350f62009-11-15 23:12:43 +000021554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021555$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21556fi
21557
21558fi
21559
21560fi
21561
cristy3ed852e2009-09-05 21:47:34 +000021562for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021563do :
21564 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21565if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021567#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021568_ACEOF
21569
cristy8b350f62009-11-15 23:12:43 +000021570ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21571if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021572
cristy8b350f62009-11-15 23:12:43 +000021573$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021574
21575fi
21576
21577fi
21578done
21579
21580
21581
cristye43a45e2009-09-28 14:49:00 +000021582for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021583do :
21584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21585ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21586eval as_val=\$$as_ac_var
21587 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021588 cat >>confdefs.h <<_ACEOF
21589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21590_ACEOF
21591
21592fi
21593done
21594
21595
cristye43a45e2009-09-28 14:49:00 +000021596#
21597# Check for clock_gettime().
21598#
cristy8b350f62009-11-15 23:12:43 +000021599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021600$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021601if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021602 $as_echo_n "(cached) " >&6
21603else
21604 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021606/* end confdefs.h. */
21607
21608/* Override any GCC internal prototype to avoid an error.
21609 Use char because int might match the return type of a GCC
21610 builtin and then its argument prototype would still apply. */
21611#ifdef __cplusplus
21612extern "C"
21613#endif
21614char clock_gettime ();
21615int
21616main ()
21617{
21618return clock_gettime ();
21619 ;
21620 return 0;
21621}
21622_ACEOF
21623for ac_lib in '' rt; do
21624 if test -z "$ac_lib"; then
21625 ac_res="none required"
21626 else
21627 ac_res=-l$ac_lib
21628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21629 fi
cristy8b350f62009-11-15 23:12:43 +000021630 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021631 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021632fi
cristy8b350f62009-11-15 23:12:43 +000021633rm -f core conftest.err conftest.$ac_objext \
21634 conftest$ac_exeext
21635 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021636 break
21637fi
21638done
cristy8b350f62009-11-15 23:12:43 +000021639if test "${ac_cv_search_clock_gettime+set}" = set; then :
21640
cristye43a45e2009-09-28 14:49:00 +000021641else
21642 ac_cv_search_clock_gettime=no
21643fi
21644rm conftest.$ac_ext
21645LIBS=$ac_func_search_save_LIBS
21646fi
cristy8b350f62009-11-15 23:12:43 +000021647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021648$as_echo "$ac_cv_search_clock_gettime" >&6; }
21649ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021650if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21652
21653
cristy8b350f62009-11-15 23:12:43 +000021654$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021655
cristy8b350f62009-11-15 23:12:43 +000021656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021657$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021659/* end confdefs.h. */
21660#include <time.h>
21661int
21662main ()
21663{
21664clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021665 ;
21666 return 0;
21667}
21668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021669if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021670
cristy8b350f62009-11-15 23:12:43 +000021671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021672$as_echo "yes" >&6; }
21673
cristy8b350f62009-11-15 23:12:43 +000021674$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021675
21676
21677else
cristy8b350f62009-11-15 23:12:43 +000021678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021679$as_echo "no" >&6; }
21680
21681fi
cristye43a45e2009-09-28 14:49:00 +000021682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21683
21684else
21685
cristy8b350f62009-11-15 23:12:43 +000021686 for ac_func in gettimeofday ftime
21687do :
21688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21689ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21690eval as_val=\$$as_ac_var
21691 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021692 cat >>confdefs.h <<_ACEOF
21693#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21694_ACEOF
21695 break
21696fi
21697done
21698
21699
21700
21701fi
21702
21703
cristy3ed852e2009-09-05 21:47:34 +000021704########
21705#
21706# Check for function prototypes
21707#
21708########
21709
cristy8b350f62009-11-15 23:12:43 +000021710ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021711#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021712"
21713if test "x$ac_cv_have_decl_pread" = x""yes; then :
21714 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021715else
cristy8b350f62009-11-15 23:12:43 +000021716 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021717fi
21718
cristy3ed852e2009-09-05 21:47:34 +000021719cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021720#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021722ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021723#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021724"
21725if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21726 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021727else
cristy8b350f62009-11-15 23:12:43 +000021728 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021729fi
21730
cristy3ed852e2009-09-05 21:47:34 +000021731cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021732#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021733_ACEOF
21734
21735
cristy8b350f62009-11-15 23:12:43 +000021736ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021737#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021738"
21739if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21740 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021741else
cristy8b350f62009-11-15 23:12:43 +000021742 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021743fi
21744
cristy3ed852e2009-09-05 21:47:34 +000021745cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021746#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021747_ACEOF
21748
21749
cristy8b350f62009-11-15 23:12:43 +000021750ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021751#include <stdio.h>
21752#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021753"
21754if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21755 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021756else
cristy8b350f62009-11-15 23:12:43 +000021757 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021758fi
21759
cristy3ed852e2009-09-05 21:47:34 +000021760cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021761#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021762_ACEOF
21763
21764
cristy3ed852e2009-09-05 21:47:34 +000021765########
21766#
21767# C++ Support Tests (For Magick++)
21768#
21769########
21770have_magick_plus_plus='no'
21771if test "$with_magick_plus_plus" = 'yes'; then
21772 OLIBS="$LIBS"
21773 LIBS=''
21774 ac_ext=cpp
21775ac_cpp='$CXXCPP $CPPFLAGS'
21776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21779
21780
21781 # Full set of headers used...
21782 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21783 # functional iomanip iosfwd iostream iterator list string strstream utility
21784 ac_ext=cpp
21785ac_cpp='$CXXCPP $CPPFLAGS'
21786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21789
21790 ac_ext=cpp
21791ac_cpp='$CXXCPP $CPPFLAGS'
21792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21795if test -z "$CXX"; then
21796 if test -n "$CCC"; then
21797 CXX=$CCC
21798 else
21799 if test -n "$ac_tool_prefix"; then
21800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21801 do
21802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21803set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021806if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 $as_echo_n "(cached) " >&6
21808else
21809 if test -n "$CXX"; then
21810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21811else
21812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813for as_dir in $PATH
21814do
21815 IFS=$as_save_IFS
21816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021821 break 2
21822 fi
21823done
cristy8b350f62009-11-15 23:12:43 +000021824 done
cristy3ed852e2009-09-05 21:47:34 +000021825IFS=$as_save_IFS
21826
21827fi
21828fi
21829CXX=$ac_cv_prog_CXX
21830if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$CXX" >&6; }
21833else
cristy8b350f62009-11-15 23:12:43 +000021834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021835$as_echo "no" >&6; }
21836fi
21837
21838
21839 test -n "$CXX" && break
21840 done
21841fi
21842if test -z "$CXX"; then
21843 ac_ct_CXX=$CXX
21844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21845do
21846 # Extract the first word of "$ac_prog", so it can be a program name with args.
21847set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021849$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021850if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021851 $as_echo_n "(cached) " >&6
21852else
21853 if test -n "$ac_ct_CXX"; then
21854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21855else
21856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21857for as_dir in $PATH
21858do
21859 IFS=$as_save_IFS
21860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21863 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021865 break 2
21866 fi
21867done
cristy8b350f62009-11-15 23:12:43 +000021868 done
cristy3ed852e2009-09-05 21:47:34 +000021869IFS=$as_save_IFS
21870
21871fi
21872fi
21873ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21874if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021876$as_echo "$ac_ct_CXX" >&6; }
21877else
cristy8b350f62009-11-15 23:12:43 +000021878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo "no" >&6; }
21880fi
21881
21882
21883 test -n "$ac_ct_CXX" && break
21884done
21885
21886 if test "x$ac_ct_CXX" = x; then
21887 CXX="g++"
21888 else
21889 case $cross_compiling:$ac_tool_warned in
21890yes:)
cristy8b350f62009-11-15 23:12:43 +000021891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000021892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21893ac_tool_warned=yes ;;
21894esac
21895 CXX=$ac_ct_CXX
21896 fi
21897fi
21898
21899 fi
21900fi
21901# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000021902$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000021903set X $ac_compile
21904ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000021905for ac_option in --version -v -V -qversion; do
21906 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000021907case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910esac
cristy8b350f62009-11-15 23:12:43 +000021911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21912$as_echo "$ac_try_echo"; } >&5
21913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000021914 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000021915 if test -s conftest.err; then
21916 sed '10a\
21917... rest of stderr output deleted ...
21918 10q' conftest.err >conftest.er1
21919 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000021920 fi
cristycd4c5312009-11-22 01:19:08 +000021921 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000021922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21923 test $ac_status = 0; }
21924done
cristy3ed852e2009-09-05 21:47:34 +000021925
cristy8b350f62009-11-15 23:12:43 +000021926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000021927$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021928if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021929 $as_echo_n "(cached) " >&6
21930else
cristy8b350f62009-11-15 23:12:43 +000021931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021932/* end confdefs.h. */
21933
21934int
21935main ()
21936{
21937#ifndef __GNUC__
21938 choke me
21939#endif
21940
21941 ;
21942 return 0;
21943}
21944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021945if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 ac_compiler_gnu=yes
21947else
cristy8b350f62009-11-15 23:12:43 +000021948 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000021949fi
cristy3ed852e2009-09-05 21:47:34 +000021950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21952
21953fi
cristy8b350f62009-11-15 23:12:43 +000021954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000021955$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21956if test $ac_compiler_gnu = yes; then
21957 GXX=yes
21958else
21959 GXX=
21960fi
21961ac_test_CXXFLAGS=${CXXFLAGS+set}
21962ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000021963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000021964$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021965if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 $as_echo_n "(cached) " >&6
21967else
21968 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21969 ac_cxx_werror_flag=yes
21970 ac_cv_prog_cxx_g=no
21971 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000021972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021973/* end confdefs.h. */
21974
21975int
21976main ()
21977{
21978
21979 ;
21980 return 0;
21981}
21982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021983if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021984 ac_cv_prog_cxx_g=yes
21985else
cristy8b350f62009-11-15 23:12:43 +000021986 CXXFLAGS=""
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021988/* end confdefs.h. */
21989
21990int
21991main ()
21992{
21993
21994 ;
21995 return 0;
21996}
21997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021998if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021999
cristy8b350f62009-11-15 23:12:43 +000022000else
22001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022002 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022004/* end confdefs.h. */
22005
22006int
22007main ()
22008{
22009
22010 ;
22011 return 0;
22012}
22013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022014if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022015 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022016fi
cristy3ed852e2009-09-05 21:47:34 +000022017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018fi
cristy3ed852e2009-09-05 21:47:34 +000022019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020fi
cristy3ed852e2009-09-05 21:47:34 +000022021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22023fi
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo "$ac_cv_prog_cxx_g" >&6; }
22026if test "$ac_test_CXXFLAGS" = set; then
22027 CXXFLAGS=$ac_save_CXXFLAGS
22028elif test $ac_cv_prog_cxx_g = yes; then
22029 if test "$GXX" = yes; then
22030 CXXFLAGS="-g -O2"
22031 else
22032 CXXFLAGS="-g"
22033 fi
22034else
22035 if test "$GXX" = yes; then
22036 CXXFLAGS="-O2"
22037 else
22038 CXXFLAGS=
22039 fi
22040fi
22041ac_ext=cpp
22042ac_cpp='$CXXCPP $CPPFLAGS'
22043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22046
22047depcc="$CXX" am_compiler_list=
22048
cristy8b350f62009-11-15 23:12:43 +000022049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022051if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022052 $as_echo_n "(cached) " >&6
22053else
22054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22055 # We make a subdir and do the tests there. Otherwise we can end up
22056 # making bogus files that we don't know about and never remove. For
22057 # instance it was reported that on HP-UX the gcc test will end up
22058 # making a dummy file named `D' -- because `-MD' means `put the output
22059 # in D'.
22060 mkdir conftest.dir
22061 # Copy depcomp to subdir because otherwise we won't find it if we're
22062 # using a relative directory.
22063 cp "$am_depcomp" conftest.dir
22064 cd conftest.dir
22065 # We will build objects and dependencies in a subdirectory because
22066 # it helps to detect inapplicable dependency modes. For instance
22067 # both Tru64's cc and ICC support -MD to output dependencies as a
22068 # side effect of compilation, but ICC will put the dependencies in
22069 # the current directory while Tru64 will put them in the object
22070 # directory.
22071 mkdir sub
22072
22073 am_cv_CXX_dependencies_compiler_type=none
22074 if test "$am_compiler_list" = ""; then
22075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22076 fi
22077 am__universal=false
22078 case " $depcc " in #(
22079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22080 esac
22081
22082 for depmode in $am_compiler_list; do
22083 # Setup a source with many dependencies, because some compilers
22084 # like to wrap large dependency lists on column 80 (with \), and
22085 # we should not choose a depcomp mode which is confused by this.
22086 #
22087 # We need to recreate these files for each test, as the compiler may
22088 # overwrite some of them when testing with obscure command lines.
22089 # This happens at least with the AIX C compiler.
22090 : > sub/conftest.c
22091 for i in 1 2 3 4 5 6; do
22092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22093 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22094 # Solaris 8's {/usr,}/bin/sh.
22095 touch sub/conftst$i.h
22096 done
22097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22098
22099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22100 # mode. It turns out that the SunPro C++ compiler does not properly
22101 # handle `-M -o', and we need to detect this. Also, some Intel
22102 # versions had trouble with output in subdirs
22103 am__obj=sub/conftest.${OBJEXT-o}
22104 am__minus_obj="-o $am__obj"
22105 case $depmode in
22106 gcc)
22107 # This depmode causes a compiler race in universal mode.
22108 test "$am__universal" = false || continue
22109 ;;
22110 nosideeffect)
22111 # after this tag, mechanisms are not by side-effect, so they'll
22112 # only be used when explicitly requested
22113 if test "x$enable_dependency_tracking" = xyes; then
22114 continue
22115 else
22116 break
22117 fi
22118 ;;
22119 msvisualcpp | msvcmsys)
22120 # This compiler won't grok `-c -o', but also, the minuso test has
22121 # not run yet. These depmodes are late enough in the game, and
22122 # so weak that their functioning should not be impacted.
22123 am__obj=conftest.${OBJEXT-o}
22124 am__minus_obj=
22125 ;;
22126 none) break ;;
22127 esac
22128 if depmode=$depmode \
22129 source=sub/conftest.c object=$am__obj \
22130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22132 >/dev/null 2>conftest.err &&
22133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22137 # icc doesn't choke on unknown options, it will just issue warnings
22138 # or remarks (even with -Werror). So we grep stderr for any message
22139 # that says an option was ignored or not supported.
22140 # When given -MP, icc 7.0 and 7.1 complain thusly:
22141 # icc: Command line warning: ignoring option '-M'; no argument required
22142 # The diagnosis changed in icc 8.0:
22143 # icc: Command line remark: option '-MP' not supported
22144 if (grep 'ignoring option' conftest.err ||
22145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22146 am_cv_CXX_dependencies_compiler_type=$depmode
22147 break
22148 fi
22149 fi
22150 done
22151
22152 cd ..
22153 rm -rf conftest.dir
22154else
22155 am_cv_CXX_dependencies_compiler_type=none
22156fi
22157
22158fi
cristy8b350f62009-11-15 23:12:43 +000022159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022160$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22161CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22162
22163 if
22164 test "x$enable_dependency_tracking" != xno \
22165 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22166 am__fastdepCXX_TRUE=
22167 am__fastdepCXX_FALSE='#'
22168else
22169 am__fastdepCXX_TRUE='#'
22170 am__fastdepCXX_FALSE=
22171fi
22172
22173
cristy8b350f62009-11-15 23:12:43 +000022174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022175$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022176if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022177 $as_echo_n "(cached) " >&6
22178else
22179
22180 ac_ext=cpp
22181ac_cpp='$CXXCPP $CPPFLAGS'
22182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22185
cristy8b350f62009-11-15 23:12:43 +000022186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022187/* end confdefs.h. */
22188
22189int f(int x){return 1;}
22190int f(char x){return 1;}
22191int f(bool x){return 1;}
22192
22193int
22194main ()
22195{
22196bool b = true; return f(b);
22197 ;
22198 return 0;
22199}
22200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022201if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022202 ac_cv_cxx_have_bool=yes
22203else
cristy8b350f62009-11-15 23:12:43 +000022204 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022205fi
cristy3ed852e2009-09-05 21:47:34 +000022206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207 ac_ext=cpp
22208ac_cpp='$CXXCPP $CPPFLAGS'
22209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22212
22213
22214fi
cristy8b350f62009-11-15 23:12:43 +000022215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022216$as_echo "$ac_cv_cxx_have_bool" >&6; }
22217if test "$ac_cv_cxx_have_bool" = yes; then
22218
cristy8b350f62009-11-15 23:12:43 +000022219$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022220
22221fi
22222
cristy8b350f62009-11-15 23:12:43 +000022223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022224$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022225if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022226 $as_echo_n "(cached) " >&6
22227else
22228
22229 ac_ext=cpp
22230ac_cpp='$CXXCPP $CPPFLAGS'
22231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22234
cristy8b350f62009-11-15 23:12:43 +000022235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022236/* end confdefs.h. */
22237namespace Outer { namespace Inner { int i = 0; }}
22238int
22239main ()
22240{
22241using namespace Outer::Inner; return i;
22242 ;
22243 return 0;
22244}
22245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022246if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022247 ac_cv_cxx_have_namespaces=yes
22248else
cristy8b350f62009-11-15 23:12:43 +000022249 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022250fi
cristy3ed852e2009-09-05 21:47:34 +000022251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 ac_ext=cpp
22253ac_cpp='$CXXCPP $CPPFLAGS'
22254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22257
22258
22259fi
cristy8b350f62009-11-15 23:12:43 +000022260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022261$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22262if test "$ac_cv_cxx_have_namespaces" = yes; then
22263
cristy8b350f62009-11-15 23:12:43 +000022264$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022265
22266fi
22267
cristy8b350f62009-11-15 23:12:43 +000022268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022269$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022270if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 $as_echo_n "(cached) " >&6
22272else
22273
22274 ac_ext=cpp
22275ac_cpp='$CXXCPP $CPPFLAGS'
22276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22279
cristy8b350f62009-11-15 23:12:43 +000022280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022281/* end confdefs.h. */
22282#include <iostream>
22283 std::istream& is = std::cin;
22284
22285int
22286main ()
22287{
22288return 0;
22289 ;
22290 return 0;
22291}
22292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022293if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 ac_cv_cxx_have_std_namespace=yes
22295else
cristy8b350f62009-11-15 23:12:43 +000022296 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022297fi
cristy3ed852e2009-09-05 21:47:34 +000022298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 ac_ext=cpp
22300ac_cpp='$CXXCPP $CPPFLAGS'
22301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22304
22305
22306fi
cristy8b350f62009-11-15 23:12:43 +000022307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022308$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22309if test "$ac_cv_cxx_have_std_namespace" = yes; then
22310
cristy8b350f62009-11-15 23:12:43 +000022311$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022312
22313fi
22314
cristy8b350f62009-11-15 23:12:43 +000022315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022316$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022317if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 $as_echo_n "(cached) " >&6
22319else
22320
22321
22322 ac_ext=cpp
22323ac_cpp='$CXXCPP $CPPFLAGS'
22324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22327
cristy8b350f62009-11-15 23:12:43 +000022328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022329/* end confdefs.h. */
22330#include <iostream>
22331#include <map>
22332#include <iomanip>
22333#include <cmath>
22334#ifdef HAVE_NAMESPACES
22335using namespace std;
22336#endif
22337int
22338main ()
22339{
22340return 0;
22341 ;
22342 return 0;
22343}
22344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022345if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022346 ac_cv_cxx_have_std_libs=yes
22347else
cristy8b350f62009-11-15 23:12:43 +000022348 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022349fi
cristy3ed852e2009-09-05 21:47:34 +000022350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351 ac_ext=cpp
22352ac_cpp='$CXXCPP $CPPFLAGS'
22353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22356
22357
22358fi
cristy8b350f62009-11-15 23:12:43 +000022359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022360$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22361if test "$ac_cv_cxx_have_std_libs" = yes; then
22362
cristy8b350f62009-11-15 23:12:43 +000022363$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022364
22365fi
22366
cristy8b350f62009-11-15 23:12:43 +000022367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022368$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022369if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022370 $as_echo_n "(cached) " >&6
22371else
22372
22373 ac_ext=cpp
22374ac_cpp='$CXXCPP $CPPFLAGS'
22375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22378
cristy8b350f62009-11-15 23:12:43 +000022379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022380/* end confdefs.h. */
22381const wchar_t* s=L"wide string";
22382_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022383if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022384 ac_cv_cxx_have_lstring=yes
22385else
cristy8b350f62009-11-15 23:12:43 +000022386 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022387fi
cristy3ed852e2009-09-05 21:47:34 +000022388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 ac_ext=cpp
22390ac_cpp='$CXXCPP $CPPFLAGS'
22391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22394
22395
22396fi
cristy8b350f62009-11-15 23:12:43 +000022397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022398$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22399if test "$ac_cv_cxx_have_lstring" = yes; then
22400
cristy8b350f62009-11-15 23:12:43 +000022401$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022402
22403fi
22404
22405
22406 OPENMP_CXXFLAGS=
22407 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022408if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 enableval=$enable_openmp;
22410fi
22411
22412 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22414$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022415if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022416 $as_echo_n "(cached) " >&6
22417else
cristy8b350f62009-11-15 23:12:43 +000022418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022420
22421#ifndef _OPENMP
22422 choke me
22423#endif
22424#include <omp.h>
22425int main () { return omp_get_num_threads (); }
22426
22427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022428if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 ac_cv_prog_cxx_openmp='none needed'
22430else
cristy8b350f62009-11-15 23:12:43 +000022431 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022432 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22433 ac_save_CXXFLAGS=$CXXFLAGS
22434 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022437
22438#ifndef _OPENMP
22439 choke me
22440#endif
22441#include <omp.h>
22442int main () { return omp_get_num_threads (); }
22443
22444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022445if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022447fi
cristy8b350f62009-11-15 23:12:43 +000022448rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022450 CXXFLAGS=$ac_save_CXXFLAGS
22451 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22452 break
22453 fi
22454 done
22455fi
cristy8b350f62009-11-15 23:12:43 +000022456rm -f core conftest.err conftest.$ac_objext \
22457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy8b350f62009-11-15 23:12:43 +000022459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022460$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22461 case $ac_cv_prog_cxx_openmp in #(
22462 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022463 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022464 *)
cristy8b350f62009-11-15 23:12:43 +000022465 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022466 esac
22467 fi
22468
22469
22470 ac_ext=c
22471ac_cpp='$CPP $CPPFLAGS'
22472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22474ac_compiler_gnu=$ac_cv_c_compiler_gnu
22475
22476
cristy8b350f62009-11-15 23:12:43 +000022477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022478$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22479 if \
22480 test $ac_cv_cxx_have_bool = 'yes' && \
22481 test $ac_cv_cxx_have_lstring = 'yes' && \
22482 test $ac_cv_cxx_have_namespaces = 'yes' && \
22483 test $ac_cv_cxx_have_std_libs = 'yes' && \
22484 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22485 have_magick_plus_plus='yes'
22486 else
22487 have_magick_plus_plus='no (failed tests)'
22488 fi
cristy8b350f62009-11-15 23:12:43 +000022489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo "$have_magick_plus_plus" >&6; }
22491 LIBS="$OLIBS"
22492fi
22493 if test "$have_magick_plus_plus" = 'yes'; then
22494 WITH_MAGICK_PLUS_PLUS_TRUE=
22495 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22496else
22497 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22498 WITH_MAGICK_PLUS_PLUS_FALSE=
22499fi
22500
22501
22502# Only check for delegate libraries in subdirectories if requested.
22503if test "$enable_delegate_build" != 'no'; then
22504 # Check for delegate sub-directories and add -I & -L options as required.
22505 # This presumes that delegates are installed as detailed in the ImageMagick
22506 # README. If delegates are installed in a standard location where the
22507 # compiler will automatically find them then these options should not be
22508 # required.
22509
22510 #
22511 # Most delegates have includes in the same directory as the library, but not all...
22512 #
22513 # Includes
22514 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22515 if test -d "$builddir/$dir"; then
22516 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22517 else
22518 if test -d "$srcdirfull/$dir"; then
22519 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22520 fi
22521 fi
22522 done
22523
22524 # Libraries
22525 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22526 if test -d "$builddir/$dir/.libs"; then
22527 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22528 else
22529 if test -d "$srcdirfull/$dir/.libs"; then
22530 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22531 fi
22532 fi
22533 if test -d "$builddir/$dir"; then
22534 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22535 else
22536 if test -d "$srcdirfull/$dir"; then
22537 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22538 fi
22539 fi
22540 done
22541fi
22542
22543# Assume that delegate headers reside under same directory as ImageMagick
22544# installation prefix.
22545MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22546
22547#
22548# Find the X11 RGB database
22549#
cristy8b350f62009-11-15 23:12:43 +000022550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022551$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022552if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022553 $as_echo_n "(cached) " >&6
22554else
22555 # Look for the header file in a standard set of common directories.
22556# Check X11 before X11Rn because it is often a symlink to the current release.
22557 for ac_dir in \
22558 /lib/usr/lib/X11 \
22559 /usr/X11/lib \
22560 /usr/X11R4/lib \
22561 /usr/X11R5/lib \
22562 /usr/X11R6/lib \
22563 /usr/X11R7/lib \
22564 /usr/X386/lib \
22565 /usr/XFree86/lib/X11 \
22566 /usr/athena/lib \
22567 /usr/lib \
22568 /usr/lib/X11 \
22569 /usr/lib/X11R4 \
22570 /usr/lib/X11R5 \
22571 /usr/lib/X11R6 \
22572 /usr/lib/X11R7 \
22573 /usr/local/X11/lib \
22574 /usr/local/X11R4/lib \
22575 /usr/local/X11R5/lib \
22576 /usr/local/X11R6/lib \
22577 /usr/local/lib \
22578 /usr/local/lib/X11 \
22579 /usr/local/lib/X11R4 \
22580 /usr/local/lib/X11R5 \
22581 /usr/local/lib/X11R6 \
22582 /usr/local/lib/X11R7 \
22583 /usr/local/x11r5/lib \
22584 /usr/lpp/Xamples/lib \
22585 /usr/openwin/lib \
22586 /usr/openwin/share/lib \
22587 /usr/unsupported/lib \
22588 /usr/x386/lib \
22589 ; do
22590 if test -f "$ac_dir/X11/rgb.txt"; then
22591 im_cv_x_configure="$ac_dir/X11/"
22592 break
22593 elif test -f "$ac_dir/rgb.txt"; then
22594 im_cv_x_configure="$ac_dir/"
22595 break
22596 fi
22597
22598 done
22599fi
cristy8b350f62009-11-15 23:12:43 +000022600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022601$as_echo "$im_cv_x_configure" >&6; }
22602X11_CONFIGURE_PATH="$im_cv_x_configure"
22603case "${build_os}" in
22604 mingw* )
22605 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22606 ;;
22607esac
22608
22609cat >>confdefs.h <<_ACEOF
22610#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22611_ACEOF
22612
22613
22614#
22615# Find OpenMP library
22616#
22617GOMP_LIBS=''
22618if test "$enable_openmp" != 'no'; then
22619 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022621$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022622if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022623 $as_echo_n "(cached) " >&6
22624else
22625 ac_check_lib_save_LIBS=$LIBS
22626LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022628/* end confdefs.h. */
22629
22630/* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22633#ifdef __cplusplus
22634extern "C"
22635#endif
22636char GOMP_parallel_start ();
22637int
22638main ()
22639{
22640return GOMP_parallel_start ();
22641 ;
22642 return 0;
22643}
22644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022646 ac_cv_lib_gomp_GOMP_parallel_start=yes
22647else
cristy8b350f62009-11-15 23:12:43 +000022648 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022649fi
cristy8b350f62009-11-15 23:12:43 +000022650rm -f core conftest.err conftest.$ac_objext \
22651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022652LIBS=$ac_check_lib_save_LIBS
22653fi
cristy8b350f62009-11-15 23:12:43 +000022654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022655$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022656if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022657 GOMP_LIBS="-lgomp"
22658fi
22659 # gcc
22660 else
cristy8b350f62009-11-15 23:12:43 +000022661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022662$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022663if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022664 $as_echo_n "(cached) " >&6
22665else
22666 ac_check_lib_save_LIBS=$LIBS
22667LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022669/* end confdefs.h. */
22670
22671/* Override any GCC internal prototype to avoid an error.
22672 Use char because int might match the return type of a GCC
22673 builtin and then its argument prototype would still apply. */
22674#ifdef __cplusplus
22675extern "C"
22676#endif
22677char sunw_mp_register_warn ();
22678int
22679main ()
22680{
22681return sunw_mp_register_warn ();
22682 ;
22683 return 0;
22684}
22685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022686if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022687 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22688else
cristy8b350f62009-11-15 23:12:43 +000022689 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022690fi
cristy8b350f62009-11-15 23:12:43 +000022691rm -f core conftest.err conftest.$ac_objext \
22692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022693LIBS=$ac_check_lib_save_LIBS
22694fi
cristy8b350f62009-11-15 23:12:43 +000022695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022696$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022697if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022698 GOMP_LIBS="-lmtsk"
22699fi
22700 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022702$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022703if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022704 $as_echo_n "(cached) " >&6
22705else
22706 ac_check_lib_save_LIBS=$LIBS
22707LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022709/* end confdefs.h. */
22710
22711/* Override any GCC internal prototype to avoid an error.
22712 Use char because int might match the return type of a GCC
22713 builtin and then its argument prototype would still apply. */
22714#ifdef __cplusplus
22715extern "C"
22716#endif
22717char _xlsmpFlush ();
22718int
22719main ()
22720{
22721return _xlsmpFlush ();
22722 ;
22723 return 0;
22724}
22725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022726if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022727 ac_cv_lib_xlsmp__xlsmpFlush=yes
22728else
cristy8b350f62009-11-15 23:12:43 +000022729 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022730fi
cristy8b350f62009-11-15 23:12:43 +000022731rm -f core conftest.err conftest.$ac_objext \
22732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022733LIBS=$ac_check_lib_save_LIBS
22734fi
cristy8b350f62009-11-15 23:12:43 +000022735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022737if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022738 GOMP_LIBS="-lxlsmp"
22739fi
22740 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022742$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022743if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022744 $as_echo_n "(cached) " >&6
22745else
22746 ac_check_lib_save_LIBS=$LIBS
22747LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022749/* end confdefs.h. */
22750
22751/* Override any GCC internal prototype to avoid an error.
22752 Use char because int might match the return type of a GCC
22753 builtin and then its argument prototype would still apply. */
22754#ifdef __cplusplus
22755extern "C"
22756#endif
22757char mp_destroy ();
22758int
22759main ()
22760{
22761return mp_destroy ();
22762 ;
22763 return 0;
22764}
22765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022767 ac_cv_lib_mp_mp_destroy=yes
22768else
cristy8b350f62009-11-15 23:12:43 +000022769 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022770fi
cristy8b350f62009-11-15 23:12:43 +000022771rm -f core conftest.err conftest.$ac_objext \
22772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022773LIBS=$ac_check_lib_save_LIBS
22774fi
cristy8b350f62009-11-15 23:12:43 +000022775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022776$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022777if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022778 GOMP_LIBS="-lmp"
22779fi
22780 # SGI IRIX 6.5 MIPSpro C/C++
22781 fi
22782 LIBS="$GOMP_LIBS $LIBS"
22783fi
22784
22785
22786#
22787# Find Posix threads library
22788#
22789THREAD_LIBS=''
22790if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22791
22792 if test "x$PTHREAD_LIBS" = "x"; then
22793 case "${host_cpu}-${host_os}" in
22794 *-freebsd*)
22795
22796
22797
22798ac_ext=c
22799ac_cpp='$CPP $CPPFLAGS'
22800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22802ac_compiler_gnu=$ac_cv_c_compiler_gnu
22803
22804magick_pthread_lib_ok=no
22805
22806LIB=-lc_r
22807save_LIBS="$LIBS"
22808LIBS="$LIBS $LIB"
22809
cristy8b350f62009-11-15 23:12:43 +000022810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022813/* end confdefs.h. */
22814#include <pthread.h>
22815int
22816main ()
22817{
22818 pthread_t th;
22819 pthread_join(th, 0);
22820 pthread_attr_init(0);
22821 pthread_cleanup_push(0, 0);
22822 pthread_create(0,0,0,0);
22823 pthread_cleanup_pop(0);
22824 ;
22825 return 0;
22826}
22827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022829 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022830fi
cristy8b350f62009-11-15 23:12:43 +000022831rm -f core conftest.err conftest.$ac_objext \
22832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022833
cristy8b350f62009-11-15 23:12:43 +000022834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022835$as_echo "${magick_pthread_lib_ok}" >&6; }
22836if test "$magick_pthread_lib_ok" = yes
22837then
22838 PTHREAD_LIBS=-lc_r
22839 :
22840else
22841
22842 :
22843fi
22844
22845LIBS="$save_LIBS"
22846
22847ac_ext=c
22848ac_cpp='$CPP $CPPFLAGS'
22849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22851ac_compiler_gnu=$ac_cv_c_compiler_gnu
22852
22853 ;;
22854 esac
22855 fi
22856
22857 for lib in pthread pthreads; do
22858 if test "x$PTHREAD_LIBS" = "x"; then
22859
22860
22861
22862ac_ext=c
22863ac_cpp='$CPP $CPPFLAGS'
22864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22866ac_compiler_gnu=$ac_cv_c_compiler_gnu
22867
22868magick_pthread_lib_ok=no
22869
22870LIB=-l$lib
22871save_LIBS="$LIBS"
22872LIBS="$LIBS $LIB"
22873
cristy8b350f62009-11-15 23:12:43 +000022874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022875$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022877/* end confdefs.h. */
22878#include <pthread.h>
22879int
22880main ()
22881{
22882 pthread_t th;
22883 pthread_join(th, 0);
22884 pthread_attr_init(0);
22885 pthread_cleanup_push(0, 0);
22886 pthread_create(0,0,0,0);
22887 pthread_cleanup_pop(0);
22888 ;
22889 return 0;
22890}
22891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022892if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022893 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022894fi
cristy8b350f62009-11-15 23:12:43 +000022895rm -f core conftest.err conftest.$ac_objext \
22896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022897
cristy8b350f62009-11-15 23:12:43 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo "${magick_pthread_lib_ok}" >&6; }
22900if test "$magick_pthread_lib_ok" = yes
22901then
22902 PTHREAD_LIBS=-l$lib
22903 :
22904else
22905
22906 :
22907fi
22908
22909LIBS="$save_LIBS"
22910
22911ac_ext=c
22912ac_cpp='$CPP $CPPFLAGS'
22913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22915ac_compiler_gnu=$ac_cv_c_compiler_gnu
22916
22917
22918 fi
22919 done
22920
22921 THREAD_LIBS="$PTHREAD_LIBS"
22922 LIBS="$LIBS $THREAD_LIBS"
22923fi
22924
22925
22926#
22927# Check for umem.
22928#
22929have_umem='no'
22930UMEM_LIBS=''
22931if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000022932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000022933$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000022935$as_echo "" >&6; }
22936 failed=0
22937 passed=0
cristy8b350f62009-11-15 23:12:43 +000022938 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
22939if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022940 passed=`expr $passed + 1`
22941else
22942 failed=`expr $failed + 1`
22943fi
22944
22945
cristy8b350f62009-11-15 23:12:43 +000022946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000022947$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022948if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022949 $as_echo_n "(cached) " >&6
22950else
22951 ac_check_lib_save_LIBS=$LIBS
22952LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022954/* end confdefs.h. */
22955
22956/* Override any GCC internal prototype to avoid an error.
22957 Use char because int might match the return type of a GCC
22958 builtin and then its argument prototype would still apply. */
22959#ifdef __cplusplus
22960extern "C"
22961#endif
22962char umem_alloc ();
22963int
22964main ()
22965{
22966return umem_alloc ();
22967 ;
22968 return 0;
22969}
22970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022971if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022972 ac_cv_lib_umem_umem_alloc=yes
22973else
cristy8b350f62009-11-15 23:12:43 +000022974 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000022975fi
cristy8b350f62009-11-15 23:12:43 +000022976rm -f core conftest.err conftest.$ac_objext \
22977 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022978LIBS=$ac_check_lib_save_LIBS
22979fi
cristy8b350f62009-11-15 23:12:43 +000022980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022981$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022982if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022983 passed=`expr $passed + 1`
22984else
22985 failed=`expr $failed + 1`
22986fi
22987
cristy8b350f62009-11-15 23:12:43 +000022988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000022989$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022990if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022991 $as_echo_n "(cached) " >&6
22992else
22993 ac_check_lib_save_LIBS=$LIBS
22994LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022996/* end confdefs.h. */
22997
22998/* Override any GCC internal prototype to avoid an error.
22999 Use char because int might match the return type of a GCC
23000 builtin and then its argument prototype would still apply. */
23001#ifdef __cplusplus
23002extern "C"
23003#endif
23004char umem_free ();
23005int
23006main ()
23007{
23008return umem_free ();
23009 ;
23010 return 0;
23011}
23012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023014 ac_cv_lib_umem_umem_free=yes
23015else
cristy8b350f62009-11-15 23:12:43 +000023016 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023017fi
cristy8b350f62009-11-15 23:12:43 +000023018rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023020LIBS=$ac_check_lib_save_LIBS
23021fi
cristy8b350f62009-11-15 23:12:43 +000023022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023023$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023024if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023025 passed=`expr $passed + 1`
23026else
23027 failed=`expr $failed + 1`
23028fi
23029
cristy8b350f62009-11-15 23:12:43 +000023030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023031$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23032 if test $passed -gt 0; then
23033 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023035$as_echo "no -- some components failed test" >&6; }
23036 have_umem='no (failed tests)'
23037 else
23038 UMEM_LIBS='-lumem'
23039 LIBS="$UMEM_LIBS $LIBS"
23040
cristy8b350f62009-11-15 23:12:43 +000023041$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023042
cristy8b350f62009-11-15 23:12:43 +000023043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023044$as_echo "yes" >&6; }
23045 have_umem='yes'
23046 fi
23047 else
cristy8b350f62009-11-15 23:12:43 +000023048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023049$as_echo "no" >&6; }
23050 fi
23051fi
23052 if test "$have_umem" = 'yes'; then
23053 HasUMEM_TRUE=
23054 HasUMEM_FALSE='#'
23055else
23056 HasUMEM_TRUE='#'
23057 HasUMEM_FALSE=
23058fi
23059
23060
23061
23062#
23063# Add support for ccmalloc memory debugging library if requested
23064#
23065have_ccmalloc='no'
23066CCMALLOC_LIBS=''
23067if test "$enable_ccmalloc" = 'yes'; then
23068 # Extract the first word of "ccmalloc", so it can be a program name with args.
23069set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023071$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023072if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023073 $as_echo_n "(cached) " >&6
23074else
23075 case $CCMALLOCDelegate in
23076 [\\/]* | ?:[\\/]*)
23077 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23078 ;;
23079 *)
23080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23081for as_dir in $PATH
23082do
23083 IFS=$as_save_IFS
23084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23087 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023089 break 2
23090 fi
23091done
cristy8b350f62009-11-15 23:12:43 +000023092 done
cristy3ed852e2009-09-05 21:47:34 +000023093IFS=$as_save_IFS
23094
23095 ;;
23096esac
23097fi
23098CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23099if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo "$CCMALLOCDelegate" >&6; }
23102else
cristy8b350f62009-11-15 23:12:43 +000023103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023104$as_echo "no" >&6; }
23105fi
23106
23107
23108 if test -n "$CCMALLOCDelegate"; then
23109 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23110 OLIBS="$LIBS"
23111 # Assume that gcc is used with ccmalloc.
23112 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023114$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023115if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023116 $as_echo_n "(cached) " >&6
23117else
23118 ac_check_lib_save_LIBS=$LIBS
23119LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023121/* end confdefs.h. */
23122
23123/* Override any GCC internal prototype to avoid an error.
23124 Use char because int might match the return type of a GCC
23125 builtin and then its argument prototype would still apply. */
23126#ifdef __cplusplus
23127extern "C"
23128#endif
23129char ccmalloc_malloc ();
23130int
23131main ()
23132{
23133return ccmalloc_malloc ();
23134 ;
23135 return 0;
23136}
23137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023138if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023139 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23140else
cristy8b350f62009-11-15 23:12:43 +000023141 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023142fi
cristy8b350f62009-11-15 23:12:43 +000023143rm -f core conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023145LIBS=$ac_check_lib_save_LIBS
23146fi
cristy8b350f62009-11-15 23:12:43 +000023147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023148$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023149if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023150 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23151fi
23152
23153 if test -n "$CCMALLOC_LIBS"; then
23154 LIBS="$OLIBS"
23155 LIBS="$LIBS $CCMALLOC_LIBS"
23156 have_ccmalloc='yes'
23157 else
23158 LIBS="$OLIBS"
23159 fi
23160 fi
23161fi
23162
23163#
23164# Add support for efence memory debugging library if requested
23165#
23166if test "$enable_efence" = 'yes'; then
23167 EFENCE_LIBS='-lefence'
23168 LIBS="$EFENCE_LIBS $LIBS"
23169fi
23170
23171#
23172# Find math library
23173#
23174MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023176$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023177if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023178 $as_echo_n "(cached) " >&6
23179else
23180 ac_check_lib_save_LIBS=$LIBS
23181LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023183/* end confdefs.h. */
23184
23185/* Override any GCC internal prototype to avoid an error.
23186 Use char because int might match the return type of a GCC
23187 builtin and then its argument prototype would still apply. */
23188#ifdef __cplusplus
23189extern "C"
23190#endif
23191char sqrt ();
23192int
23193main ()
23194{
23195return sqrt ();
23196 ;
23197 return 0;
23198}
23199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023200if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023201 ac_cv_lib_m_sqrt=yes
23202else
cristy8b350f62009-11-15 23:12:43 +000023203 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023204fi
cristy8b350f62009-11-15 23:12:43 +000023205rm -f core conftest.err conftest.$ac_objext \
23206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023207LIBS=$ac_check_lib_save_LIBS
23208fi
cristy8b350f62009-11-15 23:12:43 +000023209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023210$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023211if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023212 MATH_LIBS="-lm"
23213fi
23214
23215LIBS="$MATH_LIBS $LIBS"
23216
23217
23218
23219#
23220# Check for BZLIB
23221#
23222
23223
23224# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023225if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 withval=$with_bzlib; with_bzlib=$withval
23227else
23228 with_bzlib='yes'
23229fi
23230
23231
23232if test "$with_bzlib" != 'yes'; then
23233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23234fi
23235
23236have_bzlib='no'
23237if test "$with_bzlib" != 'no'; then
23238 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023240$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023242$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023244$as_echo "" >&6; }
23245 failed=0
23246 passed=0
23247 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023248 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23249if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 passed=`expr $passed + 1`
23251else
23252 failed=`expr $failed + 1`
23253fi
23254
23255
cristy8b350f62009-11-15 23:12:43 +000023256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023258if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023259 $as_echo_n "(cached) " >&6
23260else
23261 ac_check_lib_save_LIBS=$LIBS
23262LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023264/* end confdefs.h. */
23265
23266/* Override any GCC internal prototype to avoid an error.
23267 Use char because int might match the return type of a GCC
23268 builtin and then its argument prototype would still apply. */
23269#ifdef __cplusplus
23270extern "C"
23271#endif
23272char BZ2_bzDecompress ();
23273int
23274main ()
23275{
23276return BZ2_bzDecompress ();
23277 ;
23278 return 0;
23279}
23280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023282 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23283else
cristy8b350f62009-11-15 23:12:43 +000023284 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023285fi
cristy8b350f62009-11-15 23:12:43 +000023286rm -f core conftest.err conftest.$ac_objext \
23287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023288LIBS=$ac_check_lib_save_LIBS
23289fi
cristy8b350f62009-11-15 23:12:43 +000023290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023292if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023293 found_libbz=`expr $found_libbz + 1`
23294fi
23295
23296 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023298$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023299if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023300 $as_echo_n "(cached) " >&6
23301else
23302 ac_check_lib_save_LIBS=$LIBS
23303LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023305/* end confdefs.h. */
23306
23307/* Override any GCC internal prototype to avoid an error.
23308 Use char because int might match the return type of a GCC
23309 builtin and then its argument prototype would still apply. */
23310#ifdef __cplusplus
23311extern "C"
23312#endif
23313char _imp__BZ2_decompress ();
23314int
23315main ()
23316{
23317return _imp__BZ2_decompress ();
23318 ;
23319 return 0;
23320}
23321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023323 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23324else
cristy8b350f62009-11-15 23:12:43 +000023325 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023326fi
cristy8b350f62009-11-15 23:12:43 +000023327rm -f core conftest.err conftest.$ac_objext \
23328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023329LIBS=$ac_check_lib_save_LIBS
23330fi
cristy8b350f62009-11-15 23:12:43 +000023331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023332$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023333if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023334 found_libbz=`expr $found_libbz + 1`
23335fi
23336
23337 fi
23338 if test $found_libbz -gt 0; then
23339 passed=`expr $passed + 1`
23340 else
23341 failed=`expr $failed + 1`
23342 fi
cristy8b350f62009-11-15 23:12:43 +000023343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023344$as_echo_n "checking if BZLIB package is complete... " >&6; }
23345 if test $passed -gt 0; then
23346 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023348$as_echo "no -- some components failed test" >&6; }
23349 have_bzlib='no (failed tests)'
23350 else
23351 BZLIB_LIBS='-lbz2'
23352 LIBS="$BZLIB_LIBS $LIBS"
23353
cristy8b350f62009-11-15 23:12:43 +000023354$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023355
cristy8b350f62009-11-15 23:12:43 +000023356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023357$as_echo "yes" >&6; }
23358 have_bzlib='yes'
23359 fi
23360 else
cristy8b350f62009-11-15 23:12:43 +000023361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362$as_echo "no" >&6; }
23363 fi
23364fi
23365 if test "$have_bzlib" = 'yes'; then
23366 BZLIB_DELEGATE_TRUE=
23367 BZLIB_DELEGATE_FALSE='#'
23368else
23369 BZLIB_DELEGATE_TRUE='#'
23370 BZLIB_DELEGATE_FALSE=
23371fi
23372
23373
23374
23375#
23376# Find the X11 include and library directories.
23377#
23378IPC_LIBS=''
23379X11_LIBS=''
23380XEXT_LIBS=''
23381XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023383$as_echo_n "checking for X... " >&6; }
23384
23385
23386# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023387if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023388 withval=$with_x;
23389fi
23390
23391# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23392if test "x$with_x" = xno; then
23393 # The user explicitly disabled X.
23394 have_x=disabled
23395else
23396 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023397 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23398 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023399 $as_echo_n "(cached) " >&6
23400else
23401 # One or both of the vars are not set, and there is no cached value.
23402ac_x_includes=no ac_x_libraries=no
23403rm -f -r conftest.dir
23404if mkdir conftest.dir; then
23405 cd conftest.dir
23406 cat >Imakefile <<'_ACEOF'
23407incroot:
23408 @echo incroot='${INCROOT}'
23409usrlibdir:
23410 @echo usrlibdir='${USRLIBDIR}'
23411libdir:
23412 @echo libdir='${LIBDIR}'
23413_ACEOF
23414 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23416 for ac_var in incroot usrlibdir libdir; do
23417 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23418 done
23419 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23420 for ac_extension in a so sl dylib la dll; do
23421 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23422 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23423 ac_im_usrlibdir=$ac_im_libdir; break
23424 fi
23425 done
23426 # Screen out bogus values from the imake configuration. They are
23427 # bogus both because they are the default anyway, and because
23428 # using them would break gcc on systems where it needs fixed includes.
23429 case $ac_im_incroot in
23430 /usr/include) ac_x_includes= ;;
23431 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23432 esac
23433 case $ac_im_usrlibdir in
23434 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23435 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23436 esac
23437 fi
23438 cd ..
23439 rm -f -r conftest.dir
23440fi
23441
23442# Standard set of common directories for X headers.
23443# Check X11 before X11Rn because it is often a symlink to the current release.
23444ac_x_header_dirs='
23445/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023446/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023447/usr/X11R6/include
23448/usr/X11R5/include
23449/usr/X11R4/include
23450
23451/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023452/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023453/usr/include/X11R6
23454/usr/include/X11R5
23455/usr/include/X11R4
23456
23457/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023458/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023459/usr/local/X11R6/include
23460/usr/local/X11R5/include
23461/usr/local/X11R4/include
23462
23463/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023464/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023465/usr/local/include/X11R6
23466/usr/local/include/X11R5
23467/usr/local/include/X11R4
23468
23469/usr/X386/include
23470/usr/x386/include
23471/usr/XFree86/include/X11
23472
23473/usr/include
23474/usr/local/include
23475/usr/unsupported/include
23476/usr/athena/include
23477/usr/local/x11r5/include
23478/usr/lpp/Xamples/include
23479
23480/usr/openwin/include
23481/usr/openwin/share/include'
23482
23483if test "$ac_x_includes" = no; then
23484 # Guess where to find include files, by looking for Xlib.h.
23485 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023487/* end confdefs.h. */
23488#include <X11/Xlib.h>
23489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023490if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023491 # We can compile using X headers with no special include directory.
23492ac_x_includes=
23493else
cristyc7083c12009-10-14 03:16:55 +000023494 for ac_dir in $ac_x_header_dirs; do
23495 if test -r "$ac_dir/X11/Xlib.h"; then
23496 ac_x_includes=$ac_dir
23497 break
23498 fi
23499done
23500fi
cristyc7083c12009-10-14 03:16:55 +000023501rm -f conftest.err conftest.$ac_ext
23502fi # $ac_x_includes = no
23503
23504if test "$ac_x_libraries" = no; then
23505 # Check for the libraries.
23506 # See if we find them without any special options.
23507 # Don't add to $LIBS permanently.
23508 ac_save_LIBS=$LIBS
23509 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023511/* end confdefs.h. */
23512#include <X11/Xlib.h>
23513int
23514main ()
23515{
23516XrmInitialize ()
23517 ;
23518 return 0;
23519}
23520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023521if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023522 LIBS=$ac_save_LIBS
23523# We can link X programs with no special library path.
23524ac_x_libraries=
23525else
cristy8b350f62009-11-15 23:12:43 +000023526 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023527for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23528do
23529 # Don't even attempt the hair of trying to link an X program!
23530 for ac_extension in a so sl dylib la dll; do
23531 if test -r "$ac_dir/libX11.$ac_extension"; then
23532 ac_x_libraries=$ac_dir
23533 break 2
23534 fi
23535 done
23536done
23537fi
cristy8b350f62009-11-15 23:12:43 +000023538rm -f core conftest.err conftest.$ac_objext \
23539 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023540fi # $ac_x_libraries = no
23541
23542case $ac_x_includes,$ac_x_libraries in #(
23543 no,* | *,no | *\'*)
23544 # Didn't find X, or a directory has "'" in its name.
23545 ac_cv_have_x="have_x=no";; #(
23546 *)
23547 # Record where we found X for the cache.
23548 ac_cv_have_x="have_x=yes\
23549 ac_x_includes='$ac_x_includes'\
23550 ac_x_libraries='$ac_x_libraries'"
23551esac
23552fi
23553;; #(
23554 *) have_x=yes;;
23555 esac
23556 eval "$ac_cv_have_x"
23557fi # $with_x != no
23558
23559if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023561$as_echo "$have_x" >&6; }
23562 no_x=yes
23563else
23564 # If each of the values was on the command line, it overrides each guess.
23565 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23566 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23567 # Update the cache value to reflect the command line values.
23568 ac_cv_have_x="have_x=yes\
23569 ac_x_includes='$x_includes'\
23570 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023572$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23573fi
23574
cristy3ed852e2009-09-05 21:47:34 +000023575if test "$no_x" = yes; then
23576 # Not all programs may use this symbol, but it does not hurt to define it.
23577
cristy8b350f62009-11-15 23:12:43 +000023578$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023579
23580 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23581else
23582 if test -n "$x_includes"; then
23583 X_CFLAGS="$X_CFLAGS -I$x_includes"
23584 fi
23585
23586 # It would also be nice to do this for all -L options, not just this one.
23587 if test -n "$x_libraries"; then
23588 X_LIBS="$X_LIBS -L$x_libraries"
23589 # For Solaris; some versions of Sun CC require a space after -R and
23590 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23593 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23594 ac_xsave_c_werror_flag=$ac_c_werror_flag
23595 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023597/* end confdefs.h. */
23598
23599int
23600main ()
23601{
23602
23603 ;
23604 return 0;
23605}
23606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023607if ac_fn_c_try_link "$LINENO"; then :
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo "no" >&6; }
23610 X_LIBS="$X_LIBS -R$x_libraries"
23611else
cristy8b350f62009-11-15 23:12:43 +000023612 LIBS="$ac_xsave_LIBS -R $x_libraries"
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023614/* end confdefs.h. */
23615
23616int
23617main ()
23618{
23619
23620 ;
23621 return 0;
23622}
23623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023624if ac_fn_c_try_link "$LINENO"; then :
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023626$as_echo "yes" >&6; }
23627 X_LIBS="$X_LIBS -R $x_libraries"
23628else
cristy8b350f62009-11-15 23:12:43 +000023629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023630$as_echo "neither works" >&6; }
23631fi
cristy8b350f62009-11-15 23:12:43 +000023632rm -f core conftest.err conftest.$ac_objext \
23633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023634fi
cristy8b350f62009-11-15 23:12:43 +000023635rm -f core conftest.err conftest.$ac_objext \
23636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023637 ac_c_werror_flag=$ac_xsave_c_werror_flag
23638 LIBS=$ac_xsave_LIBS
23639 fi
23640
23641 # Check for system-dependent libraries X programs must link with.
23642 # Do this before checking for the system-independent R6 libraries
23643 # (-lICE), since we may need -lsocket or whatever for X linking.
23644
23645 if test "$ISC" = yes; then
23646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23647 else
23648 # Martyn Johnson says this is needed for Ultrix, if the X
23649 # libraries were built with DECnet support. And Karl Berry says
23650 # the Alpha needs dnet_stub (dnet does not exist).
23651 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023653/* end confdefs.h. */
23654
23655/* Override any GCC internal prototype to avoid an error.
23656 Use char because int might match the return type of a GCC
23657 builtin and then its argument prototype would still apply. */
23658#ifdef __cplusplus
23659extern "C"
23660#endif
23661char XOpenDisplay ();
23662int
23663main ()
23664{
23665return XOpenDisplay ();
23666 ;
23667 return 0;
23668}
23669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023671
cristy8b350f62009-11-15 23:12:43 +000023672else
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023674$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023675if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023676 $as_echo_n "(cached) " >&6
23677else
23678 ac_check_lib_save_LIBS=$LIBS
23679LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023681/* end confdefs.h. */
23682
23683/* Override any GCC internal prototype to avoid an error.
23684 Use char because int might match the return type of a GCC
23685 builtin and then its argument prototype would still apply. */
23686#ifdef __cplusplus
23687extern "C"
23688#endif
23689char dnet_ntoa ();
23690int
23691main ()
23692{
23693return dnet_ntoa ();
23694 ;
23695 return 0;
23696}
23697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023699 ac_cv_lib_dnet_dnet_ntoa=yes
23700else
cristy8b350f62009-11-15 23:12:43 +000023701 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023702fi
cristy8b350f62009-11-15 23:12:43 +000023703rm -f core conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023705LIBS=$ac_check_lib_save_LIBS
23706fi
cristy8b350f62009-11-15 23:12:43 +000023707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023708$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023709if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023710 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23711fi
23712
23713 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023715$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023716if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023717 $as_echo_n "(cached) " >&6
23718else
23719 ac_check_lib_save_LIBS=$LIBS
23720LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023722/* end confdefs.h. */
23723
23724/* Override any GCC internal prototype to avoid an error.
23725 Use char because int might match the return type of a GCC
23726 builtin and then its argument prototype would still apply. */
23727#ifdef __cplusplus
23728extern "C"
23729#endif
23730char dnet_ntoa ();
23731int
23732main ()
23733{
23734return dnet_ntoa ();
23735 ;
23736 return 0;
23737}
23738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023740 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23741else
cristy8b350f62009-11-15 23:12:43 +000023742 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023743fi
cristy8b350f62009-11-15 23:12:43 +000023744rm -f core conftest.err conftest.$ac_objext \
23745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023746LIBS=$ac_check_lib_save_LIBS
23747fi
cristy8b350f62009-11-15 23:12:43 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023749$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023750if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023751 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23752fi
23753
23754 fi
23755fi
cristy8b350f62009-11-15 23:12:43 +000023756rm -f core conftest.err conftest.$ac_objext \
23757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023758 LIBS="$ac_xsave_LIBS"
23759
23760 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23761 # to get the SysV transport functions.
23762 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23763 # needs -lnsl.
23764 # The nsl library prevents programs from opening the X display
23765 # on Irix 5.2, according to T.E. Dickey.
23766 # The functions gethostbyname, getservbyname, and inet_addr are
23767 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023768 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23769if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023770
cristy3ed852e2009-09-05 21:47:34 +000023771fi
23772
cristy3ed852e2009-09-05 21:47:34 +000023773 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023775$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023776if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023777 $as_echo_n "(cached) " >&6
23778else
23779 ac_check_lib_save_LIBS=$LIBS
23780LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023782/* end confdefs.h. */
23783
23784/* Override any GCC internal prototype to avoid an error.
23785 Use char because int might match the return type of a GCC
23786 builtin and then its argument prototype would still apply. */
23787#ifdef __cplusplus
23788extern "C"
23789#endif
23790char gethostbyname ();
23791int
23792main ()
23793{
23794return gethostbyname ();
23795 ;
23796 return 0;
23797}
23798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023800 ac_cv_lib_nsl_gethostbyname=yes
23801else
cristy8b350f62009-11-15 23:12:43 +000023802 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023803fi
cristy8b350f62009-11-15 23:12:43 +000023804rm -f core conftest.err conftest.$ac_objext \
23805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023806LIBS=$ac_check_lib_save_LIBS
23807fi
cristy8b350f62009-11-15 23:12:43 +000023808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023810if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23812fi
23813
23814 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000023816$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023817if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023818 $as_echo_n "(cached) " >&6
23819else
23820 ac_check_lib_save_LIBS=$LIBS
23821LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023823/* end confdefs.h. */
23824
23825/* Override any GCC internal prototype to avoid an error.
23826 Use char because int might match the return type of a GCC
23827 builtin and then its argument prototype would still apply. */
23828#ifdef __cplusplus
23829extern "C"
23830#endif
23831char gethostbyname ();
23832int
23833main ()
23834{
23835return gethostbyname ();
23836 ;
23837 return 0;
23838}
23839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023840if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023841 ac_cv_lib_bsd_gethostbyname=yes
23842else
cristy8b350f62009-11-15 23:12:43 +000023843 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023844fi
cristy8b350f62009-11-15 23:12:43 +000023845rm -f core conftest.err conftest.$ac_objext \
23846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023847LIBS=$ac_check_lib_save_LIBS
23848fi
cristy8b350f62009-11-15 23:12:43 +000023849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023850$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023851if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23853fi
23854
23855 fi
23856 fi
23857
23858 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23859 # socket/setsockopt and other routines are undefined under SCO ODT
23860 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23861 # on later versions), says Simon Leinen: it contains gethostby*
23862 # variants that don't use the name server (or something). -lsocket
23863 # must be given before -lnsl if both are needed. We assume that
23864 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000023865 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
23866if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023867
cristy3ed852e2009-09-05 21:47:34 +000023868fi
23869
cristy3ed852e2009-09-05 21:47:34 +000023870 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000023871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000023872$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023873if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023874 $as_echo_n "(cached) " >&6
23875else
23876 ac_check_lib_save_LIBS=$LIBS
23877LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023879/* end confdefs.h. */
23880
23881/* Override any GCC internal prototype to avoid an error.
23882 Use char because int might match the return type of a GCC
23883 builtin and then its argument prototype would still apply. */
23884#ifdef __cplusplus
23885extern "C"
23886#endif
23887char connect ();
23888int
23889main ()
23890{
23891return connect ();
23892 ;
23893 return 0;
23894}
23895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 ac_cv_lib_socket_connect=yes
23898else
cristy8b350f62009-11-15 23:12:43 +000023899 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000023900fi
cristy8b350f62009-11-15 23:12:43 +000023901rm -f core conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023903LIBS=$ac_check_lib_save_LIBS
23904fi
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023907if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23909fi
23910
23911 fi
23912
23913 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000023914 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
23915if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023916
cristy3ed852e2009-09-05 21:47:34 +000023917fi
23918
cristy3ed852e2009-09-05 21:47:34 +000023919 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000023920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000023921$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023922if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023923 $as_echo_n "(cached) " >&6
23924else
23925 ac_check_lib_save_LIBS=$LIBS
23926LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023928/* end confdefs.h. */
23929
23930/* Override any GCC internal prototype to avoid an error.
23931 Use char because int might match the return type of a GCC
23932 builtin and then its argument prototype would still apply. */
23933#ifdef __cplusplus
23934extern "C"
23935#endif
23936char remove ();
23937int
23938main ()
23939{
23940return remove ();
23941 ;
23942 return 0;
23943}
23944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 ac_cv_lib_posix_remove=yes
23947else
cristy8b350f62009-11-15 23:12:43 +000023948 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000023949fi
cristy8b350f62009-11-15 23:12:43 +000023950rm -f core conftest.err conftest.$ac_objext \
23951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023952LIBS=$ac_check_lib_save_LIBS
23953fi
cristy8b350f62009-11-15 23:12:43 +000023954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000023955$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023956if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23958fi
23959
23960 fi
23961
23962 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000023963 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
23964if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023965
cristy3ed852e2009-09-05 21:47:34 +000023966fi
23967
cristy3ed852e2009-09-05 21:47:34 +000023968 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000023969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023970$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023971if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023972 $as_echo_n "(cached) " >&6
23973else
23974 ac_check_lib_save_LIBS=$LIBS
23975LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023977/* end confdefs.h. */
23978
23979/* Override any GCC internal prototype to avoid an error.
23980 Use char because int might match the return type of a GCC
23981 builtin and then its argument prototype would still apply. */
23982#ifdef __cplusplus
23983extern "C"
23984#endif
23985char shmat ();
23986int
23987main ()
23988{
23989return shmat ();
23990 ;
23991 return 0;
23992}
23993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023995 ac_cv_lib_ipc_shmat=yes
23996else
cristy8b350f62009-11-15 23:12:43 +000023997 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000023998fi
cristy8b350f62009-11-15 23:12:43 +000023999rm -f core conftest.err conftest.$ac_objext \
24000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024001LIBS=$ac_check_lib_save_LIBS
24002fi
cristy8b350f62009-11-15 23:12:43 +000024003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024004$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024005if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24007fi
24008
24009 fi
24010 fi
24011
24012 # Check for libraries that X11R6 Xt/Xaw programs need.
24013 ac_save_LDFLAGS=$LDFLAGS
24014 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24015 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24016 # check for ICE first), but we must link in the order -lSM -lICE or
24017 # we get undefined symbols. So assume we have SM if we have ICE.
24018 # These have to be linked with before -lX11, unlike the other
24019 # libraries we check for below, so use a different variable.
24020 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024022$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024023if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024024 $as_echo_n "(cached) " >&6
24025else
24026 ac_check_lib_save_LIBS=$LIBS
24027LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024029/* end confdefs.h. */
24030
24031/* Override any GCC internal prototype to avoid an error.
24032 Use char because int might match the return type of a GCC
24033 builtin and then its argument prototype would still apply. */
24034#ifdef __cplusplus
24035extern "C"
24036#endif
24037char IceConnectionNumber ();
24038int
24039main ()
24040{
24041return IceConnectionNumber ();
24042 ;
24043 return 0;
24044}
24045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024046if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024047 ac_cv_lib_ICE_IceConnectionNumber=yes
24048else
cristy8b350f62009-11-15 23:12:43 +000024049 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024050fi
cristy8b350f62009-11-15 23:12:43 +000024051rm -f core conftest.err conftest.$ac_objext \
24052 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024053LIBS=$ac_check_lib_save_LIBS
24054fi
cristy8b350f62009-11-15 23:12:43 +000024055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024056$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024057if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024058 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24059fi
24060
24061 LDFLAGS=$ac_save_LDFLAGS
24062
24063fi
24064
24065if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024071$as_echo "" >&6; }
24072 LDFLAGS="$LDFLAGS $X_LIBS"
24073 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24074 LIBS="$X11_LIBS $LIBS"
24075 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24076
24077
cristy8b350f62009-11-15 23:12:43 +000024078$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024079
24080 #
24081 # Check for X11 shared memory extension
24082 #
24083 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024084 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24085if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024086 have_shmctl='yes'
24087fi
24088
24089 if test "$have_shmctl" != 'yes'; then
24090 PERSIST_LIBS=$LIBS
24091 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024093/* end confdefs.h. */
24094
24095/* Override any GCC internal prototype to avoid an error.
24096 Use char because int might match the return type of a GCC
24097 builtin and then its argument prototype would still apply. */
24098#ifdef __cplusplus
24099extern "C"
24100#endif
24101char shmctl ();
24102int
24103main ()
24104{
24105return shmctl ();
24106 ;
24107 return 0;
24108}
24109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024111 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024112fi
cristy8b350f62009-11-15 23:12:43 +000024113rm -f core conftest.err conftest.$ac_objext \
24114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024115 LIBS=$PERSIST_LIBS
24116 fi
24117
24118 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024120$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024121if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024122 $as_echo_n "(cached) " >&6
24123else
24124 ac_check_lib_save_LIBS=$LIBS
24125LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024127/* end confdefs.h. */
24128
24129/* Override any GCC internal prototype to avoid an error.
24130 Use char because int might match the return type of a GCC
24131 builtin and then its argument prototype would still apply. */
24132#ifdef __cplusplus
24133extern "C"
24134#endif
24135char XShmAttach ();
24136int
24137main ()
24138{
24139return XShmAttach ();
24140 ;
24141 return 0;
24142}
24143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 ac_cv_lib_Xext_XShmAttach=yes
24146else
cristy8b350f62009-11-15 23:12:43 +000024147 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024148fi
cristy8b350f62009-11-15 23:12:43 +000024149rm -f core conftest.err conftest.$ac_objext \
24150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024151LIBS=$ac_check_lib_save_LIBS
24152fi
cristy8b350f62009-11-15 23:12:43 +000024153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024154$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024155if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024156 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024157$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024158
24159fi
24160
24161 fi
24162
24163 #
24164 # Check for X11 shape extension
24165 #
cristy8b350f62009-11-15 23:12:43 +000024166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024167$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024168if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024169 $as_echo_n "(cached) " >&6
24170else
24171 ac_check_lib_save_LIBS=$LIBS
24172LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024174/* end confdefs.h. */
24175
24176/* Override any GCC internal prototype to avoid an error.
24177 Use char because int might match the return type of a GCC
24178 builtin and then its argument prototype would still apply. */
24179#ifdef __cplusplus
24180extern "C"
24181#endif
24182char XShapeCombineMask ();
24183int
24184main ()
24185{
24186return XShapeCombineMask ();
24187 ;
24188 return 0;
24189}
24190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 ac_cv_lib_Xext_XShapeCombineMask=yes
24193else
cristy8b350f62009-11-15 23:12:43 +000024194 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024195fi
cristy8b350f62009-11-15 23:12:43 +000024196rm -f core conftest.err conftest.$ac_objext \
24197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024198LIBS=$ac_check_lib_save_LIBS
24199fi
cristy8b350f62009-11-15 23:12:43 +000024200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024201$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024202if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024203 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024204$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024205
24206fi
24207
cristy8b350f62009-11-15 23:12:43 +000024208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024209$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024210if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024211 $as_echo_n "(cached) " >&6
24212else
24213 ac_check_lib_save_LIBS=$LIBS
24214LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024216/* end confdefs.h. */
24217
24218/* Override any GCC internal prototype to avoid an error.
24219 Use char because int might match the return type of a GCC
24220 builtin and then its argument prototype would still apply. */
24221#ifdef __cplusplus
24222extern "C"
24223#endif
24224char XtSetEventDispatcher ();
24225int
24226main ()
24227{
24228return XtSetEventDispatcher ();
24229 ;
24230 return 0;
24231}
24232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24235else
cristy8b350f62009-11-15 23:12:43 +000024236 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024237fi
cristy8b350f62009-11-15 23:12:43 +000024238rm -f core conftest.err conftest.$ac_objext \
24239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024240LIBS=$ac_check_lib_save_LIBS
24241fi
cristy8b350f62009-11-15 23:12:43 +000024242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024244if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024245 XT_LIBS='-lXt'
24246fi
24247
24248 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24249fi
24250if test "$no_x" != 'yes'; then
24251 have_x='yes'
24252else
24253 have_x='no'
24254fi
24255 if test "$have_x" = 'yes'; then
24256 X11_DELEGATE_TRUE=
24257 X11_DELEGATE_FALSE='#'
24258else
24259 X11_DELEGATE_TRUE='#'
24260 X11_DELEGATE_FALSE=
24261fi
24262
24263
24264
24265
24266
24267#
24268# Check for ZLIB
24269#
24270
24271# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024272if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 withval=$with_zlib; with_zlib=$withval
24274else
24275 with_zlib='yes'
24276fi
24277
24278
24279if test "$with_zlib" != 'yes'; then
24280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24281fi
24282
24283have_zlib='no'
24284ZLIB_LIBS=''
24285if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024289$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024291$as_echo "" >&6; }
24292 ZLIB_LIBS=''
24293 failed=0
24294 passed=0
cristy8b350f62009-11-15 23:12:43 +000024295 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24296if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024297 passed=`expr $passed + 1`
24298else
24299 failed=`expr $failed + 1`
24300fi
24301
24302
cristy8b350f62009-11-15 23:12:43 +000024303 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24304if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 passed=`expr $passed + 1`
24306else
24307 failed=`expr $failed + 1`
24308fi
24309
24310
cristy8b350f62009-11-15 23:12:43 +000024311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024312$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024313if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 $as_echo_n "(cached) " >&6
24315else
24316 ac_check_lib_save_LIBS=$LIBS
24317LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024319/* end confdefs.h. */
24320
24321/* Override any GCC internal prototype to avoid an error.
24322 Use char because int might match the return type of a GCC
24323 builtin and then its argument prototype would still apply. */
24324#ifdef __cplusplus
24325extern "C"
24326#endif
24327char compress ();
24328int
24329main ()
24330{
24331return compress ();
24332 ;
24333 return 0;
24334}
24335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024337 ac_cv_lib_z_compress=yes
24338else
cristy8b350f62009-11-15 23:12:43 +000024339 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024340fi
cristy8b350f62009-11-15 23:12:43 +000024341rm -f core conftest.err conftest.$ac_objext \
24342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024343LIBS=$ac_check_lib_save_LIBS
24344fi
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024347if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024348 passed=`expr $passed + 1`
24349else
24350 failed=`expr $failed + 1`
24351fi
24352
cristy8b350f62009-11-15 23:12:43 +000024353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024354$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024355if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024356 $as_echo_n "(cached) " >&6
24357else
24358 ac_check_lib_save_LIBS=$LIBS
24359LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024361/* end confdefs.h. */
24362
24363/* Override any GCC internal prototype to avoid an error.
24364 Use char because int might match the return type of a GCC
24365 builtin and then its argument prototype would still apply. */
24366#ifdef __cplusplus
24367extern "C"
24368#endif
24369char uncompress ();
24370int
24371main ()
24372{
24373return uncompress ();
24374 ;
24375 return 0;
24376}
24377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024379 ac_cv_lib_z_uncompress=yes
24380else
cristy8b350f62009-11-15 23:12:43 +000024381 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024382fi
cristy8b350f62009-11-15 23:12:43 +000024383rm -f core conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024385LIBS=$ac_check_lib_save_LIBS
24386fi
cristy8b350f62009-11-15 23:12:43 +000024387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024388$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024389if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024390 passed=`expr $passed + 1`
24391else
24392 failed=`expr $failed + 1`
24393fi
24394
cristy8b350f62009-11-15 23:12:43 +000024395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024396$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024397if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024398 $as_echo_n "(cached) " >&6
24399else
24400 ac_check_lib_save_LIBS=$LIBS
24401LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024403/* end confdefs.h. */
24404
24405/* Override any GCC internal prototype to avoid an error.
24406 Use char because int might match the return type of a GCC
24407 builtin and then its argument prototype would still apply. */
24408#ifdef __cplusplus
24409extern "C"
24410#endif
24411char deflate ();
24412int
24413main ()
24414{
24415return deflate ();
24416 ;
24417 return 0;
24418}
24419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024421 ac_cv_lib_z_deflate=yes
24422else
cristy8b350f62009-11-15 23:12:43 +000024423 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024424fi
cristy8b350f62009-11-15 23:12:43 +000024425rm -f core conftest.err conftest.$ac_objext \
24426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024427LIBS=$ac_check_lib_save_LIBS
24428fi
cristy8b350f62009-11-15 23:12:43 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024430$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024431if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024432 passed=`expr $passed + 1`
24433else
24434 failed=`expr $failed + 1`
24435fi
24436
cristy8b350f62009-11-15 23:12:43 +000024437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024438$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024439if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024440 $as_echo_n "(cached) " >&6
24441else
24442 ac_check_lib_save_LIBS=$LIBS
24443LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024445/* end confdefs.h. */
24446
24447/* Override any GCC internal prototype to avoid an error.
24448 Use char because int might match the return type of a GCC
24449 builtin and then its argument prototype would still apply. */
24450#ifdef __cplusplus
24451extern "C"
24452#endif
24453char inflate ();
24454int
24455main ()
24456{
24457return inflate ();
24458 ;
24459 return 0;
24460}
24461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024463 ac_cv_lib_z_inflate=yes
24464else
cristy8b350f62009-11-15 23:12:43 +000024465 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024466fi
cristy8b350f62009-11-15 23:12:43 +000024467rm -f core conftest.err conftest.$ac_objext \
24468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024469LIBS=$ac_check_lib_save_LIBS
24470fi
cristy8b350f62009-11-15 23:12:43 +000024471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024472$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024473if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024474 passed=`expr $passed + 1`
24475else
24476 failed=`expr $failed + 1`
24477fi
24478
cristy8b350f62009-11-15 23:12:43 +000024479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024480$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024481if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024482 $as_echo_n "(cached) " >&6
24483else
24484 ac_check_lib_save_LIBS=$LIBS
24485LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024487/* end confdefs.h. */
24488
24489/* Override any GCC internal prototype to avoid an error.
24490 Use char because int might match the return type of a GCC
24491 builtin and then its argument prototype would still apply. */
24492#ifdef __cplusplus
24493extern "C"
24494#endif
24495char gzseek ();
24496int
24497main ()
24498{
24499return gzseek ();
24500 ;
24501 return 0;
24502}
24503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024504if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 ac_cv_lib_z_gzseek=yes
24506else
cristy8b350f62009-11-15 23:12:43 +000024507 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024508fi
cristy8b350f62009-11-15 23:12:43 +000024509rm -f core conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024511LIBS=$ac_check_lib_save_LIBS
24512fi
cristy8b350f62009-11-15 23:12:43 +000024513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024514$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024515if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 passed=`expr $passed + 1`
24517else
24518 failed=`expr $failed + 1`
24519fi
24520
cristy8b350f62009-11-15 23:12:43 +000024521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024522$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024523if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024524 $as_echo_n "(cached) " >&6
24525else
24526 ac_check_lib_save_LIBS=$LIBS
24527LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024529/* end confdefs.h. */
24530
24531/* Override any GCC internal prototype to avoid an error.
24532 Use char because int might match the return type of a GCC
24533 builtin and then its argument prototype would still apply. */
24534#ifdef __cplusplus
24535extern "C"
24536#endif
24537char gztell ();
24538int
24539main ()
24540{
24541return gztell ();
24542 ;
24543 return 0;
24544}
24545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024546if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 ac_cv_lib_z_gztell=yes
24548else
cristy8b350f62009-11-15 23:12:43 +000024549 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024550fi
cristy8b350f62009-11-15 23:12:43 +000024551rm -f core conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024553LIBS=$ac_check_lib_save_LIBS
24554fi
cristy8b350f62009-11-15 23:12:43 +000024555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024556$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024557if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024558 passed=`expr $passed + 1`
24559else
24560 failed=`expr $failed + 1`
24561fi
24562
cristy8b350f62009-11-15 23:12:43 +000024563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo_n "checking if ZLIB package is complete... " >&6; }
24565 if test $passed -gt 0; then
24566 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo "no -- some components failed test" >&6; }
24569 have_zlib='no (failed tests)'
24570 else
24571 ZLIB_LIBS='-lz'
24572 LIBS="$ZLIB_LIBS $LIBS"
24573
cristy8b350f62009-11-15 23:12:43 +000024574$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024575
cristy8b350f62009-11-15 23:12:43 +000024576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024577$as_echo "yes" >&6; }
24578 have_zlib='yes'
24579 fi
24580 else
cristy8b350f62009-11-15 23:12:43 +000024581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024582$as_echo "no" >&6; }
24583 fi
24584fi
24585 if test "$have_zlib" = 'yes'; then
24586 ZLIB_DELEGATE_TRUE=
24587 ZLIB_DELEGATE_FALSE='#'
24588else
24589 ZLIB_DELEGATE_TRUE='#'
24590 ZLIB_DELEGATE_FALSE=
24591fi
24592
24593
24594
24595#
24596# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24597#
24598LIB_DL=''
24599if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024601$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024602if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024603 $as_echo_n "(cached) " >&6
24604else
24605 ac_check_lib_save_LIBS=$LIBS
24606LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024608/* end confdefs.h. */
24609
24610/* Override any GCC internal prototype to avoid an error.
24611 Use char because int might match the return type of a GCC
24612 builtin and then its argument prototype would still apply. */
24613#ifdef __cplusplus
24614extern "C"
24615#endif
24616char dlopen ();
24617int
24618main ()
24619{
24620return dlopen ();
24621 ;
24622 return 0;
24623}
24624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024626 ac_cv_lib_dl_dlopen=yes
24627else
cristy8b350f62009-11-15 23:12:43 +000024628 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024629fi
cristy8b350f62009-11-15 23:12:43 +000024630rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024632LIBS=$ac_check_lib_save_LIBS
24633fi
cristy8b350f62009-11-15 23:12:43 +000024634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024635$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024636if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024637 LIB_DL='-ldl'
24638fi
24639
24640 LIBS="$LIB_DL $LIBS"
24641fi
24642
24643
24644
24645#
24646# Check for Autotrace delegate library.
24647#
24648
24649# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024650if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024651 withval=$with_autotrace; with_autotrace=$withval
24652else
24653 with_autotrace='no'
24654fi
24655
24656
24657if test "$with_autotrace" != 'yes'; then
24658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24659fi
24660
24661have_autotrace='no'
24662AUTOTRACE_CFLAGS=""
24663AUTOTRACE_LIBS=""
24664AUTOTRACE_PKG=""
24665if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024667$as_echo "-------------------------------------------------------------" >&6; }
24668
24669pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024671$as_echo_n "checking for AUTOTRACE... " >&6; }
24672
24673if test -n "$AUTOTRACE_CFLAGS"; then
24674 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24675 elif test -n "$PKG_CONFIG"; then
24676 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024678 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24679 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24681 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024682 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24683else
24684 pkg_failed=yes
24685fi
24686 else
24687 pkg_failed=untried
24688fi
24689if test -n "$AUTOTRACE_LIBS"; then
24690 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24691 elif test -n "$PKG_CONFIG"; then
24692 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024694 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24695 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024698 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24699else
24700 pkg_failed=yes
24701fi
24702 else
24703 pkg_failed=untried
24704fi
24705
24706
24707
24708if test $pkg_failed = yes; then
24709
24710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24711 _pkg_short_errors_supported=yes
24712else
24713 _pkg_short_errors_supported=no
24714fi
24715 if test $_pkg_short_errors_supported = yes; then
24716 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24717 else
24718 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24719 fi
24720 # Put the nasty error message in config.log where it belongs
24721 echo "$AUTOTRACE_PKG_ERRORS" >&5
24722
cristy8b350f62009-11-15 23:12:43 +000024723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024724$as_echo "no" >&6; }
24725 have_autotrace=no
24726elif test $pkg_failed = untried; then
24727 have_autotrace=no
24728else
24729 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24730 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "yes" >&6; }
24733 have_autotrace=yes
24734fi
cristy8b350f62009-11-15 23:12:43 +000024735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo "" >&6; }
24737fi
24738
24739if test "$have_autotrace" = 'yes'; then
24740 failed=0
24741
cristy8b350f62009-11-15 23:12:43 +000024742$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024743
24744 if test "$with_modules" = 'no'; then
24745 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24746 fi
24747fi
24748
24749 if test "$have_autotrace" = 'yes'; then
24750 AUTOTRACE_DELEGATE_TRUE=
24751 AUTOTRACE_DELEGATE_FALSE='#'
24752else
24753 AUTOTRACE_DELEGATE_TRUE='#'
24754 AUTOTRACE_DELEGATE_FALSE=
24755fi
24756
24757
24758
24759
24760
24761#
24762# Check for Display Postscript delegate library.
24763#
24764
24765# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024766if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 withval=$with_dps; with_dps=$withval
24768else
24769 with_dps='yes'
24770fi
24771
24772
24773if test "$with_dps" != 'yes'; then
24774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24775fi
24776
24777have_dps='no'
24778DPS_LIBS=''
24779if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "" >&6; }
24786 failed=0
24787 passed=0
24788 PERSIST_CPPFLAGS="$CPPFLAGS"
24789 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024790 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24791if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024792 passed=`expr $passed + 1`
24793else
24794 failed=`expr $failed + 1`
24795fi
24796
24797
24798 # DPS issues:
24799 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
24800 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
24801 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
24802 # ImageMagick itself doesn't use -lXt.
24803 have_libdps='no'
24804 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000024805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024806$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024807if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024808 $as_echo_n "(cached) " >&6
24809else
24810 ac_check_lib_save_LIBS=$LIBS
24811LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024813/* end confdefs.h. */
24814
24815/* Override any GCC internal prototype to avoid an error.
24816 Use char because int might match the return type of a GCC
24817 builtin and then its argument prototype would still apply. */
24818#ifdef __cplusplus
24819extern "C"
24820#endif
24821char DPSInitialize ();
24822int
24823main ()
24824{
24825return DPSInitialize ();
24826 ;
24827 return 0;
24828}
24829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024831 ac_cv_lib_dps_DPSInitialize=yes
24832else
cristy8b350f62009-11-15 23:12:43 +000024833 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024834fi
cristy8b350f62009-11-15 23:12:43 +000024835rm -f core conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024837LIBS=$ac_check_lib_save_LIBS
24838fi
cristy8b350f62009-11-15 23:12:43 +000024839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024841if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024842 have_libdps='yes'
24843else
24844 have_libdps='no'
24845fi
24846
24847 if test "$have_libdps" != 'yes'; then
24848 # Unset cache variable so we can try again.
24849 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024852if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024853 $as_echo_n "(cached) " >&6
24854else
24855 ac_check_lib_save_LIBS=$LIBS
24856LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024858/* end confdefs.h. */
24859
24860/* Override any GCC internal prototype to avoid an error.
24861 Use char because int might match the return type of a GCC
24862 builtin and then its argument prototype would still apply. */
24863#ifdef __cplusplus
24864extern "C"
24865#endif
24866char DPSInitialize ();
24867int
24868main ()
24869{
24870return DPSInitialize ();
24871 ;
24872 return 0;
24873}
24874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 ac_cv_lib_dps_DPSInitialize=yes
24877else
cristy8b350f62009-11-15 23:12:43 +000024878 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024879fi
cristy8b350f62009-11-15 23:12:43 +000024880rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024882LIBS=$ac_check_lib_save_LIBS
24883fi
cristy8b350f62009-11-15 23:12:43 +000024884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024885$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024886if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024887 have_libdps='yes'
24888else
24889 have_libdps='no'
24890fi
24891
24892 if test "$have_libdps" = 'yes'; then
24893 LIBDPS_XT='-lXt'
24894 fi
24895 fi
24896 if test "$have_libdps" = 'yes'; then
24897 passed=`expr $passed + 1`
24898 else
24899 failed=`expr $failed + 1`
24900 fi
cristy8b350f62009-11-15 23:12:43 +000024901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024902$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024903if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024904 $as_echo_n "(cached) " >&6
24905else
24906 ac_check_lib_save_LIBS=$LIBS
24907LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024909/* end confdefs.h. */
24910
24911/* Override any GCC internal prototype to avoid an error.
24912 Use char because int might match the return type of a GCC
24913 builtin and then its argument prototype would still apply. */
24914#ifdef __cplusplus
24915extern "C"
24916#endif
24917char XDPSPixelsPerPoint ();
24918int
24919main ()
24920{
24921return XDPSPixelsPerPoint ();
24922 ;
24923 return 0;
24924}
24925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024927 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
24928else
cristy8b350f62009-11-15 23:12:43 +000024929 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000024930fi
cristy8b350f62009-11-15 23:12:43 +000024931rm -f core conftest.err conftest.$ac_objext \
24932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024933LIBS=$ac_check_lib_save_LIBS
24934fi
cristy8b350f62009-11-15 23:12:43 +000024935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000024936$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024937if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024938 passed=`expr $passed + 1`
24939else
24940 failed=`expr $failed + 1`
24941fi
24942
cristy8b350f62009-11-15 23:12:43 +000024943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024944$as_echo_n "checking if DPS package is complete... " >&6; }
24945 if test $passed -gt 0; then
24946 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024948$as_echo "no -- some components failed test" >&6; }
24949 have_dps='no (failed tests)'
24950 CPPFLAGS="$PERSIST_CPPFLAGS"
24951 else
24952 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
24953 LIBS="$DPS_LIBS $LIBS"
24954
cristy8b350f62009-11-15 23:12:43 +000024955$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024956
cristy8b350f62009-11-15 23:12:43 +000024957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024958$as_echo "yes" >&6; }
24959 have_dps='yes'
24960 fi
24961 else
cristy8b350f62009-11-15 23:12:43 +000024962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024963$as_echo "no" >&6; }
24964 CPPFLAGS=$PERSIST_CPPFLAGS
24965 fi
24966fi
24967 if test "$have_dps" = 'yes'; then
24968 DPS_DELEGATE_TRUE=
24969 DPS_DELEGATE_FALSE='#'
24970else
24971 DPS_DELEGATE_TRUE='#'
24972 DPS_DELEGATE_FALSE=
24973fi
24974
24975
24976
24977
24978#
24979# Check for DJVU delegate library.
24980#
24981
24982# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000024983if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024984 withval=$with_djvu; with_djvu=$withval
24985else
24986 with_djvu='yes'
24987fi
24988
24989
24990if test "$with_djvu" != 'yes'; then
24991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
24992fi
24993
24994have_djvu='no'
24995DJVU_LIBS=''
24996if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024998$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025002$as_echo "" >&6; }
25003 failed=0
25004 passed=0
cristy8b350f62009-11-15 23:12:43 +000025005 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25006if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025007 passed=`expr $passed + 1`
25008else
25009 failed=`expr $failed + 1`
25010fi
25011
25012
cristy8b350f62009-11-15 23:12:43 +000025013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025015if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025016 $as_echo_n "(cached) " >&6
25017else
25018 ac_check_lib_save_LIBS=$LIBS
25019LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025021/* end confdefs.h. */
25022
25023/* Override any GCC internal prototype to avoid an error.
25024 Use char because int might match the return type of a GCC
25025 builtin and then its argument prototype would still apply. */
25026#ifdef __cplusplus
25027extern "C"
25028#endif
25029char ddjvu_context_create ();
25030int
25031main ()
25032{
25033return ddjvu_context_create ();
25034 ;
25035 return 0;
25036}
25037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025038if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025039 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25040else
cristy8b350f62009-11-15 23:12:43 +000025041 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025042fi
cristy8b350f62009-11-15 23:12:43 +000025043rm -f core conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025045LIBS=$ac_check_lib_save_LIBS
25046fi
cristy8b350f62009-11-15 23:12:43 +000025047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025048$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025049if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025050 passed=`expr $passed + 1`
25051else
25052 failed=`expr $failed + 1`
25053fi
25054
cristy8b350f62009-11-15 23:12:43 +000025055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025056$as_echo_n "checking if DJVU package is complete... " >&6; }
25057 if test $passed -gt 0; then
25058 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025060$as_echo "no -- some components failed test" >&6; }
25061 have_djvu='no (failed tests)'
25062 else
25063 DJVU_LIBS='-ldjvulibre'
25064 LIBS="$DJVU_LIBS $LIBS"
25065
cristy8b350f62009-11-15 23:12:43 +000025066$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025067
cristy8b350f62009-11-15 23:12:43 +000025068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025069$as_echo "yes" >&6; }
25070 have_djvu='yes'
25071 fi
25072 else
cristy8b350f62009-11-15 23:12:43 +000025073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025074$as_echo "no" >&6; }
25075 fi
25076fi
25077 if test "$have_djvu" = 'yes'; then
25078 DJVU_DELEGATE_TRUE=
25079 DJVU_DELEGATE_FALSE='#'
25080else
25081 DJVU_DELEGATE_TRUE='#'
25082 DJVU_DELEGATE_FALSE=
25083fi
25084
25085
25086
25087
25088#
25089# Check for FFTW delegate library.
25090#
25091
25092# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025093if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025094 withval=$with_fftw; with_fftw=$withval
25095else
25096 with_fftw='yes'
25097fi
25098
25099
25100if test "$with_fftw" != 'yes'; then
25101 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25102fi
25103
25104have_fftw='no'
25105FFTW_LIBS=''
25106if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025110$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "" >&6; }
25113 failed=0
25114 passed=0
cristy8b350f62009-11-15 23:12:43 +000025115 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25116if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025117 passed=`expr $passed + 1`
25118else
25119 failed=`expr $failed + 1`
25120fi
25121
25122
cristy8b350f62009-11-15 23:12:43 +000025123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025124$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025125if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025126 $as_echo_n "(cached) " >&6
25127else
25128 ac_check_lib_save_LIBS=$LIBS
25129LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025131/* end confdefs.h. */
25132
25133/* Override any GCC internal prototype to avoid an error.
25134 Use char because int might match the return type of a GCC
25135 builtin and then its argument prototype would still apply. */
25136#ifdef __cplusplus
25137extern "C"
25138#endif
25139char fftw_execute ();
25140int
25141main ()
25142{
25143return fftw_execute ();
25144 ;
25145 return 0;
25146}
25147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025149 ac_cv_lib_fftw3_fftw_execute=yes
25150else
cristy8b350f62009-11-15 23:12:43 +000025151 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025152fi
cristy8b350f62009-11-15 23:12:43 +000025153rm -f core conftest.err conftest.$ac_objext \
25154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025155LIBS=$ac_check_lib_save_LIBS
25156fi
cristy8b350f62009-11-15 23:12:43 +000025157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025158$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025159if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025160 passed=`expr $passed + 1`
25161else
25162 failed=`expr $failed + 1`
25163fi
25164
cristy8b350f62009-11-15 23:12:43 +000025165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo_n "checking if FFTW package is complete... " >&6; }
25167 if test $passed -gt 0; then
25168 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025170$as_echo "no -- some components failed test" >&6; }
25171 have_fftw='no (failed tests)'
25172 else
25173 FFTW_LIBS='-lfftw3'
25174 LIBS="$FFTW_LIBS $LIBS"
25175
cristy8b350f62009-11-15 23:12:43 +000025176$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025177
cristy8b350f62009-11-15 23:12:43 +000025178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025179$as_echo "yes" >&6; }
25180 have_fftw='yes'
25181 fi
25182 else
cristy8b350f62009-11-15 23:12:43 +000025183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025184$as_echo "no" >&6; }
25185 fi
25186fi
25187 if test "$have_fftw" = 'yes'; then
25188 FFTW_DELEGATE_TRUE=
25189 FFTW_DELEGATE_FALSE='#'
25190else
25191 FFTW_DELEGATE_TRUE='#'
25192 FFTW_DELEGATE_FALSE=
25193fi
25194
25195
25196
25197
25198#
25199# Check for FlashPIX delegate library.
25200#
25201
25202# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025203if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 withval=$with_fpx; with_fpx=$withval
25205else
25206 with_fpx='yes'
25207fi
25208
25209
25210if test "$with_fpx" != 'yes'; then
25211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25212fi
25213
25214have_fpx='no'
25215FPX_LIBS=''
25216if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025218$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025220$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025222$as_echo "" >&6; }
25223 failed=0
25224 passed=0
25225 ac_ext=cpp
25226ac_cpp='$CXXCPP $CPPFLAGS'
25227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25230
25231
cristy8b350f62009-11-15 23:12:43 +000025232ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25233if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 passed=`expr $passed + 1`
25235else
25236 failed=`expr $failed + 1`
25237fi
25238
25239
cristy8b350f62009-11-15 23:12:43 +000025240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025241$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025242if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025243 $as_echo_n "(cached) " >&6
25244else
25245 ac_check_lib_save_LIBS=$LIBS
25246LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025248/* end confdefs.h. */
25249
25250/* Override any GCC internal prototype to avoid an error.
25251 Use char because int might match the return type of a GCC
25252 builtin and then its argument prototype would still apply. */
25253#ifdef __cplusplus
25254extern "C"
25255#endif
25256char FPX_OpenImageByFilename ();
25257int
25258main ()
25259{
25260return FPX_OpenImageByFilename ();
25261 ;
25262 return 0;
25263}
25264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025265if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025266 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25267else
cristy8b350f62009-11-15 23:12:43 +000025268 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025269fi
cristy8b350f62009-11-15 23:12:43 +000025270rm -f core conftest.err conftest.$ac_objext \
25271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025272LIBS=$ac_check_lib_save_LIBS
25273fi
cristy8b350f62009-11-15 23:12:43 +000025274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025275$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025276if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025277 passed=`expr $passed + 1`
25278else
25279 failed=`expr $failed + 1`
25280fi
25281
25282 ac_ext=c
25283ac_cpp='$CPP $CPPFLAGS'
25284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25286ac_compiler_gnu=$ac_cv_c_compiler_gnu
25287
cristy8b350f62009-11-15 23:12:43 +000025288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025289$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25290 if test $passed -gt 0; then
25291 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo "no -- some components failed test" >&6; }
25294 have_fpx='no (failed tests)'
25295 else
25296 FPX_LIBS='-lfpx'
25297
cristy8b350f62009-11-15 23:12:43 +000025298$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025299
cristy8b350f62009-11-15 23:12:43 +000025300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025301$as_echo "yes" >&6; }
25302 have_fpx='yes'
25303 PERLMAINCC="$CXX"
25304 fi
25305 else
cristy8b350f62009-11-15 23:12:43 +000025306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo "no" >&6; }
25308 fi
25309fi
25310 if test "$have_fpx" = 'yes'; then
25311 FPX_DELEGATE_TRUE=
25312 FPX_DELEGATE_FALSE='#'
25313else
25314 FPX_DELEGATE_TRUE='#'
25315 FPX_DELEGATE_FALSE=
25316fi
25317
25318
25319
25320
25321#
25322# Check for fontconfig delegate library.
25323#
25324
25325# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025326if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025327 withval=$with_fontconfig; with_fontconfig=$withval
25328else
25329 with_fontconfig=$have_x
25330fi
25331
25332
25333if test "$with_fontconfig" != 'yes'; then
25334 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25335fi
25336
25337have_fontconfig='no'
25338FONTCONFIG_CFLAGS=""
25339FONTCONFIG_LIBS=""
25340FONTCONFIG_PKG=""
25341if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025343$as_echo "-------------------------------------------------------------" >&6; }
25344
25345pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025347$as_echo_n "checking for FONTCONFIG... " >&6; }
25348
25349if test -n "$FONTCONFIG_CFLAGS"; then
25350 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25351 elif test -n "$PKG_CONFIG"; then
25352 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025354 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25355 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25357 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025358 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25359else
25360 pkg_failed=yes
25361fi
25362 else
25363 pkg_failed=untried
25364fi
25365if test -n "$FONTCONFIG_LIBS"; then
25366 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25367 elif test -n "$PKG_CONFIG"; then
25368 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025370 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25371 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25373 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025374 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25375else
25376 pkg_failed=yes
25377fi
25378 else
25379 pkg_failed=untried
25380fi
25381
25382
25383
25384if test $pkg_failed = yes; then
25385
25386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25387 _pkg_short_errors_supported=yes
25388else
25389 _pkg_short_errors_supported=no
25390fi
25391 if test $_pkg_short_errors_supported = yes; then
25392 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25393 else
25394 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25395 fi
25396 # Put the nasty error message in config.log where it belongs
25397 echo "$FONTCONFIG_PKG_ERRORS" >&5
25398
cristy8b350f62009-11-15 23:12:43 +000025399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400$as_echo "no" >&6; }
25401 have_fontconfig=no
25402elif test $pkg_failed = untried; then
25403 have_fontconfig=no
25404else
25405 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25406 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo "yes" >&6; }
25409 have_fontconfig=yes
25410fi
cristy8b350f62009-11-15 23:12:43 +000025411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025412$as_echo "" >&6; }
25413fi
25414
25415if test "$have_fontconfig" = 'yes'; then
25416
cristy8b350f62009-11-15 23:12:43 +000025417$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025418
25419 if test "$with_modules" = 'no'; then
25420 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25421 fi
25422fi
25423
25424 if test "$have_fontconfig" = 'yes'; then
25425 FONTCONFIG_DELEGATE_TRUE=
25426 FONTCONFIG_DELEGATE_FALSE='#'
25427else
25428 FONTCONFIG_DELEGATE_TRUE='#'
25429 FONTCONFIG_DELEGATE_FALSE=
25430fi
25431
25432
25433
25434
25435
25436#
25437# Check for freetype delegate library.
25438#
25439
25440# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025441if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025442 withval=$with_freetype; with_freetype=$withval
25443else
25444 with_freetype='yes'
25445fi
25446
25447
25448
25449if test "$with_freetype" != 'yes'; then
25450 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25451fi
25452
25453have_freetype='no'
25454FREETYPE_LIBS=''
25455if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025457$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo "" >&6; }
25462 failed=0
25463 passed=0
cristy66291112009-10-03 22:44:36 +000025464 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025465 PERSIST_CPPFLAGS="$CPPFLAGS"
25466 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25467 :
25468 else
25469 freetype_config=''
25470 for ac_prog in freetype-config
25471do
25472 # Extract the first word of "$ac_prog", so it can be a program name with args.
25473set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025475$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025476if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025477 $as_echo_n "(cached) " >&6
25478else
25479 if test -n "$freetype_config"; then
25480 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25481else
25482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25483for as_dir in $PATH
25484do
25485 IFS=$as_save_IFS
25486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25489 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025491 break 2
25492 fi
25493done
cristy8b350f62009-11-15 23:12:43 +000025494 done
cristy3ed852e2009-09-05 21:47:34 +000025495IFS=$as_save_IFS
25496
25497fi
25498fi
25499freetype_config=$ac_cv_prog_freetype_config
25500if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025502$as_echo "$freetype_config" >&6; }
25503else
cristy8b350f62009-11-15 23:12:43 +000025504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025505$as_echo "no" >&6; }
25506fi
25507
25508
25509 test -n "$freetype_config" && break
25510done
25511 if test -n "$freetype_config"; then
25512 freetype_cflags=`$freetype_config --cflags`
25513 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025514 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025515 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25516 fi
25517 fi
25518
25519 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025521$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025522if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 $as_echo_n "(cached) " >&6
25524else
25525 ac_check_lib_save_LIBS=$LIBS
25526LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025528/* end confdefs.h. */
25529
25530/* Override any GCC internal prototype to avoid an error.
25531 Use char because int might match the return type of a GCC
25532 builtin and then its argument prototype would still apply. */
25533#ifdef __cplusplus
25534extern "C"
25535#endif
25536char FT_Init_FreeType ();
25537int
25538main ()
25539{
25540return FT_Init_FreeType ();
25541 ;
25542 return 0;
25543}
25544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025546 ac_cv_lib_freetype_FT_Init_FreeType=yes
25547else
cristy8b350f62009-11-15 23:12:43 +000025548 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025549fi
cristy8b350f62009-11-15 23:12:43 +000025550rm -f core conftest.err conftest.$ac_objext \
25551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025552LIBS=$ac_check_lib_save_LIBS
25553fi
cristy8b350f62009-11-15 23:12:43 +000025554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025555$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025556if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025557 FREETYPE_LIBS='-lfreetype'
25558fi
25559
25560 if test "$FREETYPE_LIBS" != ''; then
25561 passed=`expr $passed + 1`
25562 else
25563 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025564 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025565 fi
25566 fi
25567
cristy8b350f62009-11-15 23:12:43 +000025568 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25569if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025570 FT2BUILD_H='#include <ft2build.h>'
25571else
25572 ft2build=''
25573fi
25574
25575
cristy8b350f62009-11-15 23:12:43 +000025576 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25577"
25578if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 have_freetype_h='yes'
25580else
25581 have_freetype_h='no'
25582fi
25583
25584
25585 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25586 passed=`expr $passed + 1`
25587 else
25588 failed=`expr $failed + 1`
25589 CPPFLAGS="$PERSIST_CPPFLAGS"
25590 fi
25591
cristy8b350f62009-11-15 23:12:43 +000025592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025593$as_echo_n "checking if FreeType package is complete... " >&6; }
25594 if test $passed -gt 0; then
25595 if test $failed -gt 0; then
25596 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025598$as_echo "no -- some components failed test" >&6; }
25599 have_freetype='no (failed tests)'
25600 else
25601 LIBS="$FREETYPE_LIBS $LIBS"
25602
cristy8b350f62009-11-15 23:12:43 +000025603$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025604
25605 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25606
cristy8b350f62009-11-15 23:12:43 +000025607$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025608
25609 fi
cristy8b350f62009-11-15 23:12:43 +000025610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025611$as_echo "yes" >&6; }
25612 have_freetype='yes'
25613 fi
25614 else
cristy8b350f62009-11-15 23:12:43 +000025615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025616$as_echo "no" >&6; }
25617 fi
25618fi
25619 if test "$have_freetype" = 'yes'; then
25620 FREETYPE_DELEGATE_TRUE=
25621 FREETYPE_DELEGATE_FALSE='#'
25622else
25623 FREETYPE_DELEGATE_TRUE='#'
25624 FREETYPE_DELEGATE_FALSE=
25625fi
25626
25627
25628
25629
25630
25631#
25632# Check for Ghostscript library or framework.
25633#
25634# Test for iapi.h & test for gsapi_new_instance in -lgs
25635# or -framework Ghostscript
25636
25637
25638# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025639if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025640 withval=$with_gslib; with_gslib=$withval
25641else
25642 with_gslib='no'
25643fi
25644
25645
cristyb7931f12009-09-25 10:22:21 +000025646gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025647if test "$with_gslib" != 'yes'; then
25648 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25649fi
25650
25651have_gslib='no'
25652GS_LIBS=''
25653if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025657$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025659$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025660 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025661 failed=0
25662 passed=0
cristy8b350f62009-11-15 23:12:43 +000025663 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25664if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025665 passed=`expr $passed + 1`
25666else
25667 failed=`expr $failed + 1`
25668fi
25669
25670
cristy8b350f62009-11-15 23:12:43 +000025671 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25672if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025673 passed=`expr $passed + 1`
25674else
25675 failed=`expr $failed + 1`
25676fi
25677
25678
cristy8b350f62009-11-15 23:12:43 +000025679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025680$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025681if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025682 $as_echo_n "(cached) " >&6
25683else
25684 ac_check_framework_save_LIBS=$LIBS
25685LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025687/* end confdefs.h. */
25688
25689/* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
25692#ifdef __cplusplus
25693extern "C"
25694#endif
25695char gsapi_new_instance ();
25696int
25697main ()
25698{
25699return gsapi_new_instance ();
25700 ;
25701 return 0;
25702}
25703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025705 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25706else
cristy8b350f62009-11-15 23:12:43 +000025707 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025708fi
cristy8b350f62009-11-15 23:12:43 +000025709rm -f core conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025711LIBS=$ac_check_framework_save_LIBS
25712fi
cristy8b350f62009-11-15 23:12:43 +000025713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025714$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025715if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025716 framework=`expr $framework + 1`
25717else
cristy8b350f62009-11-15 23:12:43 +000025718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025719$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025720if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025721 $as_echo_n "(cached) " >&6
25722else
25723 ac_check_lib_save_LIBS=$LIBS
25724LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025726/* end confdefs.h. */
25727
25728/* Override any GCC internal prototype to avoid an error.
25729 Use char because int might match the return type of a GCC
25730 builtin and then its argument prototype would still apply. */
25731#ifdef __cplusplus
25732extern "C"
25733#endif
25734char gsapi_new_instance ();
25735int
25736main ()
25737{
25738return gsapi_new_instance ();
25739 ;
25740 return 0;
25741}
25742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025744 ac_cv_lib_gs_gsapi_new_instance=yes
25745else
cristy8b350f62009-11-15 23:12:43 +000025746 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025747fi
cristy8b350f62009-11-15 23:12:43 +000025748rm -f core conftest.err conftest.$ac_objext \
25749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025750LIBS=$ac_check_lib_save_LIBS
25751fi
cristy8b350f62009-11-15 23:12:43 +000025752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025753$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025754if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025755 passed=`expr $passed + 1`
25756else
25757 failed=`expr $failed + 1`
25758fi
25759
25760fi
cristy8b350f62009-11-15 23:12:43 +000025761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025762$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25763 if test $passed -gt 0; then
25764 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025766$as_echo "no -- some components failed test" >&6; }
25767 have_gslib='no (failed tests)'
25768 else
25769 if test $framework -gt 0; then
25770 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025771 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo "yes, using framework." >&6; }
25774 else
cristy8b350f62009-11-15 23:12:43 +000025775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025776$as_echo "yes, using library." >&6; }
25777 GS_LIBS='-lgs'
25778 fi
25779 LIBS="$GS_LIBS $LIBS"
25780
cristy8b350f62009-11-15 23:12:43 +000025781$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025782
25783 have_gslib='yes'
25784 fi
25785 else
cristy8b350f62009-11-15 23:12:43 +000025786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025787$as_echo "no" >&6; }
25788 fi
25789fi
25790 if test "$have_gslib" = 'yes'; then
25791 GS_DELEGATE_TRUE=
25792 GS_DELEGATE_FALSE='#'
25793else
25794 GS_DELEGATE_TRUE='#'
25795 GS_DELEGATE_FALSE=
25796fi
25797
25798
25799
25800# Set default font search path
25801
25802# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000025803if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025804 withval=$with_fontpath; with_fontpath=$withval
25805else
25806 with_fontpath=''
25807fi
25808
25809
25810if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
25811 with_fontpath=''
25812else
25813
25814cat >>confdefs.h <<_ACEOF
25815#define MAGICK_FONT_PATH "$with_fontpath"
25816_ACEOF
25817
25818fi
25819if test "$with_fontpath=" != ''; then
25820 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
25821fi
25822
25823# Set Ghostscript font directory
25824
25825# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000025826if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025827 withval=$with_gs_font_dir; with_gs_font_dir=$withval
25828else
25829 with_gs_font_dir='default'
25830fi
25831
25832
25833if test "$with_gs_font_dir" != 'default'; then
25834 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
25835fi
25836
25837
25838#
25839# Check for GVC delegate library.
25840#
25841
25842# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000025843if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025844 withval=$with_gvc; with_gvc=$withval
25845else
25846 with_gvc='yes'
25847fi
25848
25849
25850if test "$with_gvc" != 'yes'; then
25851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
25852fi
25853
25854GVC_PKG=""
25855if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025857$as_echo "-------------------------------------------------------------" >&6; }
25858
25859pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000025861$as_echo_n "checking for GVC... " >&6; }
25862
25863if test -n "$GVC_CFLAGS"; then
25864 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
25865 elif test -n "$PKG_CONFIG"; then
25866 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025868 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
25869 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025872 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
25873else
25874 pkg_failed=yes
25875fi
25876 else
25877 pkg_failed=untried
25878fi
25879if test -n "$GVC_LIBS"; then
25880 pkg_cv_GVC_LIBS="$GVC_LIBS"
25881 elif test -n "$PKG_CONFIG"; then
25882 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025884 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
25885 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025888 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
25889else
25890 pkg_failed=yes
25891fi
25892 else
25893 pkg_failed=untried
25894fi
25895
25896
25897
25898if test $pkg_failed = yes; then
25899
25900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25901 _pkg_short_errors_supported=yes
25902else
25903 _pkg_short_errors_supported=no
25904fi
25905 if test $_pkg_short_errors_supported = yes; then
25906 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
25907 else
25908 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
25909 fi
25910 # Put the nasty error message in config.log where it belongs
25911 echo "$GVC_PKG_ERRORS" >&5
25912
cristy8b350f62009-11-15 23:12:43 +000025913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025914$as_echo "no" >&6; }
25915 have_gvc=no
25916elif test $pkg_failed = untried; then
25917 have_gvc=no
25918else
25919 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
25920 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000025921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo "yes" >&6; }
25923 have_gvc=yes
25924fi
cristy8b350f62009-11-15 23:12:43 +000025925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025926$as_echo "" >&6; }
25927fi
25928
25929if test "$have_gvc" = 'yes'; then
25930
cristy8b350f62009-11-15 23:12:43 +000025931$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025932
25933 if test "$with_modules" = 'no'; then
25934 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
25935 fi
25936fi
25937
25938 if test "$have_gvc" = 'yes'; then
25939 GVC_DELEGATE_TRUE=
25940 GVC_DELEGATE_FALSE='#'
25941else
25942 GVC_DELEGATE_TRUE='#'
25943 GVC_DELEGATE_FALSE=
25944fi
25945
25946
25947
25948
25949
25950#
25951# Check for JBIG delegate library.
25952#
25953
25954
25955# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000025956if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 withval=$with_jbig; with_jbig=$withval
25958else
25959 with_jbig='yes'
25960fi
25961
25962
25963have_jbig='no'
25964JBIG_LIBS=''
25965if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo "" >&6; }
25972 failed=0
25973 passed=0
cristy8b350f62009-11-15 23:12:43 +000025974 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
25975if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025976 passed=`expr $passed + 1`
25977else
25978 failed=`expr $failed + 1`
25979fi
25980
25981
cristy8b350f62009-11-15 23:12:43 +000025982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000025983$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025984if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025985 $as_echo_n "(cached) " >&6
25986else
25987 ac_check_lib_save_LIBS=$LIBS
25988LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025990/* end confdefs.h. */
25991
25992/* Override any GCC internal prototype to avoid an error.
25993 Use char because int might match the return type of a GCC
25994 builtin and then its argument prototype would still apply. */
25995#ifdef __cplusplus
25996extern "C"
25997#endif
25998char jbg_dec_init ();
25999int
26000main ()
26001{
26002return jbg_dec_init ();
26003 ;
26004 return 0;
26005}
26006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026007if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026008 ac_cv_lib_jbig_jbg_dec_init=yes
26009else
cristy8b350f62009-11-15 23:12:43 +000026010 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026011fi
cristy8b350f62009-11-15 23:12:43 +000026012rm -f core conftest.err conftest.$ac_objext \
26013 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026014LIBS=$ac_check_lib_save_LIBS
26015fi
cristy8b350f62009-11-15 23:12:43 +000026016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026017$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026018if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026019 passed=`expr $passed + 1`
26020else
26021 failed=`expr $failed + 1`
26022fi
26023
cristy8b350f62009-11-15 23:12:43 +000026024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026025$as_echo_n "checking if JBIG package is complete... " >&6; }
26026 if test $passed -gt 0; then
26027 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026029$as_echo "no -- some components failed test" >&6; }
26030 have_jbig='no (failed tests)'
26031 else
26032 JBIG_LIBS='-ljbig'
26033 LIBS="$JBIG_LIBS $LIBS"
26034
cristy8b350f62009-11-15 23:12:43 +000026035$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026036
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo "yes" >&6; }
26039 have_jbig='yes'
26040 fi
26041 else
cristy8b350f62009-11-15 23:12:43 +000026042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026043$as_echo "no" >&6; }
26044 fi
26045fi
26046 if test "$have_jbig" = 'yes'; then
26047 JBIG_DELEGATE_TRUE=
26048 JBIG_DELEGATE_FALSE='#'
26049else
26050 JBIG_DELEGATE_TRUE='#'
26051 JBIG_DELEGATE_FALSE=
26052fi
26053
26054
26055
26056
26057#
26058# Check for JPEG delegate library.
26059#
26060
26061# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026062if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026063 withval=$with_jpeg; with_jpeg=$withval
26064else
26065 with_jpeg='yes'
26066fi
26067
26068
26069if test "$with_jpeg" != 'yes'; then
26070 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26071fi
26072
26073have_jpeg='no'
26074JPEG_LIBS=''
26075if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026077$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026081$as_echo "" >&6; }
26082 failed=0
26083 passed=0
cristy8b350f62009-11-15 23:12:43 +000026084 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26085if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 passed=`expr $passed + 1`
26087else
26088 failed=`expr $failed + 1`
26089fi
26090
26091
cristy8b350f62009-11-15 23:12:43 +000026092 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26093if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026094 passed=`expr $passed + 1`
26095else
26096 failed=`expr $failed + 1`
26097fi
26098
26099
cristy8b350f62009-11-15 23:12:43 +000026100 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26101if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026102 passed=`expr $passed + 1`
26103else
26104 failed=`expr $failed + 1`
26105fi
26106
26107
cristy8b350f62009-11-15 23:12:43 +000026108 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26109if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 passed=`expr $passed + 1`
26111else
26112 failed=`expr $failed + 1`
26113fi
26114
26115
cristy8b350f62009-11-15 23:12:43 +000026116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026118if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 $as_echo_n "(cached) " >&6
26120else
26121 ac_check_lib_save_LIBS=$LIBS
26122LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026124/* end confdefs.h. */
26125
26126/* Override any GCC internal prototype to avoid an error.
26127 Use char because int might match the return type of a GCC
26128 builtin and then its argument prototype would still apply. */
26129#ifdef __cplusplus
26130extern "C"
26131#endif
26132char jpeg_read_header ();
26133int
26134main ()
26135{
26136return jpeg_read_header ();
26137 ;
26138 return 0;
26139}
26140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 ac_cv_lib_jpeg_jpeg_read_header=yes
26143else
cristy8b350f62009-11-15 23:12:43 +000026144 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026145fi
cristy8b350f62009-11-15 23:12:43 +000026146rm -f core conftest.err conftest.$ac_objext \
26147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026148LIBS=$ac_check_lib_save_LIBS
26149fi
cristy8b350f62009-11-15 23:12:43 +000026150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026151$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026152if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026153 passed=`expr $passed + 1`
26154else
26155 failed=`expr $failed + 1`
26156fi
26157
26158
26159# Test for compatible JPEG library
26160if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026162$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026163if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026164 $as_echo_n "(cached) " >&6
26165else
cristy8b350f62009-11-15 23:12:43 +000026166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026167/* end confdefs.h. */
26168#include <stdio.h>
26169#include <stdlib.h>
26170#include <jpeglib.h>
26171
26172int
26173main ()
26174{
26175
26176#if JPEG_LIB_VERSION < 62
26177#error IJG JPEG library must be version 6b or newer!
26178#endif
26179return 0;
26180
26181 ;
26182 return 0;
26183}
26184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026185if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026186 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26187else
cristy8b350f62009-11-15 23:12:43 +000026188 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026189fi
cristy3ed852e2009-09-05 21:47:34 +000026190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26191fi
cristy8b350f62009-11-15 23:12:43 +000026192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026193$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26194fi
cristy8b350f62009-11-15 23:12:43 +000026195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026196$as_echo_n "checking if JPEG package is complete... " >&6; }
26197 if test $passed -gt 0; then
26198 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026200$as_echo "no -- some components failed test" >&6; }
26201 have_jpeg='no (failed tests)'
26202 else
26203 JPEG_LIBS='-ljpeg'
26204 LIBS="$JPEG_LIBS $LIBS"
26205
cristy8b350f62009-11-15 23:12:43 +000026206$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026207
cristy8b350f62009-11-15 23:12:43 +000026208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026209$as_echo "yes" >&6; }
26210 have_jpeg='yes'
26211 fi
26212 else
cristy8b350f62009-11-15 23:12:43 +000026213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026214$as_echo "no" >&6; }
26215 fi
26216fi
26217 if test "$have_jpeg" = 'yes'; then
26218 JPEG_DELEGATE_TRUE=
26219 JPEG_DELEGATE_FALSE='#'
26220else
26221 JPEG_DELEGATE_TRUE='#'
26222 JPEG_DELEGATE_FALSE=
26223fi
26224
26225
26226
26227
26228#
26229# Check for JPEG Version 2 delegate library.
26230#
26231
26232# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026233if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026234 withval=$with_jp2; with_jp2=$withval
26235else
26236 with_jp2='yes'
26237fi
26238
26239
26240if test "$with_jp2" != 'yes'; then
26241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26242fi
26243
26244have_jp2='no'
26245JP2_LIBS=''
26246if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026250$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo "" >&6; }
26253 failed=0
26254 passed=0
cristy8b350f62009-11-15 23:12:43 +000026255 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26256if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026257 passed=`expr $passed + 1`
26258else
26259 failed=`expr $failed + 1`
26260fi
26261
26262
cristy8b350f62009-11-15 23:12:43 +000026263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026265if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026266 $as_echo_n "(cached) " >&6
26267else
26268 ac_check_lib_save_LIBS=$LIBS
26269LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026271/* end confdefs.h. */
26272
26273/* Override any GCC internal prototype to avoid an error.
26274 Use char because int might match the return type of a GCC
26275 builtin and then its argument prototype would still apply. */
26276#ifdef __cplusplus
26277extern "C"
26278#endif
26279char jas_stream_fopen ();
26280int
26281main ()
26282{
26283return jas_stream_fopen ();
26284 ;
26285 return 0;
26286}
26287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 ac_cv_lib_jasper_jas_stream_fopen=yes
26290else
cristy8b350f62009-11-15 23:12:43 +000026291 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026292fi
cristy8b350f62009-11-15 23:12:43 +000026293rm -f core conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295LIBS=$ac_check_lib_save_LIBS
26296fi
cristy8b350f62009-11-15 23:12:43 +000026297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026299if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026300 passed=`expr $passed + 1`
26301else
26302 failed=`expr $failed + 1`
26303fi
26304
cristy8b350f62009-11-15 23:12:43 +000026305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026306$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26307 if test $passed -gt 0; then
26308 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026310$as_echo "no -- some components failed test" >&6; }
26311 have_jp2='no (failed tests)'
26312 else
26313 JP2_LIBS='-ljasper'
26314 LIBS="$JP2_LIBS $LIBS"
26315
cristy8b350f62009-11-15 23:12:43 +000026316$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026317
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo "yes" >&6; }
26320 have_jp2='yes'
26321 fi
26322 else
cristy8b350f62009-11-15 23:12:43 +000026323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "no" >&6; }
26325 fi
26326fi
26327 if test "$have_jp2" = 'yes'; then
26328 JP2_DELEGATE_TRUE=
26329 JP2_DELEGATE_FALSE='#'
26330else
26331 JP2_DELEGATE_TRUE='#'
26332 JP2_DELEGATE_FALSE=
26333fi
26334
26335
26336
26337
26338#
26339# Check for LCMS delegate library.
26340#
26341
26342# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026343if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 withval=$with_lcms; with_lcms=$withval
26345else
26346 with_lcms='yes'
26347fi
26348
26349
26350if test "$with_lcms" != 'yes'; then
26351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26352fi
26353
26354have_lcms='no'
26355LCMS_LIBS=''
26356if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "" >&6; }
26363 failed=0
26364 passed=0
26365 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026366 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26367if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026368 have_lcms_header='yes'
26369fi
26370
26371
26372 if test "$have_lcms_header" = 'yes'; then
26373 passed=`expr $passed + 1`
26374
cristy8b350f62009-11-15 23:12:43 +000026375$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026376
26377 else
cristy8b350f62009-11-15 23:12:43 +000026378 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26379if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026380 have_lcms_header='yes'
26381fi
26382
26383
26384 if test "$have_lcms_header" = 'yes'; then
26385 passed=`expr $passed + 1`
26386
cristy8b350f62009-11-15 23:12:43 +000026387$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026388
26389 else
26390 failed=`expr $failed + 1`
26391 fi
26392 fi
cristy8b350f62009-11-15 23:12:43 +000026393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026395if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026396 $as_echo_n "(cached) " >&6
26397else
26398 ac_check_lib_save_LIBS=$LIBS
26399LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026401/* end confdefs.h. */
26402
26403/* Override any GCC internal prototype to avoid an error.
26404 Use char because int might match the return type of a GCC
26405 builtin and then its argument prototype would still apply. */
26406#ifdef __cplusplus
26407extern "C"
26408#endif
26409char cmsOpenProfileFromMem ();
26410int
26411main ()
26412{
26413return cmsOpenProfileFromMem ();
26414 ;
26415 return 0;
26416}
26417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26420else
cristy8b350f62009-11-15 23:12:43 +000026421 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425LIBS=$ac_check_lib_save_LIBS
26426fi
cristy8b350f62009-11-15 23:12:43 +000026427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026429if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 passed=`expr $passed + 1`
26431else
26432 failed=`expr $failed + 1`
26433fi
26434
cristy8b350f62009-11-15 23:12:43 +000026435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo_n "checking if LCMS package is complete... " >&6; }
26437 if test $passed -gt 0; then
26438 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo "no -- some components failed test" >&6; }
26441 have_lcms='no (failed tests)'
26442 else
26443 LCMS_LIBS='-llcms'
26444 LIBS="$LCMS_LIBS $LIBS"
26445
cristy8b350f62009-11-15 23:12:43 +000026446$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026447
cristy8b350f62009-11-15 23:12:43 +000026448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026449$as_echo "yes" >&6; }
26450 have_lcms='yes'
26451 fi
26452 else
cristy8b350f62009-11-15 23:12:43 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo "no" >&6; }
26455 fi
26456fi
26457 if test "$have_lcms" = 'yes'; then
26458 LCMS_DELEGATE_TRUE=
26459 LCMS_DELEGATE_FALSE='#'
26460else
26461 LCMS_DELEGATE_TRUE='#'
26462 LCMS_DELEGATE_FALSE=
26463fi
26464
26465
26466
26467
26468#
26469# Check for the LQR (Liquid Rescale) delegate library.
26470#
26471
26472# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026473if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 withval=$with_lqr; with_lqr=$withval
26475else
26476 with_lqr='yes'
26477fi
26478
26479
26480if test "$with_lqr" != 'yes'; then
26481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26482fi
26483
26484have_lqr='no'
26485LQR_CFLAGS=""
26486LQR_LIBS=""
26487LQR_PKG=""
26488if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo "-------------------------------------------------------------" >&6; }
26491
26492pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo_n "checking for LQR... " >&6; }
26495
26496if test -n "$LQR_CFLAGS"; then
26497 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26498 elif test -n "$PKG_CONFIG"; then
26499 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026501 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26502 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026505 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26506else
26507 pkg_failed=yes
26508fi
26509 else
26510 pkg_failed=untried
26511fi
26512if test -n "$LQR_LIBS"; then
26513 pkg_cv_LQR_LIBS="$LQR_LIBS"
26514 elif test -n "$PKG_CONFIG"; then
26515 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026517 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26518 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26520 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026521 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26522else
26523 pkg_failed=yes
26524fi
26525 else
26526 pkg_failed=untried
26527fi
26528
26529
26530
26531if test $pkg_failed = yes; then
26532
26533if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26534 _pkg_short_errors_supported=yes
26535else
26536 _pkg_short_errors_supported=no
26537fi
26538 if test $_pkg_short_errors_supported = yes; then
26539 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26540 else
26541 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26542 fi
26543 # Put the nasty error message in config.log where it belongs
26544 echo "$LQR_PKG_ERRORS" >&5
26545
cristy8b350f62009-11-15 23:12:43 +000026546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026547$as_echo "no" >&6; }
26548 have_lqr=no
26549elif test $pkg_failed = untried; then
26550 have_lqr=no
26551else
26552 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26553 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo "yes" >&6; }
26556 have_lqr=yes
26557fi
cristy8b350f62009-11-15 23:12:43 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026559$as_echo "" >&6; }
26560fi
26561
26562if test "$have_lqr" = 'yes'; then
26563
cristy8b350f62009-11-15 23:12:43 +000026564$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026565
26566 CFLAGS="$LQR_CFLAGS $CFLAGS"
26567fi
26568
26569 if test "$have_lqr" = 'yes'; then
26570 LQR_DELEGATE_TRUE=
26571 LQR_DELEGATE_FALSE='#'
26572else
26573 LQR_DELEGATE_TRUE='#'
26574 LQR_DELEGATE_FALSE=
26575fi
26576
26577
26578
26579
26580
26581#
26582# Check for the OpenEXR delegate library.
26583#
26584
26585# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026586if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 withval=$with_openexr; with_openexr=$withval
26588else
26589 with_openexr='yes'
26590fi
26591
26592
26593if test "$with_openexr" != 'yes'; then
26594 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26595fi
26596
26597have_openexr='no'
26598OPENEXR_CFLAGS=""
26599OPENEXR_LIBS=""
26600OPENEXR_PKG=""
26601if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026603$as_echo "-------------------------------------------------------------" >&6; }
26604
26605pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026607$as_echo_n "checking for OPENEXR... " >&6; }
26608
26609if test -n "$OPENEXR_CFLAGS"; then
26610 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26611 elif test -n "$PKG_CONFIG"; then
26612 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026614 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26615 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26617 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026618 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26619else
26620 pkg_failed=yes
26621fi
26622 else
26623 pkg_failed=untried
26624fi
26625if test -n "$OPENEXR_LIBS"; then
26626 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26627 elif test -n "$PKG_CONFIG"; then
26628 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026630 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26631 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026634 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26635else
26636 pkg_failed=yes
26637fi
26638 else
26639 pkg_failed=untried
26640fi
26641
26642
26643
26644if test $pkg_failed = yes; then
26645
26646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26647 _pkg_short_errors_supported=yes
26648else
26649 _pkg_short_errors_supported=no
26650fi
26651 if test $_pkg_short_errors_supported = yes; then
26652 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26653 else
26654 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26655 fi
26656 # Put the nasty error message in config.log where it belongs
26657 echo "$OPENEXR_PKG_ERRORS" >&5
26658
cristy8b350f62009-11-15 23:12:43 +000026659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026660$as_echo "no" >&6; }
26661 have_openexr=no
26662elif test $pkg_failed = untried; then
26663 have_openexr=no
26664else
26665 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26666 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo "yes" >&6; }
26669 have_openexr=yes
26670fi
cristy8b350f62009-11-15 23:12:43 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo "" >&6; }
26673fi
26674
26675if test "$have_openexr" = 'yes'; then
26676
cristy8b350f62009-11-15 23:12:43 +000026677$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026678
26679 if test "$with_modules" = 'no'; then
26680 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26681 fi
26682fi
26683
26684 if test "$have_openexr" = 'yes'; then
26685 OPENEXR_DELEGATE_TRUE=
26686 OPENEXR_DELEGATE_FALSE='#'
26687else
26688 OPENEXR_DELEGATE_TRUE='#'
26689 OPENEXR_DELEGATE_FALSE=
26690fi
26691
26692
26693
26694
26695
26696#
26697# Check for PNG delegate library.
26698#
26699
26700# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026701if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 withval=$with_png; with_png=$withval
26703else
26704 with_png='yes'
26705fi
26706
26707
26708if test "$with_png" != 'yes'; then
26709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26710fi
26711
26712have_png='no'
26713PNG_LIBS=''
26714if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026716$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026718$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026720$as_echo "" >&6; }
26721 failed=0
26722 passed=0
cristy8b350f62009-11-15 23:12:43 +000026723 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26724if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026725 passed=`expr $passed + 1`
26726else
26727 failed=`expr $failed + 1`
26728fi
26729
26730
cristy8b350f62009-11-15 23:12:43 +000026731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026733if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 $as_echo_n "(cached) " >&6
26735else
26736 ac_check_lib_save_LIBS=$LIBS
26737LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026739/* end confdefs.h. */
26740
26741/* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26744#ifdef __cplusplus
26745extern "C"
26746#endif
26747char png_get_io_ptr ();
26748int
26749main ()
26750{
26751return png_get_io_ptr ();
26752 ;
26753 return 0;
26754}
26755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 ac_cv_lib_png_png_get_io_ptr=yes
26758else
cristy8b350f62009-11-15 23:12:43 +000026759 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026760fi
cristy8b350f62009-11-15 23:12:43 +000026761rm -f core conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026763LIBS=$ac_check_lib_save_LIBS
26764fi
cristy8b350f62009-11-15 23:12:43 +000026765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026767if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026768 passed=`expr $passed + 1`
26769else
26770 failed=`expr $failed + 1`
26771fi
26772
cristy8b350f62009-11-15 23:12:43 +000026773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026774$as_echo_n "checking if PNG package is complete... " >&6; }
26775 if test $passed -gt 0; then
26776 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "no -- some components failed test" >&6; }
26779 have_png='no (failed tests)'
26780 else
26781 PNG_LIBS='-lpng'
26782 LIBS="$PNG_LIBS $LIBS"
26783
cristy8b350f62009-11-15 23:12:43 +000026784$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026785
cristy8b350f62009-11-15 23:12:43 +000026786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026787$as_echo "yes" >&6; }
26788 have_png='yes'
26789 fi
26790 else
cristy8b350f62009-11-15 23:12:43 +000026791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026792$as_echo "no" >&6; }
26793 fi
26794fi
26795 if test "$have_png" = 'yes'; then
26796 PNG_DELEGATE_TRUE=
26797 PNG_DELEGATE_FALSE='#'
26798else
26799 PNG_DELEGATE_TRUE='#'
26800 PNG_DELEGATE_FALSE=
26801fi
26802
26803
26804
26805
26806#
26807# Check for RSVG delegate library.
26808#
26809
26810# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000026811if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026812 withval=$with_rsvg; with_rsvg=$withval
26813else
26814 with_rsvg=$have_x
26815fi
26816
26817
26818if test "$with_rsvg" != 'yes'; then
26819 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
26820fi
26821
26822have_rsvg='no'
26823have_cairo='no'
26824RSVG_CFLAGS=""
26825RSVG_LIBS=""
26826RSVG_PKG=""
26827if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026829$as_echo "-------------------------------------------------------------" >&6; }
26830
26831pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo_n "checking for RSVG... " >&6; }
26834
26835if test -n "$RSVG_CFLAGS"; then
26836 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
26837 elif test -n "$PKG_CONFIG"; then
26838 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026840 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26841 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026844 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26845else
26846 pkg_failed=yes
26847fi
26848 else
26849 pkg_failed=untried
26850fi
26851if test -n "$RSVG_LIBS"; then
26852 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
26853 elif test -n "$PKG_CONFIG"; then
26854 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026855 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026856 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26857 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026860 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26861else
26862 pkg_failed=yes
26863fi
26864 else
26865 pkg_failed=untried
26866fi
26867
26868
26869
26870if test $pkg_failed = yes; then
26871
26872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26873 _pkg_short_errors_supported=yes
26874else
26875 _pkg_short_errors_supported=no
26876fi
26877 if test $_pkg_short_errors_supported = yes; then
26878 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
26879 else
26880 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
26881 fi
26882 # Put the nasty error message in config.log where it belongs
26883 echo "$RSVG_PKG_ERRORS" >&5
26884
cristy8b350f62009-11-15 23:12:43 +000026885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026886$as_echo "no" >&6; }
26887 have_rsvg=no
26888elif test $pkg_failed = untried; then
26889 have_rsvg=no
26890else
26891 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
26892 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026894$as_echo "yes" >&6; }
26895 have_rsvg=yes
26896fi
cristy8b350f62009-11-15 23:12:43 +000026897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026898$as_echo "" >&6; }
26899
26900pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo_n "checking for CAIRO_SVG... " >&6; }
26903
26904if test -n "$CAIRO_SVG_CFLAGS"; then
26905 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
26906 elif test -n "$PKG_CONFIG"; then
26907 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026909 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
26910 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26912 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026913 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
26914else
26915 pkg_failed=yes
26916fi
26917 else
26918 pkg_failed=untried
26919fi
26920if test -n "$CAIRO_SVG_LIBS"; then
26921 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
26922 elif test -n "$PKG_CONFIG"; then
26923 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026925 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
26926 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026929 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
26930else
26931 pkg_failed=yes
26932fi
26933 else
26934 pkg_failed=untried
26935fi
26936
26937
26938
26939if test $pkg_failed = yes; then
26940
26941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26942 _pkg_short_errors_supported=yes
26943else
26944 _pkg_short_errors_supported=no
26945fi
26946 if test $_pkg_short_errors_supported = yes; then
26947 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
26948 else
26949 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
26950 fi
26951 # Put the nasty error message in config.log where it belongs
26952 echo "$CAIRO_SVG_PKG_ERRORS" >&5
26953
cristy8b350f62009-11-15 23:12:43 +000026954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026955$as_echo "no" >&6; }
26956 have_cairo=no
26957elif test $pkg_failed = untried; then
26958 have_cairo=no
26959else
26960 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
26961 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026963$as_echo "yes" >&6; }
26964 have_cairo=yes
26965fi
cristy8b350f62009-11-15 23:12:43 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo "" >&6; }
26968fi
26969
26970if test "$have_rsvg" = 'yes'; then
26971
cristy8b350f62009-11-15 23:12:43 +000026972$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026973
26974 if test "$with_modules" = 'no'; then
26975 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
26976 fi
26977fi
26978
26979if test "$have_cairo" = 'yes'; then
26980
cristy8b350f62009-11-15 23:12:43 +000026981$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026982
26983 if test "$with_modules" = 'no'; then
26984 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
26985 fi
26986fi
26987
26988 if test "$have_rsvg" = 'yes'; then
26989 RSVG_DELEGATE_TRUE=
26990 RSVG_DELEGATE_FALSE='#'
26991else
26992 RSVG_DELEGATE_TRUE='#'
26993 RSVG_DELEGATE_FALSE=
26994fi
26995
26996 if test "$have_cairo" = 'yes'; then
26997 CAIRO_DELEGATE_TRUE=
26998 CAIRO_DELEGATE_FALSE='#'
26999else
27000 CAIRO_DELEGATE_TRUE='#'
27001 CAIRO_DELEGATE_FALSE=
27002fi
27003
27004
27005
27006
27007
27008#
27009# Check for TIFF delegate library.
27010#
27011
27012# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027013if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 withval=$with_tiff; with_tiff=$withval
27015else
27016 with_tiff='yes'
27017fi
27018
27019
27020if test "$with_tiff" != 'yes'; then
27021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27022fi
27023
27024have_tiff='no'
27025TIFF_LIBS=''
27026if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027028$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027030$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027032$as_echo "" >&6; }
27033 failed=0
27034 passed=0
cristy8b350f62009-11-15 23:12:43 +000027035 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27036if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 passed=`expr $passed + 1`
27038else
27039 failed=`expr $failed + 1`
27040fi
27041
27042
cristy8b350f62009-11-15 23:12:43 +000027043 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27044if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 passed=`expr $passed + 1`
27046else
27047 failed=`expr $failed + 1`
27048fi
27049
27050
cristy8b350f62009-11-15 23:12:43 +000027051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027053if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027054 $as_echo_n "(cached) " >&6
27055else
27056 ac_check_lib_save_LIBS=$LIBS
27057LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027059/* end confdefs.h. */
27060
27061/* Override any GCC internal prototype to avoid an error.
27062 Use char because int might match the return type of a GCC
27063 builtin and then its argument prototype would still apply. */
27064#ifdef __cplusplus
27065extern "C"
27066#endif
27067char TIFFOpen ();
27068int
27069main ()
27070{
27071return TIFFOpen ();
27072 ;
27073 return 0;
27074}
27075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027077 ac_cv_lib_tiff_TIFFOpen=yes
27078else
cristy8b350f62009-11-15 23:12:43 +000027079 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027080fi
cristy8b350f62009-11-15 23:12:43 +000027081rm -f core conftest.err conftest.$ac_objext \
27082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027083LIBS=$ac_check_lib_save_LIBS
27084fi
cristy8b350f62009-11-15 23:12:43 +000027085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027087if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027088 passed=`expr $passed + 1`
27089else
27090 failed=`expr $failed + 1`
27091fi
27092
cristy8b350f62009-11-15 23:12:43 +000027093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027095if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 $as_echo_n "(cached) " >&6
27097else
27098 ac_check_lib_save_LIBS=$LIBS
27099LIBS="-ltiff $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 TIFFClientOpen ();
27110int
27111main ()
27112{
27113return TIFFClientOpen ();
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_tiff_TIFFClientOpen=yes
27120else
cristy8b350f62009-11-15 23:12:43 +000027121 ac_cv_lib_tiff_TIFFClientOpen=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_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027129if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 passed=`expr $passed + 1`
27131else
27132 failed=`expr $failed + 1`
27133fi
27134
cristy8b350f62009-11-15 23:12:43 +000027135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027136$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027137if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027138 $as_echo_n "(cached) " >&6
27139else
27140 ac_check_lib_save_LIBS=$LIBS
27141LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027143/* end confdefs.h. */
27144
27145/* Override any GCC internal prototype to avoid an error.
27146 Use char because int might match the return type of a GCC
27147 builtin and then its argument prototype would still apply. */
27148#ifdef __cplusplus
27149extern "C"
27150#endif
27151char TIFFIsByteSwapped ();
27152int
27153main ()
27154{
27155return TIFFIsByteSwapped ();
27156 ;
27157 return 0;
27158}
27159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27162else
cristy8b350f62009-11-15 23:12:43 +000027163 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027164fi
cristy8b350f62009-11-15 23:12:43 +000027165rm -f core conftest.err conftest.$ac_objext \
27166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027167LIBS=$ac_check_lib_save_LIBS
27168fi
cristy8b350f62009-11-15 23:12:43 +000027169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027171if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 passed=`expr $passed + 1`
27173else
27174 failed=`expr $failed + 1`
27175fi
27176
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027179if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 $as_echo_n "(cached) " >&6
27181else
27182 ac_check_lib_save_LIBS=$LIBS
27183LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027185/* end confdefs.h. */
27186
27187/* Override any GCC internal prototype to avoid an error.
27188 Use char because int might match the return type of a GCC
27189 builtin and then its argument prototype would still apply. */
27190#ifdef __cplusplus
27191extern "C"
27192#endif
27193char TIFFReadRGBATile ();
27194int
27195main ()
27196{
27197return TIFFReadRGBATile ();
27198 ;
27199 return 0;
27200}
27201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027206fi
cristy8b350f62009-11-15 23:12:43 +000027207rm -f core conftest.err conftest.$ac_objext \
27208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209LIBS=$ac_check_lib_save_LIBS
27210fi
cristy8b350f62009-11-15 23:12:43 +000027211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027213if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 passed=`expr $passed + 1`
27215else
27216 failed=`expr $failed + 1`
27217fi
27218
cristy8b350f62009-11-15 23:12:43 +000027219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027220$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027221if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027222 $as_echo_n "(cached) " >&6
27223else
27224 ac_check_lib_save_LIBS=$LIBS
27225LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027227/* end confdefs.h. */
27228
27229/* Override any GCC internal prototype to avoid an error.
27230 Use char because int might match the return type of a GCC
27231 builtin and then its argument prototype would still apply. */
27232#ifdef __cplusplus
27233extern "C"
27234#endif
27235char TIFFReadRGBAStrip ();
27236int
27237main ()
27238{
27239return TIFFReadRGBAStrip ();
27240 ;
27241 return 0;
27242}
27243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27246else
cristy8b350f62009-11-15 23:12:43 +000027247 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027248fi
cristy8b350f62009-11-15 23:12:43 +000027249rm -f core conftest.err conftest.$ac_objext \
27250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027251LIBS=$ac_check_lib_save_LIBS
27252fi
cristy8b350f62009-11-15 23:12:43 +000027253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027254$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027255if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 passed=`expr $passed + 1`
27257else
27258 failed=`expr $failed + 1`
27259fi
27260
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo_n "checking if TIFF package is complete... " >&6; }
27263 if test $passed -gt 0; then
27264 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo "no -- some components failed test" >&6; }
27267 have_tiff='no (failed tests)'
27268 else
27269 TIFF_LIBS='-ltiff'
27270 LIBS="$TIFF_LIBS $LIBS"
27271
cristy8b350f62009-11-15 23:12:43 +000027272$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027273
cristy8b350f62009-11-15 23:12:43 +000027274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "yes" >&6; }
27276 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027277 for ac_header in tiffconf.h
27278do :
27279 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27280if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027282#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027283_ACEOF
27284
27285fi
27286
27287done
27288
cristy8b350f62009-11-15 23:12:43 +000027289 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027290 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27291 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027292do :
27293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27295eval as_val=\$$as_ac_var
27296 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027297 cat >>confdefs.h <<_ACEOF
27298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27299_ACEOF
27300
27301fi
27302done
27303
27304 fi
27305 else
cristy8b350f62009-11-15 23:12:43 +000027306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "no" >&6; }
27308 fi
27309fi
27310 if test "$have_tiff" = 'yes'; then
27311 TIFF_DELEGATE_TRUE=
27312 TIFF_DELEGATE_FALSE='#'
27313else
27314 TIFF_DELEGATE_TRUE='#'
27315 TIFF_DELEGATE_FALSE=
27316fi
27317
27318
27319
27320
27321#
27322# Set Windows font directory.
27323#
27324
27325# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027326if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27328else
27329 with_windows_font_dir=''
27330fi
27331
27332if test "$with_windows_font_dir" != '' ; then
27333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27334fi
27335
27336
27337#
27338# Check for WMF delegate library.
27339#
27340
27341# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027342if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 withval=$with_wmf; with_wmf=$withval
27344else
27345 with_wmf=$with_modules
27346fi
27347
27348
27349if test "$with_wmf" != 'yes'; then
27350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27351fi
27352
27353have_wmf='no'
27354WMF_LIBS=''
27355WMF_LIBS_DEPS=''
27356OLIBS="$LIBS"
27357if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo "" >&6; }
27364 have_libwmf='no'
27365 have_libwmflite='no'
27366 have_libwmf_ipa_h='no'
27367
cristy8b350f62009-11-15 23:12:43 +000027368 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27369"
27370if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 have_libwmf_ipa_h='yes'
27372fi
27373
27374
27375 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027377$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027378if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027379 $as_echo_n "(cached) " >&6
27380else
27381 ac_check_lib_save_LIBS=$LIBS
27382LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027384/* end confdefs.h. */
27385
27386/* Override any GCC internal prototype to avoid an error.
27387 Use char because int might match the return type of a GCC
27388 builtin and then its argument prototype would still apply. */
27389#ifdef __cplusplus
27390extern "C"
27391#endif
27392char wmf_lite_create ();
27393int
27394main ()
27395{
27396return wmf_lite_create ();
27397 ;
27398 return 0;
27399}
27400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 ac_cv_lib_wmflite_wmf_lite_create=yes
27403else
cristy8b350f62009-11-15 23:12:43 +000027404 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027405fi
cristy8b350f62009-11-15 23:12:43 +000027406rm -f core conftest.err conftest.$ac_objext \
27407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027408LIBS=$ac_check_lib_save_LIBS
27409fi
cristy8b350f62009-11-15 23:12:43 +000027410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027412if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 have_libwmflite='yes'
27414fi
27415
27416 if test "$have_libwmflite" = 'yes'; then
27417
cristy8b350f62009-11-15 23:12:43 +000027418$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027419
27420 WMF_LIBS='-lwmflite'
27421 LIBS="$WMF_LIBS $LIBS"
27422 have_wmf='yes'
27423 else
27424 WMF_LIBS_DEPS=''
27425 WMF_CONFIG_LIBS=`libwmf-config --libs`
27426 for lib in xml2 expat freetype jpeg png z; do
27427 testlib="-l${lib}"
27428 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27429 done
cristy8b350f62009-11-15 23:12:43 +000027430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027432if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 $as_echo_n "(cached) " >&6
27434else
27435 ac_check_lib_save_LIBS=$LIBS
27436LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027438/* end confdefs.h. */
27439
27440/* Override any GCC internal prototype to avoid an error.
27441 Use char because int might match the return type of a GCC
27442 builtin and then its argument prototype would still apply. */
27443#ifdef __cplusplus
27444extern "C"
27445#endif
27446char wmf_api_create ();
27447int
27448main ()
27449{
27450return wmf_api_create ();
27451 ;
27452 return 0;
27453}
27454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 ac_cv_lib_wmf_wmf_api_create=yes
27457else
cristy8b350f62009-11-15 23:12:43 +000027458 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027459fi
cristy8b350f62009-11-15 23:12:43 +000027460rm -f core conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027462LIBS=$ac_check_lib_save_LIBS
27463fi
cristy8b350f62009-11-15 23:12:43 +000027464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027465$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027466if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027467 have_libwmf='yes'
27468fi
27469
27470 if test "$have_libwmf" = 'yes'; then
27471
cristy8b350f62009-11-15 23:12:43 +000027472$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027473
27474 WMF_LIBS='-lwmf'
27475 LIBS="$WMF_LIBS $LIBS"
27476 have_wmf='yes'
27477 else
cristy8b350f62009-11-15 23:12:43 +000027478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027479$as_echo "no -- some components failed test" >&6; }
27480 have_wmf='no (failed tests)'
27481 have_wmflite='no (failed tests)'
27482 LIBS="$OLIBS"
27483 WMF_LIBS=''
27484 fi
27485 fi
27486 fi
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo_n "checking if WMF package is complete... " >&6; }
27489 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo "yes" >&6; }
27492 else
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo "no" >&6; }
27495 fi
27496fi
27497 if test "$have_wmf" = 'yes'; then
27498 WMF_DELEGATE_TRUE=
27499 WMF_DELEGATE_FALSE='#'
27500else
27501 WMF_DELEGATE_TRUE='#'
27502 WMF_DELEGATE_FALSE=
27503fi
27504
27505
27506
27507
27508
27509#
27510# Check for XML delegate library.
27511#
27512
27513# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027514if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027515 withval=$with_xml; with_xml=$withval
27516else
27517 with_xml=$have_x
27518fi
27519
27520
27521if test "$with_xml" != 'yes' ; then
27522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27523fi
27524
27525have_xml='no'
27526XML_LIBS=''
27527if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027529$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027531$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027533$as_echo "" >&6; }
27534 PERSIST_LDFLAGS=$LDFLAGS
27535 PERSIST_CPPFLAGS=$CPPFLAGS
27536 xml2_config=''
27537 for ac_prog in xml2-config
27538do
27539 # Extract the first word of "$ac_prog", so it can be a program name with args.
27540set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027542$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027543if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027544 $as_echo_n "(cached) " >&6
27545else
27546 if test -n "$xml2_config"; then
27547 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27548else
27549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27550for as_dir in $PATH
27551do
27552 IFS=$as_save_IFS
27553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27556 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558 break 2
27559 fi
27560done
cristy8b350f62009-11-15 23:12:43 +000027561 done
cristy3ed852e2009-09-05 21:47:34 +000027562IFS=$as_save_IFS
27563
27564fi
27565fi
27566xml2_config=$ac_cv_prog_xml2_config
27567if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "$xml2_config" >&6; }
27570else
cristy8b350f62009-11-15 23:12:43 +000027571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "no" >&6; }
27573fi
27574
27575
27576 test -n "$xml2_config" && break
27577done
27578 if test -n "$xml2_config"; then
27579 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27580 # the shared library installed under /usr/lib, whereas the package
27581 # installs itself under $prefix/libxml and $prefix/lib.
27582 xml2_prefix=`xml2-config --prefix`
27583 if test -d "${xml2_prefix}/include/libxml2"; then
27584 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27585 fi
27586 if test "${xml2_prefix}" != '/usr'; then
27587 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27588 fi
27589 fi
27590 failed=0
27591 passed=0
cristy8b350f62009-11-15 23:12:43 +000027592 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27593if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 passed=`expr $passed + 1`
27595else
27596 failed=`expr $failed + 1`
27597fi
27598
27599
cristy8b350f62009-11-15 23:12:43 +000027600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027601$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027602if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 $as_echo_n "(cached) " >&6
27604else
27605 ac_check_lib_save_LIBS=$LIBS
27606LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027608/* end confdefs.h. */
27609
27610/* Override any GCC internal prototype to avoid an error.
27611 Use char because int might match the return type of a GCC
27612 builtin and then its argument prototype would still apply. */
27613#ifdef __cplusplus
27614extern "C"
27615#endif
27616char xmlParseExternalEntity ();
27617int
27618main ()
27619{
27620return xmlParseExternalEntity ();
27621 ;
27622 return 0;
27623}
27624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27627else
cristy8b350f62009-11-15 23:12:43 +000027628 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027629fi
cristy8b350f62009-11-15 23:12:43 +000027630rm -f core conftest.err conftest.$ac_objext \
27631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027632LIBS=$ac_check_lib_save_LIBS
27633fi
cristy8b350f62009-11-15 23:12:43 +000027634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027636if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 passed=`expr $passed + 1`
27638else
27639 failed=`expr $failed + 1`
27640fi
27641
cristy8b350f62009-11-15 23:12:43 +000027642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027643$as_echo_n "checking if XML package is complete... " >&6; }
27644 if test $passed -gt 0; then
27645 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo "no -- some components failed test" >&6; }
27648 have_xml='no (failed tests)'
27649 LDFLAGS="$PERSIST_LDFLAGS"
27650 CPPFLAGS="$PERSIST_CPPFLAGS"
27651 else
27652 XML_LIBS='-lxml2'
27653 LIBS="$XML_LIBS $LIBS"
27654
cristy8b350f62009-11-15 23:12:43 +000027655$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027656
cristy8b350f62009-11-15 23:12:43 +000027657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo "yes" >&6; }
27659 have_xml='yes'
27660 fi
27661 else
cristy8b350f62009-11-15 23:12:43 +000027662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027663$as_echo "no" >&6; }
27664 fi
27665fi
27666 if test "$have_xml" = 'yes'; then
27667 XML_DELEGATE_TRUE=
27668 XML_DELEGATE_FALSE='#'
27669else
27670 XML_DELEGATE_TRUE='#'
27671 XML_DELEGATE_FALSE=
27672fi
27673
27674
27675
27676
27677# Substitute compiler name to build/link PerlMagick
27678#
27679
27680
27681#
27682# Configure install Paths
27683#
27684
27685# Subdirectory under lib to place ImageMagick lib files
27686LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27687
27688cat >>confdefs.h <<_ACEOF
27689#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27690_ACEOF
27691
27692
27693# Path to ImageMagick bin directory
27694EXECUTABLE_PATH="${BIN_DIR}"
27695DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27696case "${build_os}" in
27697 mingw* )
27698 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27699 ;;
27700esac
27701
27702cat >>confdefs.h <<_ACEOF
27703#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27704_ACEOF
27705
27706
27707
27708# Path to ImageMagick lib
27709LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27710DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27711case "${build_os}" in
27712 mingw* )
27713 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27714 ;;
27715esac
27716
27717cat >>confdefs.h <<_ACEOF
27718#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27719_ACEOF
27720
27721
27722
27723# Subdirectory under lib to place ImageMagick configuration files
27724CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27725
27726cat >>confdefs.h <<_ACEOF
27727#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27728_ACEOF
27729
27730CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27731DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27732case "${build_os}" in
27733 mingw* )
27734 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27735 ;;
27736esac
27737
27738cat >>confdefs.h <<_ACEOF
27739#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27740_ACEOF
27741
27742
27743
27744#
27745# Subdirectory under lib to place ImageMagick coder module files
27746CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27747
27748cat >>confdefs.h <<_ACEOF
27749#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27750_ACEOF
27751
27752CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27753DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27754case "${build_os}" in
27755 mingw* )
27756 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27757 ;;
27758esac
27759
27760cat >>confdefs.h <<_ACEOF
27761#define CODER_PATH "$DEFINE_CODER_PATH"
27762_ACEOF
27763
27764
27765
27766#
27767# Subdirectory under lib to place ImageMagick filter module files
27768FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27769
27770cat >>confdefs.h <<_ACEOF
27771#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27772_ACEOF
27773
27774FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27775DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27776case "${build_os}" in
27777 mingw* )
27778 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27779 ;;
27780esac
27781
27782cat >>confdefs.h <<_ACEOF
27783#define FILTER_PATH "$DEFINE_FILTER_PATH"
27784_ACEOF
27785
27786
27787
27788#
27789# Path to ImageMagick documentation files
27790DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27791DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27792DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27793case "${build_os}" in
27794 mingw* )
27795 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27796 ;;
27797esac
27798
27799cat >>confdefs.h <<_ACEOF
27800#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
27801_ACEOF
27802
27803
27804
27805#
27806# Path to ImageMagick share files
27807SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27808SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
27809DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
27810case "${build_os}" in
27811 mingw* )
27812 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
27813 ;;
27814esac
27815
27816cat >>confdefs.h <<_ACEOF
27817#define SHARE_PATH "$DEFINE_SHARE_PATH"
27818_ACEOF
27819
27820
27821
27822# Subdirectory under share to place ImageMagick configuration files
27823SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27824
27825cat >>confdefs.h <<_ACEOF
27826#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
27827_ACEOF
27828
27829SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
27830DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
27831case "${build_os}" in
27832 mingw* )
27833 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
27834 ;;
27835esac
27836
27837cat >>confdefs.h <<_ACEOF
27838#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
27839_ACEOF
27840
27841
27842
27843#
27844# program_transform_name is formed for use in a Makefile, so create a
27845# modified version for use in a shell script.
27846configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
27847
27848# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000027849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027850$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027852$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "" >&6; }
27855AutotraceDecodeDelegateDefault='autotrace'
27856AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000027857BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000027858BZIPDelegateDefault='bzip2'
27859BrowseDelegateDefault='xdg-open'
27860CGMDecodeDelegateDefault='ralcgm'
27861CatDelegateDefault='cat'
27862DNGDecodeDelegateDefault='ufraw-batch'
27863GVCDecodeDelegateDefault='dot'
27864DVIDecodeDelegateDefault='dvips'
27865EchoDelegateDefault='echo'
27866EditorDelegateDefault='xterm'
27867FIGDecodeDelegateDefault='fig2dev'
27868ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
27869DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
27870MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
27871GnuplotDecodeDelegateDefault='gnuplot'
27872HDRDecodeDelegateDefault='ra_pfm'
27873HPGLDecodeDelegateDefault='hp2xx'
27874HTMLDecodeDelegateDefault='html2ps'
27875ILBMDecodeDelegateDefault='ilbmtoppm'
27876ILBMEncodeDelegateDefault='ppmtoilbm'
27877LPDelegateDefault='lp'
27878LPRDelegateDefault='lpr'
27879LZWDecodeDelegateDefault='uncompress'
27880LZWEncodeDelegateDefault='compress'
27881LaunchDelegateDefault='gimp'
27882MANDelegateDefault='groff'
27883MPEGDecodeDelegateDefault='ffmpeg'
27884MPEGEncodeDelegateDefault='ffmpeg'
27885MVDelegateDefault='mv'
27886PCLDelegateDefault='pcl6'
27887PGPDecodeDelegateDefault='pgpv'
27888POVDelegateDefault='povray'
27889if test "$native_win32_build" = 'yes'; then
27890 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000027891elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027892 PSDelegateDefault='gsc'
27893else
27894 PSDelegateDefault='gs'
27895fi
27896RLEEncodeDelegateDefault='rawtorle'
27897RMDelegateDefault='rm'
27898SCANDecodeDelegateDefault='scanimage'
27899TXTDelegateDefault='enscript'
27900WMFDecodeDelegateDefault='wmf2eps'
27901WWWDecodeDelegateDefault='curl'
27902XPSDelegateDefault='gxps'
27903ZipDelegateDefault='gzip'
27904
27905# Search for delegates
27906# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
27907set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027909$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027910if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027911 $as_echo_n "(cached) " >&6
27912else
27913 case $AutotraceDecodeDelegate in
27914 [\\/]* | ?:[\\/]*)
27915 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
27916 ;;
27917 *)
27918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27919for as_dir in $PATH
27920do
27921 IFS=$as_save_IFS
27922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27925 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927 break 2
27928 fi
27929done
cristy8b350f62009-11-15 23:12:43 +000027930 done
cristy3ed852e2009-09-05 21:47:34 +000027931IFS=$as_save_IFS
27932
27933 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
27934 ;;
27935esac
27936fi
27937AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
27938if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo "$AutotraceDecodeDelegate" >&6; }
27941else
cristy8b350f62009-11-15 23:12:43 +000027942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027943$as_echo "no" >&6; }
27944fi
27945
27946
27947# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
27948set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027950$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027951if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027952 $as_echo_n "(cached) " >&6
27953else
27954 case $AVIDecodeDelegate in
27955 [\\/]* | ?:[\\/]*)
27956 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
27957 ;;
27958 *)
27959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27960for as_dir in $PATH
27961do
27962 IFS=$as_save_IFS
27963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27966 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027968 break 2
27969 fi
27970done
cristy8b350f62009-11-15 23:12:43 +000027971 done
cristy3ed852e2009-09-05 21:47:34 +000027972IFS=$as_save_IFS
27973
27974 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
27975 ;;
27976esac
27977fi
27978AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
27979if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo "$AVIDecodeDelegate" >&6; }
27982else
cristy8b350f62009-11-15 23:12:43 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027984$as_echo "no" >&6; }
27985fi
27986
27987
27988# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
27989set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027991$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027992if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027993 $as_echo_n "(cached) " >&6
27994else
27995 case $BlenderDecodeDelegate in
27996 [\\/]* | ?:[\\/]*)
27997 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
27998 ;;
27999 *)
28000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28001for as_dir in $PATH
28002do
28003 IFS=$as_save_IFS
28004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28007 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009 break 2
28010 fi
28011done
cristy8b350f62009-11-15 23:12:43 +000028012 done
cristy3ed852e2009-09-05 21:47:34 +000028013IFS=$as_save_IFS
28014
28015 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28016 ;;
28017esac
28018fi
28019BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28020if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo "$BlenderDecodeDelegate" >&6; }
28023else
cristy8b350f62009-11-15 23:12:43 +000028024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028025$as_echo "no" >&6; }
28026fi
28027
28028
28029# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28030set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028033if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 $as_echo_n "(cached) " >&6
28035else
28036 case $BZIPDelegate in
28037 [\\/]* | ?:[\\/]*)
28038 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28039 ;;
28040 *)
28041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28042for as_dir in $PATH
28043do
28044 IFS=$as_save_IFS
28045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28048 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028050 break 2
28051 fi
28052done
cristy8b350f62009-11-15 23:12:43 +000028053 done
cristy3ed852e2009-09-05 21:47:34 +000028054IFS=$as_save_IFS
28055
28056 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28057 ;;
28058esac
28059fi
28060BZIPDelegate=$ac_cv_path_BZIPDelegate
28061if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo "$BZIPDelegate" >&6; }
28064else
cristy8b350f62009-11-15 23:12:43 +000028065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo "no" >&6; }
28067fi
28068
28069
28070# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28071set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028074if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028075 $as_echo_n "(cached) " >&6
28076else
28077 case $BrowseDelegate in
28078 [\\/]* | ?:[\\/]*)
28079 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28080 ;;
28081 *)
28082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28083for as_dir in $PATH
28084do
28085 IFS=$as_save_IFS
28086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28089 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091 break 2
28092 fi
28093done
cristy8b350f62009-11-15 23:12:43 +000028094 done
cristy3ed852e2009-09-05 21:47:34 +000028095IFS=$as_save_IFS
28096
28097 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28098 ;;
28099esac
28100fi
28101BrowseDelegate=$ac_cv_path_BrowseDelegate
28102if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028104$as_echo "$BrowseDelegate" >&6; }
28105else
cristy8b350f62009-11-15 23:12:43 +000028106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028107$as_echo "no" >&6; }
28108fi
28109
28110
28111# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28112set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028114$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028115if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 $as_echo_n "(cached) " >&6
28117else
28118 case $CGMDecodeDelegate in
28119 [\\/]* | ?:[\\/]*)
28120 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28121 ;;
28122 *)
28123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28124for as_dir in $PATH
28125do
28126 IFS=$as_save_IFS
28127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28130 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028132 break 2
28133 fi
28134done
cristy8b350f62009-11-15 23:12:43 +000028135 done
cristy3ed852e2009-09-05 21:47:34 +000028136IFS=$as_save_IFS
28137
28138 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28139 ;;
28140esac
28141fi
28142CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28143if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo "$CGMDecodeDelegate" >&6; }
28146else
cristy8b350f62009-11-15 23:12:43 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo "no" >&6; }
28149fi
28150
28151
28152# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28153set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028155$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028156if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028157 $as_echo_n "(cached) " >&6
28158else
28159 case $CatDelegate in
28160 [\\/]* | ?:[\\/]*)
28161 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28162 ;;
28163 *)
28164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28165for as_dir in $PATH
28166do
28167 IFS=$as_save_IFS
28168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28171 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173 break 2
28174 fi
28175done
cristy8b350f62009-11-15 23:12:43 +000028176 done
cristy3ed852e2009-09-05 21:47:34 +000028177IFS=$as_save_IFS
28178
28179 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28180 ;;
28181esac
28182fi
28183CatDelegate=$ac_cv_path_CatDelegate
28184if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo "$CatDelegate" >&6; }
28187else
cristy8b350f62009-11-15 23:12:43 +000028188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028189$as_echo "no" >&6; }
28190fi
28191
28192
28193# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28194set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028197if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 $as_echo_n "(cached) " >&6
28199else
28200 case $DNGDecodeDelegate in
28201 [\\/]* | ?:[\\/]*)
28202 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28203 ;;
28204 *)
28205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28206for as_dir in $PATH
28207do
28208 IFS=$as_save_IFS
28209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28212 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028214 break 2
28215 fi
28216done
cristy8b350f62009-11-15 23:12:43 +000028217 done
cristy3ed852e2009-09-05 21:47:34 +000028218IFS=$as_save_IFS
28219
28220 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28221 ;;
28222esac
28223fi
28224DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28225if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227$as_echo "$DNGDecodeDelegate" >&6; }
28228else
cristy8b350f62009-11-15 23:12:43 +000028229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo "no" >&6; }
28231fi
28232
28233
28234# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28235set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028237$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028238if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 $as_echo_n "(cached) " >&6
28240else
28241 case $GVCDecodeDelegate in
28242 [\\/]* | ?:[\\/]*)
28243 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28244 ;;
28245 *)
28246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28247for as_dir in $PATH
28248do
28249 IFS=$as_save_IFS
28250 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28253 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255 break 2
28256 fi
28257done
cristy8b350f62009-11-15 23:12:43 +000028258 done
cristy3ed852e2009-09-05 21:47:34 +000028259IFS=$as_save_IFS
28260
28261 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28262 ;;
28263esac
28264fi
28265GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28266if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo "$GVCDecodeDelegate" >&6; }
28269else
cristy8b350f62009-11-15 23:12:43 +000028270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo "no" >&6; }
28272fi
28273
28274
28275# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28276set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028279if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028280 $as_echo_n "(cached) " >&6
28281else
28282 case $DVIDecodeDelegate in
28283 [\\/]* | ?:[\\/]*)
28284 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28285 ;;
28286 *)
28287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28288for as_dir in $PATH
28289do
28290 IFS=$as_save_IFS
28291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28294 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028296 break 2
28297 fi
28298done
cristy8b350f62009-11-15 23:12:43 +000028299 done
cristy3ed852e2009-09-05 21:47:34 +000028300IFS=$as_save_IFS
28301
28302 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28303 ;;
28304esac
28305fi
28306DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28307if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo "$DVIDecodeDelegate" >&6; }
28310else
cristy8b350f62009-11-15 23:12:43 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "no" >&6; }
28313fi
28314
28315
28316# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28317set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028319$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028320if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028321 $as_echo_n "(cached) " >&6
28322else
28323 case $EchoDelegate in
28324 [\\/]* | ?:[\\/]*)
28325 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28326 ;;
28327 *)
28328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28329for as_dir in $PATH
28330do
28331 IFS=$as_save_IFS
28332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28335 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028337 break 2
28338 fi
28339done
cristy8b350f62009-11-15 23:12:43 +000028340 done
cristy3ed852e2009-09-05 21:47:34 +000028341IFS=$as_save_IFS
28342
28343 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28344 ;;
28345esac
28346fi
28347EchoDelegate=$ac_cv_path_EchoDelegate
28348if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo "$EchoDelegate" >&6; }
28351else
cristy8b350f62009-11-15 23:12:43 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028353$as_echo "no" >&6; }
28354fi
28355
28356
28357# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28358set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028361if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028362 $as_echo_n "(cached) " >&6
28363else
28364 case $EditorDelegate in
28365 [\\/]* | ?:[\\/]*)
28366 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28367 ;;
28368 *)
28369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28370for as_dir in $PATH
28371do
28372 IFS=$as_save_IFS
28373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28376 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028378 break 2
28379 fi
28380done
cristy8b350f62009-11-15 23:12:43 +000028381 done
cristy3ed852e2009-09-05 21:47:34 +000028382IFS=$as_save_IFS
28383
28384 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28385 ;;
28386esac
28387fi
28388EditorDelegate=$ac_cv_path_EditorDelegate
28389if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "$EditorDelegate" >&6; }
28392else
cristy8b350f62009-11-15 23:12:43 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "no" >&6; }
28395fi
28396
28397
28398# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28399set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028401$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028402if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028403 $as_echo_n "(cached) " >&6
28404else
28405 case $FIGDecodeDelegate in
28406 [\\/]* | ?:[\\/]*)
28407 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28408 ;;
28409 *)
28410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28411for as_dir in $PATH
28412do
28413 IFS=$as_save_IFS
28414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28417 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028419 break 2
28420 fi
28421done
cristy8b350f62009-11-15 23:12:43 +000028422 done
cristy3ed852e2009-09-05 21:47:34 +000028423IFS=$as_save_IFS
28424
28425 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28426 ;;
28427esac
28428fi
28429FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28430if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028432$as_echo "$FIGDecodeDelegate" >&6; }
28433else
cristy8b350f62009-11-15 23:12:43 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo "no" >&6; }
28436fi
28437
28438
28439# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28440set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028442$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028443if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028444 $as_echo_n "(cached) " >&6
28445else
28446 case $ConvertDelegate in
28447 [\\/]* | ?:[\\/]*)
28448 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28449 ;;
28450 *)
28451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28452for as_dir in $PATH
28453do
28454 IFS=$as_save_IFS
28455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28458 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460 break 2
28461 fi
28462done
cristy8b350f62009-11-15 23:12:43 +000028463 done
cristy3ed852e2009-09-05 21:47:34 +000028464IFS=$as_save_IFS
28465
28466 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28467 ;;
28468esac
28469fi
28470ConvertDelegate=$ac_cv_path_ConvertDelegate
28471if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo "$ConvertDelegate" >&6; }
28474else
cristy8b350f62009-11-15 23:12:43 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo "no" >&6; }
28477fi
28478
28479
28480# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28481set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028483$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028484if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 $as_echo_n "(cached) " >&6
28486else
28487 case $DisplayDelegate in
28488 [\\/]* | ?:[\\/]*)
28489 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28490 ;;
28491 *)
28492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28493for as_dir in $PATH
28494do
28495 IFS=$as_save_IFS
28496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28499 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028501 break 2
28502 fi
28503done
cristy8b350f62009-11-15 23:12:43 +000028504 done
cristy3ed852e2009-09-05 21:47:34 +000028505IFS=$as_save_IFS
28506
28507 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28508 ;;
28509esac
28510fi
28511DisplayDelegate=$ac_cv_path_DisplayDelegate
28512if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514$as_echo "$DisplayDelegate" >&6; }
28515else
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "no" >&6; }
28518fi
28519
28520
28521# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28522set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028524$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028525if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028526 $as_echo_n "(cached) " >&6
28527else
28528 case $MogrifyDelegate in
28529 [\\/]* | ?:[\\/]*)
28530 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28531 ;;
28532 *)
28533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28534for as_dir in $PATH
28535do
28536 IFS=$as_save_IFS
28537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28540 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028542 break 2
28543 fi
28544done
cristy8b350f62009-11-15 23:12:43 +000028545 done
cristy3ed852e2009-09-05 21:47:34 +000028546IFS=$as_save_IFS
28547
28548 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28549 ;;
28550esac
28551fi
28552MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28553if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo "$MogrifyDelegate" >&6; }
28556else
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo "no" >&6; }
28559fi
28560
28561
28562# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28563set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028566if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028567 $as_echo_n "(cached) " >&6
28568else
28569 case $GnuplotDecodeDelegate in
28570 [\\/]* | ?:[\\/]*)
28571 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28572 ;;
28573 *)
28574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28575for as_dir in $PATH
28576do
28577 IFS=$as_save_IFS
28578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28581 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583 break 2
28584 fi
28585done
cristy8b350f62009-11-15 23:12:43 +000028586 done
cristy3ed852e2009-09-05 21:47:34 +000028587IFS=$as_save_IFS
28588
28589 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28590 ;;
28591esac
28592fi
28593GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28594if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo "$GnuplotDecodeDelegate" >&6; }
28597else
cristy8b350f62009-11-15 23:12:43 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo "no" >&6; }
28600fi
28601
28602
28603# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28604set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028606$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028607if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028608 $as_echo_n "(cached) " >&6
28609else
28610 case $HDRDecodeDelegate in
28611 [\\/]* | ?:[\\/]*)
28612 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28613 ;;
28614 *)
28615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28616for as_dir in $PATH
28617do
28618 IFS=$as_save_IFS
28619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28622 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028624 break 2
28625 fi
28626done
cristy8b350f62009-11-15 23:12:43 +000028627 done
cristy3ed852e2009-09-05 21:47:34 +000028628IFS=$as_save_IFS
28629
28630 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28631 ;;
28632esac
28633fi
28634HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28635if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "$HDRDecodeDelegate" >&6; }
28638else
cristy8b350f62009-11-15 23:12:43 +000028639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028640$as_echo "no" >&6; }
28641fi
28642
28643
28644# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28645set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028647$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028648if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028649 $as_echo_n "(cached) " >&6
28650else
28651 case $HPGLDecodeDelegate in
28652 [\\/]* | ?:[\\/]*)
28653 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28654 ;;
28655 *)
28656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28657for as_dir in $PATH
28658do
28659 IFS=$as_save_IFS
28660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28663 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028665 break 2
28666 fi
28667done
cristy8b350f62009-11-15 23:12:43 +000028668 done
cristy3ed852e2009-09-05 21:47:34 +000028669IFS=$as_save_IFS
28670
28671 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28672 ;;
28673esac
28674fi
28675HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28676if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo "$HPGLDecodeDelegate" >&6; }
28679else
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo "no" >&6; }
28682fi
28683
28684
28685# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28686set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028688$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028689if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028690 $as_echo_n "(cached) " >&6
28691else
28692 case $HTMLDecodeDelegate in
28693 [\\/]* | ?:[\\/]*)
28694 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28695 ;;
28696 *)
28697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28698for as_dir in $PATH
28699do
28700 IFS=$as_save_IFS
28701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28704 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028706 break 2
28707 fi
28708done
cristy8b350f62009-11-15 23:12:43 +000028709 done
cristy3ed852e2009-09-05 21:47:34 +000028710IFS=$as_save_IFS
28711
28712 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28713 ;;
28714esac
28715fi
28716HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28717if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028719$as_echo "$HTMLDecodeDelegate" >&6; }
28720else
cristy8b350f62009-11-15 23:12:43 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028722$as_echo "no" >&6; }
28723fi
28724
28725
28726# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28727set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028729$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028730if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028731 $as_echo_n "(cached) " >&6
28732else
28733 case $ILBMDecodeDelegate in
28734 [\\/]* | ?:[\\/]*)
28735 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28736 ;;
28737 *)
28738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28739for as_dir in $PATH
28740do
28741 IFS=$as_save_IFS
28742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28745 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028747 break 2
28748 fi
28749done
cristy8b350f62009-11-15 23:12:43 +000028750 done
cristy3ed852e2009-09-05 21:47:34 +000028751IFS=$as_save_IFS
28752
28753 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28754 ;;
28755esac
28756fi
28757ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28758if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028760$as_echo "$ILBMDecodeDelegate" >&6; }
28761else
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo "no" >&6; }
28764fi
28765
28766
28767# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28768set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028770$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028771if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028772 $as_echo_n "(cached) " >&6
28773else
28774 case $ILBMEncodeDelegate in
28775 [\\/]* | ?:[\\/]*)
28776 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28777 ;;
28778 *)
28779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28780for as_dir in $PATH
28781do
28782 IFS=$as_save_IFS
28783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28786 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028788 break 2
28789 fi
28790done
cristy8b350f62009-11-15 23:12:43 +000028791 done
cristy3ed852e2009-09-05 21:47:34 +000028792IFS=$as_save_IFS
28793
28794 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28795 ;;
28796esac
28797fi
28798ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
28799if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "$ILBMEncodeDelegate" >&6; }
28802else
cristy8b350f62009-11-15 23:12:43 +000028803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028804$as_echo "no" >&6; }
28805fi
28806
28807
28808# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
28809set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028812if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028813 $as_echo_n "(cached) " >&6
28814else
28815 case $LPDelegate in
28816 [\\/]* | ?:[\\/]*)
28817 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
28818 ;;
28819 *)
28820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28821for as_dir in $PATH
28822do
28823 IFS=$as_save_IFS
28824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28827 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028829 break 2
28830 fi
28831done
cristy8b350f62009-11-15 23:12:43 +000028832 done
cristy3ed852e2009-09-05 21:47:34 +000028833IFS=$as_save_IFS
28834
28835 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
28836 ;;
28837esac
28838fi
28839LPDelegate=$ac_cv_path_LPDelegate
28840if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028842$as_echo "$LPDelegate" >&6; }
28843else
cristy8b350f62009-11-15 23:12:43 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028845$as_echo "no" >&6; }
28846fi
28847
28848
28849# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
28850set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028852$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028853if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 $as_echo_n "(cached) " >&6
28855else
28856 case $LPRDelegate in
28857 [\\/]* | ?:[\\/]*)
28858 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
28859 ;;
28860 *)
28861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28862for as_dir in $PATH
28863do
28864 IFS=$as_save_IFS
28865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28868 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028870 break 2
28871 fi
28872done
cristy8b350f62009-11-15 23:12:43 +000028873 done
cristy3ed852e2009-09-05 21:47:34 +000028874IFS=$as_save_IFS
28875
28876 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
28877 ;;
28878esac
28879fi
28880LPRDelegate=$ac_cv_path_LPRDelegate
28881if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028883$as_echo "$LPRDelegate" >&6; }
28884else
cristy8b350f62009-11-15 23:12:43 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo "no" >&6; }
28887fi
28888
28889
28890# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
28891set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028894if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 $as_echo_n "(cached) " >&6
28896else
28897 case $LZWDecodeDelegate in
28898 [\\/]* | ?:[\\/]*)
28899 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
28900 ;;
28901 *)
28902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28903for as_dir in $PATH
28904do
28905 IFS=$as_save_IFS
28906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28909 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028911 break 2
28912 fi
28913done
cristy8b350f62009-11-15 23:12:43 +000028914 done
cristy3ed852e2009-09-05 21:47:34 +000028915IFS=$as_save_IFS
28916
28917 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
28918 ;;
28919esac
28920fi
28921LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
28922if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924$as_echo "$LZWDecodeDelegate" >&6; }
28925else
cristy8b350f62009-11-15 23:12:43 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028927$as_echo "no" >&6; }
28928fi
28929
28930
28931# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
28932set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028934$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028935if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028936 $as_echo_n "(cached) " >&6
28937else
28938 case $LZWEncodeDelegate in
28939 [\\/]* | ?:[\\/]*)
28940 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
28941 ;;
28942 *)
28943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28944for as_dir in $PATH
28945do
28946 IFS=$as_save_IFS
28947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28950 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952 break 2
28953 fi
28954done
cristy8b350f62009-11-15 23:12:43 +000028955 done
cristy3ed852e2009-09-05 21:47:34 +000028956IFS=$as_save_IFS
28957
28958 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
28959 ;;
28960esac
28961fi
28962LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
28963if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028965$as_echo "$LZWEncodeDelegate" >&6; }
28966else
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo "no" >&6; }
28969fi
28970
28971
28972# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
28973set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028976if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 $as_echo_n "(cached) " >&6
28978else
28979 case $LaunchDelegate in
28980 [\\/]* | ?:[\\/]*)
28981 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
28982 ;;
28983 *)
28984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28985for as_dir in $PATH
28986do
28987 IFS=$as_save_IFS
28988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28991 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993 break 2
28994 fi
28995done
cristy8b350f62009-11-15 23:12:43 +000028996 done
cristy3ed852e2009-09-05 21:47:34 +000028997IFS=$as_save_IFS
28998
28999 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29000 ;;
29001esac
29002fi
29003LaunchDelegate=$ac_cv_path_LaunchDelegate
29004if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029006$as_echo "$LaunchDelegate" >&6; }
29007else
cristy8b350f62009-11-15 23:12:43 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo "no" >&6; }
29010fi
29011
29012
29013# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29014set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029016$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029017if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 $as_echo_n "(cached) " >&6
29019else
29020 case $MANDelegate in
29021 [\\/]* | ?:[\\/]*)
29022 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29023 ;;
29024 *)
29025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29026for as_dir in $PATH
29027do
29028 IFS=$as_save_IFS
29029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29032 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029034 break 2
29035 fi
29036done
cristy8b350f62009-11-15 23:12:43 +000029037 done
cristy3ed852e2009-09-05 21:47:34 +000029038IFS=$as_save_IFS
29039
29040 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29041 ;;
29042esac
29043fi
29044MANDelegate=$ac_cv_path_MANDelegate
29045if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo "$MANDelegate" >&6; }
29048else
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo "no" >&6; }
29051fi
29052
29053
29054# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29055set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029057$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029058if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 $as_echo_n "(cached) " >&6
29060else
29061 case $MPEGDecodeDelegate in
29062 [\\/]* | ?:[\\/]*)
29063 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29064 ;;
29065 *)
29066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29067for as_dir in $PATH
29068do
29069 IFS=$as_save_IFS
29070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29073 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029075 break 2
29076 fi
29077done
cristy8b350f62009-11-15 23:12:43 +000029078 done
cristy3ed852e2009-09-05 21:47:34 +000029079IFS=$as_save_IFS
29080
29081 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29082 ;;
29083esac
29084fi
29085MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29086if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029088$as_echo "$MPEGDecodeDelegate" >&6; }
29089else
cristy8b350f62009-11-15 23:12:43 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo "no" >&6; }
29092fi
29093
29094
29095# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29096set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029098$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029099if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 $as_echo_n "(cached) " >&6
29101else
29102 case $MPEGEncodeDelegate in
29103 [\\/]* | ?:[\\/]*)
29104 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29105 ;;
29106 *)
29107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29108for as_dir in $PATH
29109do
29110 IFS=$as_save_IFS
29111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29114 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029116 break 2
29117 fi
29118done
cristy8b350f62009-11-15 23:12:43 +000029119 done
cristy3ed852e2009-09-05 21:47:34 +000029120IFS=$as_save_IFS
29121
29122 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29123 ;;
29124esac
29125fi
29126MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29127if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129$as_echo "$MPEGEncodeDelegate" >&6; }
29130else
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo "no" >&6; }
29133fi
29134
29135
29136# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29137set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029139$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029140if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029141 $as_echo_n "(cached) " >&6
29142else
29143 case $MVDelegate in
29144 [\\/]* | ?:[\\/]*)
29145 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29146 ;;
29147 *)
29148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29149for as_dir in $PATH
29150do
29151 IFS=$as_save_IFS
29152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29155 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029157 break 2
29158 fi
29159done
cristy8b350f62009-11-15 23:12:43 +000029160 done
cristy3ed852e2009-09-05 21:47:34 +000029161IFS=$as_save_IFS
29162
29163 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29164 ;;
29165esac
29166fi
29167MVDelegate=$ac_cv_path_MVDelegate
29168if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo "$MVDelegate" >&6; }
29171else
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo "no" >&6; }
29174fi
29175
29176
29177# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29178set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029181if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 $as_echo_n "(cached) " >&6
29183else
29184 case $PCLDelegate in
29185 [\\/]* | ?:[\\/]*)
29186 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29187 ;;
29188 *)
29189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29190for as_dir in $PATH
29191do
29192 IFS=$as_save_IFS
29193 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29196 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029198 break 2
29199 fi
29200done
cristy8b350f62009-11-15 23:12:43 +000029201 done
cristy3ed852e2009-09-05 21:47:34 +000029202IFS=$as_save_IFS
29203
29204 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29205 ;;
29206esac
29207fi
29208PCLDelegate=$ac_cv_path_PCLDelegate
29209if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo "$PCLDelegate" >&6; }
29212else
cristy8b350f62009-11-15 23:12:43 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo "no" >&6; }
29215fi
29216
29217
29218# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29219set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029222if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029223 $as_echo_n "(cached) " >&6
29224else
29225 case $PGPDecodeDelegate in
29226 [\\/]* | ?:[\\/]*)
29227 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29228 ;;
29229 *)
29230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29231for as_dir in $PATH
29232do
29233 IFS=$as_save_IFS
29234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29237 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029239 break 2
29240 fi
29241done
cristy8b350f62009-11-15 23:12:43 +000029242 done
cristy3ed852e2009-09-05 21:47:34 +000029243IFS=$as_save_IFS
29244
29245 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29246 ;;
29247esac
29248fi
29249PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29250if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo "$PGPDecodeDelegate" >&6; }
29253else
cristy8b350f62009-11-15 23:12:43 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo "no" >&6; }
29256fi
29257
29258
29259# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29260set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029262$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029263if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 $as_echo_n "(cached) " >&6
29265else
29266 case $POVDelegate in
29267 [\\/]* | ?:[\\/]*)
29268 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29269 ;;
29270 *)
29271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29272for as_dir in $PATH
29273do
29274 IFS=$as_save_IFS
29275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29278 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280 break 2
29281 fi
29282done
cristy8b350f62009-11-15 23:12:43 +000029283 done
cristy3ed852e2009-09-05 21:47:34 +000029284IFS=$as_save_IFS
29285
29286 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29287 ;;
29288esac
29289fi
29290POVDelegate=$ac_cv_path_POVDelegate
29291if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293$as_echo "$POVDelegate" >&6; }
29294else
cristy8b350f62009-11-15 23:12:43 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo "no" >&6; }
29297fi
29298
29299
29300for ac_prog in gsx gsc "$PSDelegateDefault"
29301do
29302 # Extract the first word of "$ac_prog", so it can be a program name with args.
29303set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029305$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029306if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 $as_echo_n "(cached) " >&6
29308else
29309 case $PSDelegate in
29310 [\\/]* | ?:[\\/]*)
29311 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29312 ;;
29313 *)
29314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29315for as_dir in $PATH
29316do
29317 IFS=$as_save_IFS
29318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29321 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029323 break 2
29324 fi
29325done
cristy8b350f62009-11-15 23:12:43 +000029326 done
cristy3ed852e2009-09-05 21:47:34 +000029327IFS=$as_save_IFS
29328
29329 ;;
29330esac
29331fi
29332PSDelegate=$ac_cv_path_PSDelegate
29333if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo "$PSDelegate" >&6; }
29336else
cristy8b350f62009-11-15 23:12:43 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo "no" >&6; }
29339fi
29340
29341
29342 test -n "$PSDelegate" && break
29343done
29344test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29345
29346# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29347set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029349$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029350if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029351 $as_echo_n "(cached) " >&6
29352else
29353 case $RLEEncodeDelegate in
29354 [\\/]* | ?:[\\/]*)
29355 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29356 ;;
29357 *)
29358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29359for as_dir in $PATH
29360do
29361 IFS=$as_save_IFS
29362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29365 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029367 break 2
29368 fi
29369done
cristy8b350f62009-11-15 23:12:43 +000029370 done
cristy3ed852e2009-09-05 21:47:34 +000029371IFS=$as_save_IFS
29372
29373 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29374 ;;
29375esac
29376fi
29377RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29378if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029380$as_echo "$RLEEncodeDelegate" >&6; }
29381else
cristy8b350f62009-11-15 23:12:43 +000029382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo "no" >&6; }
29384fi
29385
29386
29387# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29388set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029391if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029392 $as_echo_n "(cached) " >&6
29393else
29394 case $RMDelegate in
29395 [\\/]* | ?:[\\/]*)
29396 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29397 ;;
29398 *)
29399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29400for as_dir in $PATH
29401do
29402 IFS=$as_save_IFS
29403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29406 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408 break 2
29409 fi
29410done
cristy8b350f62009-11-15 23:12:43 +000029411 done
cristy3ed852e2009-09-05 21:47:34 +000029412IFS=$as_save_IFS
29413
29414 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29415 ;;
29416esac
29417fi
29418RMDelegate=$ac_cv_path_RMDelegate
29419if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029421$as_echo "$RMDelegate" >&6; }
29422else
cristy8b350f62009-11-15 23:12:43 +000029423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029424$as_echo "no" >&6; }
29425fi
29426
29427
29428# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29429set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029431$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029432if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029433 $as_echo_n "(cached) " >&6
29434else
29435 case $SCANDecodeDelegate in
29436 [\\/]* | ?:[\\/]*)
29437 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29438 ;;
29439 *)
29440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29441for as_dir in $PATH
29442do
29443 IFS=$as_save_IFS
29444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29447 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029449 break 2
29450 fi
29451done
cristy8b350f62009-11-15 23:12:43 +000029452 done
cristy3ed852e2009-09-05 21:47:34 +000029453IFS=$as_save_IFS
29454
29455 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29456 ;;
29457esac
29458fi
29459SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29460if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029462$as_echo "$SCANDecodeDelegate" >&6; }
29463else
cristy8b350f62009-11-15 23:12:43 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo "no" >&6; }
29466fi
29467
29468
29469# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29470set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029472$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029473if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029474 $as_echo_n "(cached) " >&6
29475else
29476 case $TXTDelegate in
29477 [\\/]* | ?:[\\/]*)
29478 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29479 ;;
29480 *)
29481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29482for as_dir in $PATH
29483do
29484 IFS=$as_save_IFS
29485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29488 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029490 break 2
29491 fi
29492done
cristy8b350f62009-11-15 23:12:43 +000029493 done
cristy3ed852e2009-09-05 21:47:34 +000029494IFS=$as_save_IFS
29495
29496 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29497 ;;
29498esac
29499fi
29500TXTDelegate=$ac_cv_path_TXTDelegate
29501if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029503$as_echo "$TXTDelegate" >&6; }
29504else
cristy8b350f62009-11-15 23:12:43 +000029505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029506$as_echo "no" >&6; }
29507fi
29508
29509
29510# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29511set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029513$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029514if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029515 $as_echo_n "(cached) " >&6
29516else
29517 case $WMFDecodeDelegate in
29518 [\\/]* | ?:[\\/]*)
29519 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29520 ;;
29521 *)
29522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29523for as_dir in $PATH
29524do
29525 IFS=$as_save_IFS
29526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29529 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029531 break 2
29532 fi
29533done
cristy8b350f62009-11-15 23:12:43 +000029534 done
cristy3ed852e2009-09-05 21:47:34 +000029535IFS=$as_save_IFS
29536
29537 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29538 ;;
29539esac
29540fi
29541WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29542if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029544$as_echo "$WMFDecodeDelegate" >&6; }
29545else
cristy8b350f62009-11-15 23:12:43 +000029546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029547$as_echo "no" >&6; }
29548fi
29549
29550
29551# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29552set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029554$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029555if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029556 $as_echo_n "(cached) " >&6
29557else
29558 case $WWWDecodeDelegate in
29559 [\\/]* | ?:[\\/]*)
29560 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29561 ;;
29562 *)
29563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29564for as_dir in $PATH
29565do
29566 IFS=$as_save_IFS
29567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29570 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029572 break 2
29573 fi
29574done
cristy8b350f62009-11-15 23:12:43 +000029575 done
cristy3ed852e2009-09-05 21:47:34 +000029576IFS=$as_save_IFS
29577
29578 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29579 ;;
29580esac
29581fi
29582WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29583if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585$as_echo "$WWWDecodeDelegate" >&6; }
29586else
cristy8b350f62009-11-15 23:12:43 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo "no" >&6; }
29589fi
29590
29591
29592# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29593set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029595$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029596if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029597 $as_echo_n "(cached) " >&6
29598else
29599 case $XPSDelegate in
29600 [\\/]* | ?:[\\/]*)
29601 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29602 ;;
29603 *)
29604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29605for as_dir in $PATH
29606do
29607 IFS=$as_save_IFS
29608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29611 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029613 break 2
29614 fi
29615done
cristy8b350f62009-11-15 23:12:43 +000029616 done
cristy3ed852e2009-09-05 21:47:34 +000029617IFS=$as_save_IFS
29618
29619 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29620 ;;
29621esac
29622fi
29623XPSDelegate=$ac_cv_path_XPSDelegate
29624if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029626$as_echo "$XPSDelegate" >&6; }
29627else
cristy8b350f62009-11-15 23:12:43 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo "no" >&6; }
29630fi
29631
29632
29633# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29634set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029636$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029637if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029638 $as_echo_n "(cached) " >&6
29639else
29640 case $ZipDelegate in
29641 [\\/]* | ?:[\\/]*)
29642 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29643 ;;
29644 *)
29645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29646for as_dir in $PATH
29647do
29648 IFS=$as_save_IFS
29649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29652 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654 break 2
29655 fi
29656done
cristy8b350f62009-11-15 23:12:43 +000029657 done
cristy3ed852e2009-09-05 21:47:34 +000029658IFS=$as_save_IFS
29659
29660 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29661 ;;
29662esac
29663fi
29664ZipDelegate=$ac_cv_path_ZipDelegate
29665if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029667$as_echo "$ZipDelegate" >&6; }
29668else
cristy8b350f62009-11-15 23:12:43 +000029669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo "no" >&6; }
29671fi
29672
29673
29674
29675# Prefer lpr to lp; lp needs options tacked on.
29676if test "$LPRDelegate" != no; then
29677 PrintDelegate="$LPRDelegate"
29678else
29679 PrintDelegate="$LPDelegate -c -s"
29680fi
29681
29682
29683# Installed ImageMagick utiltity paths
29684ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29685DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29686MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29687
29688# Set delegate booleans
29689have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29690have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29691have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29692have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29693have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29694have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29695have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29696have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29697have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29698have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29699have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29700
29701#
29702# Test for font directories
29703#
29704type_include_files=''
29705
29706# Windows
29707windows_font_dir=''
29708if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29709 windows_font_dir="${with_windows_font_dir}/"
29710fi
29711if test -n "$windows_font_dir"; then
29712 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29713 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29714 fi
29715 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29716 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29717 fi
29718 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29719 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29720 fi
29721fi
29722if test -n "$windows_font_dir"; then
29723 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29724fi
29725
29726
29727# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029729$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29730ghostscript_font_dir=''
29731if test "${with_gs_font_dir}" != 'default'; then
29732 ghostscript_font_dir="${with_gs_font_dir}/"
29733else
29734 if test "${native_win32_build}" = 'yes'; then
29735 # Native Windows Build
29736 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29737 if test -f "${font_dir}a010013l.pfb"; then
29738 ghostscript_font_dir="$font_dir"
29739 break 1
29740 fi
29741 done
29742 if test "${PSDelegate}" != 'gswin32c'; then
29743 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29744 fi
29745 else
29746 # Linux / Mac OS X / Unix Build
29747 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
29748 if test -f "${font_dir}a010013l.pfb"; then
29749 ghostscript_font_dir="${font_dir}"
29750 break 1
29751 fi
29752 done
29753 if test "${ghostscript_font_dir}x" = 'x'; then
29754 if test "$PSDelegate" != 'gs'; then
29755 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29756 fi
29757 fi
29758 fi
29759fi
29760if test "${ghostscript_font_dir}x" != 'x'; then
29761 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763$as_echo "$ghostscript_font_dir" >&6; }
29764else
cristy8b350f62009-11-15 23:12:43 +000029765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766$as_echo "not found!" >&6; };
29767fi
29768
29769case "${build_os}" in
29770 mingw* )
29771 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29772 ;;
29773esac
29774
29775
29776
29777#
29778# Handle case where user doesn't want frozen paths
29779#
29780if test "$with_frozenpaths" != 'yes'; then
29781 # Re-set delegate definitions to default (no paths)
29782 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29783 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29784 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29785 BZIPDelegate="$BZIPDelegateDefault"
29786 BrowseDelegate="$BrowseDelegateDefault"
29787 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29788 CatDelegate="$CatDelegateDefault"
29789 ConvertDelegate="$ConvertDelegateDefault"
29790 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29791 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29792 EchoDelegate="$EchoDelegateDefault"
29793 EditorDelegate="$EditorDelegateDefault"
29794 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29795 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29796 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
29797 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
29798 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
29799 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
29800 LPDelegate="$LPDelegateDefault"
29801 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
29802 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
29803 LaunchDelegate="$LaunchDelegateDefault"
29804 MANDelegate="$MANDelegateDefault"
29805 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
29806 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
29807 MVDelegate="$MVDelegateDefault"
29808 MogrifyDelegate="$MogrifyDelegateDefault"
29809 PCLDelegate="$PCLDelegateDefault"
29810 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
29811 POVDelegate="$POVDelegateDefault"
29812 PSDelegate="$PSDelegateDefault"
29813 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
29814 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
29815 RMDelegate="$RMDelegateDefault"
29816 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
29817 ShowImageDelegate="$ShowImageDelegateDefault"
29818 TXTDelegate="$TXTDelegateDefault"
29819 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
29820 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
29821 XPSDelegate="$XPSDelegateDefault"
29822 ZipDelegate="$ZipDelegateDefault"
29823fi
29824
29825# Delegate substitutions
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868#
29869# RPM support.
29870#
29871RPM=''
29872for ac_prog in gnutar gtar tar
29873do
29874 # Extract the first word of "$ac_prog", so it can be a program name with args.
29875set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029877$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029878if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029879 $as_echo_n "(cached) " >&6
29880else
29881 if test -n "$TAR"; then
29882 ac_cv_prog_TAR="$TAR" # Let the user override the test.
29883else
29884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29885for as_dir in $PATH
29886do
29887 IFS=$as_save_IFS
29888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29891 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893 break 2
29894 fi
29895done
cristy8b350f62009-11-15 23:12:43 +000029896 done
cristy3ed852e2009-09-05 21:47:34 +000029897IFS=$as_save_IFS
29898
29899fi
29900fi
29901TAR=$ac_cv_prog_TAR
29902if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000029903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904$as_echo "$TAR" >&6; }
29905else
cristy8b350f62009-11-15 23:12:43 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo "no" >&6; }
29908fi
29909
29910
29911 test -n "$TAR" && break
29912done
29913
29914for ac_prog in perl
29915do
29916 # Extract the first word of "$ac_prog", so it can be a program name with args.
29917set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029919$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029920if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029921 $as_echo_n "(cached) " >&6
29922else
29923 if test -n "$PERL"; then
29924 ac_cv_prog_PERL="$PERL" # Let the user override the test.
29925else
29926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29927for as_dir in $PATH
29928do
29929 IFS=$as_save_IFS
29930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29933 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935 break 2
29936 fi
29937done
cristy8b350f62009-11-15 23:12:43 +000029938 done
cristy3ed852e2009-09-05 21:47:34 +000029939IFS=$as_save_IFS
29940
29941fi
29942fi
29943PERL=$ac_cv_prog_PERL
29944if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo "$PERL" >&6; }
29947else
cristy8b350f62009-11-15 23:12:43 +000029948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029949$as_echo "no" >&6; }
29950fi
29951
29952
29953 test -n "$PERL" && break
29954done
29955
29956for ac_prog in rpmbuild rpm
29957do
29958 # Extract the first word of "$ac_prog", so it can be a program name with args.
29959set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029961$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029962if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029963 $as_echo_n "(cached) " >&6
29964else
29965 if test -n "$RPM"; then
29966 ac_cv_prog_RPM="$RPM" # Let the user override the test.
29967else
29968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29969for as_dir in $PATH
29970do
29971 IFS=$as_save_IFS
29972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29975 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029977 break 2
29978 fi
29979done
cristy8b350f62009-11-15 23:12:43 +000029980 done
cristy3ed852e2009-09-05 21:47:34 +000029981IFS=$as_save_IFS
29982
29983fi
29984fi
29985RPM=$ac_cv_prog_RPM
29986if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000029987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000029988$as_echo "$RPM" >&6; }
29989else
cristy8b350f62009-11-15 23:12:43 +000029990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029991$as_echo "no" >&6; }
29992fi
29993
29994
29995 test -n "$RPM" && break
29996done
29997
29998
29999ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30000
30001
30002AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30003
30004
30005AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30006
30007
30008AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30009
30010
30011 if test "x$RPM" != "x" ; then
30012 RPM_DELEGATE_TRUE=
30013 RPM_DELEGATE_FALSE='#'
30014else
30015 RPM_DELEGATE_TRUE='#'
30016 RPM_DELEGATE_FALSE=
30017fi
30018
30019
30020#
30021# 7ZIP support (http://p7zip.sourceforge.net/)
30022#
30023P7ZIP=''
30024for ac_prog in 7za
30025do
30026 # Extract the first word of "$ac_prog", so it can be a program name with args.
30027set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030029$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030030if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 $as_echo_n "(cached) " >&6
30032else
30033 if test -n "$P7ZIP"; then
30034 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30035else
30036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037for as_dir in $PATH
30038do
30039 IFS=$as_save_IFS
30040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30043 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045 break 2
30046 fi
30047done
cristy8b350f62009-11-15 23:12:43 +000030048 done
cristy3ed852e2009-09-05 21:47:34 +000030049IFS=$as_save_IFS
30050
30051fi
30052fi
30053P7ZIP=$ac_cv_prog_P7ZIP
30054if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030056$as_echo "$P7ZIP" >&6; }
30057else
cristy8b350f62009-11-15 23:12:43 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030059$as_echo "no" >&6; }
30060fi
30061
30062
30063 test -n "$P7ZIP" && break
30064done
30065
30066
30067 if test "x$P7ZIP" != "x" ; then
30068 P7ZIP_DELEGATE_TRUE=
30069 P7ZIP_DELEGATE_FALSE='#'
30070else
30071 P7ZIP_DELEGATE_TRUE='#'
30072 P7ZIP_DELEGATE_FALSE=
30073fi
30074
30075
30076#
30077# ZIP support (http://www.info-zip.org/Zip.html)
30078#
30079ZIP=''
30080for ac_prog in zip
30081do
30082 # Extract the first word of "$ac_prog", so it can be a program name with args.
30083set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030085$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030086if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030087 $as_echo_n "(cached) " >&6
30088else
30089 if test -n "$ZIP"; then
30090 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30091else
30092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30093for as_dir in $PATH
30094do
30095 IFS=$as_save_IFS
30096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30099 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030101 break 2
30102 fi
30103done
cristy8b350f62009-11-15 23:12:43 +000030104 done
cristy3ed852e2009-09-05 21:47:34 +000030105IFS=$as_save_IFS
30106
30107fi
30108fi
30109ZIP=$ac_cv_prog_ZIP
30110if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo "$ZIP" >&6; }
30113else
cristy8b350f62009-11-15 23:12:43 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo "no" >&6; }
30116fi
30117
30118
30119 test -n "$ZIP" && break
30120done
30121
30122
30123 if test "x$ZIP" != "x" ; then
30124 ZIP_DELEGATE_TRUE=
30125 ZIP_DELEGATE_FALSE='#'
30126else
30127 ZIP_DELEGATE_TRUE='#'
30128 ZIP_DELEGATE_FALSE=
30129fi
30130
30131
30132#
30133# GhostPCL related configuration.
30134#
30135PCLColorDevice=ppmraw
30136PCLCMYKDevice=bmpsep8
30137PCLMonoDevice=pbmraw
30138if test -z "$PCLVersion"; then
30139 PCLVersion='unknown'
30140fi
30141if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030145$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo "" >&6; }
30148 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo_n "checking for pcl color device... " >&6; }
30151 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30152 :
30153 else
30154 PCLColorDevice=ppmraw
30155 fi
cristy8b350f62009-11-15 23:12:43 +000030156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030157$as_echo "$PCLColorDevice" >&6; }
30158
30159 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030161$as_echo_n "checking for pcl CMYK device... " >&6; }
30162 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30163 :
30164 else
30165 PCLCMYKDevice=$PCLColorDevice
30166 fi
cristy8b350f62009-11-15 23:12:43 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168$as_echo "$PCLCMYKDevice" >&6; }
30169
30170 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030172$as_echo_n "checking for pcl mono device... " >&6; }
30173 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30174 :
30175 else
30176 PCLMonoDevice=$PCLColorDevice
30177 fi
cristy8b350f62009-11-15 23:12:43 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030179$as_echo "$PCLMonoDevice" >&6; }
30180fi
30181
30182
30183
30184
30185
30186
30187#
30188# GhostXPS related configuration.
30189#
30190XPSColorDevice=ppmraw
30191XPSCMYKDevice=bmpsep8
30192XPSMonoDevice=pbmraw
30193if test -z "$XPSVersion"; then
30194 XPSVersion='unknown'
30195fi
30196if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030198$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030200$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030202$as_echo "" >&6; }
30203 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030205$as_echo_n "checking for xps color device... " >&6; }
30206 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30207 :
30208 else
30209 XPSColorDevice=ppmraw
30210 fi
cristy8b350f62009-11-15 23:12:43 +000030211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030212$as_echo "$XPSColorDevice" >&6; }
30213
30214 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo_n "checking for xps CMYK device... " >&6; }
30217 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30218 :
30219 else
30220 XPSCMYKDevice=$XPSColorDevice
30221 fi
cristy8b350f62009-11-15 23:12:43 +000030222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030223$as_echo "$XPSCMYKDevice" >&6; }
30224
30225 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030227$as_echo_n "checking for xps mono device... " >&6; }
30228 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30229 :
30230 else
30231 XPSMonoDevice=$XPSColorDevice
30232 fi
cristy8b350f62009-11-15 23:12:43 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo "$XPSMonoDevice" >&6; }
30235fi
30236
30237
30238
30239
30240
30241
30242#
30243# Ghostscript related configuration.
30244#
30245if test "$have_png" = 'yes'; then
30246 GSAlphaDevice=pngalpha
30247else
30248 GSAlphaDevice=pnmraw
30249fi
30250GSColorDevice=pnmraw
30251GSCMYKDevice=pam
30252GSMonoDevice=pbmraw
30253GSPDFDevice=pdfwrite
30254GSPSDevice=pswrite
30255GSEPSDevice=epswrite
30256GSVersion='unknown'
30257if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030259$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030261$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030265$as_echo_n "checking for Ghostscript version... " >&6; }
30266 if GSVersion=`$PSDelegate --version`; then
30267 :
30268 else
30269 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30270 fi
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo "$GSVersion" >&6; }
30273
30274 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo_n "checking for gs alpha device... " >&6; }
30277 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30278 :
30279 else
30280 GSAlphaDevice=pnmraw
30281 fi
cristy8b350f62009-11-15 23:12:43 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo "$GSAlphaDevice" >&6; }
30284
30285 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo_n "checking for gs color device... " >&6; }
30288 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30289 :
30290 else
30291 GSColorDevice=pnmraw
30292 fi
cristy8b350f62009-11-15 23:12:43 +000030293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$GSColorDevice" >&6; }
30295
30296 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo_n "checking for gs CMYK device... " >&6; }
30299 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30300 :
30301 else
30302 GSCMYKDevice=bmpsep8
30303 fi
cristy8b350f62009-11-15 23:12:43 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo "$GSCMYKDevice" >&6; }
30306
30307 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030309$as_echo_n "checking for gs mono device... " >&6; }
30310 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30311 :
30312 else
30313 GSMonoDevice=$GSColorDevice
30314 fi
cristy8b350f62009-11-15 23:12:43 +000030315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030316$as_echo "$GSMonoDevice" >&6; }
30317
30318 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo_n "checking for gs PDF writing device... " >&6; }
30321 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30322 :
30323 else
30324 GSPDFDevice=nodevice
30325 fi
cristy8b350f62009-11-15 23:12:43 +000030326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo "$GSPDFDevice" >&6; }
30328
30329 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo_n "checking for gs PS writing device... " >&6; }
30332 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30333 :
30334 else
30335 GSPSDevice=nodevice
30336 fi
cristy8b350f62009-11-15 23:12:43 +000030337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338$as_echo "$GSPSDevice" >&6; }
30339
30340 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342$as_echo_n "checking for gs EPS writing device... " >&6; }
30343 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30344 :
30345 else
30346 GSEPSDevice=nodevice
30347 fi
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "$GSEPSDevice" >&6; }
30350fi
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361#
30362# PerlMagick-related configuration
30363#
30364
30365# Look for PERL if PerlMagick requested
30366# If name/path of desired PERL interpreter is specified, look for that one first
30367have_perl='no'
30368if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030370$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030374$as_echo "" >&6; }
30375 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030377$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030378if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030379 $as_echo_n "(cached) " >&6
30380else
30381 ac_cv_path_PERL="$with_perl"
30382fi
cristy8b350f62009-11-15 23:12:43 +000030383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030384$as_echo "$ac_cv_path_PERL" >&6; };
30385 PERL=$ac_cv_path_PERL
30386 have_perl="$ac_cv_path_PERL"
30387 else
30388 for ac_prog in perl perl5
30389do
30390 # Extract the first word of "$ac_prog", so it can be a program name with args.
30391set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030394if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030395 $as_echo_n "(cached) " >&6
30396else
30397 case $PERL in
30398 [\\/]* | ?:[\\/]*)
30399 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30400 ;;
30401 *)
30402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30403for as_dir in $PATH
30404do
30405 IFS=$as_save_IFS
30406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30409 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030411 break 2
30412 fi
30413done
cristy8b350f62009-11-15 23:12:43 +000030414 done
cristy3ed852e2009-09-05 21:47:34 +000030415IFS=$as_save_IFS
30416
30417 ;;
30418esac
30419fi
30420PERL=$ac_cv_path_PERL
30421if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030423$as_echo "$PERL" >&6; }
30424else
cristy8b350f62009-11-15 23:12:43 +000030425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030426$as_echo "no" >&6; }
30427fi
30428
30429
30430 test -n "$PERL" && break
30431done
30432 if test "$ac_cv_path_PERL"; then
30433 have_perl="$ac_cv_path_PERL"
30434 fi
30435 fi
30436fi
30437
30438with_perl_static='no'
30439with_perl_dynamic='no'
30440if test "$have_perl" != 'no'; then
30441 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30442 with_perl_static='yes'
30443 fi
30444 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30445 with_perl_dynamic='yes'
30446 fi
30447 # Is PERL's MakeMaker new enough to support DESTDIR?
30448 # Make sure we have perl
30449if test -z "$PERL"; then
30450# Extract the first word of "perl", so it can be a program name with args.
30451set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030453$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030454if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030455 $as_echo_n "(cached) " >&6
30456else
30457 if test -n "$PERL"; then
30458 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30459else
30460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30461for as_dir in $PATH
30462do
30463 IFS=$as_save_IFS
30464 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30467 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469 break 2
30470 fi
30471done
cristy8b350f62009-11-15 23:12:43 +000030472 done
cristy3ed852e2009-09-05 21:47:34 +000030473IFS=$as_save_IFS
30474
30475fi
30476fi
30477PERL=$ac_cv_prog_PERL
30478if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030480$as_echo "$PERL" >&6; }
30481else
cristy8b350f62009-11-15 23:12:43 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030483$as_echo "no" >&6; }
30484fi
30485
30486
30487fi
30488
30489# Check if version of Perl is sufficient
30490ac_perl_version="5.8.1"
30491
30492if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030494$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30495 # NB: It would be nice to log the error if there is one, but we cannot rely
30496 # on autoconf internals
30497 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30498 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030500$as_echo "no" >&6; };
30501 PERL_SUPPORTS_DESTDIR='no'
30502 else
cristy8b350f62009-11-15 23:12:43 +000030503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030504$as_echo "ok" >&6; };
30505 PERL_SUPPORTS_DESTDIR='yes'
30506 fi
30507else
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "$as_me: WARNING: could not find perl" >&2;}
30510fi
30511
30512fi
30513 if test "$have_perl" != 'no'; then
30514 WITH_PERL_TRUE=
30515 WITH_PERL_FALSE='#'
30516else
30517 WITH_PERL_TRUE='#'
30518 WITH_PERL_FALSE=
30519fi
30520
30521 if test $with_perl_static = 'yes'; then
30522 WITH_PERL_STATIC_TRUE=
30523 WITH_PERL_STATIC_FALSE='#'
30524else
30525 WITH_PERL_STATIC_TRUE='#'
30526 WITH_PERL_STATIC_FALSE=
30527fi
30528
30529 if test $with_perl_dynamic = 'yes'; then
30530 WITH_PERL_DYNAMIC_TRUE=
30531 WITH_PERL_DYNAMIC_FALSE='#'
30532else
30533 WITH_PERL_DYNAMIC_TRUE='#'
30534 WITH_PERL_DYNAMIC_FALSE=
30535fi
30536
30537
30538
30539# Determine path to pick up MagickCore library from for use with building PerlMagick
30540MAGICKCORE_PATH="${LIB_DIR}"
30541if test $with_perl_static = 'yes'; then
30542 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30543 libtool_objdir=$objdir
30544
30545 # Linker search path to library, followed by -lMagickCore
30546 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30547fi
30548
30549
30550# Create a simple string containing format names for all delegate libraries
30551DELEGATES=''
30552if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30553if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30554if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30555if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30556if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30557if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30558if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30559if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30560if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30561if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30562if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30563if test "$have_jpeg" = 'yes'; then
30564 DELEGATES="$DELEGATES jpeg";
30565 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30566fi
30567if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30568if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30569if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30570if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30571if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30572if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30573if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30574if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30575if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30576if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30577if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30578if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30579
30580
30581
30582#
30583# Handle special compiler flags
30584#
30585
30586# Add '-p' if prof source profiling support enabled
30587if test "$enable_prof" = 'yes'; then
30588 CFLAGS="-p $CFLAGS"
30589 CXXFLAGS="-p $CXXFLAGS"
30590 LDFLAGS="-p $LDFLAGS"
30591fi
30592
30593# Add '-pg' if gprof source profiling support enabled
30594if test "$enable_gprof" = 'yes'; then
30595 CFLAGS="-pg $CFLAGS"
30596 CXXFLAGS="-pg $CXXFLAGS"
30597 LDFLAGS="-pg $LDFLAGS"
30598fi
30599
30600# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30601# This is a gcc-specific feature
30602if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030605if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030606 $as_echo_n "(cached) " >&6
30607else
30608 ac_check_lib_save_LIBS=$LIBS
30609LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030611/* end confdefs.h. */
30612
30613/* Override any GCC internal prototype to avoid an error.
30614 Use char because int might match the return type of a GCC
30615 builtin and then its argument prototype would still apply. */
30616#ifdef __cplusplus
30617extern "C"
30618#endif
30619char _gcov_init ();
30620int
30621main ()
30622{
30623return _gcov_init ();
30624 ;
30625 return 0;
30626}
30627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030629 ac_cv_lib_gcov__gcov_init=yes
30630else
cristy8b350f62009-11-15 23:12:43 +000030631 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030632fi
cristy8b350f62009-11-15 23:12:43 +000030633rm -f core conftest.err conftest.$ac_objext \
30634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030635LIBS=$ac_check_lib_save_LIBS
30636fi
cristy8b350f62009-11-15 23:12:43 +000030637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030638$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030639if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030640 cat >>confdefs.h <<_ACEOF
30641#define HAVE_LIBGCOV 1
30642_ACEOF
30643
30644 LIBS="-lgcov $LIBS"
30645
30646fi
30647
cristy8b350f62009-11-15 23:12:43 +000030648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030649$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030650if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030651 $as_echo_n "(cached) " >&6
30652else
30653 ac_check_lib_save_LIBS=$LIBS
30654LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030656/* end confdefs.h. */
30657
30658/* Override any GCC internal prototype to avoid an error.
30659 Use char because int might match the return type of a GCC
30660 builtin and then its argument prototype would still apply. */
30661#ifdef __cplusplus
30662extern "C"
30663#endif
30664char __gcov_init ();
30665int
30666main ()
30667{
30668return __gcov_init ();
30669 ;
30670 return 0;
30671}
30672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030674 ac_cv_lib_gcov___gcov_init=yes
30675else
cristy8b350f62009-11-15 23:12:43 +000030676 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030677fi
cristy8b350f62009-11-15 23:12:43 +000030678rm -f core conftest.err conftest.$ac_objext \
30679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030680LIBS=$ac_check_lib_save_LIBS
30681fi
cristy8b350f62009-11-15 23:12:43 +000030682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030684if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030685 cat >>confdefs.h <<_ACEOF
30686#define HAVE_LIBGCOV 1
30687_ACEOF
30688
30689 LIBS="-lgcov $LIBS"
30690
30691fi
30692
30693 case "$target_os" in
30694 darwin*)
30695 OSX_GCOV_LDFLAG="-Wl,-single_module"
30696 ;;
30697 *)
30698 OSX_GCOV_LDFLAG=""
30699 ;;
30700 esac
30701
30702 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30703 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30704 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30705fi
30706
30707#
30708# Build library dependency list for libMagickCore
30709#
30710
30711MAGICK_LIBLTDL='' # Libltdl for build
30712MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30713MAGICK_LTDLDEPS='' # extra libltdl dependencies
30714if test "$with_ltdl" != 'no'
30715then
30716 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30717 MAGICK_API_LIBLTDL='-lltdl'
30718 fi
30719 MAGICK_LIBLTDL=${LIBLTDL}
30720 MAGICK_LTDLDEPS=${LTDLDEPS}
30721fi
30722
30723
30724
30725if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030726 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 $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 +000030727else
cristy2e8b51d2009-10-17 18:26:15 +000030728 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030729fi
30730
30731
30732#
30733# Remove extraneous spaces from output variables (asthetic)
30734#
30735X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30736X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30737X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30738X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30739
30740CC=`echo $CC | sed -e 's/ */ /g'`
30741CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30742CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30743CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30744DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30745DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30746LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30747TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30748MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30749#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30750
30751# Pass only user-provided LIBS as "global" libraries
30752LIBS=$USER_LIBS
30753
30754#AC_SUBST(CPPFLAGS)
30755
30756#AC_SUBST(LDFLAGS)
30757#AC_SUBST(X_PRE_LIBS)
30758#AC_SUBST(X_LIBS)
30759#AC_SUBST(X_EXTRA_LIBS)
30760
30761MAGICK_CFLAGS=$CFLAGS
30762MAGICK_CXXFLAGS="$CXXFLAGS"
30763MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30764MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30765MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30766MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30767
30768
30769
30770
30771
30772
30773
30774
30775# Set configured scripts to executable.
30776ac_config_commands="$ac_config_commands default"
30777
30778ac_config_commands="$ac_config_commands MagickCore-config.in"
30779
30780ac_config_commands="$ac_config_commands Magick-config.in"
30781
30782ac_config_commands="$ac_config_commands MagickWand-config.in"
30783
30784ac_config_commands="$ac_config_commands Wand-config.in"
30785
30786ac_config_commands="$ac_config_commands Magick++-config.in"
30787
30788ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30789
30790
cristy8b350f62009-11-15 23:12:43 +000030791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030792$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030794$as_echo "Update ImageMagick configuration" >&6; }
30795cat >confcache <<\_ACEOF
30796# This file is a shell script that caches the results of configure
30797# tests run on this system so they can be shared between configure
30798# scripts and configure runs, see configure's option --config-cache.
30799# It is not useful on other systems. If it contains results you don't
30800# want to keep, you may remove or edit it.
30801#
30802# config.status only pays attention to the cache file if you give it
30803# the --recheck option to rerun configure.
30804#
30805# `ac_cv_env_foo' variables (set or unset) will be overridden when
30806# loading this file, other *unset* `ac_cv_foo' will be assigned the
30807# following values.
30808
30809_ACEOF
30810
30811# The following way of writing the cache mishandles newlines in values,
30812# but we know of no workaround that is simple, portable, and efficient.
30813# So, we kill variables containing newlines.
30814# Ultrix sh set writes to stderr and can't be redirected directly,
30815# and sets the high bit in the cache file unless we assign to the vars.
30816(
30817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30818 eval ac_val=\$$ac_var
30819 case $ac_val in #(
30820 *${as_nl}*)
30821 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000030822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30824 esac
30825 case $ac_var in #(
30826 _ | IFS | as_nl) ;; #(
30827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000030828 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000030829 esac ;;
30830 esac
30831 done
30832
30833 (set) 2>&1 |
30834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30835 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000030836 # `set' does not quote correctly, so add quotes: double-quote
30837 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000030838 sed -n \
30839 "s/'/'\\\\''/g;
30840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30841 ;; #(
30842 *)
30843 # `set' quotes correctly as required by POSIX, so do not add quotes.
30844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30845 ;;
30846 esac |
30847 sort
30848) |
30849 sed '
30850 /^ac_cv_env_/b end
30851 t clear
30852 :clear
30853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30854 t end
30855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30856 :end' >>confcache
30857if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30858 if test -w "$cache_file"; then
30859 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000030860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030861$as_echo "$as_me: updating cache $cache_file" >&6;}
30862 cat confcache >$cache_file
30863 else
cristy8b350f62009-11-15 23:12:43 +000030864 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30866 fi
30867fi
30868rm -f confcache
30869
30870test "x$prefix" = xNONE && prefix=$ac_default_prefix
30871# Let make expand exec_prefix.
30872test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30873
30874DEFS=-DHAVE_CONFIG_H
30875
30876ac_libobjs=
30877ac_ltlibobjs=
30878for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30879 # 1. Remove the extension, and $U if already installed.
30880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30881 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30883 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000030884 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30885 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000030886done
30887LIBOBJS=$ac_libobjs
30888
30889LTLIBOBJS=$ac_ltlibobjs
30890
30891
30892 if test -n "$EXEEXT"; then
30893 am__EXEEXT_TRUE=
30894 am__EXEEXT_FALSE='#'
30895else
30896 am__EXEEXT_TRUE='#'
30897 am__EXEEXT_FALSE=
30898fi
30899
30900if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030901 as_fn_error "conditional \"AMDEP\" was never defined.
30902Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030903fi
30904if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030905 as_fn_error "conditional \"am__fastdepCC\" was never defined.
30906Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030907fi
30908if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030909 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
30910Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030911fi
30912if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030913 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
30914Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030915fi
30916if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030917 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
30918Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030919fi
30920if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030921 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
30922Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030923fi
30924if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030925 as_fn_error "conditional \"USING_CL\" was never defined.
30926Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030927fi
cristy3ed852e2009-09-05 21:47:34 +000030928if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030929 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
30930Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030931fi
30932if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030933 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
30934Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030935fi
30936LT_CONFIG_H=config/config.h
30937
30938 _ltdl_libobjs=
30939 _ltdl_ltlibobjs=
30940 if test -n "$_LT_LIBOBJS"; then
30941 # Remove the extension.
30942 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
30943 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
30944 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
30945 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
30946 done
30947 fi
30948 ltdl_LIBOBJS=$_ltdl_libobjs
30949
30950 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
30951
30952
30953if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030954 as_fn_error "conditional \"WITH_MODULES\" was never defined.
30955Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030956fi
30957if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030958 as_fn_error "conditional \"WITH_LTDL\" was never defined.
30959Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030960fi
30961if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030962 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
30963Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030964fi
30965
30966if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030967 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
30968Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030969fi
30970if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030971 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
30972Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030973fi
30974if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030975 as_fn_error "conditional \"HasUMEM\" was never defined.
30976Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030977fi
30978if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030979 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
30980Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030981fi
30982if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030983 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
30984Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030985fi
30986if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030987 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
30988Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030989fi
30990if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030991 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
30992Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030993fi
30994if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030995 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
30996Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030997fi
30998if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030999 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31000Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031001fi
31002if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031003 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31004Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031005fi
31006if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031007 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31008Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031009fi
31010if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031011 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31012Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031013fi
31014if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031015 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31016Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031017fi
31018if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031019 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31020Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031021fi
31022if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031023 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31024Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031025fi
31026if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031027 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31028Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031029fi
31030if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031031 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31032Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031033fi
31034if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031035 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31036Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031037fi
31038if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031039 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31040Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031041fi
31042if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031043 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31044Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031045fi
31046if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031047 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31048Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031049fi
31050if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031051 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31052Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031053fi
31054if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031055 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31056Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031057fi
31058if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031059 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31060Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031061fi
31062if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031063 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31064Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031065fi
31066if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031067 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31068Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031069fi
31070if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031071 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31072Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031073fi
31074if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031075 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31076Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031077fi
31078if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031079 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31080Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031081fi
31082if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031083 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31084Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031085fi
31086if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031087 as_fn_error "conditional \"WITH_PERL\" was never defined.
31088Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031089fi
31090if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031091 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31092Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031093fi
31094if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031095 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31096Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031097fi
31098
31099: ${CONFIG_STATUS=./config.status}
31100ac_write_fail=0
31101ac_clean_files_save=$ac_clean_files
31102ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031103{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031104$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031105as_write_fail=0
31106cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031107#! $SHELL
31108# Generated by $as_me.
31109# Run this file to recreate the current configuration.
31110# Compiler output produced by configure, useful for debugging
31111# configure, is in config.log if it exists.
31112
31113debug=false
31114ac_cs_recheck=false
31115ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031116
cristy8b350f62009-11-15 23:12:43 +000031117SHELL=\${CONFIG_SHELL-$SHELL}
31118export SHELL
31119_ASEOF
31120cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31121## -------------------- ##
31122## M4sh Initialization. ##
31123## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031124
31125# Be more Bourne compatible
31126DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031127if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031128 emulate sh
31129 NULLCMD=:
31130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31131 # is contrary to our usage. Disable this feature.
31132 alias -g '${1+"$@"}'='"$@"'
31133 setopt NO_GLOB_SUBST
31134else
cristy8b350f62009-11-15 23:12:43 +000031135 case `(set -o) 2>/dev/null` in #(
31136 *posix*) :
31137 set -o posix ;; #(
31138 *) :
31139 ;;
cristy3ed852e2009-09-05 21:47:34 +000031140esac
cristy3ed852e2009-09-05 21:47:34 +000031141fi
31142
31143
cristy3ed852e2009-09-05 21:47:34 +000031144as_nl='
31145'
31146export as_nl
31147# Printing a long string crashes Solaris 7 /usr/bin/printf.
31148as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31149as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031151# Prefer a ksh shell builtin over an external printf program on Solaris,
31152# but without wasting forks for bash or zsh.
31153if test -z "$BASH_VERSION$ZSH_VERSION" \
31154 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31155 as_echo='print -r --'
31156 as_echo_n='print -rn --'
31157elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031158 as_echo='printf %s\n'
31159 as_echo_n='printf %s'
31160else
31161 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31162 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31163 as_echo_n='/usr/ucb/echo -n'
31164 else
31165 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31166 as_echo_n_body='eval
31167 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031168 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031169 *"$as_nl"*)
31170 expr "X$arg" : "X\\(.*\\)$as_nl";
31171 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31172 esac;
31173 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31174 '
31175 export as_echo_n_body
31176 as_echo_n='sh -c $as_echo_n_body as_echo'
31177 fi
31178 export as_echo_body
31179 as_echo='sh -c $as_echo_body as_echo'
31180fi
31181
31182# The user is always right.
31183if test "${PATH_SEPARATOR+set}" != set; then
31184 PATH_SEPARATOR=:
31185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31187 PATH_SEPARATOR=';'
31188 }
31189fi
31190
cristy3ed852e2009-09-05 21:47:34 +000031191
31192# IFS
31193# We need space, tab and new line, in precisely that order. Quoting is
31194# there to prevent editors from complaining about space-tab.
31195# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31196# splitting by setting IFS to empty value.)
31197IFS=" "" $as_nl"
31198
31199# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031200case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031201 *[\\/]* ) as_myself=$0 ;;
31202 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31203for as_dir in $PATH
31204do
31205 IFS=$as_save_IFS
31206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031207 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31208 done
cristy3ed852e2009-09-05 21:47:34 +000031209IFS=$as_save_IFS
31210
31211 ;;
31212esac
31213# We did not find ourselves, most probably we were run as `sh COMMAND'
31214# in which case we are not to be found in the path.
31215if test "x$as_myself" = x; then
31216 as_myself=$0
31217fi
31218if test ! -f "$as_myself"; then
31219 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031220 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031221fi
31222
cristy8b350f62009-11-15 23:12:43 +000031223# Unset variables that we do not need and which cause bugs (e.g. in
31224# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31225# suppresses any "Segmentation fault" message there. '((' could
31226# trigger a bug in pdksh 5.2.14.
31227for as_var in BASH_ENV ENV MAIL MAILPATH
31228do eval test x\${$as_var+set} = xset \
31229 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031230done
31231PS1='$ '
31232PS2='> '
31233PS4='+ '
31234
31235# NLS nuisances.
31236LC_ALL=C
31237export LC_ALL
31238LANGUAGE=C
31239export LANGUAGE
31240
cristy8b350f62009-11-15 23:12:43 +000031241# CDPATH.
31242(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31243
31244
31245# as_fn_error ERROR [LINENO LOG_FD]
31246# ---------------------------------
31247# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31248# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31249# script with status $?, using 1 if that was 0.
31250as_fn_error ()
31251{
31252 as_status=$?; test $as_status -eq 0 && as_status=1
31253 if test "$3"; then
31254 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31255 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31256 fi
31257 $as_echo "$as_me: error: $1" >&2
31258 as_fn_exit $as_status
31259} # as_fn_error
31260
31261
31262# as_fn_set_status STATUS
31263# -----------------------
31264# Set $? to STATUS, without forking.
31265as_fn_set_status ()
31266{
31267 return $1
31268} # as_fn_set_status
31269
31270# as_fn_exit STATUS
31271# -----------------
31272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31273as_fn_exit ()
31274{
31275 set +e
31276 as_fn_set_status $1
31277 exit $1
31278} # as_fn_exit
31279
31280# as_fn_unset VAR
31281# ---------------
31282# Portably unset VAR.
31283as_fn_unset ()
31284{
31285 { eval $1=; unset $1;}
31286}
31287as_unset=as_fn_unset
31288# as_fn_append VAR VALUE
31289# ----------------------
31290# Append the text in VALUE to the end of the definition contained in VAR. Take
31291# advantage of any shell optimizations that allow amortized linear growth over
31292# repeated appends, instead of the typical quadratic growth present in naive
31293# implementations.
31294if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31295 eval 'as_fn_append ()
31296 {
31297 eval $1+=\$2
31298 }'
31299else
31300 as_fn_append ()
31301 {
31302 eval $1=\$$1\$2
31303 }
31304fi # as_fn_append
31305
31306# as_fn_arith ARG...
31307# ------------------
31308# Perform arithmetic evaluation on the ARGs, and store the result in the
31309# global $as_val. Take advantage of shells that can avoid forks. The arguments
31310# must be portable across $(()) and expr.
31311if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31312 eval 'as_fn_arith ()
31313 {
31314 as_val=$(( $* ))
31315 }'
31316else
31317 as_fn_arith ()
31318 {
31319 as_val=`expr "$@" || test $? -eq 1`
31320 }
31321fi # as_fn_arith
31322
31323
cristy3ed852e2009-09-05 21:47:34 +000031324if expr a : '\(a\)' >/dev/null 2>&1 &&
31325 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31326 as_expr=expr
31327else
31328 as_expr=false
31329fi
31330
31331if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31332 as_basename=basename
31333else
31334 as_basename=false
31335fi
31336
cristy8b350f62009-11-15 23:12:43 +000031337if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31338 as_dirname=dirname
31339else
31340 as_dirname=false
31341fi
cristy3ed852e2009-09-05 21:47:34 +000031342
cristy3ed852e2009-09-05 21:47:34 +000031343as_me=`$as_basename -- "$0" ||
31344$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31345 X"$0" : 'X\(//\)$' \| \
31346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31347$as_echo X/"$0" |
31348 sed '/^.*\/\([^/][^/]*\)\/*$/{
31349 s//\1/
31350 q
31351 }
31352 /^X\/\(\/\/\)$/{
31353 s//\1/
31354 q
31355 }
31356 /^X\/\(\/\).*/{
31357 s//\1/
31358 q
31359 }
31360 s/.*/./; q'`
31361
cristy8b350f62009-11-15 23:12:43 +000031362# Avoid depending upon Character Ranges.
31363as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31364as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31365as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31366as_cr_digits='0123456789'
31367as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031368
31369ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031370case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031371-n*)
cristy8b350f62009-11-15 23:12:43 +000031372 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031373 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031374 xy) ECHO_C='\c';;
31375 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31376 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031377 esac;;
31378*)
31379 ECHO_N='-n';;
31380esac
cristy3ed852e2009-09-05 21:47:34 +000031381
31382rm -f conf$$ conf$$.exe conf$$.file
31383if test -d conf$$.dir; then
31384 rm -f conf$$.dir/conf$$.file
31385else
31386 rm -f conf$$.dir
31387 mkdir conf$$.dir 2>/dev/null
31388fi
31389if (echo >conf$$.file) 2>/dev/null; then
31390 if ln -s conf$$.file conf$$ 2>/dev/null; then
31391 as_ln_s='ln -s'
31392 # ... but there are two gotchas:
31393 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31394 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31395 # In both cases, we have to default to `cp -p'.
31396 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31397 as_ln_s='cp -p'
31398 elif ln conf$$.file conf$$ 2>/dev/null; then
31399 as_ln_s=ln
31400 else
31401 as_ln_s='cp -p'
31402 fi
31403else
31404 as_ln_s='cp -p'
31405fi
31406rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31407rmdir conf$$.dir 2>/dev/null
31408
cristy8b350f62009-11-15 23:12:43 +000031409
31410# as_fn_mkdir_p
31411# -------------
31412# Create "$as_dir" as a directory, including parents if necessary.
31413as_fn_mkdir_p ()
31414{
31415
31416 case $as_dir in #(
31417 -*) as_dir=./$as_dir;;
31418 esac
31419 test -d "$as_dir" || eval $as_mkdir_p || {
31420 as_dirs=
31421 while :; do
31422 case $as_dir in #(
31423 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31424 *) as_qdir=$as_dir;;
31425 esac
31426 as_dirs="'$as_qdir' $as_dirs"
31427 as_dir=`$as_dirname -- "$as_dir" ||
31428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31429 X"$as_dir" : 'X\(//\)[^/]' \| \
31430 X"$as_dir" : 'X\(//\)$' \| \
31431 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31432$as_echo X"$as_dir" |
31433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31434 s//\1/
31435 q
31436 }
31437 /^X\(\/\/\)[^/].*/{
31438 s//\1/
31439 q
31440 }
31441 /^X\(\/\/\)$/{
31442 s//\1/
31443 q
31444 }
31445 /^X\(\/\).*/{
31446 s//\1/
31447 q
31448 }
31449 s/.*/./; q'`
31450 test -d "$as_dir" && break
31451 done
31452 test -z "$as_dirs" || eval "mkdir $as_dirs"
31453 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31454
31455
31456} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031457if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031458 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031459else
31460 test -d ./-p && rmdir ./-p
31461 as_mkdir_p=false
31462fi
31463
31464if test -x / >/dev/null 2>&1; then
31465 as_test_x='test -x'
31466else
31467 if ls -dL / >/dev/null 2>&1; then
31468 as_ls_L_option=L
31469 else
31470 as_ls_L_option=
31471 fi
31472 as_test_x='
31473 eval sh -c '\''
31474 if test -d "$1"; then
31475 test -d "$1/.";
31476 else
cristy8b350f62009-11-15 23:12:43 +000031477 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031478 -*)set "./$1";;
31479 esac;
cristy8b350f62009-11-15 23:12:43 +000031480 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031481 ???[sx]*):;;*)false;;esac;fi
31482 '\'' sh
31483 '
31484fi
31485as_executable_p=$as_test_x
31486
31487# Sed expression to map a string onto a valid CPP name.
31488as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31489
31490# Sed expression to map a string onto a valid variable name.
31491as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31492
31493
31494exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031495## ----------------------------------- ##
31496## Main body of $CONFIG_STATUS script. ##
31497## ----------------------------------- ##
31498_ASEOF
31499test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031500
cristy8b350f62009-11-15 23:12:43 +000031501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31502# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031503# report actual input values of CONFIG_FILES etc. instead of their
31504# values after options handling.
31505ac_log="
cristyd934d102009-10-10 12:55:13 +000031506This file was extended by ImageMagick $as_me 6.5.7, which was
cristycd4c5312009-11-22 01:19:08 +000031507generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031508
31509 CONFIG_FILES = $CONFIG_FILES
31510 CONFIG_HEADERS = $CONFIG_HEADERS
31511 CONFIG_LINKS = $CONFIG_LINKS
31512 CONFIG_COMMANDS = $CONFIG_COMMANDS
31513 $ $0 $@
31514
31515on `(hostname || uname -n) 2>/dev/null | sed 1q`
31516"
31517
31518_ACEOF
31519
31520case $ac_config_files in *"
31521"*) set x $ac_config_files; shift; ac_config_files=$*;;
31522esac
31523
31524case $ac_config_headers in *"
31525"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31526esac
31527
31528
31529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31530# Files that config.status was made for.
31531config_files="$ac_config_files"
31532config_headers="$ac_config_headers"
31533config_commands="$ac_config_commands"
31534
31535_ACEOF
31536
31537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31538ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031539\`$as_me' instantiates files and other configuration actions
31540from templates according to the current configuration. Unless the files
31541and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031542
cristy8b350f62009-11-15 23:12:43 +000031543Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031544
31545 -h, --help print this help, then exit
31546 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031547 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031548 -q, --quiet, --silent
31549 do not print progress messages
31550 -d, --debug don't remove temporary files
31551 --recheck update $as_me by reconfiguring in the same conditions
31552 --file=FILE[:TEMPLATE]
31553 instantiate the configuration file FILE
31554 --header=FILE[:TEMPLATE]
31555 instantiate the configuration header FILE
31556
31557Configuration files:
31558$config_files
31559
31560Configuration headers:
31561$config_headers
31562
31563Configuration commands:
31564$config_commands
31565
cristy8b350f62009-11-15 23:12:43 +000031566Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031567
31568_ACEOF
31569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031570ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031571ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000031572ImageMagick config.status 6.5.7
cristycd4c5312009-11-22 01:19:08 +000031573configured by $0, generated by GNU Autoconf 2.65,
31574 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031575
cristy8b350f62009-11-15 23:12:43 +000031576Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031577This config.status script is free software; the Free Software Foundation
31578gives unlimited permission to copy, distribute and modify it."
31579
31580ac_pwd='$ac_pwd'
31581srcdir='$srcdir'
31582INSTALL='$INSTALL'
31583MKDIR_P='$MKDIR_P'
31584AWK='$AWK'
31585test -n "\$AWK" || AWK=awk
31586_ACEOF
31587
31588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31589# The default lists apply if the user does not specify any file.
31590ac_need_defaults=:
31591while test $# != 0
31592do
31593 case $1 in
31594 --*=*)
31595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31597 ac_shift=:
31598 ;;
31599 *)
31600 ac_option=$1
31601 ac_optarg=$2
31602 ac_shift=shift
31603 ;;
31604 esac
31605
31606 case $ac_option in
31607 # Handling of the options.
31608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31609 ac_cs_recheck=: ;;
31610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31611 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031612 --config | --confi | --conf | --con | --co | --c )
31613 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031614 --debug | --debu | --deb | --de | --d | -d )
31615 debug=: ;;
31616 --file | --fil | --fi | --f )
31617 $ac_shift
31618 case $ac_optarg in
31619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31620 esac
cristy8b350f62009-11-15 23:12:43 +000031621 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031622 ac_need_defaults=false;;
31623 --header | --heade | --head | --hea )
31624 $ac_shift
31625 case $ac_optarg in
31626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31627 esac
cristy8b350f62009-11-15 23:12:43 +000031628 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031629 ac_need_defaults=false;;
31630 --he | --h)
31631 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031632 as_fn_error "ambiguous option: \`$1'
31633Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031634 --help | --hel | -h )
31635 $as_echo "$ac_cs_usage"; exit ;;
31636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31638 ac_cs_silent=: ;;
31639
31640 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031641 -*) as_fn_error "unrecognized option: \`$1'
31642Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031643
cristy8b350f62009-11-15 23:12:43 +000031644 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031645 ac_need_defaults=false ;;
31646
31647 esac
31648 shift
31649done
31650
31651ac_configure_extra_args=
31652
31653if $ac_cs_silent; then
31654 exec 6>/dev/null
31655 ac_configure_extra_args="$ac_configure_extra_args --silent"
31656fi
31657
31658_ACEOF
31659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31660if \$ac_cs_recheck; then
31661 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31662 shift
31663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31664 CONFIG_SHELL='$SHELL'
31665 export CONFIG_SHELL
31666 exec "\$@"
31667fi
31668
31669_ACEOF
31670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31671exec 5>>config.log
31672{
31673 echo
31674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31675## Running $as_me. ##
31676_ASBOX
31677 $as_echo "$ac_log"
31678} >&5
31679
31680_ACEOF
31681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31682#
31683# INIT-COMMANDS
31684#
31685PACKAGE="$PACKAGE"
31686AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31687
31688
31689# The HP-UX ksh and POSIX shell print the target directory to stdout
31690# if CDPATH is set.
31691(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31692
31693sed_quote_subst='$sed_quote_subst'
31694double_quote_subst='$double_quote_subst'
31695delay_variable_subst='$delay_variable_subst'
cristy932c9122009-11-19 13:57:03 +000031696SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31697Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31698GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31699EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31700FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31701SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31702ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31703LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31704macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31705macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31706AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
31707DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31708OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31709enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31710enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31711pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31712enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31713host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31714host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31715host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31716build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31717build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31718build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31719NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31720LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31721max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31722ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31723exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31724lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31725lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31726lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31727reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31728reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31729deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31730file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31731AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31732AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31733STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31734RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31735old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31736old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31737old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31738lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31739CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31740CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31741compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31742GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31743lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31744lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31745lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31746lt_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"`'
31747objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31748MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31749lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31750lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31751lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31752lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31753lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31754need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31755DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31756NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31757LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31758OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31759OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31760libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31761shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31762extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31763archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31764enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31765export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31766whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31767compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31768old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31769old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31770archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31771archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31772module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31773module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31774with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31775allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31776no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31777hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31778hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31779hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31780hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31781hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31782hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31783hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31784hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31785inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31786link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31787fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31788always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31789export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31790exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31791include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31792prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31793file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31794variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31795need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31796need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31797version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31798runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31799shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31800shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31801libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31802library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31803soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31804install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31805postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31806postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31807finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31808finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31809hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31810sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31811sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31812hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31813enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31814enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31815enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31816old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31817striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31818compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31819predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31820postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31821predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31822postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31823compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31824LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31825reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31826reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31827old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31828compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31829GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31830lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31831lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31832lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31833lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31834lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31835archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31836enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31837export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31838whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31839compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31840old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31841old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31842archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31843archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31844module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31845module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31846with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31847allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31848no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31849hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31850hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31851hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31852hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31853hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31854hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31855hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31856hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31857inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31858link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31859fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
31860always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31861export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31862exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31863include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31864prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31865file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31866hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31867compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31868predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31869postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31870predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31871postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31872compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000031873
31874LTCC='$LTCC'
31875LTCFLAGS='$LTCFLAGS'
31876compiler='$compiler_DEFAULT'
31877
cristy932c9122009-11-19 13:57:03 +000031878# A function that is used when there is no print builtin or printf.
31879func_fallback_echo ()
31880{
31881 eval 'cat <<_LTECHO_EOF
31882\$1
31883_LTECHO_EOF'
31884}
31885
cristy3ed852e2009-09-05 21:47:34 +000031886# Quote evaled strings.
31887for var in SED \
31888GREP \
31889EGREP \
31890FGREP \
cristy932c9122009-11-19 13:57:03 +000031891SHELL \
31892ECHO \
cristy3ed852e2009-09-05 21:47:34 +000031893LD \
cristy932c9122009-11-19 13:57:03 +000031894AS \
31895DLLTOOL \
31896OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000031897NM \
31898LN_S \
31899lt_SP2NL \
31900lt_NL2SP \
31901reload_flag \
31902deplibs_check_method \
31903file_magic_cmd \
31904AR \
31905AR_FLAGS \
31906STRIP \
31907RANLIB \
31908CC \
31909CFLAGS \
31910compiler \
31911lt_cv_sys_global_symbol_pipe \
31912lt_cv_sys_global_symbol_to_cdecl \
31913lt_cv_sys_global_symbol_to_c_name_address \
31914lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000031915lt_prog_compiler_no_builtin_flag \
31916lt_prog_compiler_wl \
31917lt_prog_compiler_pic \
31918lt_prog_compiler_static \
31919lt_cv_prog_compiler_c_o \
31920need_locks \
31921DSYMUTIL \
31922NMEDIT \
31923LIPO \
31924OTOOL \
31925OTOOL64 \
31926shrext_cmds \
31927export_dynamic_flag_spec \
31928whole_archive_flag_spec \
31929compiler_needs_object \
31930with_gnu_ld \
31931allow_undefined_flag \
31932no_undefined_flag \
31933hardcode_libdir_flag_spec \
31934hardcode_libdir_flag_spec_ld \
31935hardcode_libdir_separator \
31936fix_srcfile_path \
31937exclude_expsyms \
31938include_expsyms \
31939file_list_spec \
31940variables_saved_for_relink \
31941libname_spec \
31942library_names_spec \
31943soname_spec \
cristy932c9122009-11-19 13:57:03 +000031944install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000031945finish_eval \
31946old_striplib \
31947striplib \
31948compiler_lib_search_dirs \
31949predep_objects \
31950postdep_objects \
31951predeps \
31952postdeps \
31953compiler_lib_search_path \
31954LD_CXX \
cristy932c9122009-11-19 13:57:03 +000031955reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000031956compiler_CXX \
31957lt_prog_compiler_no_builtin_flag_CXX \
31958lt_prog_compiler_wl_CXX \
31959lt_prog_compiler_pic_CXX \
31960lt_prog_compiler_static_CXX \
31961lt_cv_prog_compiler_c_o_CXX \
31962export_dynamic_flag_spec_CXX \
31963whole_archive_flag_spec_CXX \
31964compiler_needs_object_CXX \
31965with_gnu_ld_CXX \
31966allow_undefined_flag_CXX \
31967no_undefined_flag_CXX \
31968hardcode_libdir_flag_spec_CXX \
31969hardcode_libdir_flag_spec_ld_CXX \
31970hardcode_libdir_separator_CXX \
31971fix_srcfile_path_CXX \
31972exclude_expsyms_CXX \
31973include_expsyms_CXX \
31974file_list_spec_CXX \
31975compiler_lib_search_dirs_CXX \
31976predep_objects_CXX \
31977postdep_objects_CXX \
31978predeps_CXX \
31979postdeps_CXX \
31980compiler_lib_search_path_CXX; do
cristy932c9122009-11-19 13:57:03 +000031981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000031982 *[\\\\\\\`\\"\\\$]*)
cristy932c9122009-11-19 13:57:03 +000031983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000031984 ;;
31985 *)
31986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31987 ;;
31988 esac
31989done
31990
31991# Double-quote double-evaled strings.
31992for var in reload_cmds \
31993old_postinstall_cmds \
31994old_postuninstall_cmds \
31995old_archive_cmds \
31996extract_expsyms_cmds \
31997old_archive_from_new_cmds \
31998old_archive_from_expsyms_cmds \
31999archive_cmds \
32000archive_expsym_cmds \
32001module_cmds \
32002module_expsym_cmds \
32003export_symbols_cmds \
32004prelink_cmds \
32005postinstall_cmds \
32006postuninstall_cmds \
32007finish_cmds \
32008sys_lib_search_path_spec \
32009sys_lib_dlsearch_path_spec \
cristy932c9122009-11-19 13:57:03 +000032010reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000032011old_archive_cmds_CXX \
32012old_archive_from_new_cmds_CXX \
32013old_archive_from_expsyms_cmds_CXX \
32014archive_cmds_CXX \
32015archive_expsym_cmds_CXX \
32016module_cmds_CXX \
32017module_expsym_cmds_CXX \
32018export_symbols_cmds_CXX \
32019prelink_cmds_CXX; do
cristy932c9122009-11-19 13:57:03 +000032020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000032021 *[\\\\\\\`\\"\\\$]*)
cristy932c9122009-11-19 13:57:03 +000032022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032023 ;;
32024 *)
32025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32026 ;;
32027 esac
32028done
32029
cristy3ed852e2009-09-05 21:47:34 +000032030ac_aux_dir='$ac_aux_dir'
32031xsi_shell='$xsi_shell'
32032lt_shell_append='$lt_shell_append'
32033
32034# See if we are running on zsh, and set the options which allow our
32035# commands through without removal of \ escapes INIT.
32036if test -n "\${ZSH_VERSION+set}" ; then
32037 setopt NO_GLOB_SUBST
32038fi
32039
32040
32041 PACKAGE='$PACKAGE'
32042 VERSION='$VERSION'
32043 TIMESTAMP='$TIMESTAMP'
32044 RM='$RM'
32045 ofile='$ofile'
32046
32047
32048
32049
32050
32051
32052_ACEOF
32053
32054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32055
32056# Handling of arguments.
32057for ac_config_target in $ac_config_targets
32058do
32059 case $ac_config_target in
32060 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32061 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32062 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32063 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32064 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32065 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32066 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32067 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32068 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32069 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32070 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32071 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32072 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32073 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32074 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32075 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32076 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32077 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32078 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32079 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32080 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32081 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32082 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32083 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32084 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32085 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32086 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32087 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32088 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32089 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32090 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32091 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32092 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32093 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32094 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32095 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32096 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32097 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32098 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32099 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32100 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32101 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32102 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32103 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32104 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32105 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32106 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32107 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32108 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32109
cristy8b350f62009-11-15 23:12:43 +000032110 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032111 esac
32112done
32113
32114
32115# If the user did not use the arguments to specify the items to instantiate,
32116# then the envvar interface is used. Set only those that are not.
32117# We use the long form for the default assignment because of an extremely
32118# bizarre bug on SunOS 4.1.3.
32119if $ac_need_defaults; then
32120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32122 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32123fi
32124
32125# Have a temporary directory for convenience. Make it in the build tree
32126# simply because there is no reason against having it here, and in addition,
32127# creating and moving files from /tmp can sometimes cause problems.
32128# Hook for its removal unless debugging.
32129# Note that there is a small window in which the directory will not be cleaned:
32130# after its creation but before its name has been assigned to `$tmp'.
32131$debug ||
32132{
32133 tmp=
32134 trap 'exit_status=$?
32135 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32136' 0
cristy8b350f62009-11-15 23:12:43 +000032137 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032138}
32139# Create a (secure) tmp directory for tmp files.
32140
32141{
32142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32143 test -n "$tmp" && test -d "$tmp"
32144} ||
32145{
32146 tmp=./conf$$-$RANDOM
32147 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032148} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032149
32150# Set up the scripts for CONFIG_FILES section.
32151# No need to generate them if there are no CONFIG_FILES.
32152# This happens for instance with `./config.status config.h'.
32153if test -n "$CONFIG_FILES"; then
32154
32155
cristy8b350f62009-11-15 23:12:43 +000032156ac_cr=`echo X | tr X '\015'`
32157# On cygwin, bash can eat \r inside `` if the user requested igncr.
32158# But we know of no other shell where ac_cr would be empty at this
32159# point, so we can use a bashism as a fallback.
32160if test "x$ac_cr" = x; then
32161 eval ac_cr=\$\'\\r\'
32162fi
cristy3ed852e2009-09-05 21:47:34 +000032163ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32164if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032165 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032166else
32167 ac_cs_awk_cr=$ac_cr
32168fi
32169
32170echo 'BEGIN {' >"$tmp/subs1.awk" &&
32171_ACEOF
32172
32173
32174{
32175 echo "cat >conf$$subs.awk <<_ACEOF" &&
32176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32177 echo "_ACEOF"
32178} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032179 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032180ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32181ac_delim='%!_!# '
32182for ac_last_try in false false false false false :; do
32183 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032184 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032185
32186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32187 if test $ac_delim_n = $ac_delim_num; then
32188 break
32189 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032190 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032191 else
32192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32193 fi
32194done
32195rm -f conf$$subs.sh
32196
32197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32198cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32199_ACEOF
32200sed -n '
32201h
32202s/^/S["/; s/!.*/"]=/
32203p
32204g
32205s/^[^!]*!//
32206:repl
32207t repl
32208s/'"$ac_delim"'$//
32209t delim
32210:nl
32211h
cristycd4c5312009-11-22 01:19:08 +000032212s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032213t more1
32214s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32215p
32216n
32217b repl
32218:more1
32219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32220p
32221g
32222s/.\{148\}//
32223t nl
32224:delim
32225h
cristycd4c5312009-11-22 01:19:08 +000032226s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032227t more2
32228s/["\\]/\\&/g; s/^/"/; s/$/"/
32229p
32230b
32231:more2
32232s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32233p
32234g
32235s/.\{148\}//
32236t delim
32237' <conf$$subs.awk | sed '
32238/^[^""]/{
32239 N
32240 s/\n//
32241}
32242' >>$CONFIG_STATUS || ac_write_fail=1
32243rm -f conf$$subs.awk
32244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32245_ACAWK
32246cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32247 for (key in S) S_is_set[key] = 1
32248 FS = ""
32249
32250}
32251{
32252 line = $ 0
32253 nfields = split(line, field, "@")
32254 substed = 0
32255 len = length(field[1])
32256 for (i = 2; i < nfields; i++) {
32257 key = field[i]
32258 keylen = length(key)
32259 if (S_is_set[key]) {
32260 value = S[key]
32261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32262 len += length(value) + length(field[++i])
32263 substed = 1
32264 } else
32265 len += 1 + keylen
32266 }
32267
32268 print line
32269}
32270
32271_ACAWK
32272_ACEOF
32273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32274if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32276else
32277 cat
32278fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032279 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032280_ACEOF
32281
32282# VPATH may cause trouble with some makes, so we remove $(srcdir),
32283# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32284# trailing colons and then remove the whole line if VPATH becomes empty
32285# (actually we leave an empty line to preserve line numbers).
32286if test "x$srcdir" = x.; then
32287 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32288s/:*\$(srcdir):*/:/
32289s/:*\${srcdir}:*/:/
32290s/:*@srcdir@:*/:/
32291s/^\([^=]*=[ ]*\):*/\1/
32292s/:*$//
32293s/^[^=]*=[ ]*$//
32294}'
32295fi
32296
32297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32298fi # test -n "$CONFIG_FILES"
32299
32300# Set up the scripts for CONFIG_HEADERS section.
32301# No need to generate them if there are no CONFIG_HEADERS.
32302# This happens for instance with `./config.status Makefile'.
32303if test -n "$CONFIG_HEADERS"; then
32304cat >"$tmp/defines.awk" <<\_ACAWK ||
32305BEGIN {
32306_ACEOF
32307
32308# Transform confdefs.h into an awk script `defines.awk', embedded as
32309# here-document in config.status, that substitutes the proper values into
32310# config.h.in to produce config.h.
32311
32312# Create a delimiter string that does not exist in confdefs.h, to ease
32313# handling of long lines.
32314ac_delim='%!_!# '
32315for ac_last_try in false false :; do
32316 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32317 if test -z "$ac_t"; then
32318 break
32319 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032320 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032321 else
32322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32323 fi
32324done
32325
32326# For the awk script, D is an array of macro values keyed by name,
32327# likewise P contains macro parameters if any. Preserve backslash
32328# newline sequences.
32329
32330ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32331sed -n '
32332s/.\{148\}/&'"$ac_delim"'/g
32333t rset
32334:rset
32335s/^[ ]*#[ ]*define[ ][ ]*/ /
32336t def
32337d
32338:def
32339s/\\$//
32340t bsnl
32341s/["\\]/\\&/g
32342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32343D["\1"]=" \3"/p
32344s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32345d
32346:bsnl
32347s/["\\]/\\&/g
32348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32349D["\1"]=" \3\\\\\\n"\\/p
32350t cont
32351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32352t cont
32353d
32354:cont
32355n
32356s/.\{148\}/&'"$ac_delim"'/g
32357t clear
32358:clear
32359s/\\$//
32360t bsnlc
32361s/["\\]/\\&/g; s/^/"/; s/$/"/p
32362d
32363:bsnlc
32364s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32365b cont
32366' <confdefs.h | sed '
32367s/'"$ac_delim"'/"\\\
32368"/g' >>$CONFIG_STATUS || ac_write_fail=1
32369
32370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32371 for (key in D) D_is_set[key] = 1
32372 FS = ""
32373}
32374/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32375 line = \$ 0
32376 split(line, arg, " ")
32377 if (arg[1] == "#") {
32378 defundef = arg[2]
32379 mac1 = arg[3]
32380 } else {
32381 defundef = substr(arg[1], 2)
32382 mac1 = arg[2]
32383 }
32384 split(mac1, mac2, "(") #)
32385 macro = mac2[1]
32386 prefix = substr(line, 1, index(line, defundef) - 1)
32387 if (D_is_set[macro]) {
32388 # Preserve the white space surrounding the "#".
32389 print prefix "define", macro P[macro] D[macro]
32390 next
32391 } else {
32392 # Replace #undef with comments. This is necessary, for example,
32393 # in the case of _POSIX_SOURCE, which is predefined and required
32394 # on some systems where configure will not decide to define it.
32395 if (defundef == "undef") {
32396 print "/*", prefix defundef, macro, "*/"
32397 next
32398 }
32399 }
32400}
32401{ print }
32402_ACAWK
32403_ACEOF
32404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032405 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032406fi # test -n "$CONFIG_HEADERS"
32407
32408
32409eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32410shift
32411for ac_tag
32412do
32413 case $ac_tag in
32414 :[FHLC]) ac_mode=$ac_tag; continue;;
32415 esac
32416 case $ac_mode$ac_tag in
32417 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032418 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032419 :[FH]-) ac_tag=-:-;;
32420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32421 esac
32422 ac_save_IFS=$IFS
32423 IFS=:
32424 set x $ac_tag
32425 IFS=$ac_save_IFS
32426 shift
32427 ac_file=$1
32428 shift
32429
32430 case $ac_mode in
32431 :L) ac_source=$1;;
32432 :[FH])
32433 ac_file_inputs=
32434 for ac_f
32435 do
32436 case $ac_f in
32437 -) ac_f="$tmp/stdin";;
32438 *) # Look for the file first in the build tree, then in the source tree
32439 # (if the path is not absolute). The absolute path cannot be DOS-style,
32440 # because $ac_f cannot contain `:'.
32441 test -f "$ac_f" ||
32442 case $ac_f in
32443 [\\/$]*) false;;
32444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32445 esac ||
cristy8b350f62009-11-15 23:12:43 +000032446 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032447 esac
32448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032449 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032450 done
32451
32452 # Let's still pretend it is `configure' which instantiates (i.e., don't
32453 # use $as_me), people would be surprised to read:
32454 # /* config.h. Generated by config.status. */
32455 configure_input='Generated from '`
32456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32457 `' by configure.'
32458 if test x"$ac_file" != x-; then
32459 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032461$as_echo "$as_me: creating $ac_file" >&6;}
32462 fi
32463 # Neutralize special characters interpreted by sed in replacement strings.
32464 case $configure_input in #(
32465 *\&* | *\|* | *\\* )
32466 ac_sed_conf_input=`$as_echo "$configure_input" |
32467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32468 *) ac_sed_conf_input=$configure_input;;
32469 esac
32470
32471 case $ac_tag in
32472 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032473 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032474 esac
32475 ;;
32476 esac
32477
32478 ac_dir=`$as_dirname -- "$ac_file" ||
32479$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32480 X"$ac_file" : 'X\(//\)[^/]' \| \
32481 X"$ac_file" : 'X\(//\)$' \| \
32482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32483$as_echo X"$ac_file" |
32484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32485 s//\1/
32486 q
32487 }
32488 /^X\(\/\/\)[^/].*/{
32489 s//\1/
32490 q
32491 }
32492 /^X\(\/\/\)$/{
32493 s//\1/
32494 q
32495 }
32496 /^X\(\/\).*/{
32497 s//\1/
32498 q
32499 }
32500 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032501 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032502 ac_builddir=.
32503
32504case "$ac_dir" in
32505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32506*)
32507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32508 # A ".." for each directory in $ac_dir_suffix.
32509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32510 case $ac_top_builddir_sub in
32511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32513 esac ;;
32514esac
32515ac_abs_top_builddir=$ac_pwd
32516ac_abs_builddir=$ac_pwd$ac_dir_suffix
32517# for backward compatibility:
32518ac_top_builddir=$ac_top_build_prefix
32519
32520case $srcdir in
32521 .) # We are building in place.
32522 ac_srcdir=.
32523 ac_top_srcdir=$ac_top_builddir_sub
32524 ac_abs_top_srcdir=$ac_pwd ;;
32525 [\\/]* | ?:[\\/]* ) # Absolute name.
32526 ac_srcdir=$srcdir$ac_dir_suffix;
32527 ac_top_srcdir=$srcdir
32528 ac_abs_top_srcdir=$srcdir ;;
32529 *) # Relative name.
32530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32531 ac_top_srcdir=$ac_top_build_prefix$srcdir
32532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32533esac
32534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32535
32536
32537 case $ac_mode in
32538 :F)
32539 #
32540 # CONFIG_FILE
32541 #
32542
32543 case $INSTALL in
32544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32546 esac
32547 ac_MKDIR_P=$MKDIR_P
32548 case $MKDIR_P in
32549 [\\/$]* | ?:[\\/]* ) ;;
32550 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32551 esac
32552_ACEOF
32553
32554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32555# If the template does not know about datarootdir, expand it.
32556# FIXME: This hack should be removed a few years after 2.60.
32557ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032558ac_sed_dataroot='
32559/datarootdir/ {
32560 p
32561 q
32562}
32563/@datadir@/p
32564/@docdir@/p
32565/@infodir@/p
32566/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032567/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032568case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32569*datarootdir*) ac_datarootdir_seen=yes;;
32570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032572$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32573_ACEOF
32574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32575 ac_datarootdir_hack='
32576 s&@datadir@&$datadir&g
32577 s&@docdir@&$docdir&g
32578 s&@infodir@&$infodir&g
32579 s&@localedir@&$localedir&g
32580 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032581 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032582esac
32583_ACEOF
32584
32585# Neutralize VPATH when `$srcdir' = `.'.
32586# Shell code in configure.ac might set extrasub.
32587# FIXME: do we really want to maintain this feature?
32588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32589ac_sed_extra="$ac_vpsub
32590$extrasub
32591_ACEOF
32592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32593:t
32594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32595s|@configure_input@|$ac_sed_conf_input|;t t
32596s&@top_builddir@&$ac_top_builddir_sub&;t t
32597s&@top_build_prefix@&$ac_top_build_prefix&;t t
32598s&@srcdir@&$ac_srcdir&;t t
32599s&@abs_srcdir@&$ac_abs_srcdir&;t t
32600s&@top_srcdir@&$ac_top_srcdir&;t t
32601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32602s&@builddir@&$ac_builddir&;t t
32603s&@abs_builddir@&$ac_abs_builddir&;t t
32604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32605s&@INSTALL@&$ac_INSTALL&;t t
32606s&@MKDIR_P@&$ac_MKDIR_P&;t t
32607$ac_datarootdir_hack
32608"
32609eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032610 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032611
32612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32613 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032616which seems to be undefined. Please make sure it is defined." >&5
32617$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32618which seems to be undefined. Please make sure it is defined." >&2;}
32619
32620 rm -f "$tmp/stdin"
32621 case $ac_file in
32622 -) cat "$tmp/out" && rm -f "$tmp/out";;
32623 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32624 esac \
cristy8b350f62009-11-15 23:12:43 +000032625 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032626 ;;
32627 :H)
32628 #
32629 # CONFIG_HEADER
32630 #
32631 if test x"$ac_file" != x-; then
32632 {
32633 $as_echo "/* $configure_input */" \
32634 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32635 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032636 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032637 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032638 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032639$as_echo "$as_me: $ac_file is unchanged" >&6;}
32640 else
32641 rm -f "$ac_file"
32642 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032643 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032644 fi
32645 else
32646 $as_echo "/* $configure_input */" \
32647 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032648 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032649 fi
32650# Compute "$ac_file"'s index in $config_headers.
32651_am_arg="$ac_file"
32652_am_stamp_count=1
32653for _am_header in $config_headers :; do
32654 case $_am_header in
32655 $_am_arg | $_am_arg:* )
32656 break ;;
32657 * )
32658 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32659 esac
32660done
32661echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32662$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32663 X"$_am_arg" : 'X\(//\)[^/]' \| \
32664 X"$_am_arg" : 'X\(//\)$' \| \
32665 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32666$as_echo X"$_am_arg" |
32667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32668 s//\1/
32669 q
32670 }
32671 /^X\(\/\/\)[^/].*/{
32672 s//\1/
32673 q
32674 }
32675 /^X\(\/\/\)$/{
32676 s//\1/
32677 q
32678 }
32679 /^X\(\/\).*/{
32680 s//\1/
32681 q
32682 }
32683 s/.*/./; q'`/stamp-h$_am_stamp_count
32684 ;;
32685
cristy8b350f62009-11-15 23:12:43 +000032686 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032687$as_echo "$as_me: executing $ac_file commands" >&6;}
32688 ;;
32689 esac
32690
32691
32692 case $ac_file$ac_mode in
32693 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32694ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32695ac_prefix_conf_PKG=`echo MagickCore`
32696ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32697ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32698ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32699if test ".$ac_prefix_conf_INP" = "."; then
32700 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32701 case "$ac_file" in
32702 *.h) ac_prefix_conf_INP=$ac_file ;;
32703 *)
32704 esac
32705 test ".$ac_prefix_conf_INP" != "." && break
32706 done
32707fi
32708if test ".$ac_prefix_conf_INP" = "."; then
32709 case "$ac_prefix_conf_OUT" in
32710 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32711 ;;
32712 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32713 ;;
32714 *) ac_prefix_conf_INP=config.h
32715 ;;
32716 esac
32717fi
32718if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032719 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032720else
32721 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32722 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32723 fi fi
cristy8b350f62009-11-15 23:12:43 +000032724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32726 if test -f $ac_prefix_conf_INP ; then
32727 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32728 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32729 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32730 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32731 echo "#endif/" >>conftest.prefix
32732 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32733 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32734 echo "#endif/" >> conftest.prefix
32735 # now executing _script on _DEF input to create _OUT output file
32736 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32737 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32738 echo ' ' >>$tmp/pconfig.h
32739 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32740
32741 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32742 echo ' ' >>$tmp/pconfig.h
32743 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32744 echo "#endif" >>$tmp/pconfig.h
32745 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32748 else
32749 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32750$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32751 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32752 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32753 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32754$as_echo X"$ac_prefix_conf_OUT" |
32755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32756 s//\1/
32757 q
32758 }
32759 /^X\(\/\/\)[^/].*/{
32760 s//\1/
32761 q
32762 }
32763 /^X\(\/\/\)$/{
32764 s//\1/
32765 q
32766 }
32767 /^X\(\/\).*/{
32768 s//\1/
32769 q
32770 }
32771 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032772 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032773 rm -f "$ac_prefix_conf_OUT"
32774 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32775 fi
32776 cp conftest.prefix _configs.sed
32777 else
cristy8b350f62009-11-15 23:12:43 +000032778 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032779 fi
32780 rm -f conftest.*
32781fi
32782 ;;
32783 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32784 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32785 # are listed without --file. Let's play safe and only enable the eval
32786 # if we detect the quoting.
32787 case $CONFIG_FILES in
32788 *\'*) eval set x "$CONFIG_FILES" ;;
32789 *) set x $CONFIG_FILES ;;
32790 esac
32791 shift
32792 for mf
32793 do
32794 # Strip MF so we end up with the name of the file.
32795 mf=`echo "$mf" | sed -e 's/:.*$//'`
32796 # Check whether this is an Automake generated Makefile or not.
32797 # We used to match only the files named `Makefile.in', but
32798 # some people rename them; so instead we look at the file content.
32799 # Grep'ing the first line is not enough: some people post-process
32800 # each Makefile.in and add a new line on top of each file to say so.
32801 # Grep'ing the whole file is not good either: AIX grep has a line
32802 # limit of 2048, but all sed's we know have understand at least 4000.
32803 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32804 dirpart=`$as_dirname -- "$mf" ||
32805$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32806 X"$mf" : 'X\(//\)[^/]' \| \
32807 X"$mf" : 'X\(//\)$' \| \
32808 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32809$as_echo X"$mf" |
32810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32811 s//\1/
32812 q
32813 }
32814 /^X\(\/\/\)[^/].*/{
32815 s//\1/
32816 q
32817 }
32818 /^X\(\/\/\)$/{
32819 s//\1/
32820 q
32821 }
32822 /^X\(\/\).*/{
32823 s//\1/
32824 q
32825 }
32826 s/.*/./; q'`
32827 else
32828 continue
32829 fi
32830 # Extract the definition of DEPDIR, am__include, and am__quote
32831 # from the Makefile without running `make'.
32832 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32833 test -z "$DEPDIR" && continue
32834 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32835 test -z "am__include" && continue
32836 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32837 # When using ansi2knr, U may be empty or an underscore; expand it
32838 U=`sed -n 's/^U = //p' < "$mf"`
32839 # Find all dependency output files, they are included files with
32840 # $(DEPDIR) in their names. We invoke sed twice because it is the
32841 # simplest approach to changing $(DEPDIR) to its actual value in the
32842 # expansion.
32843 for file in `sed -n "
32844 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32845 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32846 # Make sure the directory exists.
32847 test -f "$dirpart/$file" && continue
32848 fdir=`$as_dirname -- "$file" ||
32849$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32850 X"$file" : 'X\(//\)[^/]' \| \
32851 X"$file" : 'X\(//\)$' \| \
32852 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32853$as_echo X"$file" |
32854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32855 s//\1/
32856 q
32857 }
32858 /^X\(\/\/\)[^/].*/{
32859 s//\1/
32860 q
32861 }
32862 /^X\(\/\/\)$/{
32863 s//\1/
32864 q
32865 }
32866 /^X\(\/\).*/{
32867 s//\1/
32868 q
32869 }
32870 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032871 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032872 # echo "creating $dirpart/$file"
32873 echo '# dummy' > "$dirpart/$file"
32874 done
32875 done
32876}
32877 ;;
32878 "libtool":C)
32879
32880 # See if we are running on zsh, and set the options which allow our
32881 # commands through without removal of \ escapes.
32882 if test -n "${ZSH_VERSION+set}" ; then
32883 setopt NO_GLOB_SUBST
32884 fi
32885
32886 cfgfile="${ofile}T"
32887 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32888 $RM "$cfgfile"
32889
32890 cat <<_LT_EOF >> "$cfgfile"
32891#! $SHELL
32892
32893# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32894# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32896# NOTE: Changes made to this file will be lost: look at ltmain.sh.
32897#
32898# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy932c9122009-11-19 13:57:03 +000032899# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032900# Written by Gordon Matzigkeit, 1996
32901#
32902# This file is part of GNU Libtool.
32903#
32904# GNU Libtool is free software; you can redistribute it and/or
32905# modify it under the terms of the GNU General Public License as
32906# published by the Free Software Foundation; either version 2 of
32907# the License, or (at your option) any later version.
32908#
32909# As a special exception to the GNU General Public License,
32910# if you distribute this file as part of a program or library that
32911# is built using GNU Libtool, you may include this file under the
32912# same distribution terms that you use for the rest of that program.
32913#
32914# GNU Libtool is distributed in the hope that it will be useful,
32915# but WITHOUT ANY WARRANTY; without even the implied warranty of
32916# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32917# GNU General Public License for more details.
32918#
32919# You should have received a copy of the GNU General Public License
32920# along with GNU Libtool; see the file COPYING. If not, a copy
32921# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32922# obtained by writing to the Free Software Foundation, Inc.,
32923# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32924
32925
32926# The names of the tagged configurations supported by this script.
32927available_tags="CXX "
32928
32929# ### BEGIN LIBTOOL CONFIG
32930
32931# A sed program that does not truncate output.
32932SED=$lt_SED
32933
32934# Sed that helps us avoid accidentally triggering echo(1) options like -n.
32935Xsed="\$SED -e 1s/^X//"
32936
32937# A grep program that handles long lines.
32938GREP=$lt_GREP
32939
32940# An ERE matcher.
32941EGREP=$lt_EGREP
32942
32943# A literal string matcher.
32944FGREP=$lt_FGREP
32945
cristy932c9122009-11-19 13:57:03 +000032946# Shell to use when invoking shell scripts.
32947SHELL=$lt_SHELL
32948
32949# An echo program that protects backslashes.
32950ECHO=$lt_ECHO
32951
cristy3ed852e2009-09-05 21:47:34 +000032952# Which release of libtool.m4 was used?
32953macro_version=$macro_version
32954macro_revision=$macro_revision
32955
32956# Assembler program.
cristy932c9122009-11-19 13:57:03 +000032957AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000032958
32959# DLL creation program.
cristy932c9122009-11-19 13:57:03 +000032960DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000032961
32962# Object dumper program.
cristy932c9122009-11-19 13:57:03 +000032963OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000032964
32965# Whether or not to build shared libraries.
32966build_libtool_libs=$enable_shared
32967
32968# Whether or not to build static libraries.
32969build_old_libs=$enable_static
32970
32971# What type of objects to build.
32972pic_mode=$pic_mode
32973
32974# Whether or not to optimize for fast installation.
32975fast_install=$enable_fast_install
32976
32977# The host system.
32978host_alias=$host_alias
32979host=$host
32980host_os=$host_os
32981
32982# The build system.
32983build_alias=$build_alias
32984build=$build
32985build_os=$build_os
32986
32987# A BSD- or MS-compatible name lister.
32988NM=$lt_NM
32989
32990# Whether we need soft or hard links.
32991LN_S=$lt_LN_S
32992
32993# What is the maximum length of a command?
32994max_cmd_len=$max_cmd_len
32995
32996# Object file suffix (normally "o").
32997objext=$ac_objext
32998
32999# Executable file suffix (normally "").
33000exeext=$exeext
33001
33002# whether the shell understands "unset".
33003lt_unset=$lt_unset
33004
33005# turn spaces into newlines.
33006SP2NL=$lt_lt_SP2NL
33007
33008# turn newlines into spaces.
33009NL2SP=$lt_lt_NL2SP
33010
cristy3ed852e2009-09-05 21:47:34 +000033011# Method to check whether dependent libraries are shared objects.
33012deplibs_check_method=$lt_deplibs_check_method
33013
33014# Command to use when deplibs_check_method == "file_magic".
33015file_magic_cmd=$lt_file_magic_cmd
33016
33017# The archiver.
33018AR=$lt_AR
33019AR_FLAGS=$lt_AR_FLAGS
33020
33021# A symbol stripping program.
33022STRIP=$lt_STRIP
33023
33024# Commands used to install an old-style archive.
33025RANLIB=$lt_RANLIB
33026old_postinstall_cmds=$lt_old_postinstall_cmds
33027old_postuninstall_cmds=$lt_old_postuninstall_cmds
33028
cristy932c9122009-11-19 13:57:03 +000033029# Whether to use a lock for old archive extraction.
33030lock_old_archive_extraction=$lock_old_archive_extraction
33031
cristy3ed852e2009-09-05 21:47:34 +000033032# A C compiler.
33033LTCC=$lt_CC
33034
33035# LTCC compiler flags.
33036LTCFLAGS=$lt_CFLAGS
33037
33038# Take the output of nm and produce a listing of raw symbols and C names.
33039global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33040
33041# Transform the output of nm in a proper C declaration.
33042global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33043
33044# Transform the output of nm in a C name address pair.
33045global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33046
33047# Transform the output of nm in a C name address pair when lib prefix is needed.
33048global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33049
33050# The name of the directory that contains temporary libtool files.
33051objdir=$objdir
33052
cristy3ed852e2009-09-05 21:47:34 +000033053# Used to examine libraries when file_magic_cmd begins with "file".
33054MAGIC_CMD=$MAGIC_CMD
33055
33056# Must we lock files when doing compilation?
33057need_locks=$lt_need_locks
33058
33059# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33060DSYMUTIL=$lt_DSYMUTIL
33061
33062# Tool to change global to local symbols on Mac OS X.
33063NMEDIT=$lt_NMEDIT
33064
33065# Tool to manipulate fat objects and archives on Mac OS X.
33066LIPO=$lt_LIPO
33067
33068# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33069OTOOL=$lt_OTOOL
33070
33071# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33072OTOOL64=$lt_OTOOL64
33073
33074# Old archive suffix (normally "a").
33075libext=$libext
33076
33077# Shared library suffix (normally ".so").
33078shrext_cmds=$lt_shrext_cmds
33079
33080# The commands to extract the exported symbol list from a shared archive.
33081extract_expsyms_cmds=$lt_extract_expsyms_cmds
33082
33083# Variables whose values should be saved in libtool wrapper scripts and
33084# restored at link time.
33085variables_saved_for_relink=$lt_variables_saved_for_relink
33086
33087# Do we need the "lib" prefix for modules?
33088need_lib_prefix=$need_lib_prefix
33089
33090# Do we need a version for libraries?
33091need_version=$need_version
33092
33093# Library versioning type.
33094version_type=$version_type
33095
33096# Shared library runtime path variable.
33097runpath_var=$runpath_var
33098
33099# Shared library path variable.
33100shlibpath_var=$shlibpath_var
33101
33102# Is shlibpath searched before the hard-coded library search path?
33103shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33104
33105# Format of library name prefix.
33106libname_spec=$lt_libname_spec
33107
33108# List of archive names. First name is the real one, the rest are links.
33109# The last name is the one that the linker finds with -lNAME
33110library_names_spec=$lt_library_names_spec
33111
33112# The coded name of the library, if different from the real name.
33113soname_spec=$lt_soname_spec
33114
cristy932c9122009-11-19 13:57:03 +000033115# Permission mode override for installation of shared libraries.
33116install_override_mode=$lt_install_override_mode
33117
cristy3ed852e2009-09-05 21:47:34 +000033118# Command to use after installation of a shared archive.
33119postinstall_cmds=$lt_postinstall_cmds
33120
33121# Command to use after uninstallation of a shared archive.
33122postuninstall_cmds=$lt_postuninstall_cmds
33123
33124# Commands used to finish a libtool library installation in a directory.
33125finish_cmds=$lt_finish_cmds
33126
33127# As "finish_cmds", except a single script fragment to be evaled but
33128# not shown.
33129finish_eval=$lt_finish_eval
33130
33131# Whether we should hardcode library paths into libraries.
33132hardcode_into_libs=$hardcode_into_libs
33133
33134# Compile-time system search path for libraries.
33135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33136
33137# Run-time system search path for libraries.
33138sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33139
33140# Whether dlopen is supported.
33141dlopen_support=$enable_dlopen
33142
33143# Whether dlopen of programs is supported.
33144dlopen_self=$enable_dlopen_self
33145
33146# Whether dlopen of statically linked programs is supported.
33147dlopen_self_static=$enable_dlopen_self_static
33148
33149# Commands to strip libraries.
33150old_striplib=$lt_old_striplib
33151striplib=$lt_striplib
33152
33153
33154# The linker used to build libraries.
33155LD=$lt_LD
33156
cristy932c9122009-11-19 13:57:03 +000033157# How to create reloadable object files.
33158reload_flag=$lt_reload_flag
33159reload_cmds=$lt_reload_cmds
33160
cristy3ed852e2009-09-05 21:47:34 +000033161# Commands used to build an old-style archive.
33162old_archive_cmds=$lt_old_archive_cmds
33163
33164# A language specific compiler.
33165CC=$lt_compiler
33166
33167# Is the compiler the GNU compiler?
33168with_gcc=$GCC
33169
33170# Compiler flag to turn off builtin functions.
33171no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33172
33173# How to pass a linker flag through the compiler.
33174wl=$lt_lt_prog_compiler_wl
33175
33176# Additional compiler flags for building library objects.
33177pic_flag=$lt_lt_prog_compiler_pic
33178
33179# Compiler flag to prevent dynamic linking.
33180link_static_flag=$lt_lt_prog_compiler_static
33181
33182# Does compiler simultaneously support -c and -o options?
33183compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33184
33185# Whether or not to add -lc for building shared libraries.
33186build_libtool_need_lc=$archive_cmds_need_lc
33187
33188# Whether or not to disallow shared libs when runtime libs are static.
33189allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33190
33191# Compiler flag to allow reflexive dlopens.
33192export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33193
33194# Compiler flag to generate shared objects directly from archives.
33195whole_archive_flag_spec=$lt_whole_archive_flag_spec
33196
33197# Whether the compiler copes with passing no objects directly.
33198compiler_needs_object=$lt_compiler_needs_object
33199
33200# Create an old-style archive from a shared archive.
33201old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33202
33203# Create a temporary old-style archive to link instead of a shared archive.
33204old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33205
33206# Commands used to build a shared archive.
33207archive_cmds=$lt_archive_cmds
33208archive_expsym_cmds=$lt_archive_expsym_cmds
33209
33210# Commands used to build a loadable module if different from building
33211# a shared archive.
33212module_cmds=$lt_module_cmds
33213module_expsym_cmds=$lt_module_expsym_cmds
33214
33215# Whether we are building with GNU ld or not.
33216with_gnu_ld=$lt_with_gnu_ld
33217
33218# Flag that allows shared libraries with undefined symbols to be built.
33219allow_undefined_flag=$lt_allow_undefined_flag
33220
33221# Flag that enforces no undefined symbols.
33222no_undefined_flag=$lt_no_undefined_flag
33223
33224# Flag to hardcode \$libdir into a binary during linking.
33225# This must work even if \$libdir does not exist
33226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33227
33228# If ld is used when linking, flag to hardcode \$libdir into a binary
33229# during linking. This must work even if \$libdir does not exist.
33230hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33231
33232# Whether we need a single "-rpath" flag with a separated argument.
33233hardcode_libdir_separator=$lt_hardcode_libdir_separator
33234
33235# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33236# DIR into the resulting binary.
33237hardcode_direct=$hardcode_direct
33238
33239# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33240# DIR into the resulting binary and the resulting library dependency is
33241# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33242# library is relocated.
33243hardcode_direct_absolute=$hardcode_direct_absolute
33244
33245# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33246# into the resulting binary.
33247hardcode_minus_L=$hardcode_minus_L
33248
33249# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33250# into the resulting binary.
33251hardcode_shlibpath_var=$hardcode_shlibpath_var
33252
33253# Set to "yes" if building a shared library automatically hardcodes DIR
33254# into the library and all subsequent libraries and executables linked
33255# against it.
33256hardcode_automatic=$hardcode_automatic
33257
33258# Set to yes if linker adds runtime paths of dependent libraries
33259# to runtime path list.
33260inherit_rpath=$inherit_rpath
33261
33262# Whether libtool must link a program against all its dependency libraries.
33263link_all_deplibs=$link_all_deplibs
33264
33265# Fix the shell variable \$srcfile for the compiler.
33266fix_srcfile_path=$lt_fix_srcfile_path
33267
33268# Set to "yes" if exported symbols are required.
33269always_export_symbols=$always_export_symbols
33270
33271# The commands to list exported symbols.
33272export_symbols_cmds=$lt_export_symbols_cmds
33273
33274# Symbols that should not be listed in the preloaded symbols.
33275exclude_expsyms=$lt_exclude_expsyms
33276
33277# Symbols that must always be exported.
33278include_expsyms=$lt_include_expsyms
33279
33280# Commands necessary for linking programs (against libraries) with templates.
33281prelink_cmds=$lt_prelink_cmds
33282
33283# Specify filename containing input files.
33284file_list_spec=$lt_file_list_spec
33285
33286# How to hardcode a shared library path into an executable.
33287hardcode_action=$hardcode_action
33288
33289# The directories searched by this compiler when creating a shared library.
33290compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33291
33292# Dependencies to place before and after the objects being linked to
33293# create a shared library.
33294predep_objects=$lt_predep_objects
33295postdep_objects=$lt_postdep_objects
33296predeps=$lt_predeps
33297postdeps=$lt_postdeps
33298
33299# The library search path used internally by the compiler when linking
33300# a shared library.
33301compiler_lib_search_path=$lt_compiler_lib_search_path
33302
33303# ### END LIBTOOL CONFIG
33304
33305_LT_EOF
33306
33307 case $host_os in
33308 aix3*)
33309 cat <<\_LT_EOF >> "$cfgfile"
33310# AIX sometimes has problems with the GCC collect2 program. For some
33311# reason, if we set the COLLECT_NAMES environment variable, the problems
33312# vanish in a puff of smoke.
33313if test "X${COLLECT_NAMES+set}" != Xset; then
33314 COLLECT_NAMES=
33315 export COLLECT_NAMES
33316fi
33317_LT_EOF
33318 ;;
33319 esac
33320
33321
33322ltmain="$ac_aux_dir/ltmain.sh"
33323
33324
33325 # We use sed instead of cat because bash on DJGPP gets confused if
33326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33327 # text mode, it properly converts lines to CR/LF. This bash problem
33328 # is reportedly fixed, but why not run on old versions too?
33329 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33330 || (rm -f "$cfgfile"; exit 1)
33331
33332 case $xsi_shell in
33333 yes)
33334 cat << \_LT_EOF >> "$cfgfile"
33335
33336# func_dirname file append nondir_replacement
33337# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33338# otherwise set result to NONDIR_REPLACEMENT.
33339func_dirname ()
33340{
33341 case ${1} in
33342 */*) func_dirname_result="${1%/*}${2}" ;;
33343 * ) func_dirname_result="${3}" ;;
33344 esac
33345}
33346
33347# func_basename file
33348func_basename ()
33349{
33350 func_basename_result="${1##*/}"
33351}
33352
33353# func_dirname_and_basename file append nondir_replacement
33354# perform func_basename and func_dirname in a single function
33355# call:
33356# dirname: Compute the dirname of FILE. If nonempty,
33357# add APPEND to the result, otherwise set result
33358# to NONDIR_REPLACEMENT.
33359# value returned in "$func_dirname_result"
33360# basename: Compute filename of FILE.
33361# value retuned in "$func_basename_result"
33362# Implementation must be kept synchronized with func_dirname
33363# and func_basename. For efficiency, we do not delegate to
33364# those functions but instead duplicate the functionality here.
33365func_dirname_and_basename ()
33366{
33367 case ${1} in
33368 */*) func_dirname_result="${1%/*}${2}" ;;
33369 * ) func_dirname_result="${3}" ;;
33370 esac
33371 func_basename_result="${1##*/}"
33372}
33373
33374# func_stripname prefix suffix name
33375# strip PREFIX and SUFFIX off of NAME.
33376# PREFIX and SUFFIX must not contain globbing or regex special
33377# characters, hashes, percent signs, but SUFFIX may contain a leading
33378# dot (in which case that matches only a dot).
33379func_stripname ()
33380{
33381 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33382 # positional parameters, so assign one to ordinary parameter first.
33383 func_stripname_result=${3}
33384 func_stripname_result=${func_stripname_result#"${1}"}
33385 func_stripname_result=${func_stripname_result%"${2}"}
33386}
33387
33388# func_opt_split
33389func_opt_split ()
33390{
33391 func_opt_split_opt=${1%%=*}
33392 func_opt_split_arg=${1#*=}
33393}
33394
33395# func_lo2o object
33396func_lo2o ()
33397{
33398 case ${1} in
33399 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33400 *) func_lo2o_result=${1} ;;
33401 esac
33402}
33403
33404# func_xform libobj-or-source
33405func_xform ()
33406{
33407 func_xform_result=${1%.*}.lo
33408}
33409
33410# func_arith arithmetic-term...
33411func_arith ()
33412{
33413 func_arith_result=$(( $* ))
33414}
33415
33416# func_len string
33417# STRING may not start with a hyphen.
33418func_len ()
33419{
33420 func_len_result=${#1}
33421}
33422
33423_LT_EOF
33424 ;;
33425 *) # Bourne compatible functions.
33426 cat << \_LT_EOF >> "$cfgfile"
33427
33428# func_dirname file append nondir_replacement
33429# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33430# otherwise set result to NONDIR_REPLACEMENT.
33431func_dirname ()
33432{
33433 # Extract subdirectory from the argument.
cristy932c9122009-11-19 13:57:03 +000033434 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033435 if test "X$func_dirname_result" = "X${1}"; then
33436 func_dirname_result="${3}"
33437 else
33438 func_dirname_result="$func_dirname_result${2}"
33439 fi
33440}
33441
33442# func_basename file
33443func_basename ()
33444{
cristy932c9122009-11-19 13:57:03 +000033445 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033446}
33447
33448
33449# func_stripname prefix suffix name
33450# strip PREFIX and SUFFIX off of NAME.
33451# PREFIX and SUFFIX must not contain globbing or regex special
33452# characters, hashes, percent signs, but SUFFIX may contain a leading
33453# dot (in which case that matches only a dot).
33454# func_strip_suffix prefix name
33455func_stripname ()
33456{
33457 case ${2} in
cristy932c9122009-11-19 13:57:03 +000033458 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33459 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033460 esac
33461}
33462
33463# sed scripts:
33464my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33465my_sed_long_arg='1s/^-[^=]*=//'
33466
33467# func_opt_split
33468func_opt_split ()
33469{
cristy932c9122009-11-19 13:57:03 +000033470 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33471 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033472}
33473
33474# func_lo2o object
33475func_lo2o ()
33476{
cristy932c9122009-11-19 13:57:03 +000033477 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033478}
33479
33480# func_xform libobj-or-source
33481func_xform ()
33482{
cristy932c9122009-11-19 13:57:03 +000033483 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033484}
33485
33486# func_arith arithmetic-term...
33487func_arith ()
33488{
33489 func_arith_result=`expr "$@"`
33490}
33491
33492# func_len string
33493# STRING may not start with a hyphen.
33494func_len ()
33495{
33496 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33497}
33498
33499_LT_EOF
33500esac
33501
33502case $lt_shell_append in
33503 yes)
33504 cat << \_LT_EOF >> "$cfgfile"
33505
33506# func_append var value
33507# Append VALUE to the end of shell variable VAR.
33508func_append ()
33509{
33510 eval "$1+=\$2"
33511}
33512_LT_EOF
33513 ;;
33514 *)
33515 cat << \_LT_EOF >> "$cfgfile"
33516
33517# func_append var value
33518# Append VALUE to the end of shell variable VAR.
33519func_append ()
33520{
33521 eval "$1=\$$1\$2"
33522}
33523
33524_LT_EOF
33525 ;;
33526 esac
33527
33528
33529 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33530 || (rm -f "$cfgfile"; exit 1)
33531
33532 mv -f "$cfgfile" "$ofile" ||
33533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33534 chmod +x "$ofile"
33535
33536
33537 cat <<_LT_EOF >> "$ofile"
33538
33539# ### BEGIN LIBTOOL TAG CONFIG: CXX
33540
33541# The linker used to build libraries.
33542LD=$lt_LD_CXX
33543
cristy932c9122009-11-19 13:57:03 +000033544# How to create reloadable object files.
33545reload_flag=$lt_reload_flag_CXX
33546reload_cmds=$lt_reload_cmds_CXX
33547
cristy3ed852e2009-09-05 21:47:34 +000033548# Commands used to build an old-style archive.
33549old_archive_cmds=$lt_old_archive_cmds_CXX
33550
33551# A language specific compiler.
33552CC=$lt_compiler_CXX
33553
33554# Is the compiler the GNU compiler?
33555with_gcc=$GCC_CXX
33556
33557# Compiler flag to turn off builtin functions.
33558no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33559
33560# How to pass a linker flag through the compiler.
33561wl=$lt_lt_prog_compiler_wl_CXX
33562
33563# Additional compiler flags for building library objects.
33564pic_flag=$lt_lt_prog_compiler_pic_CXX
33565
33566# Compiler flag to prevent dynamic linking.
33567link_static_flag=$lt_lt_prog_compiler_static_CXX
33568
33569# Does compiler simultaneously support -c and -o options?
33570compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33571
33572# Whether or not to add -lc for building shared libraries.
33573build_libtool_need_lc=$archive_cmds_need_lc_CXX
33574
33575# Whether or not to disallow shared libs when runtime libs are static.
33576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33577
33578# Compiler flag to allow reflexive dlopens.
33579export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33580
33581# Compiler flag to generate shared objects directly from archives.
33582whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33583
33584# Whether the compiler copes with passing no objects directly.
33585compiler_needs_object=$lt_compiler_needs_object_CXX
33586
33587# Create an old-style archive from a shared archive.
33588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33589
33590# Create a temporary old-style archive to link instead of a shared archive.
33591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33592
33593# Commands used to build a shared archive.
33594archive_cmds=$lt_archive_cmds_CXX
33595archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33596
33597# Commands used to build a loadable module if different from building
33598# a shared archive.
33599module_cmds=$lt_module_cmds_CXX
33600module_expsym_cmds=$lt_module_expsym_cmds_CXX
33601
33602# Whether we are building with GNU ld or not.
33603with_gnu_ld=$lt_with_gnu_ld_CXX
33604
33605# Flag that allows shared libraries with undefined symbols to be built.
33606allow_undefined_flag=$lt_allow_undefined_flag_CXX
33607
33608# Flag that enforces no undefined symbols.
33609no_undefined_flag=$lt_no_undefined_flag_CXX
33610
33611# Flag to hardcode \$libdir into a binary during linking.
33612# This must work even if \$libdir does not exist
33613hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33614
33615# If ld is used when linking, flag to hardcode \$libdir into a binary
33616# during linking. This must work even if \$libdir does not exist.
33617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33618
33619# Whether we need a single "-rpath" flag with a separated argument.
33620hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33621
33622# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33623# DIR into the resulting binary.
33624hardcode_direct=$hardcode_direct_CXX
33625
33626# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33627# DIR into the resulting binary and the resulting library dependency is
33628# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33629# library is relocated.
33630hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33631
33632# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33633# into the resulting binary.
33634hardcode_minus_L=$hardcode_minus_L_CXX
33635
33636# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33637# into the resulting binary.
33638hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33639
33640# Set to "yes" if building a shared library automatically hardcodes DIR
33641# into the library and all subsequent libraries and executables linked
33642# against it.
33643hardcode_automatic=$hardcode_automatic_CXX
33644
33645# Set to yes if linker adds runtime paths of dependent libraries
33646# to runtime path list.
33647inherit_rpath=$inherit_rpath_CXX
33648
33649# Whether libtool must link a program against all its dependency libraries.
33650link_all_deplibs=$link_all_deplibs_CXX
33651
33652# Fix the shell variable \$srcfile for the compiler.
33653fix_srcfile_path=$lt_fix_srcfile_path_CXX
33654
33655# Set to "yes" if exported symbols are required.
33656always_export_symbols=$always_export_symbols_CXX
33657
33658# The commands to list exported symbols.
33659export_symbols_cmds=$lt_export_symbols_cmds_CXX
33660
33661# Symbols that should not be listed in the preloaded symbols.
33662exclude_expsyms=$lt_exclude_expsyms_CXX
33663
33664# Symbols that must always be exported.
33665include_expsyms=$lt_include_expsyms_CXX
33666
33667# Commands necessary for linking programs (against libraries) with templates.
33668prelink_cmds=$lt_prelink_cmds_CXX
33669
33670# Specify filename containing input files.
33671file_list_spec=$lt_file_list_spec_CXX
33672
33673# How to hardcode a shared library path into an executable.
33674hardcode_action=$hardcode_action_CXX
33675
33676# The directories searched by this compiler when creating a shared library.
33677compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33678
33679# Dependencies to place before and after the objects being linked to
33680# create a shared library.
33681predep_objects=$lt_predep_objects_CXX
33682postdep_objects=$lt_postdep_objects_CXX
33683predeps=$lt_predeps_CXX
33684postdeps=$lt_postdeps_CXX
33685
33686# The library search path used internally by the compiler when linking
33687# a shared library.
33688compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33689
33690# ### END LIBTOOL TAG CONFIG: CXX
33691_LT_EOF
33692
33693 ;;
33694 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33695 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33696 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33697 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33698 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33699 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33700
33701 esac
33702done # for ac_tag
33703
33704
cristy8b350f62009-11-15 23:12:43 +000033705as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033706_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033707ac_clean_files=$ac_clean_files_save
33708
33709test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033710 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033711
33712
33713# configure is writing to config.log, and then calls config.status.
33714# config.status does its own redirection, appending to config.log.
33715# Unfortunately, on DOS this fails, as config.log is still kept open
33716# by configure, so config.status won't be able to write to it; its
33717# output is simply discarded. So we exec the FD to /dev/null,
33718# effectively closing config.log, so it can be properly (re)opened and
33719# appended to by config.status. When coming back to configure, we
33720# need to make the FD available again.
33721if test "$no_create" != yes; then
33722 ac_cs_success=:
33723 ac_config_status_args=
33724 test "$silent" = yes &&
33725 ac_config_status_args="$ac_config_status_args --quiet"
33726 exec 5>/dev/null
33727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33728 exec 5>>config.log
33729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33730 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033731 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033732fi
33733if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33736fi
33737
33738
33739rm -f magick-version
33740
33741result_ghostscript_font_dir='none'
33742if test "${ghostscript_font_dir}x" != 'x'; then
33743 result_ghostscript_font_dir=$ghostscript_font_dir
33744fi
33745
33746result_windows_font_dir='none'
33747if test "${windows_font_dir}x" != 'x'; then
33748 result_windows_font_dir=${windows_font_dir}
33749fi
33750
cristy8b350f62009-11-15 23:12:43 +000033751{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033752ImageMagick is configured as follows. Please verify that this configuration
33753matches your expectations.
33754
33755Host system type: $host
33756Build system type: $build
33757
33758 Option Value
33759-------------------------------------------------------------------------------
33760Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33761Static libraries --enable-static=$enable_static $libtool_build_static_libs
33762Module support --with-modules=$with_modules $with_modules
33763GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33764Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33765High Dynamic Range Imagery
33766 --enable-hdri=$enable_hdri $enable_hdri
33767
33768Delegate Configuration:
33769BZLIB --with-bzlib=$with_bzlib $have_bzlib
33770Autotrace --with-autotrace=$with_autotrace $have_autotrace
33771DJVU --with-djvu=$with_djvu $have_djvu
33772DPS --with-dps=$with_dps $have_dps
33773FFTW --with-fftw=$with_fftw $have_fftw
33774FlashPIX --with-fpx=$with_fpx $have_fpx
33775FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33776FreeType --with-freetype=$with_freetype $have_freetype
33777GhostPCL None $PCLDelegate ($PCLVersion)
33778GhostXPS None $XPSDelegate ($XPSVersion)
33779Ghostscript None $PSDelegate ($GSVersion)
33780Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33781Ghostscript lib --with-gslib=$with_gslib $have_gslib
33782Graphviz --with-gvc=$with_gvc $have_gvc
33783JBIG --with-jbig=$with_jbig $have_jbig
33784JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33785JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33786LCMS --with-lcms=$with_lcms $have_lcms
33787LQR --with-lqr=$with_lqr $have_lqr
33788Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33789OpenEXR --with-openexr=$with_openexr $have_openexr
33790PERL --with-perl=$with_perl $have_perl
33791PNG --with-png=$with_png $have_png
33792RSVG --with-rsvg=$with_rsvg $have_rsvg
33793TIFF --with-tiff=$with_tiff $have_tiff
33794Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33795WMF --with-wmf=$with_wmf $have_wmf
33796X11 --with-x=$with_x $have_x
33797XML --with-xml=$with_xml $have_xml
33798ZLIB --with-zlib=$with_zlib $have_zlib
33799
33800X11 Configuration:
33801 X_CFLAGS = $X_CFLAGS
33802 X_PRE_LIBS = $X_PRE_LIBS
33803 X_LIBS = $X_LIBS
33804 X_EXTRA_LIBS = $X_EXTRA_LIBS
33805
33806Options used to compile and link:
33807 PREFIX = $PREFIX_DIR
33808 EXEC-PREFIX = $EXEC_PREFIX_DIR
33809 VERSION = $PACKAGE_VERSION
33810 CC = $CC
33811 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033812 CPPFLAGS = $MAGICK_CPPFLAGS
33813 PCFLAGS = $MAGICK_PCFLAGS
33814 DEFS = $DEFS
33815 LDFLAGS = $LDFLAGS
33816 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33817 LIBS = $MAGICK_LIBS
33818 CXX = $CXX
33819 CXXFLAGS = $CXXFLAGS
33820" >&5
33821$as_echo "
33822ImageMagick is configured as follows. Please verify that this configuration
33823matches your expectations.
33824
33825Host system type: $host
33826Build system type: $build
33827
33828 Option Value
33829-------------------------------------------------------------------------------
33830Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33831Static libraries --enable-static=$enable_static $libtool_build_static_libs
33832Module support --with-modules=$with_modules $with_modules
33833GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33834Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33835High Dynamic Range Imagery
33836 --enable-hdri=$enable_hdri $enable_hdri
33837
33838Delegate Configuration:
33839BZLIB --with-bzlib=$with_bzlib $have_bzlib
33840Autotrace --with-autotrace=$with_autotrace $have_autotrace
33841DJVU --with-djvu=$with_djvu $have_djvu
33842DPS --with-dps=$with_dps $have_dps
33843FFTW --with-fftw=$with_fftw $have_fftw
33844FlashPIX --with-fpx=$with_fpx $have_fpx
33845FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33846FreeType --with-freetype=$with_freetype $have_freetype
33847GhostPCL None $PCLDelegate ($PCLVersion)
33848GhostXPS None $XPSDelegate ($XPSVersion)
33849Ghostscript None $PSDelegate ($GSVersion)
33850Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33851Ghostscript lib --with-gslib=$with_gslib $have_gslib
33852Graphviz --with-gvc=$with_gvc $have_gvc
33853JBIG --with-jbig=$with_jbig $have_jbig
33854JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33855JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33856LCMS --with-lcms=$with_lcms $have_lcms
33857LQR --with-lqr=$with_lqr $have_lqr
33858Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33859OpenEXR --with-openexr=$with_openexr $have_openexr
33860PERL --with-perl=$with_perl $have_perl
33861PNG --with-png=$with_png $have_png
33862RSVG --with-rsvg=$with_rsvg $have_rsvg
33863TIFF --with-tiff=$with_tiff $have_tiff
33864Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33865WMF --with-wmf=$with_wmf $have_wmf
33866X11 --with-x=$with_x $have_x
33867XML --with-xml=$with_xml $have_xml
33868ZLIB --with-zlib=$with_zlib $have_zlib
33869
33870X11 Configuration:
33871 X_CFLAGS = $X_CFLAGS
33872 X_PRE_LIBS = $X_PRE_LIBS
33873 X_LIBS = $X_LIBS
33874 X_EXTRA_LIBS = $X_EXTRA_LIBS
33875
33876Options used to compile and link:
33877 PREFIX = $PREFIX_DIR
33878 EXEC-PREFIX = $EXEC_PREFIX_DIR
33879 VERSION = $PACKAGE_VERSION
33880 CC = $CC
33881 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033882 CPPFLAGS = $MAGICK_CPPFLAGS
33883 PCFLAGS = $MAGICK_PCFLAGS
33884 DEFS = $DEFS
33885 LDFLAGS = $LDFLAGS
33886 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33887 LIBS = $MAGICK_LIBS
33888 CXX = $CXX
33889 CXXFLAGS = $CXXFLAGS
33890" >&6; }