blob: a56519c7f67f5c5a65378f8e59010a22c56995bb [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyf6fcb5d2010-09-24 01:19:13 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4.
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,
cristyf6fcb5d2010-09-24 01:19:13 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
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
cristyd0bd44a2010-09-24 12:38:11 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
cristyf6fcb5d2010-09-24 01:19:13 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +0000366# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000367as_fn_error ()
368{
cristyf6fcb5d2010-09-24 01:19:13 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +0000373 fi
cristyf6fcb5d2010-09-24 01:19:13 +0000374 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $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 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristyd0bd44a2010-09-24 12:38:11 +0000531
cristy73bd4a52010-10-05 11:24:23 +0000532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
cristyf6fcb5d2010-09-24 01:19:13 +0000689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000708PACKAGE_VERSION='6.6.4'
709PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000757MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000758MAGICK_LIBS
759MAGICK_LDFLAGS
760MAGICK_PCFLAGS
761MAGICK_CPPFLAGS
762MAGICK_CXXFLAGS
763MAGICK_CFLAGS
764MAGICK_DEP_LIBS
765MAGICK_LTDLDEPS
766MAGICK_LIBLTDL
767OSX_GCOV_LDFLAG
768DELEGATES
769MAGICKCORE_PATH
770PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000771WITH_PERL_DYNAMIC_FALSE
772WITH_PERL_DYNAMIC_TRUE
773WITH_PERL_STATIC_FALSE
774WITH_PERL_STATIC_TRUE
775WITH_PERL_FALSE
776WITH_PERL_TRUE
777PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000778GSVersion
779GSPSDevice
780GSPDFDevice
781GSMonoDevice
782GSEPSDevice
783GSColorDevice
784GSCMYKDevice
785GSAlphaDevice
786XPSVersion
787XPSCMYKDevice
788XPSColorDevice
789XPSMonoDevice
790PCLVersion
791PCLCMYKDevice
792PCLColorDevice
793PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000794ZIP_DELEGATE_FALSE
795ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796ZIP
cristy73bd4a52010-10-05 11:24:23 +0000797P7ZIP_DELEGATE_FALSE
798P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000800RPM_DELEGATE_FALSE
801RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802RPM
803PERL
804TAR
805ShowImageDelegate
806type_include_files
807ghostscript_font_dir
808windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000809dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000810PrintDelegate
811ZipDelegate
812XPSDelegate
813WWWDecodeDelegate
814WMFDecodeDelegate
cristy23f7a922010-10-11 00:27:48 +0000815WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000816UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817TXTDelegate
818SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000819RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000820RMDelegate
821RLEEncodeDelegate
822PSDelegate
823POVDelegate
824PGPDecodeDelegate
825PCLDelegate
826MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000827MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000828MPEGEncodeDelegate
829MPEGDecodeDelegate
830MANDelegate
831LaunchDelegate
832LZWEncodeDelegate
833LZWDecodeDelegate
834LPRDelegate
835LPDelegate
836ILBMEncodeDelegate
837ILBMDecodeDelegate
838HTMLDecodeDelegate
839HPGLDecodeDelegate
840HDRDecodeDelegate
841GnuplotDecodeDelegate
842MogrifyDelegate
843DisplayDelegate
844ConvertDelegate
845FIGDecodeDelegate
846EditorDelegate
847EchoDelegate
848DVIDecodeDelegate
849GVCDecodeDelegate
850DNGDecodeDelegate
851CatDelegate
852CGMDecodeDelegate
853BrowseDelegate
854BZIPDelegate
855BlenderDecodeDelegate
856AVIDecodeDelegate
857AutotraceDecodeDelegate
858SHARE_CONFIGURE_PATH
859SHARE_PATH
860DOCUMENTATION_PATH
861FILTER_PATH
862CODER_PATH
863CONFIGURE_PATH
864LIBRARY_PATH
865EXECUTABLE_PATH
866PERLMAINCC
867XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868XML_DELEGATE_FALSE
869XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000871WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872WMF_DELEGATE_FALSE
873WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000875TIFF_DELEGATE_FALSE
876TIFF_DELEGATE_TRUE
877CAIRO_DELEGATE_FALSE
878CAIRO_DELEGATE_TRUE
879RSVG_DELEGATE_FALSE
880RSVG_DELEGATE_TRUE
881CAIRO_SVG_LIBS
882CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000883RSVG_LIBS
884RSVG_CFLAGS
885PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000886PNG_DELEGATE_FALSE
887PNG_DELEGATE_TRUE
888OPENEXR_DELEGATE_FALSE
889OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000890OPENEXR_LIBS
891OPENEXR_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000892LQR_DELEGATE_FALSE
893LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894LQR_LIBS
895LQR_CFLAGS
896LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000897LCMS_DELEGATE_FALSE
898LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000899JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000900JP2_DELEGATE_FALSE
901JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000902JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000903JPEG_DELEGATE_FALSE
904JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000905JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000906JBIG_DELEGATE_FALSE
907JBIG_DELEGATE_TRUE
908GVC_DELEGATE_FALSE
909GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000910GVC_LIBS
911GVC_CFLAGS
912GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000913GS_DELEGATE_FALSE
914GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000915FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000916FREETYPE_DELEGATE_FALSE
917FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000919FONTCONFIG_DELEGATE_FALSE
920FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000921FONTCONFIG_LIBS
922FONTCONFIG_CFLAGS
923FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924FPX_DELEGATE_FALSE
925FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000926FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000927FFTW_DELEGATE_FALSE
928FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000930DJVU_DELEGATE_FALSE
931DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000932DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000933DPS_DELEGATE_FALSE
934DPS_DELEGATE_TRUE
935AUTOTRACE_DELEGATE_FALSE
936AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000937AUTOTRACE_LIBS
938AUTOTRACE_CFLAGS
939LIB_DL
940ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000941ZLIB_DELEGATE_FALSE
942ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000943XEXT_LIBS
944X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000945X11_DELEGATE_FALSE
946X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000947X_EXTRA_LIBS
948X_LIBS
949X_PRE_LIBS
950X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000951XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000952BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000953BZLIB_DELEGATE_FALSE
954BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955CCMALLOCDelegate
956UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000957HasUMEM_FALSE
958HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000959THREAD_LIBS
960GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000961WITH_MAGICK_PLUS_PLUS_FALSE
962WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000963OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000964MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000965POW_LIB
966LIBOBJS
967UINTPTR_T
968UINTMAX_T
969UINT64_T
970INT64_T
971UINT32_T
972INT32_T
973UINT16_T
974INT16_T
975UINT8_T
976INT8_T
977LIBRARY_EXTRA_CPPFLAGS
978MODULE_EXTRA_CPPFLAGS
979LIBSTDCLDFLAGS
980PERL_MAKE_OPTIONS
981QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000982MAINT
983MAINTAINER_MODE_FALSE
984MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000985MAGICK_HDRI
986DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000987WITH_LTDL_FALSE
988WITH_LTDL_TRUE
989WITH_MODULES_FALSE
990WITH_MODULES_TRUE
991WITH_SHARED_LIBS_FALSE
992WITH_SHARED_LIBS_TRUE
993LTDLOPEN
994LT_CONFIG_H
995CONVENIENCE_LTDL_FALSE
996CONVENIENCE_LTDL_TRUE
997INSTALL_LTDL_FALSE
998INSTALL_LTDL_TRUE
999ARGZ_H
1000sys_symbol_underscore
1001LIBADD_DL
1002LT_DLPREOPEN
1003LIBADD_DLD_LINK
1004LIBADD_SHL_LOAD
1005LIBADD_DLOPEN
1006LT_DLLOADERS
1007INCLTDL
1008LTDLINCL
1009LTDLDEPS
1010LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +00001011LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +00001012CXXCPP
1013OTOOL64
1014OTOOL
1015LIPO
1016NMEDIT
1017DSYMUTIL
1018lt_ECHO
1019RANLIB
1020AR
1021NM
1022ac_ct_DUMPBIN
1023DUMPBIN
1024LIBTOOL
1025OBJDUMP
1026DLLTOOL
1027AS
cristy3ed852e2009-09-05 21:47:34 +00001028LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +00001029CL_LIBS
cristy736173a2009-09-20 21:18:22 +00001030CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001031OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +00001032PTHREAD_CFLAGS
1033PTHREAD_LIBS
1034PTHREAD_CC
1035ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001036WinPathScript
cristy73bd4a52010-10-05 11:24:23 +00001037USING_CL_FALSE
1038USING_CL_TRUE
1039CYGWIN_BUILD_FALSE
1040CYGWIN_BUILD_TRUE
1041WIN32_NATIVE_BUILD_FALSE
1042WIN32_NATIVE_BUILD_TRUE
1043WINGDI32_DELEGATE_FALSE
1044WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +00001045GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001046PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +00001047LN_S
cristy3ed852e2009-09-05 21:47:34 +00001048LD
cristy73bd4a52010-10-05 11:24:23 +00001049FGREP
1050SED
1051am__fastdepCXX_FALSE
1052am__fastdepCXX_TRUE
1053CXXDEPMODE
cristy95646052009-11-28 23:05:30 +00001054ac_ct_CXX
1055CXXFLAGS
1056CXX
cristya0b81c32010-01-22 02:54:33 +00001057EGREP
1058GREP
1059CPP
cristy73bd4a52010-10-05 11:24:23 +00001060am__fastdepCC_FALSE
1061am__fastdepCC_TRUE
1062CCDEPMODE
1063AMDEPBACKSLASH
1064AMDEP_FALSE
1065AMDEP_TRUE
1066am__quote
1067am__include
1068DEPDIR
cristy3ed852e2009-09-05 21:47:34 +00001069OBJEXT
1070EXEEXT
1071ac_ct_CC
1072CPPFLAGS
1073LDFLAGS
1074CFLAGS
1075CC
1076DIRSEP
1077MAGICK_FILTER_MODULE_PATH
1078MAGICK_CONFIGURE_BUILD_PATH
1079MAGICK_CONFIGURE_SRC_PATH
1080MAGICK_CODER_MODULE_PATH
1081MAN_DIR
1082INFO_DIR
1083PERSISTINCLUDE_DIR
1084INCLUDE_DIR
1085LIB_DIR
1086LOCALSTATE_DIR
1087SHAREDSTATE_DIR
1088SYSCONF_DIR
1089DATA_DIR
1090LIBEXEC_DIR
1091SBIN_DIR
1092BIN_DIR
1093EXEC_PREFIX_DIR
1094PREFIX_DIR
1095CONFIG_STATUS_DEPENDENCIES
1096MAGICK_LIB_VERSION_NUMBER
1097MAGICK_LIB_VERSION_TEXT
1098MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001099AM_BACKSLASH
1100AM_DEFAULT_VERBOSITY
1101am__untar
1102am__tar
1103AMTAR
1104am__leading_dot
1105SET_MAKE
1106AWK
1107mkdir_p
1108MKDIR_P
1109INSTALL_STRIP_PROGRAM
1110STRIP
1111install_sh
1112MAKEINFO
1113AUTOHEADER
1114AUTOMAKE
1115AUTOCONF
1116ACLOCAL
1117VERSION
1118PACKAGE
1119CYGPATH_W
1120am__isrc
1121INSTALL_DATA
1122INSTALL_SCRIPT
1123INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001124PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001125PACKAGE_RELEASE_DATE
1126PACKAGE_LIB_VERSION_NUMBER
1127PACKAGE_LIB_VERSION
1128PACKAGE_CHANGE_DATE
1129PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001130MAGICK_LIBRARY_VERSION_INFO
1131MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001132MAGICK_LIBRARY_AGE
1133MAGICK_LIBRARY_REVISION
1134MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001135MAGICK_TARGET_OS
1136MAGICK_TARGET_VENDOR
1137MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001138target_os
1139target_vendor
1140target_cpu
1141target
1142host_os
1143host_vendor
1144host_cpu
1145host
1146build_os
1147build_vendor
1148build_cpu
1149build
1150CONFIGURE_ARGS
1151DISTCHECK_CONFIG_FLAGS
1152target_alias
1153host_alias
1154build_alias
1155LIBS
1156ECHO_T
1157ECHO_N
1158ECHO_C
1159DEFS
1160mandir
1161localedir
1162libdir
1163psdir
1164pdfdir
1165dvidir
1166htmldir
1167infodir
1168docdir
1169oldincludedir
1170includedir
1171localstatedir
1172sharedstatedir
1173sysconfdir
1174datadir
1175datarootdir
1176libexecdir
1177sbindir
1178bindir
1179program_transform_name
1180prefix
1181exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001182PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001183PACKAGE_BUGREPORT
1184PACKAGE_STRING
1185PACKAGE_VERSION
1186PACKAGE_TARNAME
1187PACKAGE_NAME
1188PATH_SEPARATOR
1189SHELL'
1190ac_subst_files=''
1191ac_user_opts='
1192enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001193enable_silent_rules
1194enable_dependency_tracking
1195with_gnu_ld
1196with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001197enable_bounds_checking
1198enable_osx_universal_binary
1199with_threads
1200enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001201enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001202enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001203enable_shared
1204enable_static
1205with_pic
1206enable_fast_install
1207enable_libtool_lock
1208with_included_ltdl
1209with_ltdl_include
1210with_ltdl_lib
1211enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001212with_modules
1213enable_delegate_build
1214enable_deprecated
1215enable_installed
1216enable_cipher
1217enable_embeddable
1218enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001219enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001220enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001221enable_ccmalloc
1222enable_efence
1223enable_prof
1224enable_gprof
1225enable_gcov
1226with_method_prefix
1227with_quantum_depth
1228with_cache
1229with_frozenpaths
1230with_magick_plus_plus
1231with_perl
1232with_perl_options
1233with_umem
1234with_libstdc
1235with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001236with_x
cristy3ed852e2009-09-05 21:47:34 +00001237with_zlib
1238with_autotrace
1239with_dps
1240with_djvu
cristy430a7312010-01-21 20:44:04 +00001241with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001242with_fftw
1243with_fpx
1244with_fontconfig
1245with_freetype
1246with_gslib
1247with_fontpath
1248with_gs_font_dir
1249with_gvc
1250with_jbig
1251with_jpeg
1252with_jp2
1253with_lcms
cristy71203402010-06-18 13:12:03 +00001254with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001255with_lqr
1256with_openexr
1257with_png
1258with_rsvg
1259with_tiff
1260with_windows_font_dir
1261with_wmf
1262with_xml
1263'
1264 ac_precious_vars='build_alias
1265host_alias
1266target_alias
1267CC
1268CFLAGS
1269LDFLAGS
1270LIBS
1271CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001272CPP
cristy3ed852e2009-09-05 21:47:34 +00001273CXX
1274CXXFLAGS
1275CCC
cristy73bd4a52010-10-05 11:24:23 +00001276PKG_CONFIG
1277CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001278XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001279AUTOTRACE_CFLAGS
1280AUTOTRACE_LIBS
1281FONTCONFIG_CFLAGS
1282FONTCONFIG_LIBS
1283GVC_CFLAGS
1284GVC_LIBS
1285LQR_CFLAGS
1286LQR_LIBS
1287OPENEXR_CFLAGS
1288OPENEXR_LIBS
1289RSVG_CFLAGS
1290RSVG_LIBS
1291CAIRO_SVG_CFLAGS
1292CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001293
1294
1295# Initialize some variables set by options.
1296ac_init_help=
1297ac_init_version=false
1298ac_unrecognized_opts=
1299ac_unrecognized_sep=
1300# The variables have the same names as the options, with
1301# dashes changed to underlines.
1302cache_file=/dev/null
1303exec_prefix=NONE
1304no_create=
1305no_recursion=
1306prefix=NONE
1307program_prefix=NONE
1308program_suffix=NONE
1309program_transform_name=s,x,x,
1310silent=
1311site=
1312srcdir=
1313verbose=
1314x_includes=NONE
1315x_libraries=NONE
1316
1317# Installation directory options.
1318# These are left unexpanded so users can "make install exec_prefix=/foo"
1319# and all the variables that are supposed to be based on exec_prefix
1320# by default will actually change.
1321# Use braces instead of parens because sh, perl, etc. also accept them.
1322# (The list follows the same order as the GNU Coding Standards.)
1323bindir='${exec_prefix}/bin'
1324sbindir='${exec_prefix}/sbin'
1325libexecdir='${exec_prefix}/libexec'
1326datarootdir='${prefix}/share'
1327datadir='${datarootdir}'
1328sysconfdir='${prefix}/etc'
1329sharedstatedir='${prefix}/com'
1330localstatedir='${prefix}/var'
1331includedir='${prefix}/include'
1332oldincludedir='/usr/include'
1333docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1334infodir='${datarootdir}/info'
1335htmldir='${docdir}'
1336dvidir='${docdir}'
1337pdfdir='${docdir}'
1338psdir='${docdir}'
1339libdir='${exec_prefix}/lib'
1340localedir='${datarootdir}/locale'
1341mandir='${datarootdir}/man'
1342
1343ac_prev=
1344ac_dashdash=
1345for ac_option
1346do
1347 # If the previous option needs an argument, assign it.
1348 if test -n "$ac_prev"; then
1349 eval $ac_prev=\$ac_option
1350 ac_prev=
1351 continue
1352 fi
1353
1354 case $ac_option in
1355 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1356 *) ac_optarg=yes ;;
1357 esac
1358
1359 # Accept the important Cygnus configure options, so we can diagnose typos.
1360
1361 case $ac_dashdash$ac_option in
1362 --)
1363 ac_dashdash=yes ;;
1364
1365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1366 ac_prev=bindir ;;
1367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368 bindir=$ac_optarg ;;
1369
1370 -build | --build | --buil | --bui | --bu)
1371 ac_prev=build_alias ;;
1372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373 build_alias=$ac_optarg ;;
1374
1375 -cache-file | --cache-file | --cache-fil | --cache-fi \
1376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377 ac_prev=cache_file ;;
1378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380 cache_file=$ac_optarg ;;
1381
1382 --config-cache | -C)
1383 cache_file=config.cache ;;
1384
1385 -datadir | --datadir | --datadi | --datad)
1386 ac_prev=datadir ;;
1387 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388 datadir=$ac_optarg ;;
1389
1390 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391 | --dataroo | --dataro | --datar)
1392 ac_prev=datarootdir ;;
1393 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395 datarootdir=$ac_optarg ;;
1396
1397 -disable-* | --disable-*)
1398 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001401 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1405 *"
1406"enable_$ac_useropt"
1407"*) ;;
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1410 esac
1411 eval enable_$ac_useropt=no ;;
1412
1413 -docdir | --docdir | --docdi | --doc | --do)
1414 ac_prev=docdir ;;
1415 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416 docdir=$ac_optarg ;;
1417
1418 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1419 ac_prev=dvidir ;;
1420 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421 dvidir=$ac_optarg ;;
1422
1423 -enable-* | --enable-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001427 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1431 *"
1432"enable_$ac_useropt"
1433"*) ;;
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1436 esac
1437 eval enable_$ac_useropt=\$ac_optarg ;;
1438
1439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441 | --exec | --exe | --ex)
1442 ac_prev=exec_prefix ;;
1443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445 | --exec=* | --exe=* | --ex=*)
1446 exec_prefix=$ac_optarg ;;
1447
1448 -gas | --gas | --ga | --g)
1449 # Obsolete; use --with-gas.
1450 with_gas=yes ;;
1451
1452 -help | --help | --hel | --he | -h)
1453 ac_init_help=long ;;
1454 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455 ac_init_help=recursive ;;
1456 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457 ac_init_help=short ;;
1458
1459 -host | --host | --hos | --ho)
1460 ac_prev=host_alias ;;
1461 -host=* | --host=* | --hos=* | --ho=*)
1462 host_alias=$ac_optarg ;;
1463
1464 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1465 ac_prev=htmldir ;;
1466 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1467 | --ht=*)
1468 htmldir=$ac_optarg ;;
1469
1470 -includedir | --includedir | --includedi | --included | --include \
1471 | --includ | --inclu | --incl | --inc)
1472 ac_prev=includedir ;;
1473 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474 | --includ=* | --inclu=* | --incl=* | --inc=*)
1475 includedir=$ac_optarg ;;
1476
1477 -infodir | --infodir | --infodi | --infod | --info | --inf)
1478 ac_prev=infodir ;;
1479 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480 infodir=$ac_optarg ;;
1481
1482 -libdir | --libdir | --libdi | --libd)
1483 ac_prev=libdir ;;
1484 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485 libdir=$ac_optarg ;;
1486
1487 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488 | --libexe | --libex | --libe)
1489 ac_prev=libexecdir ;;
1490 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491 | --libexe=* | --libex=* | --libe=*)
1492 libexecdir=$ac_optarg ;;
1493
1494 -localedir | --localedir | --localedi | --localed | --locale)
1495 ac_prev=localedir ;;
1496 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497 localedir=$ac_optarg ;;
1498
1499 -localstatedir | --localstatedir | --localstatedi | --localstated \
1500 | --localstate | --localstat | --localsta | --localst | --locals)
1501 ac_prev=localstatedir ;;
1502 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504 localstatedir=$ac_optarg ;;
1505
1506 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1507 ac_prev=mandir ;;
1508 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509 mandir=$ac_optarg ;;
1510
1511 -nfp | --nfp | --nf)
1512 # Obsolete; use --without-fp.
1513 with_fp=no ;;
1514
1515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516 | --no-cr | --no-c | -n)
1517 no_create=yes ;;
1518
1519 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1521 no_recursion=yes ;;
1522
1523 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525 | --oldin | --oldi | --old | --ol | --o)
1526 ac_prev=oldincludedir ;;
1527 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530 oldincludedir=$ac_optarg ;;
1531
1532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1533 ac_prev=prefix ;;
1534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535 prefix=$ac_optarg ;;
1536
1537 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538 | --program-pre | --program-pr | --program-p)
1539 ac_prev=program_prefix ;;
1540 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542 program_prefix=$ac_optarg ;;
1543
1544 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545 | --program-suf | --program-su | --program-s)
1546 ac_prev=program_suffix ;;
1547 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549 program_suffix=$ac_optarg ;;
1550
1551 -program-transform-name | --program-transform-name \
1552 | --program-transform-nam | --program-transform-na \
1553 | --program-transform-n | --program-transform- \
1554 | --program-transform | --program-transfor \
1555 | --program-transfo | --program-transf \
1556 | --program-trans | --program-tran \
1557 | --progr-tra | --program-tr | --program-t)
1558 ac_prev=program_transform_name ;;
1559 -program-transform-name=* | --program-transform-name=* \
1560 | --program-transform-nam=* | --program-transform-na=* \
1561 | --program-transform-n=* | --program-transform-=* \
1562 | --program-transform=* | --program-transfor=* \
1563 | --program-transfo=* | --program-transf=* \
1564 | --program-trans=* | --program-tran=* \
1565 | --progr-tra=* | --program-tr=* | --program-t=*)
1566 program_transform_name=$ac_optarg ;;
1567
1568 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1569 ac_prev=pdfdir ;;
1570 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571 pdfdir=$ac_optarg ;;
1572
1573 -psdir | --psdir | --psdi | --psd | --ps)
1574 ac_prev=psdir ;;
1575 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1576 psdir=$ac_optarg ;;
1577
1578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579 | -silent | --silent | --silen | --sile | --sil)
1580 silent=yes ;;
1581
1582 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1583 ac_prev=sbindir ;;
1584 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1585 | --sbi=* | --sb=*)
1586 sbindir=$ac_optarg ;;
1587
1588 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1589 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1590 | --sharedst | --shareds | --shared | --share | --shar \
1591 | --sha | --sh)
1592 ac_prev=sharedstatedir ;;
1593 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1594 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1595 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1596 | --sha=* | --sh=*)
1597 sharedstatedir=$ac_optarg ;;
1598
1599 -site | --site | --sit)
1600 ac_prev=site ;;
1601 -site=* | --site=* | --sit=*)
1602 site=$ac_optarg ;;
1603
1604 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1605 ac_prev=srcdir ;;
1606 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607 srcdir=$ac_optarg ;;
1608
1609 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1610 | --syscon | --sysco | --sysc | --sys | --sy)
1611 ac_prev=sysconfdir ;;
1612 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1613 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1614 sysconfdir=$ac_optarg ;;
1615
1616 -target | --target | --targe | --targ | --tar | --ta | --t)
1617 ac_prev=target_alias ;;
1618 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1619 target_alias=$ac_optarg ;;
1620
1621 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1622 verbose=yes ;;
1623
1624 -version | --version | --versio | --versi | --vers | -V)
1625 ac_init_version=: ;;
1626
1627 -with-* | --with-*)
1628 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1629 # Reject names that are not valid shell variable names.
1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001631 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001632 ac_useropt_orig=$ac_useropt
1633 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1634 case $ac_user_opts in
1635 *"
1636"with_$ac_useropt"
1637"*) ;;
1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1639 ac_unrecognized_sep=', ';;
1640 esac
1641 eval with_$ac_useropt=\$ac_optarg ;;
1642
1643 -without-* | --without-*)
1644 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1645 # Reject names that are not valid shell variable names.
1646 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001647 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001648 ac_useropt_orig=$ac_useropt
1649 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1650 case $ac_user_opts in
1651 *"
1652"with_$ac_useropt"
1653"*) ;;
1654 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1655 ac_unrecognized_sep=', ';;
1656 esac
1657 eval with_$ac_useropt=no ;;
1658
1659 --x)
1660 # Obsolete; use --with-x.
1661 with_x=yes ;;
1662
1663 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1664 | --x-incl | --x-inc | --x-in | --x-i)
1665 ac_prev=x_includes ;;
1666 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1667 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1668 x_includes=$ac_optarg ;;
1669
1670 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1671 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1672 ac_prev=x_libraries ;;
1673 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1674 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1675 x_libraries=$ac_optarg ;;
1676
cristyf6fcb5d2010-09-24 01:19:13 +00001677 -*) as_fn_error "unrecognized option: \`$ac_option'
1678Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001679 ;;
1680
1681 *=*)
1682 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1683 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001684 case $ac_envvar in #(
1685 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyf6fcb5d2010-09-24 01:19:13 +00001686 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001687 esac
cristy3ed852e2009-09-05 21:47:34 +00001688 eval $ac_envvar=\$ac_optarg
1689 export $ac_envvar ;;
1690
1691 *)
1692 # FIXME: should be removed in autoconf 3.0.
1693 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1694 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1695 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1696 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1697 ;;
1698
1699 esac
1700done
1701
1702if test -n "$ac_prev"; then
1703 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00001704 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001705fi
1706
1707if test -n "$ac_unrecognized_opts"; then
1708 case $enable_option_checking in
1709 no) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00001710 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001711 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1712 esac
1713fi
1714
1715# Check all directory arguments for consistency.
1716for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1717 datadir sysconfdir sharedstatedir localstatedir includedir \
1718 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1719 libdir localedir mandir
1720do
1721 eval ac_val=\$$ac_var
1722 # Remove trailing slashes.
1723 case $ac_val in
1724 */ )
1725 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1726 eval $ac_var=\$ac_val;;
1727 esac
1728 # Be sure to have absolute directory names.
1729 case $ac_val in
1730 [\\/$]* | ?:[\\/]* ) continue;;
1731 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1732 esac
cristyf6fcb5d2010-09-24 01:19:13 +00001733 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001734done
1735
1736# There might be people who depend on the old broken behavior: `$host'
1737# used to hold the argument of --host etc.
1738# FIXME: To remove some day.
1739build=$build_alias
1740host=$host_alias
1741target=$target_alias
1742
1743# FIXME: To remove some day.
1744if test "x$host_alias" != x; then
1745 if test "x$build_alias" = x; then
1746 cross_compiling=maybe
cristyf6fcb5d2010-09-24 01:19:13 +00001747 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1748 If a cross compiler is detected then cross compile mode will be used." >&2
cristy3ed852e2009-09-05 21:47:34 +00001749 elif test "x$build_alias" != "x$host_alias"; then
1750 cross_compiling=yes
1751 fi
1752fi
1753
1754ac_tool_prefix=
1755test -n "$host_alias" && ac_tool_prefix=$host_alias-
1756
1757test "$silent" = yes && exec 6>/dev/null
1758
1759
1760ac_pwd=`pwd` && test -n "$ac_pwd" &&
1761ac_ls_di=`ls -di .` &&
1762ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyf6fcb5d2010-09-24 01:19:13 +00001763 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001764test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyf6fcb5d2010-09-24 01:19:13 +00001765 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001766
1767
1768# Find the source files, if location was not specified.
1769if test -z "$srcdir"; then
1770 ac_srcdir_defaulted=yes
1771 # Try the directory containing this script, then the parent directory.
1772 ac_confdir=`$as_dirname -- "$as_myself" ||
1773$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1774 X"$as_myself" : 'X\(//\)[^/]' \| \
1775 X"$as_myself" : 'X\(//\)$' \| \
1776 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1777$as_echo X"$as_myself" |
1778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\/\)[^/].*/{
1783 s//\1/
1784 q
1785 }
1786 /^X\(\/\/\)$/{
1787 s//\1/
1788 q
1789 }
1790 /^X\(\/\).*/{
1791 s//\1/
1792 q
1793 }
1794 s/.*/./; q'`
1795 srcdir=$ac_confdir
1796 if test ! -r "$srcdir/$ac_unique_file"; then
1797 srcdir=..
1798 fi
1799else
1800 ac_srcdir_defaulted=no
1801fi
1802if test ! -r "$srcdir/$ac_unique_file"; then
1803 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyf6fcb5d2010-09-24 01:19:13 +00001804 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001805fi
1806ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1807ac_abs_confdir=`(
cristyf6fcb5d2010-09-24 01:19:13 +00001808 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001809 pwd)`
1810# When building in place, set srcdir=.
1811if test "$ac_abs_confdir" = "$ac_pwd"; then
1812 srcdir=.
1813fi
1814# Remove unnecessary trailing slashes from srcdir.
1815# Double slashes in file names in object file debugging info
1816# mess up M-x gdb in Emacs.
1817case $srcdir in
1818*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1819esac
1820for ac_var in $ac_precious_vars; do
1821 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1822 eval ac_env_${ac_var}_value=\$${ac_var}
1823 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1824 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1825done
1826
1827#
1828# Report the --help message.
1829#
1830if test "$ac_init_help" = "long"; then
1831 # Omit some internal or obsolete options to make the list less imposing.
1832 # This message is too long to be a string in the A/UX 3.1 sh.
1833 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001834\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001835
1836Usage: $0 [OPTION]... [VAR=VALUE]...
1837
1838To assign environment variables (e.g., CC, CFLAGS...), specify them as
1839VAR=VALUE. See below for descriptions of some of the useful variables.
1840
1841Defaults for the options are specified in brackets.
1842
1843Configuration:
1844 -h, --help display this help and exit
1845 --help=short display options specific to this package
1846 --help=recursive display the short help of all the included packages
1847 -V, --version display version information and exit
cristyf6fcb5d2010-09-24 01:19:13 +00001848 -q, --quiet, --silent do not print \`checking...' messages
cristy3ed852e2009-09-05 21:47:34 +00001849 --cache-file=FILE cache test results in FILE [disabled]
1850 -C, --config-cache alias for \`--cache-file=config.cache'
1851 -n, --no-create do not create output files
1852 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1853
1854Installation directories:
1855 --prefix=PREFIX install architecture-independent files in PREFIX
1856 [$ac_default_prefix]
1857 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1858 [PREFIX]
1859
1860By default, \`make install' will install all the files in
1861\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1862an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1863for instance \`--prefix=\$HOME'.
1864
1865For better control, use the options below.
1866
1867Fine tuning of the installation directories:
1868 --bindir=DIR user executables [EPREFIX/bin]
1869 --sbindir=DIR system admin executables [EPREFIX/sbin]
1870 --libexecdir=DIR program executables [EPREFIX/libexec]
1871 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1872 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1873 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1874 --libdir=DIR object code libraries [EPREFIX/lib]
1875 --includedir=DIR C header files [PREFIX/include]
1876 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1877 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1878 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1879 --infodir=DIR info documentation [DATAROOTDIR/info]
1880 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1881 --mandir=DIR man documentation [DATAROOTDIR/man]
1882 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1883 --htmldir=DIR html documentation [DOCDIR]
1884 --dvidir=DIR dvi documentation [DOCDIR]
1885 --pdfdir=DIR pdf documentation [DOCDIR]
1886 --psdir=DIR ps documentation [DOCDIR]
1887_ACEOF
1888
1889 cat <<\_ACEOF
1890
cristy73bd4a52010-10-05 11:24:23 +00001891Program names:
1892 --program-prefix=PREFIX prepend PREFIX to installed program names
1893 --program-suffix=SUFFIX append SUFFIX to installed program names
1894 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1895
cristy3ed852e2009-09-05 21:47:34 +00001896X features:
1897 --x-includes=DIR X include files are in DIR
1898 --x-libraries=DIR X library files are in DIR
1899
1900System types:
1901 --build=BUILD configure for building on BUILD [guessed]
1902 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1903 --target=TARGET configure for building compilers for TARGET [HOST]
1904_ACEOF
1905fi
1906
1907if test -n "$ac_init_help"; then
1908 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001909 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001910 esac
1911 cat <<\_ACEOF
1912
1913Optional Features:
1914 --disable-option-checking ignore unrecognized --enable/--with options
1915 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1916 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001917 --enable-silent-rules less verbose build output (undo: `make V=1')
1918 --disable-silent-rules verbose build output (undo: `make V=0')
1919 --disable-dependency-tracking speeds up one-time build
1920 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001921 --bounds-checking enable run-time bounds-checking
1922 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001923 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001924 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001925 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001926 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001927 --enable-shared[=PKGS] build shared libraries [default=yes]
1928 --enable-static[=PKGS] build static libraries [default=yes]
1929 --enable-fast-install[=PKGS]
1930 optimize for fast installation [default=yes]
1931 --disable-libtool-lock avoid locking (might break parallel builds)
1932 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001933 --enable-delegate-build look for delegate libraries in build directory
1934 --disable-deprecated exclude deprecated methods in MagickCore and
1935 MagickWand API's
1936 --disable-installed Formally install ImageMagick under PREFIX
1937 --disable-cipher disable enciphering and deciphering image pixels
1938 --enable-embeddable enable self-contained, embeddable,
1939 zero-configuration ImageMagick
1940 --enable-hdri accurately represent the wide range of intensity
1941 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001942 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001943 --enable-maintainer-mode enable make rules and dependencies not useful
1944 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001945 --enable-ccmalloc enable 'ccmalloc' memory debug support
1946 --enable-efence enable 'efence' memory debug support
1947 --enable-prof enable 'prof' profiling support
1948 --enable-gprof enable 'gprof' profiling support
1949 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001950 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001951
1952Optional Packages:
1953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001955 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1956 --with-dmalloc use dmalloc, as in
1957 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001958 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001959 --with-pic try to use only PIC/non-PIC objects [default=use
1960 both]
1961 --with-included-ltdl use the GNU ltdl sources included here
1962 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1963 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001964 --with-modules enable building dynamically loadable modules
1965 --with-method-prefix=PREFIX
1966 prefix MagickCore API methods
1967 --with-quantum-depth=DEPTH
1968 number of bits in a pixel quantum (default 16)
1969 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1970 memory)
1971 --with-frozenpaths freeze delegate paths
1972 --without-magick-plus-plus
1973 disable build/install of Magick++
1974 --with-perl enable build/install of PerlMagick
1975 --with-perl-options=OPTIONS
1976 options to pass on command-line when generating
1977 PerlMagick's build file
1978 --with-umem enable umem memory allocation library support
1979 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1980 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001981 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001982 --without-zlib disable ZLIB support
1983 --with-autotrace enable autotrace support
1984 --without-dps disable Display Postscript support
1985 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001986 --with-dejavu-font-dir=DIR
1987 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-fftw disable FFTW support
1989 --without-fpx disable FlashPIX support
1990 --without-fontconfig disable fontconfig support
1991 --without-freetype disable Freetype support
1992 --without-gslib enable Ghostscript library support
1993 --with-fontpath=DIR prepend to default font search path
1994 --with-gs-font-dir=DIR Ghostscript font directory
1995 --without-gvc disable GVC support
1996 --without-jbig disable JBIG support
1997 --without-jpeg disable JPEG support
1998 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001999 --without-lcms disable lcms (v1.1X) support
2000 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00002001 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-openexr disable OpenEXR support
2003 --without-png disable PNG support
2004 --without-rsvg disable RSVG support
2005 --without-tiff disable TIFF support
2006 --with-windows-font-dir=DIR
2007 directory containing MS-Windows fonts
2008 --without-wmf disable WMF support
2009 --without-xml disable XML support
2010
2011Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002018 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002019 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002020 CXX C++ compiler command
2021 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002022 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00002023 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002024 XMKMF Path to xmkmf, Makefile generator for X Window System
2025 AUTOTRACE_CFLAGS
2026 C compiler flags for AUTOTRACE, overriding pkg-config
2027 AUTOTRACE_LIBS
2028 linker flags for AUTOTRACE, overriding pkg-config
2029 FONTCONFIG_CFLAGS
2030 C compiler flags for FONTCONFIG, overriding pkg-config
2031 FONTCONFIG_LIBS
2032 linker flags for FONTCONFIG, overriding pkg-config
2033 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2034 GVC_LIBS linker flags for GVC, overriding pkg-config
2035 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2036 LQR_LIBS linker flags for LQR, overriding pkg-config
2037 OPENEXR_CFLAGS
2038 C compiler flags for OPENEXR, overriding pkg-config
2039 OPENEXR_LIBS
2040 linker flags for OPENEXR, overriding pkg-config
2041 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2042 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2043 CAIRO_SVG_CFLAGS
2044 C compiler flags for CAIRO_SVG, overriding pkg-config
2045 CAIRO_SVG_LIBS
2046 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002047
2048Use these variables to override the choices made by `configure' or to help
2049it to find libraries and programs with nonstandard names/locations.
2050
2051Report bugs to <http://www.imagemagick.org>.
2052_ACEOF
2053ac_status=$?
2054fi
2055
2056if test "$ac_init_help" = "recursive"; then
2057 # If there are subdirs, report their specific --help.
2058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2059 test -d "$ac_dir" ||
2060 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2061 continue
2062 ac_builddir=.
2063
2064case "$ac_dir" in
2065.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066*)
2067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2068 # A ".." for each directory in $ac_dir_suffix.
2069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2070 case $ac_top_builddir_sub in
2071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2073 esac ;;
2074esac
2075ac_abs_top_builddir=$ac_pwd
2076ac_abs_builddir=$ac_pwd$ac_dir_suffix
2077# for backward compatibility:
2078ac_top_builddir=$ac_top_build_prefix
2079
2080case $srcdir in
2081 .) # We are building in place.
2082 ac_srcdir=.
2083 ac_top_srcdir=$ac_top_builddir_sub
2084 ac_abs_top_srcdir=$ac_pwd ;;
2085 [\\/]* | ?:[\\/]* ) # Absolute name.
2086 ac_srcdir=$srcdir$ac_dir_suffix;
2087 ac_top_srcdir=$srcdir
2088 ac_abs_top_srcdir=$srcdir ;;
2089 *) # Relative name.
2090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2091 ac_top_srcdir=$ac_top_build_prefix$srcdir
2092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2093esac
2094ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2095
2096 cd "$ac_dir" || { ac_status=$?; continue; }
2097 # Check for guested configure.
2098 if test -f "$ac_srcdir/configure.gnu"; then
2099 echo &&
2100 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2101 elif test -f "$ac_srcdir/configure"; then
2102 echo &&
2103 $SHELL "$ac_srcdir/configure" --help=recursive
2104 else
2105 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2106 fi || ac_status=$?
2107 cd "$ac_pwd" || { ac_status=$?; break; }
2108 done
2109fi
2110
2111test -n "$ac_init_help" && exit $ac_status
2112if $ac_init_version; then
2113 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00002114ImageMagick configure 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +00002115generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002116
cristyf6fcb5d2010-09-24 01:19:13 +00002117Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002118This configure script is free software; the Free Software Foundation
2119gives unlimited permission to copy, distribute and modify it.
2120_ACEOF
2121 exit
2122fi
cristy8b350f62009-11-15 23:12:43 +00002123
2124## ------------------------ ##
2125## Autoconf initialization. ##
2126## ------------------------ ##
2127
2128# ac_fn_c_try_compile LINENO
2129# --------------------------
2130# Try to compile conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_compile ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext
2135 if { { ac_try="$ac_compile"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_compile") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_c_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest.$ac_objext; then :
2154 ac_retval=0
2155else
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=1
2160fi
2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002162 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002163
2164} # ac_fn_c_try_compile
2165
cristy95646052009-11-28 23:05:30 +00002166# ac_fn_c_try_cpp LINENO
2167# ----------------------
2168# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2169ac_fn_c_try_cpp ()
2170{
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if { { ac_try="$ac_cpp conftest.$ac_ext"
2173case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176esac
2177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178$as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2180 ac_status=$?
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2185 fi
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } >/dev/null && {
2188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 }; then :
2191 ac_retval=0
2192else
2193 $as_echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_retval=1
2197fi
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 as_fn_set_status $ac_retval
2200
2201} # ac_fn_c_try_cpp
2202
cristy8b350f62009-11-15 23:12:43 +00002203# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2204# -------------------------------------------------------
2205# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2206# the include files in INCLUDES and setting the cache variable VAR
2207# accordingly.
2208ac_fn_c_check_header_mongrel ()
2209{
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002211 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002214if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002215 $as_echo_n "(cached) " >&6
2216fi
2217eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220else
2221 # Is the header compilable?
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2223$as_echo_n "checking $2 usability... " >&6; }
2224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227#include <$2>
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 ac_header_compiler=yes
2231else
2232 ac_header_compiler=no
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2236$as_echo "$ac_header_compiler" >&6; }
2237
2238# Is the header present?
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2240$as_echo_n "checking $2 presence... " >&6; }
2241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243#include <$2>
2244_ACEOF
2245if ac_fn_c_try_cpp "$LINENO"; then :
2246 ac_header_preproc=yes
2247else
2248 ac_header_preproc=no
2249fi
2250rm -f conftest.err conftest.$ac_ext
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2252$as_echo "$ac_header_preproc" >&6; }
2253
2254# So? What about this header?
2255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2256 yes:no: )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2258$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2261 ;;
2262 no:yes:* )
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2264$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2266$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2268$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2270$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00002273( cat <<\_ASBOX
2274## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002275## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00002276## ----------------------------------------- ##
2277_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002278 ) | sed "s/^/$as_me: WARNING: /" >&2
2279 ;;
2280esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002283if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002284 $as_echo_n "(cached) " >&6
2285else
2286 eval "$3=\$ac_header_compiler"
2287fi
2288eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291fi
2292 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293
2294} # ac_fn_c_check_header_mongrel
2295
2296# ac_fn_c_try_run LINENO
2297# ----------------------
2298# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2299# that executables *can* be run.
2300ac_fn_c_try_run ()
2301{
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { { ac_try="$ac_link"
2304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
2308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309$as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_link") 2>&5
2311 ac_status=$?
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2314 { { case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319$as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_try") 2>&5
2321 ac_status=$?
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; }; }; then :
2324 ac_retval=0
2325else
2326 $as_echo "$as_me: program exited with status $ac_status" >&5
2327 $as_echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_retval=$ac_status
2331fi
2332 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002334 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002335
2336} # ac_fn_c_try_run
2337
2338# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2339# -------------------------------------------------------
2340# Tests whether HEADER exists and can be compiled using the include files in
2341# INCLUDES, setting the cache variable VAR accordingly.
2342ac_fn_c_check_header_compile ()
2343{
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002347if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002348 $as_echo_n "(cached) " >&6
2349else
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h. */
2352$4
2353#include <$2>
2354_ACEOF
2355if ac_fn_c_try_compile "$LINENO"; then :
2356 eval "$3=yes"
2357else
2358 eval "$3=no"
2359fi
2360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361fi
2362eval ac_res=\$$3
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364$as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366
2367} # ac_fn_c_check_header_compile
2368
cristya0b81c32010-01-22 02:54:33 +00002369# ac_fn_cxx_try_compile LINENO
2370# ----------------------------
2371# Try to compile conftest.$ac_ext, and return whether this succeeded.
2372ac_fn_cxx_try_compile ()
2373{
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext
2376 if { { ac_try="$ac_compile"
2377case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382$as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_compile") 2>conftest.err
2384 ac_status=$?
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2389 fi
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_cxx_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest.$ac_objext; then :
2395 ac_retval=0
2396else
2397 $as_echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_retval=1
2401fi
2402 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 as_fn_set_status $ac_retval
2404
2405} # ac_fn_cxx_try_compile
2406
cristy8b350f62009-11-15 23:12:43 +00002407# ac_fn_c_try_link LINENO
2408# -----------------------
2409# Try to link conftest.$ac_ext, and return whether this succeeded.
2410ac_fn_c_try_link ()
2411{
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 rm -f conftest.$ac_objext conftest$ac_exeext
2414 if { { ac_try="$ac_link"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420$as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_link") 2>conftest.err
2422 ac_status=$?
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2427 fi
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429 test $ac_status = 0; } && {
2430 test -z "$ac_c_werror_flag" ||
2431 test ! -s conftest.err
2432 } && test -s conftest$ac_exeext && {
2433 test "$cross_compiling" = yes ||
2434 $as_test_x conftest$ac_exeext
2435 }; then :
2436 ac_retval=0
2437else
2438 $as_echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 ac_retval=1
2442fi
2443 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2444 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2445 # interfere with the next link command; also delete a directory that is
2446 # left behind by Apple's compiler. We do this before executing the actions.
2447 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002449 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002450
2451} # ac_fn_c_try_link
2452
cristy73bd4a52010-10-05 11:24:23 +00002453# ac_fn_c_check_func LINENO FUNC VAR
2454# ----------------------------------
2455# Tests whether FUNC exists, setting the cache variable VAR accordingly
2456ac_fn_c_check_func ()
2457{
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460$as_echo_n "checking for $2... " >&6; }
2461if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h. */
2466/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2468#define $2 innocuous_$2
2469
2470/* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $2 (); below.
2472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473 <limits.h> exists even on freestanding compilers. */
2474
2475#ifdef __STDC__
2476# include <limits.h>
2477#else
2478# include <assert.h>
2479#endif
2480
2481#undef $2
2482
2483/* Override any GCC internal prototype to avoid an error.
2484 Use char because int might match the return type of a GCC
2485 builtin and then its argument prototype would still apply. */
2486#ifdef __cplusplus
2487extern "C"
2488#endif
2489char $2 ();
2490/* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493#if defined __stub_$2 || defined __stub___$2
2494choke me
2495#endif
2496
2497int
2498main ()
2499{
2500return $2 ();
2501 ;
2502 return 0;
2503}
2504_ACEOF
2505if ac_fn_c_try_link "$LINENO"; then :
2506 eval "$3=yes"
2507else
2508 eval "$3=no"
2509fi
2510rm -f core conftest.err conftest.$ac_objext \
2511 conftest$ac_exeext conftest.$ac_ext
2512fi
2513eval ac_res=\$$3
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515$as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2517
2518} # ac_fn_c_check_func
2519
2520# ac_fn_cxx_try_cpp LINENO
2521# ------------------------
2522# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523ac_fn_cxx_try_cpp ()
2524{
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 if { { ac_try="$ac_cpp conftest.$ac_ext"
2527case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532$as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534 ac_status=$?
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2539 fi
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } >/dev/null && {
2542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 }; then :
2545 ac_retval=0
2546else
2547 $as_echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_retval=1
2551fi
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 as_fn_set_status $ac_retval
2554
2555} # ac_fn_cxx_try_cpp
2556
2557# ac_fn_cxx_try_link LINENO
2558# -------------------------
2559# Try to link conftest.$ac_ext, and return whether this succeeded.
2560ac_fn_cxx_try_link ()
2561{
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 rm -f conftest.$ac_objext conftest$ac_exeext
2564 if { { ac_try="$ac_link"
2565case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570$as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_link") 2>conftest.err
2572 ac_status=$?
2573 if test -s conftest.err; then
2574 grep -v '^ *+' conftest.err >conftest.er1
2575 cat conftest.er1 >&5
2576 mv -f conftest.er1 conftest.err
2577 fi
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; } && {
2580 test -z "$ac_cxx_werror_flag" ||
2581 test ! -s conftest.err
2582 } && test -s conftest$ac_exeext && {
2583 test "$cross_compiling" = yes ||
2584 $as_test_x conftest$ac_exeext
2585 }; then :
2586 ac_retval=0
2587else
2588 $as_echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_retval=1
2592fi
2593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2595 # interfere with the next link command; also delete a directory that is
2596 # left behind by Apple's compiler. We do this before executing the actions.
2597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599 as_fn_set_status $ac_retval
2600
2601} # ac_fn_cxx_try_link
2602
2603# ac_fn_c_check_decl LINENO SYMBOL VAR
2604# ------------------------------------
2605# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2606ac_fn_c_check_decl ()
2607{
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2610$as_echo_n "checking whether $2 is declared... " >&6; }
2611if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615/* end confdefs.h. */
2616$4
2617int
2618main ()
2619{
2620#ifndef $2
2621 (void) $2;
2622#endif
2623
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628if ac_fn_c_try_compile "$LINENO"; then :
2629 eval "$3=yes"
2630else
2631 eval "$3=no"
2632fi
2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634fi
2635eval ac_res=\$$3
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637$as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2639
2640} # ac_fn_c_check_decl
2641
cristy8b350f62009-11-15 23:12:43 +00002642# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2643# -------------------------------------------
2644# Tests whether TYPE exists after having included INCLUDES, setting cache
2645# variable VAR accordingly.
2646ac_fn_c_check_type ()
2647{
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2650$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002651if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002652 $as_echo_n "(cached) " >&6
2653else
2654 eval "$3=no"
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656/* end confdefs.h. */
2657$4
2658int
2659main ()
2660{
2661if (sizeof ($2))
2662 return 0;
2663 ;
2664 return 0;
2665}
2666_ACEOF
2667if ac_fn_c_try_compile "$LINENO"; then :
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h. */
2670$4
2671int
2672main ()
2673{
2674if (sizeof (($2)))
2675 return 0;
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681
2682else
2683 eval "$3=yes"
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686fi
2687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688fi
2689eval ac_res=\$$3
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691$as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693
2694} # ac_fn_c_check_type
2695
cristy92703d82010-04-26 00:18:18 +00002696# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2697# ----------------------------------------------------
2698# Tries to find if the field MEMBER exists in type AGGR, after including
2699# INCLUDES, setting cache variable VAR accordingly.
2700ac_fn_c_check_member ()
2701{
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2704$as_echo_n "checking for $2.$3... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002705if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy92703d82010-04-26 00:18:18 +00002706 $as_echo_n "(cached) " >&6
2707else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */
2710$5
2711int
2712main ()
2713{
2714static $2 ac_aggr;
2715if (ac_aggr.$3)
2716return 0;
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$4=yes"
2723else
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
2726$5
2727int
2728main ()
2729{
2730static $2 ac_aggr;
2731if (sizeof ac_aggr.$3)
2732return 0;
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737if ac_fn_c_try_compile "$LINENO"; then :
2738 eval "$4=yes"
2739else
2740 eval "$4=no"
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743fi
2744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745fi
2746eval ac_res=\$$4
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748$as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2750
2751} # ac_fn_c_check_member
2752
cristy8b350f62009-11-15 23:12:43 +00002753# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2754# --------------------------------------------
2755# Tries to find the compile-time value of EXPR in a program that includes
2756# INCLUDES, setting VAR accordingly. Returns whether the value could be
2757# computed
2758ac_fn_c_compute_int ()
2759{
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 if test "$cross_compiling" = yes; then
2762 # Depending upon the size, compute the lo and hi bounds.
2763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h. */
2765$4
2766int
2767main ()
2768{
2769static int test_array [1 - 2 * !(($2) >= 0)];
2770test_array [0] = 0
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776if ac_fn_c_try_compile "$LINENO"; then :
2777 ac_lo=0 ac_mid=0
2778 while :; do
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780/* end confdefs.h. */
2781$4
2782int
2783main ()
2784{
2785static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2786test_array [0] = 0
2787
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792if ac_fn_c_try_compile "$LINENO"; then :
2793 ac_hi=$ac_mid; break
2794else
2795 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2796 if test $ac_lo -le $ac_mid; then
2797 ac_lo= ac_hi=
2798 break
2799 fi
2800 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804else
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806/* end confdefs.h. */
2807$4
2808int
2809main ()
2810{
2811static int test_array [1 - 2 * !(($2) < 0)];
2812test_array [0] = 0
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819 ac_hi=-1 ac_mid=-1
2820 while :; do
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h. */
2823$4
2824int
2825main ()
2826{
2827static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2828test_array [0] = 0
2829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_lo=$ac_mid; break
2836else
2837 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2838 if test $ac_mid -le $ac_hi; then
2839 ac_lo= ac_hi=
2840 break
2841 fi
2842 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2843fi
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 done
2846else
2847 ac_lo= ac_hi=
2848fi
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852# Binary search between lo and hi bounds.
2853while test "x$ac_lo" != "x$ac_hi"; do
2854 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856/* end confdefs.h. */
2857$4
2858int
2859main ()
2860{
2861static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2862test_array [0] = 0
2863
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868if ac_fn_c_try_compile "$LINENO"; then :
2869 ac_hi=$ac_mid
2870else
2871 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2872fi
2873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874done
2875case $ac_lo in #((
2876?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2877'') ac_retval=1 ;;
2878esac
2879 else
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h. */
2882$4
2883static long int longval () { return $2; }
2884static unsigned long int ulongval () { return $2; }
2885#include <stdio.h>
2886#include <stdlib.h>
2887int
2888main ()
2889{
2890
2891 FILE *f = fopen ("conftest.val", "w");
2892 if (! f)
2893 return 1;
2894 if (($2) < 0)
2895 {
2896 long int i = longval ();
2897 if (i != ($2))
2898 return 1;
2899 fprintf (f, "%ld", i);
2900 }
2901 else
2902 {
2903 unsigned long int i = ulongval ();
2904 if (i != ($2))
2905 return 1;
2906 fprintf (f, "%lu", i);
2907 }
2908 /* Do not output a trailing newline, as this causes \r\n confusion
2909 on some platforms. */
2910 return ferror (f) || fclose (f) != 0;
2911
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916if ac_fn_c_try_run "$LINENO"; then :
2917 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2918else
2919 ac_retval=1
2920fi
2921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2922 conftest.$ac_objext conftest.beam conftest.$ac_ext
2923rm -f conftest.val
2924
2925 fi
2926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002927 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002928
2929} # ac_fn_c_compute_int
2930
2931# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2932# ---------------------------------------------------------
2933# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2934# the include files in INCLUDES and setting the cache variable VAR
2935# accordingly.
2936ac_fn_cxx_check_header_mongrel ()
2937{
2938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2941$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002942if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002943 $as_echo_n "(cached) " >&6
2944fi
2945eval ac_res=\$$3
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947$as_echo "$ac_res" >&6; }
2948else
2949 # Is the header compilable?
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2951$as_echo_n "checking $2 usability... " >&6; }
2952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953/* end confdefs.h. */
2954$4
2955#include <$2>
2956_ACEOF
2957if ac_fn_cxx_try_compile "$LINENO"; then :
2958 ac_header_compiler=yes
2959else
2960 ac_header_compiler=no
2961fi
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2964$as_echo "$ac_header_compiler" >&6; }
2965
2966# Is the header present?
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2968$as_echo_n "checking $2 presence... " >&6; }
2969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h. */
2971#include <$2>
2972_ACEOF
2973if ac_fn_cxx_try_cpp "$LINENO"; then :
2974 ac_header_preproc=yes
2975else
2976 ac_header_preproc=no
2977fi
2978rm -f conftest.err conftest.$ac_ext
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2980$as_echo "$ac_header_preproc" >&6; }
2981
2982# So? What about this header?
2983case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2984 yes:no: )
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2986$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2989 ;;
2990 no:yes:* )
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2992$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2994$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2996$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2998$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3000$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003001( cat <<\_ASBOX
3002## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003003## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00003004## ----------------------------------------- ##
3005_ASBOX
cristy8b350f62009-11-15 23:12:43 +00003006 ) | sed "s/^/$as_me: WARNING: /" >&2
3007 ;;
3008esac
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3010$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00003011if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00003012 $as_echo_n "(cached) " >&6
3013else
3014 eval "$3=\$ac_header_compiler"
3015fi
3016eval ac_res=\$$3
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3018$as_echo "$ac_res" >&6; }
3019fi
3020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3021
3022} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003023cat >config.log <<_ACEOF
3024This file contains any messages produced by compilers while
3025running configure, to aid debugging if configure makes a mistake.
3026
cristy56225732010-09-04 23:44:25 +00003027It was created by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +00003028generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003029
3030 $ $0 $@
3031
3032_ACEOF
3033exec 5>>config.log
3034{
3035cat <<_ASUNAME
3036## --------- ##
3037## Platform. ##
3038## --------- ##
3039
3040hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3041uname -m = `(uname -m) 2>/dev/null || echo unknown`
3042uname -r = `(uname -r) 2>/dev/null || echo unknown`
3043uname -s = `(uname -s) 2>/dev/null || echo unknown`
3044uname -v = `(uname -v) 2>/dev/null || echo unknown`
3045
3046/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3047/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3048
3049/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3050/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3051/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3052/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3053/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3054/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3055/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3056
3057_ASUNAME
3058
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003064 $as_echo "PATH: $as_dir"
3065 done
cristy3ed852e2009-09-05 21:47:34 +00003066IFS=$as_save_IFS
3067
3068} >&5
3069
3070cat >&5 <<_ACEOF
3071
3072
3073## ----------- ##
3074## Core tests. ##
3075## ----------- ##
3076
3077_ACEOF
3078
3079
3080# Keep a trace of the command line.
3081# Strip out --no-create and --no-recursion so they do not pile up.
3082# Strip out --silent because we don't want to record it for future runs.
3083# Also quote any args containing shell meta-characters.
3084# Make two passes to allow for proper duplicate-argument suppression.
3085ac_configure_args=
3086ac_configure_args0=
3087ac_configure_args1=
3088ac_must_keep_next=false
3089for ac_pass in 1 2
3090do
3091 for ac_arg
3092 do
3093 case $ac_arg in
3094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3096 | -silent | --silent | --silen | --sile | --sil)
3097 continue ;;
3098 *\'*)
3099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3100 esac
3101 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003103 2)
cristy8b350f62009-11-15 23:12:43 +00003104 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003105 if test $ac_must_keep_next = true; then
3106 ac_must_keep_next=false # Got value, back to normal.
3107 else
3108 case $ac_arg in
3109 *=* | --config-cache | -C | -disable-* | --disable-* \
3110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3112 | -with-* | --with-* | -without-* | --without-* | --x)
3113 case "$ac_configure_args0 " in
3114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3115 esac
3116 ;;
3117 -* ) ac_must_keep_next=true ;;
3118 esac
3119 fi
cristy8b350f62009-11-15 23:12:43 +00003120 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003121 ;;
3122 esac
3123 done
3124done
cristy8b350f62009-11-15 23:12:43 +00003125{ ac_configure_args0=; unset ac_configure_args0;}
3126{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003127
3128# When interrupted or exit'd, cleanup temporary files, and complete
3129# config.log. We remove comments because anyway the quotes in there
3130# would cause problems or look ugly.
3131# WARNING: Use '\'' to represent an apostrophe within the trap.
3132# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3133trap 'exit_status=$?
3134 # Save into config.log some information that might help in debugging.
3135 {
3136 echo
3137
cristyf6fcb5d2010-09-24 01:19:13 +00003138 cat <<\_ASBOX
3139## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003140## Cache variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003141## ---------------- ##
3142_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003143 echo
3144 # The following way of writing the cache mishandles newlines in values,
3145(
3146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3147 eval ac_val=\$$ac_var
3148 case $ac_val in #(
3149 *${as_nl}*)
3150 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3153 esac
3154 case $ac_var in #(
3155 _ | IFS | as_nl) ;; #(
3156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003157 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003158 esac ;;
3159 esac
3160 done
3161 (set) 2>&1 |
3162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3163 *${as_nl}ac_space=\ *)
3164 sed -n \
3165 "s/'\''/'\''\\\\'\'''\''/g;
3166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3167 ;; #(
3168 *)
3169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3170 ;;
3171 esac |
3172 sort
3173)
3174 echo
3175
cristyf6fcb5d2010-09-24 01:19:13 +00003176 cat <<\_ASBOX
3177## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003178## Output variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003179## ----------------- ##
3180_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003181 echo
3182 for ac_var in $ac_subst_vars
3183 do
3184 eval ac_val=\$$ac_var
3185 case $ac_val in
3186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3187 esac
3188 $as_echo "$ac_var='\''$ac_val'\''"
3189 done | sort
3190 echo
3191
3192 if test -n "$ac_subst_files"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003193 cat <<\_ASBOX
3194## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003195## File substitutions. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003196## ------------------- ##
3197_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003198 echo
3199 for ac_var in $ac_subst_files
3200 do
3201 eval ac_val=\$$ac_var
3202 case $ac_val in
3203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 esac
3205 $as_echo "$ac_var='\''$ac_val'\''"
3206 done | sort
3207 echo
3208 fi
3209
3210 if test -s confdefs.h; then
cristyf6fcb5d2010-09-24 01:19:13 +00003211 cat <<\_ASBOX
3212## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003213## confdefs.h. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003214## ----------- ##
3215_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003216 echo
3217 cat confdefs.h
3218 echo
3219 fi
3220 test "$ac_signal" != 0 &&
3221 $as_echo "$as_me: caught signal $ac_signal"
3222 $as_echo "$as_me: exit $exit_status"
3223 } >&5
3224 rm -f core *.core core.conftest.* &&
3225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226 exit $exit_status
3227' 0
3228for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003230done
3231ac_signal=0
3232
3233# confdefs.h avoids OS command line length limits that DEFS can exceed.
3234rm -f -r conftest* confdefs.h
3235
cristy8b350f62009-11-15 23:12:43 +00003236$as_echo "/* confdefs.h */" > confdefs.h
3237
cristy3ed852e2009-09-05 21:47:34 +00003238# Predefined preprocessor variables.
3239
3240cat >>confdefs.h <<_ACEOF
3241#define PACKAGE_NAME "$PACKAGE_NAME"
3242_ACEOF
3243
cristy3ed852e2009-09-05 21:47:34 +00003244cat >>confdefs.h <<_ACEOF
3245#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246_ACEOF
3247
cristy3ed852e2009-09-05 21:47:34 +00003248cat >>confdefs.h <<_ACEOF
3249#define PACKAGE_VERSION "$PACKAGE_VERSION"
3250_ACEOF
3251
cristy3ed852e2009-09-05 21:47:34 +00003252cat >>confdefs.h <<_ACEOF
3253#define PACKAGE_STRING "$PACKAGE_STRING"
3254_ACEOF
3255
cristy3ed852e2009-09-05 21:47:34 +00003256cat >>confdefs.h <<_ACEOF
3257#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258_ACEOF
3259
cristy8b350f62009-11-15 23:12:43 +00003260cat >>confdefs.h <<_ACEOF
3261#define PACKAGE_URL "$PACKAGE_URL"
3262_ACEOF
3263
cristy3ed852e2009-09-05 21:47:34 +00003264
3265# Let the site file select an alternate cache file if it wants to.
3266# Prefer an explicitly selected file to automatically selected ones.
3267ac_site_file1=NONE
3268ac_site_file2=NONE
3269if test -n "$CONFIG_SITE"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003270 ac_site_file1=$CONFIG_SITE
cristy3ed852e2009-09-05 21:47:34 +00003271elif test "x$prefix" != xNONE; then
3272 ac_site_file1=$prefix/share/config.site
3273 ac_site_file2=$prefix/etc/config.site
3274else
3275 ac_site_file1=$ac_default_prefix/share/config.site
3276 ac_site_file2=$ac_default_prefix/etc/config.site
3277fi
3278for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3279do
3280 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003283$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3284 sed 's/^/| /' "$ac_site_file" >&5
cristyf6fcb5d2010-09-24 01:19:13 +00003285 . "$ac_site_file"
cristy3ed852e2009-09-05 21:47:34 +00003286 fi
3287done
3288
3289if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003290 # Some versions of bash will fail to source /dev/null (special files
3291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003294$as_echo "$as_me: loading cache $cache_file" >&6;}
3295 case $cache_file in
3296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3297 *) . "./$cache_file";;
3298 esac
3299 fi
3300else
cristy8b350f62009-11-15 23:12:43 +00003301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003302$as_echo "$as_me: creating cache $cache_file" >&6;}
3303 >$cache_file
3304fi
3305
cristycd4c5312009-11-22 01:19:08 +00003306as_fn_append ac_header_list " stdlib.h"
3307as_fn_append ac_header_list " unistd.h"
3308as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003309# Check that the precious variables saved in the cache have kept the same
3310# value.
3311ac_cache_corrupted=false
3312for ac_var in $ac_precious_vars; do
3313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3314 eval ac_new_set=\$ac_env_${ac_var}_set
3315 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3316 eval ac_new_val=\$ac_env_${ac_var}_value
3317 case $ac_old_set,$ac_new_set in
3318 set,)
cristy8b350f62009-11-15 23:12:43 +00003319 { $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 +00003320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3321 ac_cache_corrupted=: ;;
3322 ,set)
cristy8b350f62009-11-15 23:12:43 +00003323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3325 ac_cache_corrupted=: ;;
3326 ,);;
3327 *)
3328 if test "x$ac_old_val" != "x$ac_new_val"; then
3329 # differences in whitespace do not lead to failure.
3330 ac_old_val_w=`echo x $ac_old_val`
3331 ac_new_val_w=`echo x $ac_new_val`
3332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3335 ac_cache_corrupted=:
3336 else
cristy8b350f62009-11-15 23:12:43 +00003337 { $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 +00003338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3339 eval $ac_var=\$ac_old_val
3340 fi
cristy8b350f62009-11-15 23:12:43 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003342$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3345 fi;;
3346 esac
3347 # Pass precious variables to config.status.
3348 if test "$ac_new_set" = set; then
3349 case $ac_new_val in
3350 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3351 *) ac_arg=$ac_var=$ac_new_val ;;
3352 esac
3353 case " $ac_configure_args " in
3354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003355 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003356 esac
3357 fi
3358done
3359if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003364 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003365fi
cristy8b350f62009-11-15 23:12:43 +00003366## -------------------- ##
3367## Main body of script. ##
3368## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376
3377
3378ac_aux_dir=
3379for ac_dir in config "$srcdir"/config; do
cristyf6fcb5d2010-09-24 01:19:13 +00003380 for ac_t in install-sh install.sh shtool; do
3381 if test -f "$ac_dir/$ac_t"; then
3382 ac_aux_dir=$ac_dir
3383 ac_install_sh="$ac_aux_dir/$ac_t -c"
3384 break 2
3385 fi
3386 done
cristy3ed852e2009-09-05 21:47:34 +00003387done
3388if test -z "$ac_aux_dir"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003389 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003390fi
3391
3392# These three variables are undocumented and unsupported,
3393# and are intended to be withdrawn in a future Autoconf release.
3394# They can cause serious problems if a builder's source tree is in a directory
3395# whose full name contains unusual characters.
3396ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3397ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3398ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3399
3400
3401
3402
3403ac_config_headers="$ac_config_headers config/config.h"
3404
cristy73bd4a52010-10-05 11:24:23 +00003405ac_config_commands="$ac_config_commands magick/magick-config.h"
3406
cristy430a7312010-01-21 20:44:04 +00003407ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003408
3409
3410#
3411# Save initial user-tunable values
3412#
3413USER_LIBS=$LIBS
3414for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3415 eval isset=\${$var+set}
3416 if test "$isset" = 'set'; then
3417 eval val=$`echo $var`
3418 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3419 fi
3420done
3421
3422
3423CONFIGURE_ARGS="$0 ${ac_configure_args}"
3424
3425
3426# Source file containing package/library versioning information.
3427. ${srcdir}/version.sh
3428
cristy15a88782010-01-31 23:24:49 +00003429echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003430# Make sure we can run config.sub.
3431$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyf6fcb5d2010-09-24 01:19:13 +00003432 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003433
cristy8b350f62009-11-15 23:12:43 +00003434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003436if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003437 $as_echo_n "(cached) " >&6
3438else
3439 ac_build_alias=$build_alias
3440test "x$ac_build_alias" = x &&
3441 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3442test "x$ac_build_alias" = x &&
cristyf6fcb5d2010-09-24 01:19:13 +00003443 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003445 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003446
3447fi
cristy8b350f62009-11-15 23:12:43 +00003448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449$as_echo "$ac_cv_build" >&6; }
3450case $ac_cv_build in
3451*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003452*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003453esac
3454build=$ac_cv_build
3455ac_save_IFS=$IFS; IFS='-'
3456set x $ac_cv_build
3457shift
3458build_cpu=$1
3459build_vendor=$2
3460shift; shift
3461# Remember, the first character of IFS is used to create $*,
3462# except with old shells:
3463build_os=$*
3464IFS=$ac_save_IFS
3465case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3466
3467
cristy8b350f62009-11-15 23:12:43 +00003468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003470if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003471 $as_echo_n "(cached) " >&6
3472else
3473 if test "x$host_alias" = x; then
3474 ac_cv_host=$ac_cv_build
3475else
3476 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003477 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478fi
3479
3480fi
cristy8b350f62009-11-15 23:12:43 +00003481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "$ac_cv_host" >&6; }
3483case $ac_cv_host in
3484*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003485*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003486esac
3487host=$ac_cv_host
3488ac_save_IFS=$IFS; IFS='-'
3489set x $ac_cv_host
3490shift
3491host_cpu=$1
3492host_vendor=$2
3493shift; shift
3494# Remember, the first character of IFS is used to create $*,
3495# except with old shells:
3496host_os=$*
3497IFS=$ac_save_IFS
3498case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3499
3500
cristy8b350f62009-11-15 23:12:43 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003502$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003503if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003504 $as_echo_n "(cached) " >&6
3505else
3506 if test "x$target_alias" = x; then
3507 ac_cv_target=$ac_cv_host
3508else
3509 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003510 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003511fi
3512
3513fi
cristy8b350f62009-11-15 23:12:43 +00003514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003515$as_echo "$ac_cv_target" >&6; }
3516case $ac_cv_target in
3517*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003518*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003519esac
3520target=$ac_cv_target
3521ac_save_IFS=$IFS; IFS='-'
3522set x $ac_cv_target
3523shift
3524target_cpu=$1
3525target_vendor=$2
3526shift; shift
3527# Remember, the first character of IFS is used to create $*,
3528# except with old shells:
3529target_os=$*
3530IFS=$ac_save_IFS
3531case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3532
3533
3534# The aliases save the names the user supplied, while $host etc.
3535# will get canonicalized.
3536test -n "$target_alias" &&
3537 test "$program_prefix$program_suffix$program_transform_name" = \
3538 NONENONEs,x,x, &&
3539 program_prefix=${target_alias}-
3540
cristy837d6dc2010-02-27 01:16:57 +00003541
3542
3543
3544
cristy3225a072010-04-17 01:47:28 +00003545MAGICK_TARGET_CPU=$target_cpu
3546
3547
3548MAGICK_TARGET_VENDOR=$target_vendor
3549
3550
3551MAGICK_TARGET_OS=$target_os
3552
3553
cristy3ed852e2009-09-05 21:47:34 +00003554# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003555MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3556
3557MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3558
cristy3ed852e2009-09-05 21:47:34 +00003559
3560
3561# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3563$as_echo_n "checking whether build environment is sane... " >&6; }
3564# Just in case
3565sleep 1
3566echo timestamp > conftest.file
3567# Reject unsafe characters in $srcdir or the absolute working directory
3568# name. Accept space and tab only in the latter.
3569am_lf='
3570'
3571case `pwd` in
3572 *[\\\"\#\$\&\'\`$am_lf]*)
3573 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3574esac
3575case $srcdir in
3576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3577 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3578esac
cristy3ed852e2009-09-05 21:47:34 +00003579
cristy73bd4a52010-10-05 11:24:23 +00003580# Do `set' in a subshell so we don't clobber the current shell's
3581# arguments. Must try -L first in case configure is actually a
3582# symlink; some systems play weird games with the mod time of symlinks
3583# (eg FreeBSD returns the mod time of the symlink's containing
3584# directory).
3585if (
3586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3587 if test "$*" = "X"; then
3588 # -L didn't work.
3589 set X `ls -t "$srcdir/configure" conftest.file`
3590 fi
3591 rm -f conftest.file
3592 if test "$*" != "X $srcdir/configure conftest.file" \
3593 && test "$*" != "X conftest.file $srcdir/configure"; then
3594
3595 # If neither matched, then we have a broken ls. This can happen
3596 # if, for instance, CONFIG_SHELL is bash and it inherits a
3597 # broken ls alias from the environment. This has actually
3598 # happened. Such a system could not be considered "sane".
3599 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3600alias in your environment" "$LINENO" 5
3601 fi
3602
3603 test "$2" = conftest.file
3604 )
3605then
3606 # Ok.
3607 :
3608else
3609 as_fn_error "newly created file is older than distributed files!
3610Check your system clock" "$LINENO" 5
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613$as_echo "yes" >&6; }
3614
3615am__api_version='1.11'
3616
3617# Find a good install program. We prefer a C program (faster),
3618# so one script is as good as another. But avoid the broken or
3619# incompatible versions:
3620# SysV /etc/install, /usr/sbin/install
3621# SunOS /usr/etc/install
3622# IRIX /sbin/install
3623# AIX /bin/install
3624# AmigaOS /C/install, which installs bootblocks on floppy discs
3625# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3626# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3627# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3628# OS/2's system install, which has a completely different semantic
3629# ./install, which can be erroneously created by make from ./install.sh.
3630# Reject install programs that cannot install multiple files.
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3632$as_echo_n "checking for a BSD-compatible install... " >&6; }
3633if test -z "$INSTALL"; then
3634if test "${ac_cv_path_install+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 # Account for people who put trailing slashes in PATH elements.
3643case $as_dir/ in #((
3644 ./ | .// | /[cC]/* | \
3645 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3646 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3647 /usr/ucb/* ) ;;
3648 *)
3649 # OSF1 and SCO ODT 3.0 have their own names for install.
3650 # Don't use installbsd from OSF since it installs stuff as root
3651 # by default.
3652 for ac_prog in ginstall scoinst install; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3655 if test $ac_prog = install &&
3656 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3657 # AIX install. It has an incompatible calling convention.
3658 :
3659 elif test $ac_prog = install &&
3660 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3661 # program-specific install script used by HP pwplus--don't use.
3662 :
3663 else
3664 rm -rf conftest.one conftest.two conftest.dir
3665 echo one > conftest.one
3666 echo two > conftest.two
3667 mkdir conftest.dir
3668 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3669 test -s conftest.one && test -s conftest.two &&
3670 test -s conftest.dir/conftest.one &&
3671 test -s conftest.dir/conftest.two
3672 then
3673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3674 break 3
3675 fi
3676 fi
3677 fi
3678 done
3679 done
3680 ;;
3681esac
3682
3683 done
3684IFS=$as_save_IFS
3685
3686rm -rf conftest.one conftest.two conftest.dir
3687
3688fi
3689 if test "${ac_cv_path_install+set}" = set; then
3690 INSTALL=$ac_cv_path_install
3691 else
3692 # As a last resort, use the slow shell script. Don't cache a
3693 # value for INSTALL within a source directory, because that will
3694 # break other packages using the cache if that directory is
3695 # removed, or if the value is a relative name.
3696 INSTALL=$ac_install_sh
3697 fi
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3700$as_echo "$INSTALL" >&6; }
3701
3702# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3703# It thinks the first close brace ends the variable substitution.
3704test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3705
3706test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3707
3708test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3709
3710test "$program_prefix" != NONE &&
3711 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3712# Use a double $ so make ignores it.
3713test "$program_suffix" != NONE &&
3714 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3715# Double any \ or $.
3716# By default was `s,x,x', remove it if useless.
3717ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3718program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3719
3720# expand $ac_aux_dir to an absolute path
3721am_aux_dir=`cd $ac_aux_dir && pwd`
3722
3723if test x"${MISSING+set}" != xset; then
3724 case $am_aux_dir in
3725 *\ * | *\ *)
3726 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3727 *)
3728 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3729 esac
3730fi
3731# Use eval to expand $SHELL
3732if eval "$MISSING --run true"; then
3733 am_missing_run="$MISSING --run "
3734else
3735 am_missing_run=
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3737$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3738fi
3739
3740if test x"${install_sh}" != xset; then
3741 case $am_aux_dir in
3742 *\ * | *\ *)
3743 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3744 *)
3745 install_sh="\${SHELL} $am_aux_dir/install-sh"
3746 esac
3747fi
3748
3749# Installed binaries are usually stripped using `strip' when the user
3750# run `make install-strip'. However `strip' might not be the right
3751# tool to use in cross-compilation environments, therefore Automake
3752# will honor the `STRIP' environment variable to overrule this program.
3753if test "$cross_compiling" != no; then
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3756set dummy ${ac_tool_prefix}strip; ac_word=$2
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758$as_echo_n "checking for $ac_word... " >&6; }
3759if test "${ac_cv_prog_STRIP+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761else
3762 if test -n "$STRIP"; then
3763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764else
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776done
3777 done
3778IFS=$as_save_IFS
3779
3780fi
3781fi
3782STRIP=$ac_cv_prog_STRIP
3783if test -n "$STRIP"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3785$as_echo "$STRIP" >&6; }
3786else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788$as_echo "no" >&6; }
3789fi
3790
3791
3792fi
3793if test -z "$ac_cv_prog_STRIP"; then
3794 ac_ct_STRIP=$STRIP
3795 # Extract the first word of "strip", so it can be a program name with args.
3796set dummy strip; ac_word=$2
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
3799if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801else
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817 done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823if test -n "$ac_ct_STRIP"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3825$as_echo "$ac_ct_STRIP" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
3830
3831 if test "x$ac_ct_STRIP" = x; then
3832 STRIP=":"
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835yes:)
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838ac_tool_warned=yes ;;
3839esac
3840 STRIP=$ac_ct_STRIP
3841 fi
3842else
3843 STRIP="$ac_cv_prog_STRIP"
3844fi
3845
3846fi
3847INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3850$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3851if test -z "$MKDIR_P"; then
3852 if test "${ac_cv_path_mkdir+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in mkdir gmkdir; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3863 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3864 'mkdir (GNU coreutils) '* | \
3865 'mkdir (coreutils) '* | \
3866 'mkdir (fileutils) '4.1*)
3867 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3868 break 3;;
3869 esac
3870 done
3871 done
3872 done
3873IFS=$as_save_IFS
3874
3875fi
3876
3877 test -d ./--version && rmdir ./--version
3878 if test "${ac_cv_path_mkdir+set}" = set; then
3879 MKDIR_P="$ac_cv_path_mkdir -p"
3880 else
3881 # As a last resort, use the slow shell script. Don't cache a
3882 # value for MKDIR_P within a source directory, because that will
3883 # break other packages using the cache if that directory is
3884 # removed, or if the value is a relative name.
3885 MKDIR_P="$ac_install_sh -d"
3886 fi
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3889$as_echo "$MKDIR_P" >&6; }
3890
3891mkdir_p="$MKDIR_P"
3892case $mkdir_p in
3893 [\\/$]* | ?:[\\/]*) ;;
3894 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3895esac
3896
3897for ac_prog in gawk mawk nawk awk
3898do
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900set dummy $ac_prog; ac_word=$2
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902$as_echo_n "checking for $ac_word... " >&6; }
3903if test "${ac_cv_prog_AWK+set}" = set; then :
3904 $as_echo_n "(cached) " >&6
3905else
3906 if test -n "$AWK"; then
3907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_AWK="$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921 done
3922IFS=$as_save_IFS
3923
3924fi
3925fi
3926AWK=$ac_cv_prog_AWK
3927if test -n "$AWK"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3929$as_echo "$AWK" >&6; }
3930else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
3933fi
3934
3935
3936 test -n "$AWK" && break
3937done
3938
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3940$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3941set x ${MAKE-make}
3942ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3943if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3944 $as_echo_n "(cached) " >&6
3945else
3946 cat >conftest.make <<\_ACEOF
3947SHELL = /bin/sh
3948all:
3949 @echo '@@@%%%=$(MAKE)=@@@%%%'
3950_ACEOF
3951# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3952case `${MAKE-make} -f conftest.make 2>/dev/null` in
3953 *@@@%%%=?*=@@@%%%*)
3954 eval ac_cv_prog_make_${ac_make}_set=yes;;
3955 *)
3956 eval ac_cv_prog_make_${ac_make}_set=no;;
3957esac
3958rm -f conftest.make
3959fi
3960if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962$as_echo "yes" >&6; }
3963 SET_MAKE=
3964else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966$as_echo "no" >&6; }
3967 SET_MAKE="MAKE=${MAKE-make}"
3968fi
3969
3970rm -rf .tst 2>/dev/null
3971mkdir .tst 2>/dev/null
3972if test -d .tst; then
3973 am__leading_dot=.
3974else
3975 am__leading_dot=_
3976fi
3977rmdir .tst 2>/dev/null
3978
3979if test "`cd $srcdir && pwd`" != "`pwd`"; then
3980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3981 # is not polluted with repeated "-I."
3982 am__isrc=' -I$(srcdir)'
3983 # test to see if srcdir already configured
3984 if test -f $srcdir/config.status; then
3985 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3986 fi
3987fi
3988
3989# test whether we have cygpath
3990if test -z "$CYGPATH_W"; then
3991 if (cygpath --version) >/dev/null 2>/dev/null; then
3992 CYGPATH_W='cygpath -w'
3993 else
3994 CYGPATH_W=echo
3995 fi
3996fi
3997
3998
3999# Define the identity of the package.
4000 PACKAGE=$PACKAGE_NAME
4001 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4002
4003
4004# Some tools Automake needs.
4005
4006ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4007
4008
4009AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4010
4011
4012AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4013
4014
4015AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4016
4017
4018MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4019
4020# We need awk for the "check" target. The system "awk" is bad on
4021# some platforms.
4022# Always define AMTAR for backward compatibility.
4023
4024AMTAR=${AMTAR-"${am_missing_run}tar"}
4025
4026am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4027
4028
4029
4030
4031
cristy3ed852e2009-09-05 21:47:34 +00004032
4033# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004034# Check whether --enable-silent-rules was given.
4035if test "${enable_silent_rules+set}" = set; then :
4036 enableval=$enable_silent_rules;
4037fi
4038
4039case $enable_silent_rules in
4040yes) AM_DEFAULT_VERBOSITY=0;;
4041no) AM_DEFAULT_VERBOSITY=1;;
4042*) AM_DEFAULT_VERBOSITY=0;;
4043esac
4044AM_BACKSLASH='\'
4045
cristy3ed852e2009-09-05 21:47:34 +00004046
4047MAGICK_LIB_VERSION="0x"
4048if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4049 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4050fi
4051MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4052if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4053 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4054fi
4055MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4056if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4057 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4058fi
4059MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4060
4061
4062# Definition used to define MagickLibVersionText in version.h
4063MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4064
4065
4066# Definition used to define MagickLibVersionNumber in version.h
4067MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4068
4069
4070# Regenerate config.status if ChangeLog or version.sh is updated.
4071CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4072
4073
4074PERLMAINCC=$CC
4075
4076MAGICK_CFLAGS=''
4077MAGICK_CPPFLAGS=$CPPFLAGS_USER
4078MAGICK_PCFLAGS=$CPPFLAGS_USER
4079MAGICK_LDFLAGS=''
4080MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004081MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004082
4083#
4084# Evaluate shell variable equivalents to Makefile directory variables
4085#
4086if test "x$prefix" = xNONE; then
4087 prefix=$ac_default_prefix
4088fi
4089# Let make expand exec_prefix.
4090if test "x$exec_prefix" = xNONE; then
4091 exec_prefix='${prefix}'
4092fi
4093
4094#
4095eval "eval PREFIX_DIR=${prefix}"
4096
4097eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4098
4099eval "eval BIN_DIR=$bindir"
4100
4101eval "eval SBIN_DIR=$sbindir"
4102
4103eval "eval LIBEXEC_DIR=$libexecdir"
4104
4105eval "eval DATA_DIR=$datadir"
4106
4107eval "eval SYSCONF_DIR=$sysconfdir"
4108
4109eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4110
4111eval "eval LOCALSTATE_DIR=$localstatedir"
4112
4113eval "eval LIB_DIR=$libdir"
4114
4115eval "eval INCLUDE_DIR=$includedir"
4116
4117eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4118
4119eval "eval INFO_DIR=$infodir"
4120
4121eval "eval MAN_DIR=$mandir"
4122
4123
4124# Get full paths to source and build directories
4125srcdirfull="`cd $srcdir && pwd`"
4126builddir="`pwd`"
4127
4128#
4129# Compute variables useful for running uninstalled software.
4130#
4131MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4132MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4133MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4134MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4135DIRSEP=':'
4136case "${build_os}" in
4137 mingw* )
4138 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4139 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4140 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4141 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4142 DIRSEP=';'
4143 ;;
4144esac
4145case "${host_os}" in
4146 mingw* )
4147 DIRSEP=';'
4148 ;;
4149esac
4150
4151
4152
4153
4154
4155
cristya0b81c32010-01-22 02:54:33 +00004156
4157#
4158# Enable OS features.
4159#
cristy73bd4a52010-10-05 11:24:23 +00004160DEPDIR="${am__leading_dot}deps"
4161
4162ac_config_commands="$ac_config_commands depfiles"
4163
4164
4165am_make=${MAKE-make}
4166cat > confinc << 'END'
4167am__doit:
4168 @echo this is the am__doit target
4169.PHONY: am__doit
4170END
4171# If we don't find an include directive, just comment out the code.
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4173$as_echo_n "checking for style of include used by $am_make... " >&6; }
4174am__include="#"
4175am__quote=
4176_am_result=none
4177# First try GNU make style include.
4178echo "include confinc" > confmf
4179# Ignore all kinds of additional output from `make'.
4180case `$am_make -s -f confmf 2> /dev/null` in #(
4181*the\ am__doit\ target*)
4182 am__include=include
4183 am__quote=
4184 _am_result=GNU
4185 ;;
4186esac
4187# Now try BSD make style include.
4188if test "$am__include" = "#"; then
4189 echo '.include "confinc"' > confmf
4190 case `$am_make -s -f confmf 2> /dev/null` in #(
4191 *the\ am__doit\ target*)
4192 am__include=.include
4193 am__quote="\""
4194 _am_result=BSD
4195 ;;
4196 esac
4197fi
4198
4199
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4201$as_echo "$_am_result" >&6; }
4202rm -f confinc confmf
4203
4204# Check whether --enable-dependency-tracking was given.
4205if test "${enable_dependency_tracking+set}" = set; then :
4206 enableval=$enable_dependency_tracking;
4207fi
4208
4209if test "x$enable_dependency_tracking" != xno; then
4210 am_depcomp="$ac_aux_dir/depcomp"
4211 AMDEPBACKSLASH='\'
4212fi
4213 if test "x$enable_dependency_tracking" != xno; then
4214 AMDEP_TRUE=
4215 AMDEP_FALSE='#'
4216else
4217 AMDEP_TRUE='#'
4218 AMDEP_FALSE=
4219fi
4220
4221
cristy3ed852e2009-09-05 21:47:34 +00004222ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227if test -n "$ac_tool_prefix"; then
4228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4229set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004231$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004232if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004233 $as_echo_n "(cached) " >&6
4234else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004247 break 2
4248 fi
4249done
cristy8b350f62009-11-15 23:12:43 +00004250 done
cristy3ed852e2009-09-05 21:47:34 +00004251IFS=$as_save_IFS
4252
4253fi
4254fi
4255CC=$ac_cv_prog_CC
4256if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004258$as_echo "$CC" >&6; }
4259else
cristy8b350f62009-11-15 23:12:43 +00004260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004261$as_echo "no" >&6; }
4262fi
4263
4264
4265fi
4266if test -z "$ac_cv_prog_CC"; then
4267 ac_ct_CC=$CC
4268 # Extract the first word of "gcc", so it can be a program name with args.
4269set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004271$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004273 $as_echo_n "(cached) " >&6
4274else
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004287 break 2
4288 fi
4289done
cristy8b350f62009-11-15 23:12:43 +00004290 done
cristy3ed852e2009-09-05 21:47:34 +00004291IFS=$as_save_IFS
4292
4293fi
4294fi
4295ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004298$as_echo "$ac_ct_CC" >&6; }
4299else
cristy8b350f62009-11-15 23:12:43 +00004300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004301$as_echo "no" >&6; }
4302fi
4303
4304 if test "x$ac_ct_CC" = x; then
4305 CC=""
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 CC=$ac_ct_CC
4314 fi
4315else
4316 CC="$ac_cv_prog_CC"
4317fi
4318
4319if test -z "$CC"; then
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4322set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004325if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004326 $as_echo_n "(cached) " >&6
4327else
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340 break 2
4341 fi
4342done
cristy8b350f62009-11-15 23:12:43 +00004343 done
cristy3ed852e2009-09-05 21:47:34 +00004344IFS=$as_save_IFS
4345
4346fi
4347fi
4348CC=$ac_cv_prog_CC
4349if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo "$CC" >&6; }
4352else
cristy8b350f62009-11-15 23:12:43 +00004353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354$as_echo "no" >&6; }
4355fi
4356
4357
4358 fi
4359fi
4360if test -z "$CC"; then
4361 # Extract the first word of "cc", so it can be a program name with args.
4362set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004365if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004366 $as_echo_n "(cached) " >&6
4367else
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4370else
4371 ac_prog_rejected=no
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4380 ac_prog_rejected=yes
4381 continue
4382 fi
4383 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004385 break 2
4386 fi
4387done
cristy8b350f62009-11-15 23:12:43 +00004388 done
cristy3ed852e2009-09-05 21:47:34 +00004389IFS=$as_save_IFS
4390
4391if test $ac_prog_rejected = yes; then
4392 # We found a bogon in the path, so make sure we never use it.
4393 set dummy $ac_cv_prog_CC
4394 shift
4395 if test $# != 0; then
4396 # We chose a different compiler from the bogus one.
4397 # However, it has the same basename, so the bogon will be chosen
4398 # first if we set CC to just the basename; use the full file name.
4399 shift
4400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4401 fi
4402fi
4403fi
4404fi
4405CC=$ac_cv_prog_CC
4406if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo "$CC" >&6; }
4409else
cristy8b350f62009-11-15 23:12:43 +00004410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004411$as_echo "no" >&6; }
4412fi
4413
4414
4415fi
4416if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4418 for ac_prog in cl.exe
4419 do
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004423$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004424if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004425 $as_echo_n "(cached) " >&6
4426else
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439 break 2
4440 fi
4441done
cristy8b350f62009-11-15 23:12:43 +00004442 done
cristy3ed852e2009-09-05 21:47:34 +00004443IFS=$as_save_IFS
4444
4445fi
4446fi
4447CC=$ac_cv_prog_CC
4448if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450$as_echo "$CC" >&6; }
4451else
cristy8b350f62009-11-15 23:12:43 +00004452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453$as_echo "no" >&6; }
4454fi
4455
4456
4457 test -n "$CC" && break
4458 done
4459fi
4460if test -z "$CC"; then
4461 ac_ct_CC=$CC
4462 for ac_prog in cl.exe
4463do
4464 # Extract the first word of "$ac_prog", so it can be a program name with args.
4465set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004469 $as_echo_n "(cached) " >&6
4470else
4471 if test -n "$ac_ct_CC"; then
4472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483 break 2
4484 fi
4485done
cristy8b350f62009-11-15 23:12:43 +00004486 done
cristy3ed852e2009-09-05 21:47:34 +00004487IFS=$as_save_IFS
4488
4489fi
4490fi
4491ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004494$as_echo "$ac_ct_CC" >&6; }
4495else
cristy8b350f62009-11-15 23:12:43 +00004496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo "no" >&6; }
4498fi
4499
4500
4501 test -n "$ac_ct_CC" && break
4502done
4503
4504 if test "x$ac_ct_CC" = x; then
4505 CC=""
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508yes:)
cristy8b350f62009-11-15 23:12:43 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511ac_tool_warned=yes ;;
4512esac
4513 CC=$ac_ct_CC
4514 fi
4515fi
4516
4517fi
4518
4519
cristy8b350f62009-11-15 23:12:43 +00004520test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004522as_fn_error "no acceptable C compiler found in \$PATH
4523See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004524
4525# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527set X $ac_compile
4528ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004529for ac_option in --version -v -V -qversion; do
4530 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
cristy8b350f62009-11-15 23:12:43 +00004535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536$as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004538 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004539 if test -s conftest.err; then
4540 sed '10a\
4541... rest of stderr output deleted ...
4542 10q' conftest.err >conftest.er1
4543 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004544 fi
cristycd4c5312009-11-22 01:19:08 +00004545 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }
4548done
cristy3ed852e2009-09-05 21:47:34 +00004549
cristy8b350f62009-11-15 23:12:43 +00004550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004551/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004552
cristy3ed852e2009-09-05 21:47:34 +00004553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004562ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004563# Try to create an executable without -o first, disregard a.out.
4564# It will help us diagnose broken compilers, and finding out an intuition
4565# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4567$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004568ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4569
4570# The possible output files:
4571ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4572
4573ac_rmfiles=
4574for ac_file in $ac_files
4575do
4576 case $ac_file in
4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4579 esac
4580done
4581rm -f $ac_rmfiles
4582
cristy8b350f62009-11-15 23:12:43 +00004583if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
cristy8b350f62009-11-15 23:12:43 +00004588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004590 (eval "$ac_link_default") 2>&5
4591 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4595# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4596# in a Makefile. We should not override ac_cv_exeext if it was cached,
4597# so that the user can short-circuit this test for compilers unknown to
4598# Autoconf.
4599for ac_file in $ac_files ''
4600do
4601 test -f "$ac_file" || continue
4602 case $ac_file in
4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4604 ;;
4605 [ab].out )
4606 # We found the default executable, but exeext='' is most
4607 # certainly right.
4608 break;;
4609 *.* )
cristy8b350f62009-11-15 23:12:43 +00004610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004611 then :; else
4612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4613 fi
4614 # We set ac_cv_exeext here because the later test for it is not
4615 # safe: cross compilers may not add the suffix if given an `-o'
4616 # argument, so we may need to know it at that point already.
4617 # Even if this section looks crufty: it has the advantage of
4618 # actually working.
4619 break;;
4620 * )
4621 break;;
4622 esac
4623done
4624test "$ac_cv_exeext" = no && ac_cv_exeext=
4625
4626else
4627 ac_file=''
4628fi
cristy8b350f62009-11-15 23:12:43 +00004629if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
4632$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004633sed 's/^/| /' conftest.$ac_ext >&5
4634
cristy8b350f62009-11-15 23:12:43 +00004635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004637{ as_fn_set_status 77
4638as_fn_error "C compiler cannot create executables
4639See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004640else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4642$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004643fi
cristycd4c5312009-11-22 01:19:08 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4645$as_echo_n "checking for C compiler default output file name... " >&6; }
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4647$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004648ac_exeext=$ac_cv_exeext
4649
cristycd4c5312009-11-22 01:19:08 +00004650rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004651ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004653$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004654if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004655case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658esac
cristy8b350f62009-11-15 23:12:43 +00004659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004661 (eval "$ac_link") 2>&5
4662 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004665 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4666# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4667# work properly (i.e., refer to `conftest.exe'), while it won't with
4668# `rm'.
4669for ac_file in conftest.exe conftest conftest.*; do
4670 test -f "$ac_file" || continue
4671 case $ac_file in
4672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4674 break;;
4675 * ) break;;
4676 esac
4677done
4678else
cristy8b350f62009-11-15 23:12:43 +00004679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004681as_fn_error "cannot compute suffix of executables: cannot compile and link
4682See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004683fi
cristycd4c5312009-11-22 01:19:08 +00004684rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "$ac_cv_exeext" >&6; }
4687
4688rm -f conftest.$ac_ext
4689EXEEXT=$ac_cv_exeext
4690ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
4693#include <stdio.h>
4694int
4695main ()
4696{
4697FILE *f = fopen ("conftest.out", "w");
4698 return ferror (f) || fclose (f) != 0;
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
4704ac_clean_files="$ac_clean_files conftest.out"
4705# Check that the compiler produces executables we can run. If not, either
4706# the compiler is broken, or we cross compile.
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4708$as_echo_n "checking whether we are cross compiling... " >&6; }
4709if test "$cross_compiling" != yes; then
4710 { { ac_try="$ac_link"
4711case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714esac
4715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4716$as_echo "$ac_try_echo"; } >&5
4717 (eval "$ac_link") 2>&5
4718 ac_status=$?
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721 if { ac_try='./conftest$ac_cv_exeext'
4722 { { case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725esac
4726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727$as_echo "$ac_try_echo"; } >&5
4728 (eval "$ac_try") 2>&5
4729 ac_status=$?
4730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; }; }; then
4732 cross_compiling=no
4733 else
4734 if test "$cross_compiling" = maybe; then
4735 cross_compiling=yes
4736 else
4737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004739as_fn_error "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004740If you meant to cross compile, use \`--host'.
cristyf6fcb5d2010-09-24 01:19:13 +00004741See \`config.log' for more details." "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004742 fi
4743 fi
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4746$as_echo "$cross_compiling" >&6; }
4747
4748rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4749ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004751$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004752if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004753 $as_echo_n "(cached) " >&6
4754else
cristy8b350f62009-11-15 23:12:43 +00004755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004767if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004768case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771esac
cristy8b350f62009-11-15 23:12:43 +00004772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4773$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004774 (eval "$ac_compile") 2>&5
4775 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4777 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004778 for ac_file in conftest.o conftest.obj conftest.*; do
4779 test -f "$ac_file" || continue;
4780 case $ac_file in
4781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4782 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4783 break;;
4784 esac
4785done
4786else
4787 $as_echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
cristy8b350f62009-11-15 23:12:43 +00004790{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004792as_fn_error "cannot compute suffix of object files: cannot compile
4793See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004794fi
cristy3ed852e2009-09-05 21:47:34 +00004795rm -f conftest.$ac_cv_objext conftest.$ac_ext
4796fi
cristy8b350f62009-11-15 23:12:43 +00004797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798$as_echo "$ac_cv_objext" >&6; }
4799OBJEXT=$ac_cv_objext
4800ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004803if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004804 $as_echo_n "(cached) " >&6
4805else
cristy8b350f62009-11-15 23:12:43 +00004806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812#ifndef __GNUC__
4813 choke me
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004820if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004821 ac_compiler_gnu=yes
4822else
cristy8b350f62009-11-15 23:12:43 +00004823 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004824fi
cristy3ed852e2009-09-05 21:47:34 +00004825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826ac_cv_c_compiler_gnu=$ac_compiler_gnu
4827
4828fi
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4831if test $ac_compiler_gnu = yes; then
4832 GCC=yes
4833else
4834 GCC=
4835fi
4836ac_test_CFLAGS=${CFLAGS+set}
4837ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004840if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004841 $as_echo_n "(cached) " >&6
4842else
4843 ac_save_c_werror_flag=$ac_c_werror_flag
4844 ac_c_werror_flag=yes
4845 ac_cv_prog_cc_g=no
4846 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004848/* end confdefs.h. */
4849
4850int
4851main ()
4852{
4853
4854 ;
4855 return 0;
4856}
4857_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004858if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004859 ac_cv_prog_cc_g=yes
4860else
cristy8b350f62009-11-15 23:12:43 +00004861 CFLAGS=""
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004863/* end confdefs.h. */
4864
4865int
4866main ()
4867{
4868
4869 ;
4870 return 0;
4871}
4872_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004873if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004874
cristy8b350f62009-11-15 23:12:43 +00004875else
4876 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004877 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004879/* end confdefs.h. */
4880
4881int
4882main ()
4883{
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004890 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004891fi
cristy3ed852e2009-09-05 21:47:34 +00004892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
cristy3ed852e2009-09-05 21:47:34 +00004894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895fi
cristy3ed852e2009-09-05 21:47:34 +00004896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_c_werror_flag=$ac_save_c_werror_flag
4898fi
cristy8b350f62009-11-15 23:12:43 +00004899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900$as_echo "$ac_cv_prog_cc_g" >&6; }
4901if test "$ac_test_CFLAGS" = set; then
4902 CFLAGS=$ac_save_CFLAGS
4903elif test $ac_cv_prog_cc_g = yes; then
4904 if test "$GCC" = yes; then
4905 CFLAGS="-g -O2"
4906 else
4907 CFLAGS="-g"
4908 fi
4909else
4910 if test "$GCC" = yes; then
4911 CFLAGS="-O2"
4912 else
4913 CFLAGS=
4914 fi
4915fi
cristy8b350f62009-11-15 23:12:43 +00004916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004918if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 $as_echo_n "(cached) " >&6
4920else
4921 ac_cv_prog_cc_c89=no
4922ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004924/* end confdefs.h. */
4925#include <stdarg.h>
4926#include <stdio.h>
4927#include <sys/types.h>
4928#include <sys/stat.h>
4929/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4930struct buf { int x; };
4931FILE * (*rcsopen) (struct buf *, struct stat *, int);
4932static char *e (p, i)
4933 char **p;
4934 int i;
4935{
4936 return p[i];
4937}
4938static char *f (char * (*g) (char **, int), char **p, ...)
4939{
4940 char *s;
4941 va_list v;
4942 va_start (v,p);
4943 s = g (p, va_arg (v,int));
4944 va_end (v);
4945 return s;
4946}
4947
4948/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4949 function prototypes and stuff, but not '\xHH' hex character constants.
4950 These don't provoke an error unfortunately, instead are silently treated
4951 as 'x'. The following induces an error, until -std is added to get
4952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4953 array size at least. It's necessary to write '\x00'==0 to get something
4954 that's true only with -std. */
4955int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4956
4957/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4958 inside strings and character constants. */
4959#define FOO(x) 'x'
4960int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4961
4962int test (int i, double x);
4963struct s1 {int (*f) (int a);};
4964struct s2 {int (*f) (double a);};
4965int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4966int argc;
4967char **argv;
4968int
4969main ()
4970{
4971return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4978do
4979 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004980 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004981 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004982fi
cristy3ed852e2009-09-05 21:47:34 +00004983rm -f core conftest.err conftest.$ac_objext
4984 test "x$ac_cv_prog_cc_c89" != "xno" && break
4985done
4986rm -f conftest.$ac_ext
4987CC=$ac_save_CC
4988
4989fi
4990# AC_CACHE_VAL
4991case "x$ac_cv_prog_cc_c89" in
4992 x)
cristy8b350f62009-11-15 23:12:43 +00004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004994$as_echo "none needed" >&6; } ;;
4995 xno)
cristy8b350f62009-11-15 23:12:43 +00004996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004997$as_echo "unsupported" >&6; } ;;
4998 *)
4999 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005001$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5002esac
cristy8b350f62009-11-15 23:12:43 +00005003if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005004
cristy8b350f62009-11-15 23:12:43 +00005005fi
cristy3ed852e2009-09-05 21:47:34 +00005006
5007ac_ext=c
5008ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005012
cristy73bd4a52010-10-05 11:24:23 +00005013depcc="$CC" am_compiler_list=
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5016$as_echo_n "checking dependency style of $depcc... " >&6; }
5017if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5021 # We make a subdir and do the tests there. Otherwise we can end up
5022 # making bogus files that we don't know about and never remove. For
5023 # instance it was reported that on HP-UX the gcc test will end up
5024 # making a dummy file named `D' -- because `-MD' means `put the output
5025 # in D'.
5026 mkdir conftest.dir
5027 # Copy depcomp to subdir because otherwise we won't find it if we're
5028 # using a relative directory.
5029 cp "$am_depcomp" conftest.dir
5030 cd conftest.dir
5031 # We will build objects and dependencies in a subdirectory because
5032 # it helps to detect inapplicable dependency modes. For instance
5033 # both Tru64's cc and ICC support -MD to output dependencies as a
5034 # side effect of compilation, but ICC will put the dependencies in
5035 # the current directory while Tru64 will put them in the object
5036 # directory.
5037 mkdir sub
5038
5039 am_cv_CC_dependencies_compiler_type=none
5040 if test "$am_compiler_list" = ""; then
5041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5042 fi
5043 am__universal=false
5044 case " $depcc " in #(
5045 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5046 esac
5047
5048 for depmode in $am_compiler_list; do
5049 # Setup a source with many dependencies, because some compilers
5050 # like to wrap large dependency lists on column 80 (with \), and
5051 # we should not choose a depcomp mode which is confused by this.
5052 #
5053 # We need to recreate these files for each test, as the compiler may
5054 # overwrite some of them when testing with obscure command lines.
5055 # This happens at least with the AIX C compiler.
5056 : > sub/conftest.c
5057 for i in 1 2 3 4 5 6; do
5058 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5059 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5060 # Solaris 8's {/usr,}/bin/sh.
5061 touch sub/conftst$i.h
5062 done
5063 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5064
5065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5066 # mode. It turns out that the SunPro C++ compiler does not properly
5067 # handle `-M -o', and we need to detect this. Also, some Intel
5068 # versions had trouble with output in subdirs
5069 am__obj=sub/conftest.${OBJEXT-o}
5070 am__minus_obj="-o $am__obj"
5071 case $depmode in
5072 gcc)
5073 # This depmode causes a compiler race in universal mode.
5074 test "$am__universal" = false || continue
5075 ;;
5076 nosideeffect)
5077 # after this tag, mechanisms are not by side-effect, so they'll
5078 # only be used when explicitly requested
5079 if test "x$enable_dependency_tracking" = xyes; then
5080 continue
5081 else
5082 break
5083 fi
5084 ;;
5085 msvisualcpp | msvcmsys)
5086 # This compiler won't grok `-c -o', but also, the minuso test has
5087 # not run yet. These depmodes are late enough in the game, and
5088 # so weak that their functioning should not be impacted.
5089 am__obj=conftest.${OBJEXT-o}
5090 am__minus_obj=
5091 ;;
5092 none) break ;;
5093 esac
5094 if depmode=$depmode \
5095 source=sub/conftest.c object=$am__obj \
5096 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5097 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5098 >/dev/null 2>conftest.err &&
5099 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5100 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5101 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5102 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5103 # icc doesn't choke on unknown options, it will just issue warnings
5104 # or remarks (even with -Werror). So we grep stderr for any message
5105 # that says an option was ignored or not supported.
5106 # When given -MP, icc 7.0 and 7.1 complain thusly:
5107 # icc: Command line warning: ignoring option '-M'; no argument required
5108 # The diagnosis changed in icc 8.0:
5109 # icc: Command line remark: option '-MP' not supported
5110 if (grep 'ignoring option' conftest.err ||
5111 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5112 am_cv_CC_dependencies_compiler_type=$depmode
5113 break
5114 fi
5115 fi
5116 done
5117
5118 cd ..
5119 rm -rf conftest.dir
5120else
5121 am_cv_CC_dependencies_compiler_type=none
5122fi
5123
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5126$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5127CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5128
5129 if
5130 test "x$enable_dependency_tracking" != xno \
5131 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5132 am__fastdepCC_TRUE=
5133 am__fastdepCC_FALSE='#'
5134else
5135 am__fastdepCC_TRUE='#'
5136 am__fastdepCC_FALSE=
5137fi
5138
5139
cristy3ed852e2009-09-05 21:47:34 +00005140
cristya0b81c32010-01-22 02:54:33 +00005141ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5147$as_echo_n "checking how to run the C preprocessor... " >&6; }
5148# On Suns, sometimes $CPP names a directory.
5149if test -n "$CPP" && test -d "$CPP"; then
5150 CPP=
5151fi
5152if test -z "$CPP"; then
5153 if test "${ac_cv_prog_CPP+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 # Double quotes because CPP needs to be expanded
5157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5158 do
5159 ac_preproc_ok=false
5160for ac_c_preproc_warn_flag in '' yes
5161do
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h. */
5170#ifdef __STDC__
5171# include <limits.h>
5172#else
5173# include <assert.h>
5174#endif
5175 Syntax error
5176_ACEOF
5177if ac_fn_c_try_cpp "$LINENO"; then :
5178
5179else
5180 # Broken: fails on valid input.
5181continue
5182fi
5183rm -f conftest.err conftest.$ac_ext
5184
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h. */
5189#include <ac_nonexistent.h>
5190_ACEOF
5191if ac_fn_c_try_cpp "$LINENO"; then :
5192 # Broken: success on invalid input.
5193continue
5194else
5195 # Passes both tests.
5196ac_preproc_ok=:
5197break
5198fi
5199rm -f conftest.err conftest.$ac_ext
5200
5201done
5202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203rm -f conftest.err conftest.$ac_ext
5204if $ac_preproc_ok; then :
5205 break
5206fi
5207
5208 done
5209 ac_cv_prog_CPP=$CPP
5210
5211fi
5212 CPP=$ac_cv_prog_CPP
5213else
5214 ac_cv_prog_CPP=$CPP
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5217$as_echo "$CPP" >&6; }
5218ac_preproc_ok=false
5219for ac_c_preproc_warn_flag in '' yes
5220do
5221 # Use a header file that comes with gcc, so configuring glibc
5222 # with a fresh cross-compiler works.
5223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224 # <limits.h> exists even on freestanding compilers.
5225 # On the NeXT, cc -E runs the code through the compiler's parser,
5226 # not just through cpp. "Syntax error" is here to catch this case.
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h. */
5229#ifdef __STDC__
5230# include <limits.h>
5231#else
5232# include <assert.h>
5233#endif
5234 Syntax error
5235_ACEOF
5236if ac_fn_c_try_cpp "$LINENO"; then :
5237
5238else
5239 # Broken: fails on valid input.
5240continue
5241fi
5242rm -f conftest.err conftest.$ac_ext
5243
5244 # OK, works on sane cases. Now check whether nonexistent headers
5245 # can be detected and how.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h. */
5248#include <ac_nonexistent.h>
5249_ACEOF
5250if ac_fn_c_try_cpp "$LINENO"; then :
5251 # Broken: success on invalid input.
5252continue
5253else
5254 # Passes both tests.
5255ac_preproc_ok=:
5256break
5257fi
5258rm -f conftest.err conftest.$ac_ext
5259
5260done
5261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262rm -f conftest.err conftest.$ac_ext
5263if $ac_preproc_ok; then :
5264
5265else
5266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005268as_fn_error "C preprocessor \"$CPP\" fails sanity check
5269See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005270fi
5271
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5280$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5281if test "${ac_cv_path_GREP+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5283else
5284 if test -z "$GREP"; then
5285 ac_path_GREP_found=false
5286 # Loop through the user's path and test for each of PROGNAME-LIST
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_prog in grep ggrep; do
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5295 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5296# Check for GNU ac_path_GREP and select it if it is found.
5297 # Check for GNU $ac_path_GREP
5298case `"$ac_path_GREP" --version 2>&1` in
5299*GNU*)
5300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5301*)
5302 ac_count=0
5303 $as_echo_n 0123456789 >"conftest.in"
5304 while :
5305 do
5306 cat "conftest.in" "conftest.in" >"conftest.tmp"
5307 mv "conftest.tmp" "conftest.in"
5308 cp "conftest.in" "conftest.nl"
5309 $as_echo 'GREP' >> "conftest.nl"
5310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5312 as_fn_arith $ac_count + 1 && ac_count=$as_val
5313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5314 # Best one so far, save it but keep looking for a better one
5315 ac_cv_path_GREP="$ac_path_GREP"
5316 ac_path_GREP_max=$ac_count
5317 fi
5318 # 10*(2^10) chars as input seems more than enough
5319 test $ac_count -gt 10 && break
5320 done
5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5322esac
5323
5324 $ac_path_GREP_found && break 3
5325 done
5326 done
5327 done
5328IFS=$as_save_IFS
5329 if test -z "$ac_cv_path_GREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005330 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005331 fi
5332else
5333 ac_cv_path_GREP=$GREP
5334fi
5335
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5338$as_echo "$ac_cv_path_GREP" >&6; }
5339 GREP="$ac_cv_path_GREP"
5340
5341
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5343$as_echo_n "checking for egrep... " >&6; }
5344if test "${ac_cv_path_EGREP+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346else
5347 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5348 then ac_cv_path_EGREP="$GREP -E"
5349 else
5350 if test -z "$EGREP"; then
5351 ac_path_EGREP_found=false
5352 # Loop through the user's path and test for each of PROGNAME-LIST
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_prog in egrep; do
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5361 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5362# Check for GNU ac_path_EGREP and select it if it is found.
5363 # Check for GNU $ac_path_EGREP
5364case `"$ac_path_EGREP" --version 2>&1` in
5365*GNU*)
5366 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5367*)
5368 ac_count=0
5369 $as_echo_n 0123456789 >"conftest.in"
5370 while :
5371 do
5372 cat "conftest.in" "conftest.in" >"conftest.tmp"
5373 mv "conftest.tmp" "conftest.in"
5374 cp "conftest.in" "conftest.nl"
5375 $as_echo 'EGREP' >> "conftest.nl"
5376 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5378 as_fn_arith $ac_count + 1 && ac_count=$as_val
5379 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5380 # Best one so far, save it but keep looking for a better one
5381 ac_cv_path_EGREP="$ac_path_EGREP"
5382 ac_path_EGREP_max=$ac_count
5383 fi
5384 # 10*(2^10) chars as input seems more than enough
5385 test $ac_count -gt 10 && break
5386 done
5387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5388esac
5389
5390 $ac_path_EGREP_found && break 3
5391 done
5392 done
5393 done
5394IFS=$as_save_IFS
5395 if test -z "$ac_cv_path_EGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005396 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005397 fi
5398else
5399 ac_cv_path_EGREP=$EGREP
5400fi
5401
5402 fi
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5405$as_echo "$ac_cv_path_EGREP" >&6; }
5406 EGREP="$ac_cv_path_EGREP"
5407
5408
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5410$as_echo_n "checking for ANSI C header files... " >&6; }
5411if test "${ac_cv_header_stdc+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#include <stdlib.h>
5417#include <stdarg.h>
5418#include <string.h>
5419#include <float.h>
5420
5421int
5422main ()
5423{
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_header_stdc=yes
5431else
5432 ac_cv_header_stdc=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435
5436if test $ac_cv_header_stdc = yes; then
5437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h. */
5440#include <string.h>
5441
5442_ACEOF
5443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "memchr" >/dev/null 2>&1; then :
5445
5446else
5447 ac_cv_header_stdc=no
5448fi
5449rm -f conftest*
5450
5451fi
5452
5453if test $ac_cv_header_stdc = yes; then
5454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h. */
5457#include <stdlib.h>
5458
5459_ACEOF
5460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461 $EGREP "free" >/dev/null 2>&1; then :
5462
5463else
5464 ac_cv_header_stdc=no
5465fi
5466rm -f conftest*
5467
5468fi
5469
5470if test $ac_cv_header_stdc = yes; then
5471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5472 if test "$cross_compiling" = yes; then :
5473 :
5474else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h. */
5477#include <ctype.h>
5478#include <stdlib.h>
5479#if ((' ' & 0x0FF) == 0x020)
5480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5482#else
5483# define ISLOWER(c) \
5484 (('a' <= (c) && (c) <= 'i') \
5485 || ('j' <= (c) && (c) <= 'r') \
5486 || ('s' <= (c) && (c) <= 'z'))
5487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5488#endif
5489
5490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5491int
5492main ()
5493{
5494 int i;
5495 for (i = 0; i < 256; i++)
5496 if (XOR (islower (i), ISLOWER (i))
5497 || toupper (i) != TOUPPER (i))
5498 return 2;
5499 return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_run "$LINENO"; then :
5503
5504else
5505 ac_cv_header_stdc=no
5506fi
5507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5508 conftest.$ac_objext conftest.beam conftest.$ac_ext
5509fi
5510
5511fi
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5514$as_echo "$ac_cv_header_stdc" >&6; }
5515if test $ac_cv_header_stdc = yes; then
5516
5517$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5518
5519fi
5520
5521# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5522for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5523 inttypes.h stdint.h unistd.h
5524do :
5525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5526ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5527"
cristyf6fcb5d2010-09-24 01:19:13 +00005528eval as_val=\$$as_ac_Header
5529 if test "x$as_val" = x""yes; then :
cristya0b81c32010-01-22 02:54:33 +00005530 cat >>confdefs.h <<_ACEOF
5531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532_ACEOF
5533
5534fi
5535
5536done
5537
5538
5539
5540 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5541if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5542 MINIX=yes
5543else
5544 MINIX=
5545fi
5546
5547
5548 if test "$MINIX" = yes; then
5549
5550$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5551
5552
5553$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5554
5555
5556$as_echo "#define _MINIX 1" >>confdefs.h
5557
5558 fi
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5562$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5563if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h. */
5568
5569# define __EXTENSIONS__ 1
5570 $ac_includes_default
5571int
5572main ()
5573{
5574
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_compile "$LINENO"; then :
5580 ac_cv_safe_to_define___extensions__=yes
5581else
5582 ac_cv_safe_to_define___extensions__=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5587$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5588 test $ac_cv_safe_to_define___extensions__ = yes &&
5589 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5590
5591 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5592
5593 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5594
5595 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5596
5597 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5598
5599
5600
5601# Check for programs
5602ac_ext=c
5603ac_cpp='$CPP $CPPFLAGS'
5604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5609set dummy ${ac_tool_prefix}gcc; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629done
5630 done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635CC=$ac_cv_prog_CC
5636if test -n "$CC"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5638$as_echo "$CC" >&6; }
5639else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644
5645fi
5646if test -z "$ac_cv_prog_CC"; then
5647 ac_ct_CC=$CC
5648 # Extract the first word of "gcc", so it can be a program name with args.
5649set dummy gcc; ac_word=$2
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651$as_echo_n "checking for $ac_word... " >&6; }
5652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654else
5655 if test -n "$ac_ct_CC"; then
5656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_prog_ac_ct_CC="gcc"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669done
5670 done
5671IFS=$as_save_IFS
5672
5673fi
5674fi
5675ac_ct_CC=$ac_cv_prog_ac_ct_CC
5676if test -n "$ac_ct_CC"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5678$as_echo "$ac_ct_CC" >&6; }
5679else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683
5684 if test "x$ac_ct_CC" = x; then
5685 CC=""
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688yes:)
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691ac_tool_warned=yes ;;
5692esac
5693 CC=$ac_ct_CC
5694 fi
5695else
5696 CC="$ac_cv_prog_CC"
5697fi
5698
5699if test -z "$CC"; then
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5702set dummy ${ac_tool_prefix}cc; ac_word=$2
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
5705if test "${ac_cv_prog_CC+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707else
5708 if test -n "$CC"; then
5709 ac_cv_prog_CC="$CC" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_CC="${ac_tool_prefix}cc"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723 done
5724IFS=$as_save_IFS
5725
5726fi
5727fi
5728CC=$ac_cv_prog_CC
5729if test -n "$CC"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731$as_echo "$CC" >&6; }
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
5735fi
5736
5737
5738 fi
5739fi
5740if test -z "$CC"; then
5741 # Extract the first word of "cc", so it can be a program name with args.
5742set dummy cc; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if test "${ac_cv_prog_CC+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747else
5748 if test -n "$CC"; then
5749 ac_cv_prog_CC="$CC" # Let the user override the test.
5750else
5751 ac_prog_rejected=no
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5760 ac_prog_rejected=yes
5761 continue
5762 fi
5763 ac_cv_prog_CC="cc"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767done
5768 done
5769IFS=$as_save_IFS
5770
5771if test $ac_prog_rejected = yes; then
5772 # We found a bogon in the path, so make sure we never use it.
5773 set dummy $ac_cv_prog_CC
5774 shift
5775 if test $# != 0; then
5776 # We chose a different compiler from the bogus one.
5777 # However, it has the same basename, so the bogon will be chosen
5778 # first if we set CC to just the basename; use the full file name.
5779 shift
5780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5781 fi
5782fi
5783fi
5784fi
5785CC=$ac_cv_prog_CC
5786if test -n "$CC"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5788$as_echo "$CC" >&6; }
5789else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793
5794
5795fi
5796if test -z "$CC"; then
5797 if test -n "$ac_tool_prefix"; then
5798 for ac_prog in cl.exe
5799 do
5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803$as_echo_n "checking for $ac_word... " >&6; }
5804if test "${ac_cv_prog_CC+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 if test -n "$CC"; then
5808 ac_cv_prog_CC="$CC" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821done
5822 done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827CC=$ac_cv_prog_CC
5828if test -n "$CC"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5830$as_echo "$CC" >&6; }
5831else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836
5837 test -n "$CC" && break
5838 done
5839fi
5840if test -z "$CC"; then
5841 ac_ct_CC=$CC
5842 for ac_prog in cl.exe
5843do
5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
5845set dummy $ac_prog; ac_word=$2
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847$as_echo_n "checking for $ac_word... " >&6; }
5848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850else
5851 if test -n "$ac_ct_CC"; then
5852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_ac_ct_CC="$ac_prog"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866 done
5867IFS=$as_save_IFS
5868
5869fi
5870fi
5871ac_ct_CC=$ac_cv_prog_ac_ct_CC
5872if test -n "$ac_ct_CC"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5874$as_echo "$ac_ct_CC" >&6; }
5875else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877$as_echo "no" >&6; }
5878fi
5879
5880
5881 test -n "$ac_ct_CC" && break
5882done
5883
5884 if test "x$ac_ct_CC" = x; then
5885 CC=""
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893 CC=$ac_ct_CC
5894 fi
5895fi
5896
5897fi
5898
5899
5900test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005902as_fn_error "no acceptable C compiler found in \$PATH
5903See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005904
5905# Provide some information about the compiler.
5906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5907set X $ac_compile
5908ac_compiler=$2
5909for ac_option in --version -v -V -qversion; do
5910 { { ac_try="$ac_compiler $ac_option >&5"
5911case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914esac
5915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5916$as_echo "$ac_try_echo"; } >&5
5917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5918 ac_status=$?
5919 if test -s conftest.err; then
5920 sed '10a\
5921... rest of stderr output deleted ...
5922 10q' conftest.err >conftest.er1
5923 cat conftest.er1 >&5
5924 fi
5925 rm -f conftest.er1 conftest.err
5926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; }
5928done
5929
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5931$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5932if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h. */
5937
5938int
5939main ()
5940{
5941#ifndef __GNUC__
5942 choke me
5943#endif
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 ac_compiler_gnu=yes
5951else
5952 ac_compiler_gnu=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955ac_cv_c_compiler_gnu=$ac_compiler_gnu
5956
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5959$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5960if test $ac_compiler_gnu = yes; then
5961 GCC=yes
5962else
5963 GCC=
5964fi
5965ac_test_CFLAGS=${CFLAGS+set}
5966ac_save_CFLAGS=$CFLAGS
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5968$as_echo_n "checking whether $CC accepts -g... " >&6; }
5969if test "${ac_cv_prog_cc_g+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971else
5972 ac_save_c_werror_flag=$ac_c_werror_flag
5973 ac_c_werror_flag=yes
5974 ac_cv_prog_cc_g=no
5975 CFLAGS="-g"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h. */
5978
5979int
5980main ()
5981{
5982
5983 ;
5984 return 0;
5985}
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"; then :
5988 ac_cv_prog_cc_g=yes
5989else
5990 CFLAGS=""
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993
5994int
5995main ()
5996{
5997
5998 ;
5999 return 0;
6000}
6001_ACEOF
6002if ac_fn_c_try_compile "$LINENO"; then :
6003
6004else
6005 ac_c_werror_flag=$ac_save_c_werror_flag
6006 CFLAGS="-g"
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009
6010int
6011main ()
6012{
6013
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019 ac_cv_prog_cc_g=yes
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 ac_c_werror_flag=$ac_save_c_werror_flag
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6029$as_echo "$ac_cv_prog_cc_g" >&6; }
6030if test "$ac_test_CFLAGS" = set; then
6031 CFLAGS=$ac_save_CFLAGS
6032elif test $ac_cv_prog_cc_g = yes; then
6033 if test "$GCC" = yes; then
6034 CFLAGS="-g -O2"
6035 else
6036 CFLAGS="-g"
6037 fi
6038else
6039 if test "$GCC" = yes; then
6040 CFLAGS="-O2"
6041 else
6042 CFLAGS=
6043 fi
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6046$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6047if test "${ac_cv_prog_cc_c89+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049else
6050 ac_cv_prog_cc_c89=no
6051ac_save_CC=$CC
6052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054#include <stdarg.h>
6055#include <stdio.h>
6056#include <sys/types.h>
6057#include <sys/stat.h>
6058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6059struct buf { int x; };
6060FILE * (*rcsopen) (struct buf *, struct stat *, int);
6061static char *e (p, i)
6062 char **p;
6063 int i;
6064{
6065 return p[i];
6066}
6067static char *f (char * (*g) (char **, int), char **p, ...)
6068{
6069 char *s;
6070 va_list v;
6071 va_start (v,p);
6072 s = g (p, va_arg (v,int));
6073 va_end (v);
6074 return s;
6075}
6076
6077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6078 function prototypes and stuff, but not '\xHH' hex character constants.
6079 These don't provoke an error unfortunately, instead are silently treated
6080 as 'x'. The following induces an error, until -std is added to get
6081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6082 array size at least. It's necessary to write '\x00'==0 to get something
6083 that's true only with -std. */
6084int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6085
6086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6087 inside strings and character constants. */
6088#define FOO(x) 'x'
6089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6090
6091int test (int i, double x);
6092struct s1 {int (*f) (int a);};
6093struct s2 {int (*f) (double a);};
6094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6095int argc;
6096char **argv;
6097int
6098main ()
6099{
6100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6107do
6108 CC="$ac_save_CC $ac_arg"
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110 ac_cv_prog_cc_c89=$ac_arg
6111fi
6112rm -f core conftest.err conftest.$ac_objext
6113 test "x$ac_cv_prog_cc_c89" != "xno" && break
6114done
6115rm -f conftest.$ac_ext
6116CC=$ac_save_CC
6117
6118fi
6119# AC_CACHE_VAL
6120case "x$ac_cv_prog_cc_c89" in
6121 x)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6123$as_echo "none needed" >&6; } ;;
6124 xno)
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6126$as_echo "unsupported" >&6; } ;;
6127 *)
6128 CC="$CC $ac_cv_prog_cc_c89"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6130$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6131esac
6132if test "x$ac_cv_prog_cc_c89" != xno; then :
6133
6134fi
6135
6136ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
cristy73bd4a52010-10-05 11:24:23 +00006142depcc="$CC" am_compiler_list=
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6145$as_echo_n "checking dependency style of $depcc... " >&6; }
6146if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148else
6149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6150 # We make a subdir and do the tests there. Otherwise we can end up
6151 # making bogus files that we don't know about and never remove. For
6152 # instance it was reported that on HP-UX the gcc test will end up
6153 # making a dummy file named `D' -- because `-MD' means `put the output
6154 # in D'.
6155 mkdir conftest.dir
6156 # Copy depcomp to subdir because otherwise we won't find it if we're
6157 # using a relative directory.
6158 cp "$am_depcomp" conftest.dir
6159 cd conftest.dir
6160 # We will build objects and dependencies in a subdirectory because
6161 # it helps to detect inapplicable dependency modes. For instance
6162 # both Tru64's cc and ICC support -MD to output dependencies as a
6163 # side effect of compilation, but ICC will put the dependencies in
6164 # the current directory while Tru64 will put them in the object
6165 # directory.
6166 mkdir sub
6167
6168 am_cv_CC_dependencies_compiler_type=none
6169 if test "$am_compiler_list" = ""; then
6170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6171 fi
6172 am__universal=false
6173 case " $depcc " in #(
6174 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6175 esac
6176
6177 for depmode in $am_compiler_list; do
6178 # Setup a source with many dependencies, because some compilers
6179 # like to wrap large dependency lists on column 80 (with \), and
6180 # we should not choose a depcomp mode which is confused by this.
6181 #
6182 # We need to recreate these files for each test, as the compiler may
6183 # overwrite some of them when testing with obscure command lines.
6184 # This happens at least with the AIX C compiler.
6185 : > sub/conftest.c
6186 for i in 1 2 3 4 5 6; do
6187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6189 # Solaris 8's {/usr,}/bin/sh.
6190 touch sub/conftst$i.h
6191 done
6192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6193
6194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6195 # mode. It turns out that the SunPro C++ compiler does not properly
6196 # handle `-M -o', and we need to detect this. Also, some Intel
6197 # versions had trouble with output in subdirs
6198 am__obj=sub/conftest.${OBJEXT-o}
6199 am__minus_obj="-o $am__obj"
6200 case $depmode in
6201 gcc)
6202 # This depmode causes a compiler race in universal mode.
6203 test "$am__universal" = false || continue
6204 ;;
6205 nosideeffect)
6206 # after this tag, mechanisms are not by side-effect, so they'll
6207 # only be used when explicitly requested
6208 if test "x$enable_dependency_tracking" = xyes; then
6209 continue
6210 else
6211 break
6212 fi
6213 ;;
6214 msvisualcpp | msvcmsys)
6215 # This compiler won't grok `-c -o', but also, the minuso test has
6216 # not run yet. These depmodes are late enough in the game, and
6217 # so weak that their functioning should not be impacted.
6218 am__obj=conftest.${OBJEXT-o}
6219 am__minus_obj=
6220 ;;
6221 none) break ;;
6222 esac
6223 if depmode=$depmode \
6224 source=sub/conftest.c object=$am__obj \
6225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6227 >/dev/null 2>conftest.err &&
6228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6232 # icc doesn't choke on unknown options, it will just issue warnings
6233 # or remarks (even with -Werror). So we grep stderr for any message
6234 # that says an option was ignored or not supported.
6235 # When given -MP, icc 7.0 and 7.1 complain thusly:
6236 # icc: Command line warning: ignoring option '-M'; no argument required
6237 # The diagnosis changed in icc 8.0:
6238 # icc: Command line remark: option '-MP' not supported
6239 if (grep 'ignoring option' conftest.err ||
6240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6241 am_cv_CC_dependencies_compiler_type=$depmode
6242 break
6243 fi
6244 fi
6245 done
6246
6247 cd ..
6248 rm -rf conftest.dir
6249else
6250 am_cv_CC_dependencies_compiler_type=none
6251fi
6252
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6255$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6256CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6257
6258 if
6259 test "x$enable_dependency_tracking" != xno \
6260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6261 am__fastdepCC_TRUE=
6262 am__fastdepCC_FALSE='#'
6263else
6264 am__fastdepCC_TRUE='#'
6265 am__fastdepCC_FALSE=
6266fi
6267
6268
cristy95646052009-11-28 23:05:30 +00006269ac_ext=cpp
6270ac_cpp='$CXXCPP $CPPFLAGS'
6271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6274if test -z "$CXX"; then
6275 if test -n "$CCC"; then
6276 CXX=$CCC
6277 else
6278 if test -n "$ac_tool_prefix"; then
6279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6280 do
6281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if test "${ac_cv_prog_CXX+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287else
6288 if test -n "$CXX"; then
6289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302done
6303 done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308CXX=$ac_cv_prog_CXX
6309if test -n "$CXX"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6311$as_echo "$CXX" >&6; }
6312else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318 test -n "$CXX" && break
6319 done
6320fi
6321if test -z "$CXX"; then
6322 ac_ct_CXX=$CXX
6323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6324do
6325 # Extract the first word of "$ac_prog", so it can be a program name with args.
6326set dummy $ac_prog; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$ac_ct_CXX"; then
6333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_CXX="$ac_prog"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347 done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6353if test -n "$ac_ct_CXX"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6355$as_echo "$ac_ct_CXX" >&6; }
6356else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361
6362 test -n "$ac_ct_CXX" && break
6363done
6364
6365 if test "x$ac_ct_CXX" = x; then
6366 CXX="g++"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369yes:)
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372ac_tool_warned=yes ;;
6373esac
6374 CXX=$ac_ct_CXX
6375 fi
6376fi
6377
6378 fi
6379fi
6380# Provide some information about the compiler.
6381$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6382set X $ac_compile
6383ac_compiler=$2
6384for ac_option in --version -v -V -qversion; do
6385 { { ac_try="$ac_compiler $ac_option >&5"
6386case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6391$as_echo "$ac_try_echo"; } >&5
6392 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6393 ac_status=$?
6394 if test -s conftest.err; then
6395 sed '10a\
6396... rest of stderr output deleted ...
6397 10q' conftest.err >conftest.er1
6398 cat conftest.er1 >&5
6399 fi
6400 rm -f conftest.er1 conftest.err
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }
6403done
6404
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6406$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6407if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6409else
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h. */
6412
6413int
6414main ()
6415{
6416#ifndef __GNUC__
6417 choke me
6418#endif
6419
6420 ;
6421 return 0;
6422}
6423_ACEOF
6424if ac_fn_cxx_try_compile "$LINENO"; then :
6425 ac_compiler_gnu=yes
6426else
6427 ac_compiler_gnu=no
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6431
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6434$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6435if test $ac_compiler_gnu = yes; then
6436 GXX=yes
6437else
6438 GXX=
6439fi
6440ac_test_CXXFLAGS=${CXXFLAGS+set}
6441ac_save_CXXFLAGS=$CXXFLAGS
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6443$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6444if test "${ac_cv_prog_cxx_g+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6446else
6447 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6448 ac_cxx_werror_flag=yes
6449 ac_cv_prog_cxx_g=no
6450 CXXFLAGS="-g"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h. */
6453
6454int
6455main ()
6456{
6457
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462if ac_fn_cxx_try_compile "$LINENO"; then :
6463 ac_cv_prog_cxx_g=yes
6464else
6465 CXXFLAGS=""
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h. */
6468
6469int
6470main ()
6471{
6472
6473 ;
6474 return 0;
6475}
6476_ACEOF
6477if ac_fn_cxx_try_compile "$LINENO"; then :
6478
6479else
6480 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6481 CXXFLAGS="-g"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_prog_cxx_g=yes
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6504$as_echo "$ac_cv_prog_cxx_g" >&6; }
6505if test "$ac_test_CXXFLAGS" = set; then
6506 CXXFLAGS=$ac_save_CXXFLAGS
6507elif test $ac_cv_prog_cxx_g = yes; then
6508 if test "$GXX" = yes; then
6509 CXXFLAGS="-g -O2"
6510 else
6511 CXXFLAGS="-g"
6512 fi
6513else
6514 if test "$GXX" = yes; then
6515 CXXFLAGS="-O2"
6516 else
6517 CXXFLAGS=
6518 fi
6519fi
6520ac_ext=c
6521ac_cpp='$CPP $CPPFLAGS'
6522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
cristy73bd4a52010-10-05 11:24:23 +00006526depcc="$CXX" am_compiler_list=
6527
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6529$as_echo_n "checking dependency style of $depcc... " >&6; }
6530if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532else
6533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6534 # We make a subdir and do the tests there. Otherwise we can end up
6535 # making bogus files that we don't know about and never remove. For
6536 # instance it was reported that on HP-UX the gcc test will end up
6537 # making a dummy file named `D' -- because `-MD' means `put the output
6538 # in D'.
6539 mkdir conftest.dir
6540 # Copy depcomp to subdir because otherwise we won't find it if we're
6541 # using a relative directory.
6542 cp "$am_depcomp" conftest.dir
6543 cd conftest.dir
6544 # We will build objects and dependencies in a subdirectory because
6545 # it helps to detect inapplicable dependency modes. For instance
6546 # both Tru64's cc and ICC support -MD to output dependencies as a
6547 # side effect of compilation, but ICC will put the dependencies in
6548 # the current directory while Tru64 will put them in the object
6549 # directory.
6550 mkdir sub
6551
6552 am_cv_CXX_dependencies_compiler_type=none
6553 if test "$am_compiler_list" = ""; then
6554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6555 fi
6556 am__universal=false
6557 case " $depcc " in #(
6558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6559 esac
6560
6561 for depmode in $am_compiler_list; do
6562 # Setup a source with many dependencies, because some compilers
6563 # like to wrap large dependency lists on column 80 (with \), and
6564 # we should not choose a depcomp mode which is confused by this.
6565 #
6566 # We need to recreate these files for each test, as the compiler may
6567 # overwrite some of them when testing with obscure command lines.
6568 # This happens at least with the AIX C compiler.
6569 : > sub/conftest.c
6570 for i in 1 2 3 4 5 6; do
6571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6573 # Solaris 8's {/usr,}/bin/sh.
6574 touch sub/conftst$i.h
6575 done
6576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6577
6578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6579 # mode. It turns out that the SunPro C++ compiler does not properly
6580 # handle `-M -o', and we need to detect this. Also, some Intel
6581 # versions had trouble with output in subdirs
6582 am__obj=sub/conftest.${OBJEXT-o}
6583 am__minus_obj="-o $am__obj"
6584 case $depmode in
6585 gcc)
6586 # This depmode causes a compiler race in universal mode.
6587 test "$am__universal" = false || continue
6588 ;;
6589 nosideeffect)
6590 # after this tag, mechanisms are not by side-effect, so they'll
6591 # only be used when explicitly requested
6592 if test "x$enable_dependency_tracking" = xyes; then
6593 continue
6594 else
6595 break
6596 fi
6597 ;;
6598 msvisualcpp | msvcmsys)
6599 # This compiler won't grok `-c -o', but also, the minuso test has
6600 # not run yet. These depmodes are late enough in the game, and
6601 # so weak that their functioning should not be impacted.
6602 am__obj=conftest.${OBJEXT-o}
6603 am__minus_obj=
6604 ;;
6605 none) break ;;
6606 esac
6607 if depmode=$depmode \
6608 source=sub/conftest.c object=$am__obj \
6609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6611 >/dev/null 2>conftest.err &&
6612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6616 # icc doesn't choke on unknown options, it will just issue warnings
6617 # or remarks (even with -Werror). So we grep stderr for any message
6618 # that says an option was ignored or not supported.
6619 # When given -MP, icc 7.0 and 7.1 complain thusly:
6620 # icc: Command line warning: ignoring option '-M'; no argument required
6621 # The diagnosis changed in icc 8.0:
6622 # icc: Command line remark: option '-MP' not supported
6623 if (grep 'ignoring option' conftest.err ||
6624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6625 am_cv_CXX_dependencies_compiler_type=$depmode
6626 break
6627 fi
6628 fi
6629 done
6630
6631 cd ..
6632 rm -rf conftest.dir
6633else
6634 am_cv_CXX_dependencies_compiler_type=none
6635fi
6636
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6639$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6640CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6641
6642 if
6643 test "x$enable_dependency_tracking" != xno \
6644 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6645 am__fastdepCXX_TRUE=
6646 am__fastdepCXX_FALSE='#'
6647else
6648 am__fastdepCXX_TRUE='#'
6649 am__fastdepCXX_FALSE=
6650fi
6651
6652
cristy8b350f62009-11-15 23:12:43 +00006653 case $ac_cv_prog_cc_stdc in #(
6654 no) :
6655 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6656 *) :
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006658$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006659if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006660 $as_echo_n "(cached) " >&6
6661else
6662 ac_cv_prog_cc_c99=no
6663ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006665/* end confdefs.h. */
6666#include <stdarg.h>
6667#include <stdbool.h>
6668#include <stdlib.h>
6669#include <wchar.h>
6670#include <stdio.h>
6671
6672// Check varargs macros. These examples are taken from C99 6.10.3.5.
6673#define debug(...) fprintf (stderr, __VA_ARGS__)
6674#define showlist(...) puts (#__VA_ARGS__)
6675#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6676static void
6677test_varargs_macros (void)
6678{
6679 int x = 1234;
6680 int y = 5678;
6681 debug ("Flag");
6682 debug ("X = %d\n", x);
6683 showlist (The first, second, and third items.);
6684 report (x>y, "x is %d but y is %d", x, y);
6685}
6686
6687// Check long long types.
6688#define BIG64 18446744073709551615ull
6689#define BIG32 4294967295ul
6690#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6691#if !BIG_OK
6692 your preprocessor is broken;
6693#endif
6694#if BIG_OK
6695#else
6696 your preprocessor is broken;
6697#endif
6698static long long int bignum = -9223372036854775807LL;
6699static unsigned long long int ubignum = BIG64;
6700
6701struct incomplete_array
6702{
6703 int datasize;
6704 double data[];
6705};
6706
6707struct named_init {
6708 int number;
6709 const wchar_t *name;
6710 double average;
6711};
6712
6713typedef const char *ccp;
6714
6715static inline int
6716test_restrict (ccp restrict text)
6717{
6718 // See if C++-style comments work.
6719 // Iterate through items via the restricted pointer.
6720 // Also check for declarations in for loops.
6721 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6722 continue;
6723 return 0;
6724}
6725
6726// Check varargs and va_copy.
6727static void
6728test_varargs (const char *format, ...)
6729{
6730 va_list args;
6731 va_start (args, format);
6732 va_list args_copy;
6733 va_copy (args_copy, args);
6734
6735 const char *str;
6736 int number;
6737 float fnumber;
6738
6739 while (*format)
6740 {
6741 switch (*format++)
6742 {
6743 case 's': // string
6744 str = va_arg (args_copy, const char *);
6745 break;
6746 case 'd': // int
6747 number = va_arg (args_copy, int);
6748 break;
6749 case 'f': // float
6750 fnumber = va_arg (args_copy, double);
6751 break;
6752 default:
6753 break;
6754 }
6755 }
6756 va_end (args_copy);
6757 va_end (args);
6758}
6759
6760int
6761main ()
6762{
6763
6764 // Check bool.
6765 _Bool success = false;
6766
6767 // Check restrict.
6768 if (test_restrict ("String literal") == 0)
6769 success = true;
6770 char *restrict newvar = "Another string";
6771
6772 // Check varargs.
6773 test_varargs ("s, d' f .", "string", 65, 34.234);
6774 test_varargs_macros ();
6775
6776 // Check flexible array members.
6777 struct incomplete_array *ia =
6778 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6779 ia->datasize = 10;
6780 for (int i = 0; i < ia->datasize; ++i)
6781 ia->data[i] = i * 1.234;
6782
6783 // Check named initializers.
6784 struct named_init ni = {
6785 .number = 34,
6786 .name = L"Test wide string",
6787 .average = 543.34343,
6788 };
6789
6790 ni.number = 58;
6791
6792 int dynamic_array[ni.number];
6793 dynamic_array[ni.number - 1] = 543;
6794
6795 // work around unused variable warnings
6796 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6797 || dynamic_array[ni.number - 1] != 543);
6798
6799 ;
6800 return 0;
6801}
6802_ACEOF
6803for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6804do
6805 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006806 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006807 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006808fi
cristy3ed852e2009-09-05 21:47:34 +00006809rm -f core conftest.err conftest.$ac_objext
6810 test "x$ac_cv_prog_cc_c99" != "xno" && break
6811done
6812rm -f conftest.$ac_ext
6813CC=$ac_save_CC
6814
6815fi
6816# AC_CACHE_VAL
6817case "x$ac_cv_prog_cc_c99" in
6818 x)
cristy8b350f62009-11-15 23:12:43 +00006819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006820$as_echo "none needed" >&6; } ;;
6821 xno)
cristy8b350f62009-11-15 23:12:43 +00006822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006823$as_echo "unsupported" >&6; } ;;
6824 *)
6825 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006827$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6828esac
cristy8b350f62009-11-15 23:12:43 +00006829if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006830 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6831else
cristy8b350f62009-11-15 23:12:43 +00006832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006833$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006834if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006835 $as_echo_n "(cached) " >&6
6836else
6837 ac_cv_prog_cc_c89=no
6838ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006840/* end confdefs.h. */
6841#include <stdarg.h>
6842#include <stdio.h>
6843#include <sys/types.h>
6844#include <sys/stat.h>
6845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6846struct buf { int x; };
6847FILE * (*rcsopen) (struct buf *, struct stat *, int);
6848static char *e (p, i)
6849 char **p;
6850 int i;
6851{
6852 return p[i];
6853}
6854static char *f (char * (*g) (char **, int), char **p, ...)
6855{
6856 char *s;
6857 va_list v;
6858 va_start (v,p);
6859 s = g (p, va_arg (v,int));
6860 va_end (v);
6861 return s;
6862}
6863
6864/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6865 function prototypes and stuff, but not '\xHH' hex character constants.
6866 These don't provoke an error unfortunately, instead are silently treated
6867 as 'x'. The following induces an error, until -std is added to get
6868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6869 array size at least. It's necessary to write '\x00'==0 to get something
6870 that's true only with -std. */
6871int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6872
6873/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6874 inside strings and character constants. */
6875#define FOO(x) 'x'
6876int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6877
6878int test (int i, double x);
6879struct s1 {int (*f) (int a);};
6880struct s2 {int (*f) (double a);};
6881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6882int argc;
6883char **argv;
6884int
6885main ()
6886{
6887return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6894do
6895 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006896 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006897 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006898fi
cristy3ed852e2009-09-05 21:47:34 +00006899rm -f core conftest.err conftest.$ac_objext
6900 test "x$ac_cv_prog_cc_c89" != "xno" && break
6901done
6902rm -f conftest.$ac_ext
6903CC=$ac_save_CC
6904
6905fi
6906# AC_CACHE_VAL
6907case "x$ac_cv_prog_cc_c89" in
6908 x)
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo "none needed" >&6; } ;;
6911 xno)
cristy8b350f62009-11-15 23:12:43 +00006912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006913$as_echo "unsupported" >&6; } ;;
6914 *)
6915 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006917$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6918esac
cristy8b350f62009-11-15 23:12:43 +00006919if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006920 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6921else
6922 ac_cv_prog_cc_stdc=no
6923fi
6924
cristy3ed852e2009-09-05 21:47:34 +00006925fi
cristy3ed852e2009-09-05 21:47:34 +00006926 ;;
6927esac
cristy8b350f62009-11-15 23:12:43 +00006928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006929$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006930 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006931 $as_echo_n "(cached) " >&6
6932fi
6933
cristy8b350f62009-11-15 23:12:43 +00006934 case $ac_cv_prog_cc_stdc in #(
6935 no) :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6937$as_echo "unsupported" >&6; } ;; #(
6938 '') :
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6940$as_echo "none needed" >&6; } ;; #(
6941 *) :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006943$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6944esac
6945
cristy3ed852e2009-09-05 21:47:34 +00006946ac_ext=c
6947ac_cpp='$CPP $CPPFLAGS'
6948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006952$as_echo_n "checking how to run the C preprocessor... " >&6; }
6953# On Suns, sometimes $CPP names a directory.
6954if test -n "$CPP" && test -d "$CPP"; then
6955 CPP=
6956fi
6957if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006958 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006959 $as_echo_n "(cached) " >&6
6960else
6961 # Double quotes because CPP needs to be expanded
6962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6963 do
6964 ac_preproc_ok=false
6965for ac_c_preproc_warn_flag in '' yes
6966do
6967 # Use a header file that comes with gcc, so configuring glibc
6968 # with a fresh cross-compiler works.
6969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970 # <limits.h> exists even on freestanding compilers.
6971 # On the NeXT, cc -E runs the code through the compiler's parser,
6972 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006974/* end confdefs.h. */
6975#ifdef __STDC__
6976# include <limits.h>
6977#else
6978# include <assert.h>
6979#endif
6980 Syntax error
6981_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006982if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006983
cristy8b350f62009-11-15 23:12:43 +00006984else
cristy3ed852e2009-09-05 21:47:34 +00006985 # Broken: fails on valid input.
6986continue
6987fi
cristy3ed852e2009-09-05 21:47:34 +00006988rm -f conftest.err conftest.$ac_ext
6989
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006993/* end confdefs.h. */
6994#include <ac_nonexistent.h>
6995_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006996if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006997 # Broken: success on invalid input.
6998continue
6999else
cristy3ed852e2009-09-05 21:47:34 +00007000 # Passes both tests.
7001ac_preproc_ok=:
7002break
7003fi
cristy3ed852e2009-09-05 21:47:34 +00007004rm -f conftest.err conftest.$ac_ext
7005
7006done
7007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7008rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007009if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007010 break
7011fi
7012
7013 done
7014 ac_cv_prog_CPP=$CPP
7015
7016fi
7017 CPP=$ac_cv_prog_CPP
7018else
7019 ac_cv_prog_CPP=$CPP
7020fi
cristy8b350f62009-11-15 23:12:43 +00007021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007022$as_echo "$CPP" >&6; }
7023ac_preproc_ok=false
7024for ac_c_preproc_warn_flag in '' yes
7025do
7026 # Use a header file that comes with gcc, so configuring glibc
7027 # with a fresh cross-compiler works.
7028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029 # <limits.h> exists even on freestanding compilers.
7030 # On the NeXT, cc -E runs the code through the compiler's parser,
7031 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007033/* end confdefs.h. */
7034#ifdef __STDC__
7035# include <limits.h>
7036#else
7037# include <assert.h>
7038#endif
7039 Syntax error
7040_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007041if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007042
cristy8b350f62009-11-15 23:12:43 +00007043else
cristy3ed852e2009-09-05 21:47:34 +00007044 # Broken: fails on valid input.
7045continue
7046fi
cristy3ed852e2009-09-05 21:47:34 +00007047rm -f conftest.err conftest.$ac_ext
7048
7049 # OK, works on sane cases. Now check whether nonexistent headers
7050 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007052/* end confdefs.h. */
7053#include <ac_nonexistent.h>
7054_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007055if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007056 # Broken: success on invalid input.
7057continue
7058else
cristy3ed852e2009-09-05 21:47:34 +00007059 # Passes both tests.
7060ac_preproc_ok=:
7061break
7062fi
cristy3ed852e2009-09-05 21:47:34 +00007063rm -f conftest.err conftest.$ac_ext
7064
7065done
7066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7067rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007068if $ac_preproc_ok; then :
7069
cristy3ed852e2009-09-05 21:47:34 +00007070else
cristy8b350f62009-11-15 23:12:43 +00007071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00007073as_fn_error "C preprocessor \"$CPP\" fails sanity check
7074See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007075fi
7076
7077ac_ext=c
7078ac_cpp='$CPP $CPPFLAGS'
7079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082
cristy73bd4a52010-10-05 11:24:23 +00007083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7084$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7085if test "${ac_cv_path_SED+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7087else
7088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7089 for ac_i in 1 2 3 4 5 6 7; do
7090 ac_script="$ac_script$as_nl$ac_script"
7091 done
7092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7093 { ac_script=; unset ac_script;}
7094 if test -z "$SED"; then
7095 ac_path_SED_found=false
7096 # Loop through the user's path and test for each of PROGNAME-LIST
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_prog in sed gsed; do
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7106# Check for GNU ac_path_SED and select it if it is found.
7107 # Check for GNU $ac_path_SED
7108case `"$ac_path_SED" --version 2>&1` in
7109*GNU*)
7110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7111*)
7112 ac_count=0
7113 $as_echo_n 0123456789 >"conftest.in"
7114 while :
7115 do
7116 cat "conftest.in" "conftest.in" >"conftest.tmp"
7117 mv "conftest.tmp" "conftest.in"
7118 cp "conftest.in" "conftest.nl"
7119 $as_echo '' >> "conftest.nl"
7120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7122 as_fn_arith $ac_count + 1 && ac_count=$as_val
7123 if test $ac_count -gt ${ac_path_SED_max-0}; then
7124 # Best one so far, save it but keep looking for a better one
7125 ac_cv_path_SED="$ac_path_SED"
7126 ac_path_SED_max=$ac_count
7127 fi
7128 # 10*(2^10) chars as input seems more than enough
7129 test $ac_count -gt 10 && break
7130 done
7131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7132esac
7133
7134 $ac_path_SED_found && break 3
7135 done
7136 done
7137 done
7138IFS=$as_save_IFS
7139 if test -z "$ac_cv_path_SED"; then
7140 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7141 fi
7142else
7143 ac_cv_path_SED=$SED
7144fi
7145
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7148$as_echo "$ac_cv_path_SED" >&6; }
7149 SED="$ac_cv_path_SED"
7150 rm -f conftest.sed
7151
7152test -z "$SED" && SED=sed
7153Xsed="$SED -e 1s/^X//"
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7166$as_echo_n "checking for fgrep... " >&6; }
7167if test "${ac_cv_path_FGREP+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169else
7170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7171 then ac_cv_path_FGREP="$GREP -F"
7172 else
7173 if test -z "$FGREP"; then
7174 ac_path_FGREP_found=false
7175 # Loop through the user's path and test for each of PROGNAME-LIST
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_prog in fgrep; do
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7185# Check for GNU ac_path_FGREP and select it if it is found.
7186 # Check for GNU $ac_path_FGREP
7187case `"$ac_path_FGREP" --version 2>&1` in
7188*GNU*)
7189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7190*)
7191 ac_count=0
7192 $as_echo_n 0123456789 >"conftest.in"
7193 while :
7194 do
7195 cat "conftest.in" "conftest.in" >"conftest.tmp"
7196 mv "conftest.tmp" "conftest.in"
7197 cp "conftest.in" "conftest.nl"
7198 $as_echo 'FGREP' >> "conftest.nl"
7199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7201 as_fn_arith $ac_count + 1 && ac_count=$as_val
7202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7203 # Best one so far, save it but keep looking for a better one
7204 ac_cv_path_FGREP="$ac_path_FGREP"
7205 ac_path_FGREP_max=$ac_count
7206 fi
7207 # 10*(2^10) chars as input seems more than enough
7208 test $ac_count -gt 10 && break
7209 done
7210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7211esac
7212
7213 $ac_path_FGREP_found && break 3
7214 done
7215 done
7216 done
7217IFS=$as_save_IFS
7218 if test -z "$ac_cv_path_FGREP"; then
7219 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7220 fi
7221else
7222 ac_cv_path_FGREP=$FGREP
7223fi
7224
7225 fi
7226fi
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7228$as_echo "$ac_cv_path_FGREP" >&6; }
7229 FGREP="$ac_cv_path_FGREP"
7230
7231
7232test -z "$GREP" && GREP=grep
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252# Check whether --with-gnu-ld was given.
7253if test "${with_gnu_ld+set}" = set; then :
7254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7255else
7256 with_gnu_ld=no
7257fi
7258
7259ac_prog=ld
7260if test "$GCC" = yes; then
7261 # Check if gcc -print-prog-name=ld gives a path.
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7263$as_echo_n "checking for ld used by $CC... " >&6; }
7264 case $host in
7265 *-*-mingw*)
7266 # gcc leaves a trailing carriage return which upsets mingw
7267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7268 *)
7269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7270 esac
7271 case $ac_prog in
7272 # Accept absolute paths.
7273 [\\/]* | ?:[\\/]*)
7274 re_direlt='/[^/][^/]*/\.\./'
7275 # Canonicalize the pathname of ld
7276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7279 done
7280 test -z "$LD" && LD="$ac_prog"
7281 ;;
7282 "")
7283 # If it fails, then pretend we aren't using GCC.
7284 ac_prog=ld
7285 ;;
7286 *)
7287 # If it is relative, then search for the first ld in PATH.
7288 with_gnu_ld=unknown
7289 ;;
7290 esac
7291elif test "$with_gnu_ld" = yes; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7293$as_echo_n "checking for GNU ld... " >&6; }
7294else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7296$as_echo_n "checking for non-GNU ld... " >&6; }
7297fi
7298if test "${lt_cv_path_LD+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 if test -z "$LD"; then
7302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7303 for ac_dir in $PATH; do
7304 IFS="$lt_save_ifs"
7305 test -z "$ac_dir" && ac_dir=.
7306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7307 lt_cv_path_LD="$ac_dir/$ac_prog"
7308 # Check to see if the program is GNU ld. I'd rather use --version,
7309 # but apparently some variants of GNU ld only accept -v.
7310 # Break only if it was the GNU/non-GNU ld that we prefer.
7311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7312 *GNU* | *'with BFD'*)
7313 test "$with_gnu_ld" != no && break
7314 ;;
7315 *)
7316 test "$with_gnu_ld" != yes && break
7317 ;;
7318 esac
7319 fi
7320 done
7321 IFS="$lt_save_ifs"
7322else
7323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7324fi
7325fi
7326
7327LD="$lt_cv_path_LD"
7328if test -n "$LD"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7330$as_echo "$LD" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7337$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7338if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7342case `$LD -v 2>&1 </dev/null` in
7343*GNU* | *'with BFD'*)
7344 lt_cv_prog_gnu_ld=yes
7345 ;;
7346*)
7347 lt_cv_prog_gnu_ld=no
7348 ;;
7349esac
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7352$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7353with_gnu_ld=$lt_cv_prog_gnu_ld
7354
7355
7356
7357
7358
7359
7360
7361
7362
cristy3ed852e2009-09-05 21:47:34 +00007363
cristy837d6dc2010-02-27 01:16:57 +00007364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7365$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7366if test "${ac_cv_prog_cc_c99+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368else
7369 ac_cv_prog_cc_c99=no
7370ac_save_CC=$CC
7371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h. */
7373#include <stdarg.h>
7374#include <stdbool.h>
7375#include <stdlib.h>
7376#include <wchar.h>
7377#include <stdio.h>
7378
7379// Check varargs macros. These examples are taken from C99 6.10.3.5.
7380#define debug(...) fprintf (stderr, __VA_ARGS__)
7381#define showlist(...) puts (#__VA_ARGS__)
7382#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7383static void
7384test_varargs_macros (void)
7385{
7386 int x = 1234;
7387 int y = 5678;
7388 debug ("Flag");
7389 debug ("X = %d\n", x);
7390 showlist (The first, second, and third items.);
7391 report (x>y, "x is %d but y is %d", x, y);
7392}
7393
7394// Check long long types.
7395#define BIG64 18446744073709551615ull
7396#define BIG32 4294967295ul
7397#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7398#if !BIG_OK
7399 your preprocessor is broken;
7400#endif
7401#if BIG_OK
7402#else
7403 your preprocessor is broken;
7404#endif
7405static long long int bignum = -9223372036854775807LL;
7406static unsigned long long int ubignum = BIG64;
7407
7408struct incomplete_array
7409{
7410 int datasize;
7411 double data[];
7412};
7413
7414struct named_init {
7415 int number;
7416 const wchar_t *name;
7417 double average;
7418};
7419
7420typedef const char *ccp;
7421
7422static inline int
7423test_restrict (ccp restrict text)
7424{
7425 // See if C++-style comments work.
7426 // Iterate through items via the restricted pointer.
7427 // Also check for declarations in for loops.
7428 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7429 continue;
7430 return 0;
7431}
7432
7433// Check varargs and va_copy.
7434static void
7435test_varargs (const char *format, ...)
7436{
7437 va_list args;
7438 va_start (args, format);
7439 va_list args_copy;
7440 va_copy (args_copy, args);
7441
7442 const char *str;
7443 int number;
7444 float fnumber;
7445
7446 while (*format)
7447 {
7448 switch (*format++)
7449 {
7450 case 's': // string
7451 str = va_arg (args_copy, const char *);
7452 break;
7453 case 'd': // int
7454 number = va_arg (args_copy, int);
7455 break;
7456 case 'f': // float
7457 fnumber = va_arg (args_copy, double);
7458 break;
7459 default:
7460 break;
7461 }
7462 }
7463 va_end (args_copy);
7464 va_end (args);
7465}
7466
7467int
7468main ()
7469{
7470
7471 // Check bool.
7472 _Bool success = false;
7473
7474 // Check restrict.
7475 if (test_restrict ("String literal") == 0)
7476 success = true;
7477 char *restrict newvar = "Another string";
7478
7479 // Check varargs.
7480 test_varargs ("s, d' f .", "string", 65, 34.234);
7481 test_varargs_macros ();
7482
7483 // Check flexible array members.
7484 struct incomplete_array *ia =
7485 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7486 ia->datasize = 10;
7487 for (int i = 0; i < ia->datasize; ++i)
7488 ia->data[i] = i * 1.234;
7489
7490 // Check named initializers.
7491 struct named_init ni = {
7492 .number = 34,
7493 .name = L"Test wide string",
7494 .average = 543.34343,
7495 };
7496
7497 ni.number = 58;
7498
7499 int dynamic_array[ni.number];
7500 dynamic_array[ni.number - 1] = 543;
7501
7502 // work around unused variable warnings
7503 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7504 || dynamic_array[ni.number - 1] != 543);
7505
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7511do
7512 CC="$ac_save_CC $ac_arg"
7513 if ac_fn_c_try_compile "$LINENO"; then :
7514 ac_cv_prog_cc_c99=$ac_arg
7515fi
7516rm -f core conftest.err conftest.$ac_objext
7517 test "x$ac_cv_prog_cc_c99" != "xno" && break
7518done
7519rm -f conftest.$ac_ext
7520CC=$ac_save_CC
7521
7522fi
7523# AC_CACHE_VAL
7524case "x$ac_cv_prog_cc_c99" in
7525 x)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7527$as_echo "none needed" >&6; } ;;
7528 xno)
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7530$as_echo "unsupported" >&6; } ;;
7531 *)
7532 CC="$CC $ac_cv_prog_cc_c99"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7534$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7535esac
7536if test "x$ac_cv_prog_cc_c99" != xno; then :
7537
7538fi
7539
7540
cristy73bd4a52010-10-05 11:24:23 +00007541if test "x$CC" != xcc; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7543$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7544else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7546$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7547fi
7548set dummy $CC; ac_cc=`$as_echo "$2" |
7549 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7550if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007551 $as_echo_n "(cached) " >&6
7552else
cristy73bd4a52010-10-05 11:24:23 +00007553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* end confdefs.h. */
7555
7556int
7557main ()
7558{
7559
7560 ;
7561 return 0;
7562}
7563_ACEOF
7564# Make sure it works both with $CC and with simple cc.
7565# We do the test twice because some compilers refuse to overwrite an
7566# existing .o file with -o, though they will create one.
7567ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7568rm -f conftest2.*
7569if { { case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572esac
7573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7574$as_echo "$ac_try_echo"; } >&5
7575 (eval "$ac_try") 2>&5
7576 ac_status=$?
7577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; } &&
7579 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582esac
7583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7584$as_echo "$ac_try_echo"; } >&5
7585 (eval "$ac_try") 2>&5
7586 ac_status=$?
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; };
7589then
7590 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7591 if test "x$CC" != xcc; then
7592 # Test first that cc exists at all.
7593 if { ac_try='cc -c conftest.$ac_ext >&5'
7594 { { case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597esac
7598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7599$as_echo "$ac_try_echo"; } >&5
7600 (eval "$ac_try") 2>&5
7601 ac_status=$?
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; }; then
7604 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7605 rm -f conftest2.*
7606 if { { case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609esac
7610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7611$as_echo "$ac_try_echo"; } >&5
7612 (eval "$ac_try") 2>&5
7613 ac_status=$?
7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; } &&
7616 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
7620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7621$as_echo "$ac_try_echo"; } >&5
7622 (eval "$ac_try") 2>&5
7623 ac_status=$?
7624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7625 test $ac_status = 0; };
7626 then
7627 # cc works too.
7628 :
7629 else
7630 # cc exists but doesn't like -o.
7631 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7632 fi
7633 fi
7634 fi
7635else
7636 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7637fi
7638rm -f core conftest*
7639
7640fi
7641if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7643$as_echo "yes" >&6; }
7644else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647
7648$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7649
7650fi
7651
7652# FIXME: we rely on the cache variable name because
7653# there is no other way.
7654set dummy $CC
7655am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7656eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7657if test "$am_t" != yes; then
7658 # Losing compiler, so override with the script.
7659 # FIXME: It is wrong to rewrite CC.
7660 # But if we don't then we get into trouble of one sort or another.
7661 # A longer-term fix would be to have automake use am__CC in this case,
7662 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7663 CC="$am_aux_dir/compile $CC"
7664fi
7665
7666
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7668$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7669if test "${ac_cv_cflags_warn_all+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 ac_cv_cflags_warn_all="no, unknown"
7673
7674 ac_ext=c
7675ac_cpp='$CPP $CPPFLAGS'
7676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680 ac_save_CFLAGS="$CFLAGS"
7681for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7682do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h. */
7685
7686int
7687main ()
7688{
7689return 0;
7690 ;
7691 return 0;
7692}
7693_ACEOF
7694if ac_fn_c_try_compile "$LINENO"; then :
7695 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698done
7699 CFLAGS="$ac_save_CFLAGS"
7700 ac_ext=c
7701ac_cpp='$CPP $CPPFLAGS'
7702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7709$as_echo "$ac_cv_cflags_warn_all" >&6; }
7710case ".$ac_cv_cflags_warn_all" in
7711 .ok|.ok,*) ;;
7712 .|.no|.no,*)
7713 ;;
7714 *)
7715 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7716 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7717 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7718 ac_status=$?
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }
7721 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7722 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7723 ac_status=$?
7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725 test $ac_status = 0; }
7726 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7727 fi
7728 ;;
nicolas6237c462010-10-05 06:11:49 +00007729esac
cristy3ed852e2009-09-05 21:47:34 +00007730
cristya0b81c32010-01-22 02:54:33 +00007731
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7734set x ${MAKE-make}
7735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00007736if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristya0b81c32010-01-22 02:54:33 +00007737 $as_echo_n "(cached) " >&6
7738else
7739 cat >conftest.make <<\_ACEOF
7740SHELL = /bin/sh
7741all:
7742 @echo '@@@%%%=$(MAKE)=@@@%%%'
7743_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00007744# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007745case `${MAKE-make} -f conftest.make 2>/dev/null` in
7746 *@@@%%%=?*=@@@%%%*)
7747 eval ac_cv_prog_make_${ac_make}_set=yes;;
7748 *)
7749 eval ac_cv_prog_make_${ac_make}_set=no;;
7750esac
7751rm -f conftest.make
7752fi
7753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755$as_echo "yes" >&6; }
7756 SET_MAKE=
7757else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760 SET_MAKE="MAKE=${MAKE-make}"
7761fi
7762
cristy8b350f62009-11-15 23:12:43 +00007763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007764$as_echo_n "checking whether ln -s works... " >&6; }
7765LN_S=$as_ln_s
7766if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007768$as_echo "yes" >&6; }
7769else
cristy8b350f62009-11-15 23:12:43 +00007770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007771$as_echo "no, using $LN_S" >&6; }
7772fi
7773
cristy73bd4a52010-10-05 11:24:23 +00007774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7775$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7776
7777# Check whether --with-dmalloc was given.
7778if test "${with_dmalloc+set}" = set; then :
7779 withval=$with_dmalloc; if test "$withval" = yes; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7781$as_echo "yes" >&6; }
7782
7783$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7784
7785 LIBS="$LIBS -ldmalloc"
7786 LDFLAGS="$LDFLAGS -g"
7787else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789$as_echo "no" >&6; }
7790fi
7791else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794fi
7795
7796
7797
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7799$as_echo_n "checking for __attribute__... " >&6; }
7800if test "${ax_cv___attribute__+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802else
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h. */
7805#include <stdlib.h>
7806 static void foo(void) __attribute__ ((unused));
7807 static void
7808 foo(void) {
7809 exit(1);
7810 }
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820if ac_fn_c_try_compile "$LINENO"; then :
7821 ax_cv___attribute__=yes
7822else
7823 ax_cv___attribute__=no
7824
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7830$as_echo "$ax_cv___attribute__" >&6; }
7831 if test "$ax_cv___attribute__" = "yes"; then
7832
7833$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7834
7835 fi
7836
7837
7838
7839if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847else
7848 case $PKG_CONFIG in
7849 [\\/]* | ?:[\\/]*)
7850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7851 ;;
7852 *)
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865 done
7866IFS=$as_save_IFS
7867
7868 ;;
7869esac
7870fi
7871PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7872if test -n "$PKG_CONFIG"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7874$as_echo "$PKG_CONFIG" >&6; }
7875else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878fi
7879
7880
7881fi
7882if test -z "$ac_cv_path_PKG_CONFIG"; then
7883 ac_pt_PKG_CONFIG=$PKG_CONFIG
7884 # Extract the first word of "pkg-config", so it can be a program name with args.
7885set dummy pkg-config; ac_word=$2
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887$as_echo_n "checking for $ac_word... " >&6; }
7888if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890else
7891 case $ac_pt_PKG_CONFIG in
7892 [\\/]* | ?:[\\/]*)
7893 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7894 ;;
7895 *)
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908 done
7909IFS=$as_save_IFS
7910
7911 ;;
7912esac
7913fi
7914ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7915if test -n "$ac_pt_PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7917$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7918else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923 if test "x$ac_pt_PKG_CONFIG" = x; then
7924 PKG_CONFIG=""
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927yes:)
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932 PKG_CONFIG=$ac_pt_PKG_CONFIG
7933 fi
7934else
7935 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7936fi
7937
7938fi
7939if test -n "$PKG_CONFIG"; then
7940 _pkg_min_version=0.9.0
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7942$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7943 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945$as_echo "yes" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
7949 PKG_CONFIG=""
7950 fi
7951
7952fi
cristy3ed852e2009-09-05 21:47:34 +00007953
7954#
cristy3ed852e2009-09-05 21:47:34 +00007955# Enable run-time checking.
7956#
7957# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007958if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007959 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7960else
7961 enable_bounds_checking='no'
7962fi
7963
7964
7965if test "$enable_bounds_checking" = yes; then
7966
cristy8b350f62009-11-15 23:12:43 +00007967$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007968
7969fi
7970
7971#
7972# Tests for Windows
7973#
7974
7975
cristy73bd4a52010-10-05 11:24:23 +00007976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7977$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7978if test "${ax_cv_c_compiler_ms+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980else
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h. */
7983
7984int
7985main ()
7986{
7987#ifndef _MSC_VER
7988 choke me
7989#endif
7990
7991 ;
7992 return 0;
7993}
7994_ACEOF
7995if ac_fn_c_try_compile "$LINENO"; then :
7996 ax_compiler_ms=yes
7997else
7998 ax_compiler_ms=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001ax_cv_c_compiler_ms=$ax_compiler_ms
8002
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8005$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008006
8007GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008008native_win32_build='no'
8009cygwin_build='no'
8010case "${host_os}" in
8011 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008012 cygwin_build='yes'
8013 GDI32_LIBS='-lgdi32'
8014 ;;
8015 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008016 native_win32_build='yes'
8017 GDI32_LIBS='-lgdi32'
8018 ;;
8019esac
8020if test "${GDI32_LIBS}x" != 'x'; then
8021
cristy8b350f62009-11-15 23:12:43 +00008022$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008023
8024fi
8025
cristy73bd4a52010-10-05 11:24:23 +00008026 if test "${GDI32_LIBS}x" != 'x' ; then
8027 WINGDI32_DELEGATE_TRUE=
8028 WINGDI32_DELEGATE_FALSE='#'
8029else
8030 WINGDI32_DELEGATE_TRUE='#'
8031 WINGDI32_DELEGATE_FALSE=
8032fi
8033
8034 if test "${native_win32_build}" = 'yes' ; then
8035 WIN32_NATIVE_BUILD_TRUE=
8036 WIN32_NATIVE_BUILD_FALSE='#'
8037else
8038 WIN32_NATIVE_BUILD_TRUE='#'
8039 WIN32_NATIVE_BUILD_FALSE=
8040fi
8041
8042 if test "${cygwin_build}" = 'yes' ; then
8043 CYGWIN_BUILD_TRUE=
8044 CYGWIN_BUILD_FALSE='#'
8045else
8046 CYGWIN_BUILD_TRUE='#'
8047 CYGWIN_BUILD_FALSE=
8048fi
8049
8050 if test "x${CC}" = 'xcl.exe' ; then
8051 USING_CL_TRUE=
8052 USING_CL_FALSE='#'
8053else
8054 USING_CL_TRUE='#'
8055 USING_CL_FALSE=
8056fi
8057
cristy3ed852e2009-09-05 21:47:34 +00008058
8059WinPathScript="${srcdirfull}/winpath.sh"
8060
8061
8062#
8063# Compiler flags tweaks
8064#
8065if test "${GCC}" != "yes"; then
8066 case "${host}" in
8067 *-*-hpux* )
8068 # aCC: HP ANSI C++ B3910B A.03.34
8069 CFLAGS="${CFLAGS} -Wp,-H30000"
8070 if test -n "${CXXFLAGS}"; then
8071 CXXFLAGS='-AA'
8072 else
8073 CXXFLAGS="${CXXFLAGS} -AA"
8074 fi
8075 ;;
8076 *-dec-osf5.* )
8077 # Compaq alphaev68-dec-osf5.1 compiler
8078 if test -n "${CXXFLAGS}"; then
8079 CXXFLAGS='-std strict_ansi -noimplicit_include'
8080 else
8081 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8082 fi
8083 esac
8084fi
8085
8086# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008088$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008089if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008090 $as_echo_n "(cached) " >&6
8091else
8092
8093im_cv_ld_lazyload='none'
8094case "${host}" in
8095 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8096 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8097 im_cv_ld_lazyload='-Wl,-zlazyload'
8098 fi
8099 ;;
8100esac
8101
8102fi
cristy8b350f62009-11-15 23:12:43 +00008103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008104$as_echo "$im_cv_ld_lazyload" >&6; }
8105if test "${im_cv_ld_lazyload}" != 'none' ; then
8106 if test -z "${LDFLAGS}" ; then
8107 LDFLAGS="${im_cv_ld_lazyload}"
8108 else
8109 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8110 fi
8111fi
8112
8113case "$host" in
8114*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008115 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008116if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008117 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8118else
8119 build_osxuniversal=no
8120fi
8121
8122
8123 if test "${build_osxuniversal}" != no ; then
8124 if test "$enable_dependency_tracking" != no ; then
cristyf6fcb5d2010-09-24 01:19:13 +00008125 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008126Please re-run configure with these options:
8127 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008128 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008129 fi
8130 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8131 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8133 fi
8134 ;;
8135esac
8136
8137# Enable support for threads
8138
8139# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008140if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008141 withval=$with_threads; with_threads=$withval
8142else
8143 with_threads='yes'
8144fi
8145
8146
8147have_threads=no
8148if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008149
8150
8151
8152ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158ax_pthread_ok=no
8159
8160# We used to check for pthread.h first, but this fails if pthread.h
8161# requires special compiler flags (e.g. on True64 or Sequent).
8162# It gets checked for in the link test anyway.
8163
8164# First of all, check if the user has set any of the PTHREAD_LIBS,
8165# etcetera environment variables, and if threads linking works using
8166# them:
8167if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8168 save_CFLAGS="$CFLAGS"
8169 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8170 save_LIBS="$LIBS"
8171 LIBS="$PTHREAD_LIBS $LIBS"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8173$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176
8177/* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8180#ifdef __cplusplus
8181extern "C"
8182#endif
8183char pthread_join ();
8184int
8185main ()
8186{
8187return pthread_join ();
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_link "$LINENO"; then :
8193 ax_pthread_ok=yes
8194fi
8195rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8198$as_echo "$ax_pthread_ok" >&6; }
8199 if test x"$ax_pthread_ok" = xno; then
8200 PTHREAD_LIBS=""
8201 PTHREAD_CFLAGS=""
8202 fi
8203 LIBS="$save_LIBS"
8204 CFLAGS="$save_CFLAGS"
8205fi
8206
8207# We must check for the threads library under a number of different
8208# names; the ordering is very important because some systems
8209# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8210# libraries is broken (non-POSIX).
8211
8212# Create a list of thread flags to try. Items starting with a "-" are
8213# C compiler flags, and other items are library names, except for "none"
8214# which indicates that we try without any flags at all, and "pthread-config"
8215# which is a program returning the flags for the Pth emulation library.
8216
8217ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8218
8219# The ordering *is* (sometimes) important. Some notes on the
8220# individual items follow:
8221
8222# pthreads: AIX (must check this before -lpthread)
8223# none: in case threads are in libc; should be tried before -Kthread and
8224# other compiler flags to prevent continual compiler warnings
8225# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8226# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8227# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8228# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8229# -pthreads: Solaris/gcc
8230# -mthreads: Mingw32/gcc, Lynx/gcc
8231# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8232# doesn't hurt to check since this sometimes defines pthreads too;
8233# also defines -D_REENTRANT)
8234# ... -mt is also the pthreads flag for HP/aCC
8235# pthread: Linux, etcetera
8236# --thread-safe: KAI C++
8237# pthread-config: use pthread-config program (for GNU Pth library)
8238
8239case "${host_cpu}-${host_os}" in
8240 *solaris*)
8241
8242 # On Solaris (at least, for some versions), libc contains stubbed
8243 # (non-functional) versions of the pthreads routines, so link-based
8244 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8245 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8246 # a function called by this macro, so we could check for that, but
8247 # who knows whether they'll stub that too in a future libc.) So,
8248 # we'll just look for -pthreads and -lpthread first:
8249
8250 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8251 ;;
8252
8253 *-darwin*)
8254 ax_pthread_flags="-pthread $ax_pthread_flags"
8255 ;;
8256esac
8257
8258if test x"$ax_pthread_ok" = xno; then
8259for flag in $ax_pthread_flags; do
8260
8261 case $flag in
8262 none)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8264$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8265 ;;
8266
8267 -*)
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8269$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8270 PTHREAD_CFLAGS="$flag"
8271 ;;
8272
8273 pthread-config)
8274 # Extract the first word of "pthread-config", so it can be a program name with args.
8275set dummy pthread-config; ac_word=$2
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280else
8281 if test -n "$ax_pthread_config"; then
8282 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8283else
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_ax_pthread_config="yes"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295done
8296 done
8297IFS=$as_save_IFS
8298
8299 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8300fi
8301fi
8302ax_pthread_config=$ac_cv_prog_ax_pthread_config
8303if test -n "$ax_pthread_config"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8305$as_echo "$ax_pthread_config" >&6; }
8306else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308$as_echo "no" >&6; }
8309fi
8310
8311
8312 if test x"$ax_pthread_config" = xno; then continue; fi
8313 PTHREAD_CFLAGS="`pthread-config --cflags`"
8314 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8315 ;;
8316
8317 *)
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8319$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8320 PTHREAD_LIBS="-l$flag"
8321 ;;
8322 esac
8323
8324 save_LIBS="$LIBS"
8325 save_CFLAGS="$CFLAGS"
8326 LIBS="$PTHREAD_LIBS $LIBS"
8327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8328
8329 # Check for various functions. We must include pthread.h,
8330 # since some functions may be macros. (On the Sequent, we
8331 # need a special flag -Kthread to make this header compile.)
8332 # We check for pthread_join because it is in -lpthread on IRIX
8333 # while pthread_create is in libc. We check for pthread_attr_init
8334 # due to DEC craziness with -lpthreads. We check for
8335 # pthread_cleanup_push because it is one of the few pthread
8336 # functions on Solaris that doesn't have a non-functional libc stub.
8337 # We try pthread_create on general principles.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h. */
8340#include <pthread.h>
8341 static void routine(void* a) {a=0;}
8342 static void* start_routine(void* a) {return a;}
8343int
8344main ()
8345{
8346pthread_t th; pthread_attr_t attr;
8347 pthread_create(&th,0,start_routine,0);
8348 pthread_join(th, 0);
8349 pthread_attr_init(&attr);
8350 pthread_cleanup_push(routine, 0);
8351 pthread_cleanup_pop(0);
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357 ax_pthread_ok=yes
8358fi
8359rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361
8362 LIBS="$save_LIBS"
8363 CFLAGS="$save_CFLAGS"
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8366$as_echo "$ax_pthread_ok" >&6; }
8367 if test "x$ax_pthread_ok" = xyes; then
8368 break;
8369 fi
8370
8371 PTHREAD_LIBS=""
8372 PTHREAD_CFLAGS=""
8373done
8374fi
8375
8376# Various other checks:
8377if test "x$ax_pthread_ok" = xyes; then
8378 save_LIBS="$LIBS"
8379 LIBS="$PTHREAD_LIBS $LIBS"
8380 save_CFLAGS="$CFLAGS"
8381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8382
8383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8385$as_echo_n "checking for joinable pthread attribute... " >&6; }
8386 attr_name=unknown
8387 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h. */
8390#include <pthread.h>
8391int
8392main ()
8393{
8394int attr=$attr; return attr;
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399if ac_fn_c_try_link "$LINENO"; then :
8400 attr_name=$attr; break
8401fi
8402rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 done
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8406$as_echo "$attr_name" >&6; }
8407 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8408
8409cat >>confdefs.h <<_ACEOF
8410#define PTHREAD_CREATE_JOINABLE $attr_name
8411_ACEOF
8412
8413 fi
8414
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8416$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8417 flag=no
8418 case "${host_cpu}-${host_os}" in
8419 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8420 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8421 esac
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8423$as_echo "${flag}" >&6; }
8424 if test "x$flag" != xno; then
8425 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8426 fi
8427
8428 LIBS="$save_LIBS"
8429 CFLAGS="$save_CFLAGS"
8430
8431 # More AIX lossage: must compile with xlc_r or cc_r
8432 if test x"$GCC" != xyes; then
8433 for ac_prog in xlc_r cc_r
8434do
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436set dummy $ac_prog; ac_word=$2
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441else
8442 if test -n "$PTHREAD_CC"; then
8443 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_PTHREAD_CC="$ac_prog"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456done
8457 done
8458IFS=$as_save_IFS
8459
8460fi
8461fi
8462PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8463if test -n "$PTHREAD_CC"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8465$as_echo "$PTHREAD_CC" >&6; }
8466else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471
8472 test -n "$PTHREAD_CC" && break
8473done
8474test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8475
8476 else
8477 PTHREAD_CC=$CC
8478 fi
8479else
8480 PTHREAD_CC="$CC"
8481fi
8482
8483
8484
8485
8486
8487# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8488if test x"$ax_pthread_ok" = xyes; then
8489
8490$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8491
8492 :
8493else
8494 ax_pthread_ok=no
8495
8496fi
8497ac_ext=c
8498ac_cpp='$CPP $CPPFLAGS'
8499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501ac_compiler_gnu=$ac_cv_c_compiler_gnu
8502
8503
cristy7acf8fb2010-09-23 19:58:53 +00008504 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008505 have_threads=yes
8506 DEF_THREAD="$PTHREAD_CFLAGS"
8507 CFLAGS="$CFLAGS $DEF_THREAD"
8508 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8509 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008510 { $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 +00008511$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8512 CC="$PTHREAD_CC"
8513 fi
cristyb9de14a2010-09-23 16:02:17 +00008514 if test "$CXX" != "$PTHREAD_CXX"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
8516$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
8517 CXX="$PTHREAD_CXX"
8518 fi
cristy55bf91c2010-09-24 00:29:41 +00008519
8520$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8521
cristy3ed852e2009-09-05 21:47:34 +00008522 fi
8523fi
8524
8525# Enable support for OpenMP
8526if test "$have_threads" != 'yes'; then
8527 ac_cv_prog_c_openmp=unsupported
8528fi
8529
8530 OPENMP_CFLAGS=
8531 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008532if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008533 enableval=$enable_openmp;
8534fi
8535
8536 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008538$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008539if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008540 $as_echo_n "(cached) " >&6
8541else
cristy8b350f62009-11-15 23:12:43 +00008542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008544
8545#ifndef _OPENMP
8546 choke me
8547#endif
8548#include <omp.h>
8549int main () { return omp_get_num_threads (); }
8550
8551_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008553 ac_cv_prog_c_openmp='none needed'
8554else
cristy8b350f62009-11-15 23:12:43 +00008555 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008556 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8557 ac_save_CFLAGS=$CFLAGS
8558 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008561
8562#ifndef _OPENMP
8563 choke me
8564#endif
8565#include <omp.h>
8566int main () { return omp_get_num_threads (); }
8567
8568_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008570 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008571fi
cristy8b350f62009-11-15 23:12:43 +00008572rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008574 CFLAGS=$ac_save_CFLAGS
8575 if test "$ac_cv_prog_c_openmp" != unsupported; then
8576 break
8577 fi
8578 done
8579fi
cristy8b350f62009-11-15 23:12:43 +00008580rm -f core conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008582fi
cristy8b350f62009-11-15 23:12:43 +00008583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008584$as_echo "$ac_cv_prog_c_openmp" >&6; }
8585 case $ac_cv_prog_c_openmp in #(
8586 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008587 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008588 *)
cristy8b350f62009-11-15 23:12:43 +00008589 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008590 esac
8591 fi
8592
8593
8594CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8595MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8596
cristy391f1ce2010-09-09 17:23:28 +00008597if test "$enable_openmp" != no; then
8598 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8599 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8600 fi
8601fi
cristy3ed852e2009-09-05 21:47:34 +00008602
cristy736173a2009-09-20 21:18:22 +00008603# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008604
8605
8606
8607ac_ext=c
8608ac_cpp='$CPP $CPPFLAGS'
8609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611ac_compiler_gnu=$ac_cv_c_compiler_gnu
8612
8613ax_pthread_ok=no
8614
8615# We used to check for pthread.h first, but this fails if pthread.h
8616# requires special compiler flags (e.g. on True64 or Sequent).
8617# It gets checked for in the link test anyway.
8618
8619# First of all, check if the user has set any of the PTHREAD_LIBS,
8620# etcetera environment variables, and if threads linking works using
8621# them:
8622if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8623 save_CFLAGS="$CFLAGS"
8624 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8625 save_LIBS="$LIBS"
8626 LIBS="$PTHREAD_LIBS $LIBS"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8628$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630/* end confdefs.h. */
8631
8632/* Override any GCC internal prototype to avoid an error.
8633 Use char because int might match the return type of a GCC
8634 builtin and then its argument prototype would still apply. */
8635#ifdef __cplusplus
8636extern "C"
8637#endif
8638char pthread_join ();
8639int
8640main ()
8641{
8642return pthread_join ();
8643 ;
8644 return 0;
8645}
8646_ACEOF
8647if ac_fn_c_try_link "$LINENO"; then :
8648 ax_pthread_ok=yes
8649fi
8650rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8653$as_echo "$ax_pthread_ok" >&6; }
8654 if test x"$ax_pthread_ok" = xno; then
8655 PTHREAD_LIBS=""
8656 PTHREAD_CFLAGS=""
8657 fi
8658 LIBS="$save_LIBS"
8659 CFLAGS="$save_CFLAGS"
8660fi
8661
8662# We must check for the threads library under a number of different
8663# names; the ordering is very important because some systems
8664# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8665# libraries is broken (non-POSIX).
8666
8667# Create a list of thread flags to try. Items starting with a "-" are
8668# C compiler flags, and other items are library names, except for "none"
8669# which indicates that we try without any flags at all, and "pthread-config"
8670# which is a program returning the flags for the Pth emulation library.
8671
8672ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8673
8674# The ordering *is* (sometimes) important. Some notes on the
8675# individual items follow:
8676
8677# pthreads: AIX (must check this before -lpthread)
8678# none: in case threads are in libc; should be tried before -Kthread and
8679# other compiler flags to prevent continual compiler warnings
8680# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8681# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8682# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8683# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8684# -pthreads: Solaris/gcc
8685# -mthreads: Mingw32/gcc, Lynx/gcc
8686# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8687# doesn't hurt to check since this sometimes defines pthreads too;
8688# also defines -D_REENTRANT)
8689# ... -mt is also the pthreads flag for HP/aCC
8690# pthread: Linux, etcetera
8691# --thread-safe: KAI C++
8692# pthread-config: use pthread-config program (for GNU Pth library)
8693
8694case "${host_cpu}-${host_os}" in
8695 *solaris*)
8696
8697 # On Solaris (at least, for some versions), libc contains stubbed
8698 # (non-functional) versions of the pthreads routines, so link-based
8699 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8700 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8701 # a function called by this macro, so we could check for that, but
8702 # who knows whether they'll stub that too in a future libc.) So,
8703 # we'll just look for -pthreads and -lpthread first:
8704
8705 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8706 ;;
8707
8708 *-darwin*)
8709 ax_pthread_flags="-pthread $ax_pthread_flags"
8710 ;;
8711esac
8712
8713if test x"$ax_pthread_ok" = xno; then
8714for flag in $ax_pthread_flags; do
8715
8716 case $flag in
8717 none)
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8719$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8720 ;;
8721
8722 -*)
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8724$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8725 PTHREAD_CFLAGS="$flag"
8726 ;;
8727
8728 pthread-config)
8729 # Extract the first word of "pthread-config", so it can be a program name with args.
8730set dummy pthread-config; ac_word=$2
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732$as_echo_n "checking for $ac_word... " >&6; }
8733if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
8735else
8736 if test -n "$ax_pthread_config"; then
8737 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8738else
8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_ax_pthread_config="yes"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750done
8751 done
8752IFS=$as_save_IFS
8753
8754 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8755fi
8756fi
8757ax_pthread_config=$ac_cv_prog_ax_pthread_config
8758if test -n "$ax_pthread_config"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8760$as_echo "$ax_pthread_config" >&6; }
8761else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
8764fi
8765
8766
8767 if test x"$ax_pthread_config" = xno; then continue; fi
8768 PTHREAD_CFLAGS="`pthread-config --cflags`"
8769 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8770 ;;
8771
8772 *)
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8774$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8775 PTHREAD_LIBS="-l$flag"
8776 ;;
8777 esac
8778
8779 save_LIBS="$LIBS"
8780 save_CFLAGS="$CFLAGS"
8781 LIBS="$PTHREAD_LIBS $LIBS"
8782 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8783
8784 # Check for various functions. We must include pthread.h,
8785 # since some functions may be macros. (On the Sequent, we
8786 # need a special flag -Kthread to make this header compile.)
8787 # We check for pthread_join because it is in -lpthread on IRIX
8788 # while pthread_create is in libc. We check for pthread_attr_init
8789 # due to DEC craziness with -lpthreads. We check for
8790 # pthread_cleanup_push because it is one of the few pthread
8791 # functions on Solaris that doesn't have a non-functional libc stub.
8792 # We try pthread_create on general principles.
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794/* end confdefs.h. */
8795#include <pthread.h>
8796 static void routine(void* a) {a=0;}
8797 static void* start_routine(void* a) {return a;}
8798int
8799main ()
8800{
8801pthread_t th; pthread_attr_t attr;
8802 pthread_create(&th,0,start_routine,0);
8803 pthread_join(th, 0);
8804 pthread_attr_init(&attr);
8805 pthread_cleanup_push(routine, 0);
8806 pthread_cleanup_pop(0);
8807 ;
8808 return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"; then :
8812 ax_pthread_ok=yes
8813fi
8814rm -f core conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816
8817 LIBS="$save_LIBS"
8818 CFLAGS="$save_CFLAGS"
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8821$as_echo "$ax_pthread_ok" >&6; }
8822 if test "x$ax_pthread_ok" = xyes; then
8823 break;
8824 fi
8825
8826 PTHREAD_LIBS=""
8827 PTHREAD_CFLAGS=""
8828done
8829fi
8830
8831# Various other checks:
8832if test "x$ax_pthread_ok" = xyes; then
8833 save_LIBS="$LIBS"
8834 LIBS="$PTHREAD_LIBS $LIBS"
8835 save_CFLAGS="$CFLAGS"
8836 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8837
8838 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8840$as_echo_n "checking for joinable pthread attribute... " >&6; }
8841 attr_name=unknown
8842 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h. */
8845#include <pthread.h>
8846int
8847main ()
8848{
8849int attr=$attr; return attr;
8850 ;
8851 return 0;
8852}
8853_ACEOF
8854if ac_fn_c_try_link "$LINENO"; then :
8855 attr_name=$attr; break
8856fi
8857rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859 done
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8861$as_echo "$attr_name" >&6; }
8862 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8863
8864cat >>confdefs.h <<_ACEOF
8865#define PTHREAD_CREATE_JOINABLE $attr_name
8866_ACEOF
8867
8868 fi
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8871$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8872 flag=no
8873 case "${host_cpu}-${host_os}" in
8874 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8875 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8876 esac
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8878$as_echo "${flag}" >&6; }
8879 if test "x$flag" != xno; then
8880 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8881 fi
8882
8883 LIBS="$save_LIBS"
8884 CFLAGS="$save_CFLAGS"
8885
8886 # More AIX lossage: must compile with xlc_r or cc_r
8887 if test x"$GCC" != xyes; then
8888 for ac_prog in xlc_r cc_r
8889do
8890 # Extract the first word of "$ac_prog", so it can be a program name with args.
8891set dummy $ac_prog; ac_word=$2
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8896else
8897 if test -n "$PTHREAD_CC"; then
8898 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8899else
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8907 ac_cv_prog_PTHREAD_CC="$ac_prog"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8910 fi
8911done
8912 done
8913IFS=$as_save_IFS
8914
8915fi
8916fi
8917PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8918if test -n "$PTHREAD_CC"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8920$as_echo "$PTHREAD_CC" >&6; }
8921else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923$as_echo "no" >&6; }
8924fi
8925
8926
8927 test -n "$PTHREAD_CC" && break
8928done
8929test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8930
8931 else
8932 PTHREAD_CC=$CC
8933 fi
8934else
8935 PTHREAD_CC="$CC"
8936fi
8937
8938
8939
8940
8941
8942# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8943if test x"$ax_pthread_ok" = xyes; then
8944
8945$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8946
8947 :
8948else
8949 ax_pthread_ok=no
8950
8951fi
8952ac_ext=c
8953ac_cpp='$CPP $CPPFLAGS'
8954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957
8958
8959
8960# Check whether --enable-opencl was given.
8961if test "${enable_opencl+set}" = set; then :
8962 enableval=$enable_opencl; disable_opencl=$enableval
8963else
8964 disable_opencl='yes'
8965fi
8966
8967
8968if test "$disable_opencl" = 'yes'; then
8969 ac_ext=c
8970ac_cpp='$CPP $CPPFLAGS'
8971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8976$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8977if test "${ax_cv_c_compiler_ms+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981/* end confdefs.h. */
8982
8983int
8984main ()
8985{
8986#ifndef _MSC_VER
8987 choke me
8988#endif
8989
8990 ;
8991 return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_compile "$LINENO"; then :
8995 ax_compiler_ms=yes
8996else
8997 ax_compiler_ms=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000ax_cv_c_compiler_ms=$ax_compiler_ms
9001
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9004$as_echo "$ax_cv_c_compiler_ms" >&6; }
9005 if test X$ax_compiler_ms = Xno; then :
9006 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9007fi
9008
9009 ax_save_CPPFLAGS=$CPPFLAGS
9010 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9011 for ac_header in CL/cl.h OpenCL/cl.h
9012do :
9013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9014ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9015eval as_val=\$$as_ac_Header
9016 if test "x$as_val" = x""yes; then :
9017 cat >>confdefs.h <<_ACEOF
9018#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9019_ACEOF
9020
9021fi
9022
9023done
9024
9025 CPPFLAGS=$ax_save_CPPFLAGS
9026
9027 for ac_header in windows.h
9028do :
9029 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9030if test "x$ac_cv_header_windows_h" = x""yes; then :
9031 cat >>confdefs.h <<_ACEOF
9032#define HAVE_WINDOWS_H 1
9033_ACEOF
9034
9035fi
9036
9037done
9038
9039
9040
9041
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9043$as_echo_n "checking for OpenCL library... " >&6; }
9044if test "${ax_cv_check_cl_libcl+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9046else
9047 ax_cv_check_cl_libcl=no
9048 case $host_cpu in
9049 x86_64) ax_check_cl_libdir=lib64 ;;
9050 *) ax_check_cl_libdir=lib ;;
9051 esac
9052 ax_save_CPPFLAGS=$CPPFLAGS
9053 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9054 ax_save_LIBS=$LIBS
9055 LIBS=""
9056 ax_check_libs="-lOpenCL -lCL -lclparser"
9057 for ax_lib in $ax_check_libs; do
9058 if test X$ax_compiler_ms = Xyes; then :
9059 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9060else
9061 ax_try_lib=$ax_lib
9062fi
9063 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h. */
9066
9067 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9068 # include <windows.h>
9069 # endif
9070 # ifdef HAVE_CL_CL_H
9071 # include <CL/cl.h>
9072 # elif defined(HAVE_OPENCL_CL_H)
9073 # include <OpenCL/cl.h>
9074 # else
9075 # error no CL.h
9076 # endif
9077int
9078main ()
9079{
9080clCreateContextFromType(0,0,0,0,0)
9081 ;
9082 return 0;
9083}
9084_ACEOF
9085if ac_fn_c_try_link "$LINENO"; then :
9086 ax_cv_check_cl_libcl=$ax_try_lib; break
9087else
9088 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"
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h. */
9091
9092 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9093 # include <windows.h>
9094 # endif
9095 # ifdef HAVE_CL_CL_H
9096 # include <CL/cl.h>
9097 # elif defined(HAVE_OPENCL_CL_H)
9098 # include <OpenCL/cl.h>
9099 # else
9100 # error no CL.h
9101 # endif
9102int
9103main ()
9104{
9105clCreateContextFromType(0,0,0,0,0)
9106 ;
9107 return 0;
9108}
9109_ACEOF
9110if ac_fn_c_try_link "$LINENO"; then :
9111 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9112else
9113 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h. */
9116
9117 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9118 # include <windows.h>
9119 # endif
9120 # ifdef HAVE_CL_CL_H
9121 # include <CL/cl.h>
9122 # elif defined(HAVE_OPENCL_CL_H)
9123 # include <OpenCL/cl.h>
9124 # else
9125 # error no CL.h
9126 # endif
9127int
9128main ()
9129{
9130clCreateContextFromType(0,0,0,0,0)
9131 ;
9132 return 0;
9133}
9134_ACEOF
9135if ac_fn_c_try_link "$LINENO"; then :
9136 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9137fi
9138rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
9140fi
9141rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143fi
9144rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 done
9147
9148 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9149 LIBS='-framework OpenCL'
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151/* end confdefs.h. */
9152
9153 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9154 # include <windows.h>
9155 # endif
9156 # ifdef HAVE_CL_CL_H
9157 # include <CL/cl.h>
9158 # elif defined(HAVE_OPENCL_CL_H)
9159 # include <OpenCL/cl.h>
9160 # else
9161 # error no CL.h
9162 # endif
9163int
9164main ()
9165{
9166clCreateContextFromType(0,0,0,0,0)
9167 ;
9168 return 0;
9169}
9170_ACEOF
9171if ac_fn_c_try_link "$LINENO"; then :
9172 ax_cv_check_cl_libcl=$LIBS
9173fi
9174rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176fi
9177
9178 LIBS=$ax_save_LIBS
9179 CPPFLAGS=$ax_save_CPPFLAGS
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9182$as_echo "$ax_cv_check_cl_libcl" >&6; }
9183
9184 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9185 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9186else
9187 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9188$as_echo "#define _OPENCL 1" >>confdefs.h
9189
9190fi
9191 ac_ext=c
9192ac_cpp='$CPP $CPPFLAGS'
9193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9195ac_compiler_gnu=$ac_cv_c_compiler_gnu
9196
9197fi
9198
9199
9200
9201
cristyc7083c12009-10-14 03:16:55 +00009202CFLAGS="$CL_CFLAGS $CFLAGS"
9203LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009204
cristy391f1ce2010-09-09 17:23:28 +00009205if test "$enable_opencl" != no; then
9206 if test "_OPENCL" = '1'; then
9207 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9208 fi
cristyfd9dcd42010-08-08 18:07:02 +00009209fi
cristy2e8b51d2009-10-17 18:26:15 +00009210
cristy3ed852e2009-09-05 21:47:34 +00009211########
9212#
9213# Check for large file support
9214#
9215########
9216# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009217if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009218 enableval=$enable_largefile;
9219fi
9220
9221if test "$enable_largefile" != no; then
9222
cristy8b350f62009-11-15 23:12:43 +00009223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009224$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009225if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009226 $as_echo_n "(cached) " >&6
9227else
9228 ac_cv_sys_largefile_CC=no
9229 if test "$GCC" != yes; then
9230 ac_save_CC=$CC
9231 while :; do
9232 # IRIX 6.2 and later do not support large files by default,
9233 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009235/* end confdefs.h. */
9236#include <sys/types.h>
9237 /* Check that off_t can represent 2**63 - 1 correctly.
9238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9239 since some C++ compilers masquerading as C compilers
9240 incorrectly reject 9223372036854775807. */
9241#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9243 && LARGE_OFF_T % 2147483647 == 1)
9244 ? 1 : -1];
9245int
9246main ()
9247{
9248
9249 ;
9250 return 0;
9251}
9252_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009253 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009254 break
cristy3ed852e2009-09-05 21:47:34 +00009255fi
cristy3ed852e2009-09-05 21:47:34 +00009256rm -f core conftest.err conftest.$ac_objext
9257 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009258 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009259 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009260fi
cristy3ed852e2009-09-05 21:47:34 +00009261rm -f core conftest.err conftest.$ac_objext
9262 break
9263 done
9264 CC=$ac_save_CC
9265 rm -f conftest.$ac_ext
9266 fi
9267fi
cristy8b350f62009-11-15 23:12:43 +00009268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009269$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9270 if test "$ac_cv_sys_largefile_CC" != no; then
9271 CC=$CC$ac_cv_sys_largefile_CC
9272 fi
9273
cristy8b350f62009-11-15 23:12:43 +00009274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009275$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009276if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009277 $as_echo_n "(cached) " >&6
9278else
9279 while :; do
cristy8b350f62009-11-15 23:12:43 +00009280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009281/* end confdefs.h. */
9282#include <sys/types.h>
9283 /* Check that off_t can represent 2**63 - 1 correctly.
9284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9285 since some C++ compilers masquerading as C compilers
9286 incorrectly reject 9223372036854775807. */
9287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9289 && LARGE_OFF_T % 2147483647 == 1)
9290 ? 1 : -1];
9291int
9292main ()
9293{
9294
9295 ;
9296 return 0;
9297}
9298_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009300 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009301fi
cristy3ed852e2009-09-05 21:47:34 +00009302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009304/* end confdefs.h. */
9305#define _FILE_OFFSET_BITS 64
9306#include <sys/types.h>
9307 /* Check that off_t can represent 2**63 - 1 correctly.
9308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9309 since some C++ compilers masquerading as C compilers
9310 incorrectly reject 9223372036854775807. */
9311#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9313 && LARGE_OFF_T % 2147483647 == 1)
9314 ? 1 : -1];
9315int
9316main ()
9317{
9318
9319 ;
9320 return 0;
9321}
9322_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009323if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009324 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009325fi
cristy3ed852e2009-09-05 21:47:34 +00009326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 ac_cv_sys_file_offset_bits=unknown
9328 break
9329done
9330fi
cristy8b350f62009-11-15 23:12:43 +00009331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009332$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9333case $ac_cv_sys_file_offset_bits in #(
9334 no | unknown) ;;
9335 *)
9336cat >>confdefs.h <<_ACEOF
9337#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9338_ACEOF
9339;;
9340esac
9341rm -rf conftest*
9342 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009344$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009345if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009346 $as_echo_n "(cached) " >&6
9347else
9348 while :; do
cristy8b350f62009-11-15 23:12:43 +00009349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009350/* end confdefs.h. */
9351#include <sys/types.h>
9352 /* Check that off_t can represent 2**63 - 1 correctly.
9353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9354 since some C++ compilers masquerading as C compilers
9355 incorrectly reject 9223372036854775807. */
9356#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9358 && LARGE_OFF_T % 2147483647 == 1)
9359 ? 1 : -1];
9360int
9361main ()
9362{
9363
9364 ;
9365 return 0;
9366}
9367_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009368if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009369 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009370fi
cristy3ed852e2009-09-05 21:47:34 +00009371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009373/* end confdefs.h. */
9374#define _LARGE_FILES 1
9375#include <sys/types.h>
9376 /* Check that off_t can represent 2**63 - 1 correctly.
9377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9378 since some C++ compilers masquerading as C compilers
9379 incorrectly reject 9223372036854775807. */
9380#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9382 && LARGE_OFF_T % 2147483647 == 1)
9383 ? 1 : -1];
9384int
9385main ()
9386{
9387
9388 ;
9389 return 0;
9390}
9391_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009392if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009393 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009394fi
cristy3ed852e2009-09-05 21:47:34 +00009395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 ac_cv_sys_large_files=unknown
9397 break
9398done
9399fi
cristy8b350f62009-11-15 23:12:43 +00009400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo "$ac_cv_sys_large_files" >&6; }
9402case $ac_cv_sys_large_files in #(
9403 no | unknown) ;;
9404 *)
9405cat >>confdefs.h <<_ACEOF
9406#define _LARGE_FILES $ac_cv_sys_large_files
9407_ACEOF
9408;;
9409esac
9410rm -rf conftest*
9411 fi
9412fi
9413
cristy8b350f62009-11-15 23:12:43 +00009414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009415$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009416if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009417 $as_echo_n "(cached) " >&6
9418else
9419 while :; do
cristy8b350f62009-11-15 23:12:43 +00009420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009421/* end confdefs.h. */
9422#include <sys/types.h> /* for off_t */
9423 #include <stdio.h>
9424int
9425main ()
9426{
9427int (*fp) (FILE *, off_t, int) = fseeko;
9428 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9429 ;
9430 return 0;
9431}
9432_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009434 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009435fi
cristy8b350f62009-11-15 23:12:43 +00009436rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009439/* end confdefs.h. */
9440#define _LARGEFILE_SOURCE 1
9441#include <sys/types.h> /* for off_t */
9442 #include <stdio.h>
9443int
9444main ()
9445{
9446int (*fp) (FILE *, off_t, int) = fseeko;
9447 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9448 ;
9449 return 0;
9450}
9451_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009453 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009454fi
cristy8b350f62009-11-15 23:12:43 +00009455rm -f core conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009457 ac_cv_sys_largefile_source=unknown
9458 break
9459done
9460fi
cristy8b350f62009-11-15 23:12:43 +00009461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009462$as_echo "$ac_cv_sys_largefile_source" >&6; }
9463case $ac_cv_sys_largefile_source in #(
9464 no | unknown) ;;
9465 *)
9466cat >>confdefs.h <<_ACEOF
9467#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9468_ACEOF
9469;;
9470esac
9471rm -rf conftest*
9472
9473# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9474# in glibc 2.1.3, but that breaks too many other things.
9475# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9476if test $ac_cv_sys_largefile_source != unknown; then
9477
cristy8b350f62009-11-15 23:12:43 +00009478$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009479
9480fi
9481
9482LFS_CPPFLAGS=''
9483if test "$enable_largefile" != no; then
9484 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9485 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9486 else
cristy8b350f62009-11-15 23:12:43 +00009487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009488$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009489 if test "$cross_compiling" = yes; then :
9490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00009492as_fn_error "cannot run test program while cross compiling
9493See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009494else
cristy8b350f62009-11-15 23:12:43 +00009495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009497#include <unistd.h>
9498 main () {
9499 exit(!(sizeof(off_t) == 8));
9500 }
9501_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009502if ac_fn_c_try_run "$LINENO"; then :
9503 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009504
cristy8b350f62009-11-15 23:12:43 +00009505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009506$as_echo "yes" >&6; }
9507else
cristy8b350f62009-11-15 23:12:43 +00009508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009509$as_echo "no" >&6; }
9510fi
cristy8b350f62009-11-15 23:12:43 +00009511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9512 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009513fi
9514
cristy3ed852e2009-09-05 21:47:34 +00009515 fi
9516 if test "$ac_cv_sys_large_files" != 'no'; then
9517 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9518 fi
9519 if test "$ac_cv_sys_largefile_source" != 'no'; then
9520 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9521 fi
9522fi
9523
9524
9525#
9526# Configure libtool & libltdl
9527#
9528# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009529enable_dlopen=yes
9530
9531
9532
9533case `pwd` in
9534 *\ * | *\ *)
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9536$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9537esac
9538
9539
9540
9541macro_version='2.2.6b'
9542macro_revision='1.3017'
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556ltmain="$ac_aux_dir/ltmain.sh"
9557
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9559$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9560if test "${lt_cv_path_NM+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562else
9563 if test -n "$NM"; then
9564 # Let the user override the test.
9565 lt_cv_path_NM="$NM"
9566else
9567 lt_nm_to_check="${ac_tool_prefix}nm"
9568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9569 lt_nm_to_check="$lt_nm_to_check nm"
9570 fi
9571 for lt_tmp_nm in $lt_nm_to_check; do
9572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9574 IFS="$lt_save_ifs"
9575 test -z "$ac_dir" && ac_dir=.
9576 tmp_nm="$ac_dir/$lt_tmp_nm"
9577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9578 # Check to see if the nm accepts a BSD-compat flag.
9579 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9580 # nm: unknown option "B" ignored
9581 # Tru64's nm complains that /dev/null is an invalid object file
9582 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9583 */dev/null* | *'Invalid file or object type'*)
9584 lt_cv_path_NM="$tmp_nm -B"
9585 break
9586 ;;
9587 *)
9588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9589 */dev/null*)
9590 lt_cv_path_NM="$tmp_nm -p"
9591 break
9592 ;;
9593 *)
9594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9595 continue # so that we can try to find one that supports BSD flags
9596 ;;
9597 esac
9598 ;;
9599 esac
9600 fi
9601 done
9602 IFS="$lt_save_ifs"
9603 done
9604 : ${lt_cv_path_NM=no}
9605fi
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9608$as_echo "$lt_cv_path_NM" >&6; }
9609if test "$lt_cv_path_NM" != "no"; then
9610 NM="$lt_cv_path_NM"
9611else
9612 # Didn't find any BSD compatible name lister, look for dumpbin.
9613 if test -n "$ac_tool_prefix"; then
9614 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9615 do
9616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619$as_echo_n "checking for $ac_word... " >&6; }
9620if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622else
9623 if test -n "$DUMPBIN"; then
9624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9625else
9626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627for as_dir in $PATH
9628do
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9636 fi
9637done
9638 done
9639IFS=$as_save_IFS
9640
9641fi
9642fi
9643DUMPBIN=$ac_cv_prog_DUMPBIN
9644if test -n "$DUMPBIN"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9646$as_echo "$DUMPBIN" >&6; }
9647else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649$as_echo "no" >&6; }
9650fi
9651
9652
9653 test -n "$DUMPBIN" && break
9654 done
9655fi
9656if test -z "$DUMPBIN"; then
9657 ac_ct_DUMPBIN=$DUMPBIN
9658 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9659do
9660 # Extract the first word of "$ac_prog", so it can be a program name with args.
9661set dummy $ac_prog; ac_word=$2
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663$as_echo_n "checking for $ac_word... " >&6; }
9664if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666else
9667 if test -n "$ac_ct_DUMPBIN"; then
9668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9669else
9670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681done
9682 done
9683IFS=$as_save_IFS
9684
9685fi
9686fi
9687ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9688if test -n "$ac_ct_DUMPBIN"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9690$as_echo "$ac_ct_DUMPBIN" >&6; }
9691else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9694fi
9695
9696
9697 test -n "$ac_ct_DUMPBIN" && break
9698done
9699
9700 if test "x$ac_ct_DUMPBIN" = x; then
9701 DUMPBIN=":"
9702 else
9703 case $cross_compiling:$ac_tool_warned in
9704yes:)
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9707ac_tool_warned=yes ;;
9708esac
9709 DUMPBIN=$ac_ct_DUMPBIN
9710 fi
9711fi
9712
9713
9714 if test "$DUMPBIN" != ":"; then
9715 NM="$DUMPBIN"
9716 fi
9717fi
9718test -z "$NM" && NM=nm
9719
9720
9721
9722
9723
9724
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9726$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9727if test "${lt_cv_nm_interface+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9729else
9730 lt_cv_nm_interface="BSD nm"
9731 echo "int some_variable = 0;" > conftest.$ac_ext
cristy23f7a922010-10-11 00:27:48 +00009732 (eval echo "\"\$as_me:9732: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009733 (eval "$ac_compile" 2>conftest.err)
9734 cat conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +00009735 (eval echo "\"\$as_me:9735: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009736 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9737 cat conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +00009738 (eval echo "\"\$as_me:9738: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009739 cat conftest.out >&5
9740 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9741 lt_cv_nm_interface="MS dumpbin"
9742 fi
9743 rm -f conftest*
9744fi
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9746$as_echo "$lt_cv_nm_interface" >&6; }
9747
9748# find the maximum length of command line arguments
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9750$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9751if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753else
9754 i=0
9755 teststring="ABCD"
9756
9757 case $build_os in
9758 msdosdjgpp*)
9759 # On DJGPP, this test can blow up pretty badly due to problems in libc
9760 # (any single argument exceeding 2000 bytes causes a buffer overrun
9761 # during glob expansion). Even if it were fixed, the result of this
9762 # check would be larger than it should be.
9763 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9764 ;;
9765
9766 gnu*)
9767 # Under GNU Hurd, this test is not required because there is
9768 # no limit to the length of command line arguments.
9769 # Libtool will interpret -1 as no limit whatsoever
9770 lt_cv_sys_max_cmd_len=-1;
9771 ;;
9772
9773 cygwin* | mingw* | cegcc*)
9774 # On Win9x/ME, this test blows up -- it succeeds, but takes
9775 # about 5 minutes as the teststring grows exponentially.
9776 # Worse, since 9x/ME are not pre-emptively multitasking,
9777 # you end up with a "frozen" computer, even though with patience
9778 # the test eventually succeeds (with a max line length of 256k).
9779 # Instead, let's just punt: use the minimum linelength reported by
9780 # all of the supported platforms: 8192 (on NT/2K/XP).
9781 lt_cv_sys_max_cmd_len=8192;
9782 ;;
9783
9784 amigaos*)
9785 # On AmigaOS with pdksh, this test takes hours, literally.
9786 # So we just punt and use a minimum line length of 8192.
9787 lt_cv_sys_max_cmd_len=8192;
9788 ;;
9789
9790 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9791 # This has been around since 386BSD, at least. Likely further.
9792 if test -x /sbin/sysctl; then
9793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9794 elif test -x /usr/sbin/sysctl; then
9795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9796 else
9797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9798 fi
9799 # And add a safety zone
9800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9802 ;;
9803
9804 interix*)
9805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9806 lt_cv_sys_max_cmd_len=196608
9807 ;;
9808
9809 osf*)
9810 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9811 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9812 # nice to cause kernel panics so lets avoid the loop below.
9813 # First set a reasonable default.
9814 lt_cv_sys_max_cmd_len=16384
9815 #
9816 if test -x /sbin/sysconfig; then
9817 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9818 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9819 esac
9820 fi
9821 ;;
9822 sco3.2v5*)
9823 lt_cv_sys_max_cmd_len=102400
9824 ;;
9825 sysv5* | sco5v6* | sysv4.2uw2*)
9826 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9827 if test -n "$kargmax"; then
9828 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9829 else
9830 lt_cv_sys_max_cmd_len=32768
9831 fi
9832 ;;
9833 *)
9834 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9835 if test -n "$lt_cv_sys_max_cmd_len"; then
9836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9838 else
9839 # Make teststring a little bigger before we do anything with it.
9840 # a 1K string should be a reasonable start.
9841 for i in 1 2 3 4 5 6 7 8 ; do
9842 teststring=$teststring$teststring
9843 done
9844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9845 # If test is not a shell built-in, we'll probably end up computing a
9846 # maximum length that is only half of the actual maximum length, but
9847 # we can't tell.
9848 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9849 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9850 test $i != 17 # 1/2 MB should be enough
9851 do
9852 i=`expr $i + 1`
9853 teststring=$teststring$teststring
9854 done
9855 # Only check the string length outside the loop.
9856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9857 teststring=
9858 # Add a significant safety factor because C++ compilers can tack on
9859 # massive amounts of additional arguments before passing them to the
9860 # linker. It appears as though 1/2 is a usable value.
9861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9862 fi
9863 ;;
9864 esac
9865
9866fi
9867
9868if test -n $lt_cv_sys_max_cmd_len ; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9870$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9871else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9873$as_echo "none" >&6; }
9874fi
9875max_cmd_len=$lt_cv_sys_max_cmd_len
9876
9877
9878
9879
9880
9881
9882: ${CP="cp -f"}
9883: ${MV="mv -f"}
9884: ${RM="rm -f"}
9885
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9887$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9888# Try some XSI features
9889xsi_shell=no
9890( _lt_dummy="a/b/c"
9891 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9892 = c,a/b,, \
9893 && eval 'test $(( 1 + 1 )) -eq 2 \
9894 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9895 && xsi_shell=yes
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9897$as_echo "$xsi_shell" >&6; }
9898
9899
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9901$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9902lt_shell_append=no
9903( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9904 >/dev/null 2>&1 \
9905 && lt_shell_append=yes
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9907$as_echo "$lt_shell_append" >&6; }
9908
9909
9910if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9911 lt_unset=unset
9912else
9913 lt_unset=false
9914fi
9915
9916
9917
9918
9919
9920# test EBCDIC or ASCII
9921case `echo X|tr X '\101'` in
9922 A) # ASCII based system
9923 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9924 lt_SP2NL='tr \040 \012'
9925 lt_NL2SP='tr \015\012 \040\040'
9926 ;;
9927 *) # EBCDIC based system
9928 lt_SP2NL='tr \100 \n'
9929 lt_NL2SP='tr \r\n \100\100'
9930 ;;
9931esac
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9942$as_echo_n "checking for $LD option to reload object files... " >&6; }
9943if test "${lt_cv_ld_reload_flag+set}" = set; then :
9944 $as_echo_n "(cached) " >&6
9945else
9946 lt_cv_ld_reload_flag='-r'
9947fi
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9949$as_echo "$lt_cv_ld_reload_flag" >&6; }
9950reload_flag=$lt_cv_ld_reload_flag
9951case $reload_flag in
9952"" | " "*) ;;
9953*) reload_flag=" $reload_flag" ;;
9954esac
9955reload_cmds='$LD$reload_flag -o $output$reload_objs'
9956case $host_os in
9957 darwin*)
9958 if test "$GCC" = yes; then
9959 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9960 else
9961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9962 fi
9963 ;;
9964esac
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974if test -n "$ac_tool_prefix"; then
9975 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9976set dummy ${ac_tool_prefix}objdump; ac_word=$2
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981else
9982 if test -n "$OBJDUMP"; then
9983 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996done
9997 done
9998IFS=$as_save_IFS
9999
10000fi
10001fi
10002OBJDUMP=$ac_cv_prog_OBJDUMP
10003if test -n "$OBJDUMP"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10005$as_echo "$OBJDUMP" >&6; }
10006else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
10009fi
10010
10011
10012fi
10013if test -z "$ac_cv_prog_OBJDUMP"; then
10014 ac_ct_OBJDUMP=$OBJDUMP
10015 # Extract the first word of "objdump", so it can be a program name with args.
10016set dummy objdump; ac_word=$2
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021else
10022 if test -n "$ac_ct_OBJDUMP"; then
10023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10024else
10025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036done
10037 done
10038IFS=$as_save_IFS
10039
10040fi
10041fi
10042ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10043if test -n "$ac_ct_OBJDUMP"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10045$as_echo "$ac_ct_OBJDUMP" >&6; }
10046else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
10049fi
10050
10051 if test "x$ac_ct_OBJDUMP" = x; then
10052 OBJDUMP="false"
10053 else
10054 case $cross_compiling:$ac_tool_warned in
10055yes:)
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10058ac_tool_warned=yes ;;
10059esac
10060 OBJDUMP=$ac_ct_OBJDUMP
10061 fi
10062else
10063 OBJDUMP="$ac_cv_prog_OBJDUMP"
10064fi
10065
10066test -z "$OBJDUMP" && OBJDUMP=objdump
10067
10068
10069
10070
10071
10072
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10074$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10075if test "${lt_cv_deplibs_check_method+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10077else
10078 lt_cv_file_magic_cmd='$MAGIC_CMD'
10079lt_cv_file_magic_test_file=
10080lt_cv_deplibs_check_method='unknown'
10081# Need to set the preceding variable on all platforms that support
10082# interlibrary dependencies.
10083# 'none' -- dependencies not supported.
10084# `unknown' -- same as none, but documents that we really don't know.
10085# 'pass_all' -- all dependencies passed with no checks.
10086# 'test_compile' -- check by making test program.
10087# 'file_magic [[regex]]' -- check by looking for files in library path
10088# which responds to the $file_magic_cmd with a given extended regex.
10089# If you have `file' or equivalent on your system and you're not sure
10090# whether `pass_all' will *always* work, you probably want this one.
10091
10092case $host_os in
10093aix[4-9]*)
10094 lt_cv_deplibs_check_method=pass_all
10095 ;;
10096
10097beos*)
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100
10101bsdi[45]*)
10102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10103 lt_cv_file_magic_cmd='/usr/bin/file -L'
10104 lt_cv_file_magic_test_file=/shlib/libc.so
10105 ;;
10106
10107cygwin*)
10108 # func_win32_libid is a shell function defined in ltmain.sh
10109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10110 lt_cv_file_magic_cmd='func_win32_libid'
10111 ;;
10112
10113mingw* | pw32*)
10114 # Base MSYS/MinGW do not provide the 'file' command needed by
10115 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10116 # unless we find 'file', for example because we are cross-compiling.
10117 if ( file / ) >/dev/null 2>&1; then
10118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10119 lt_cv_file_magic_cmd='func_win32_libid'
10120 else
10121 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10122 lt_cv_file_magic_cmd='$OBJDUMP -f'
10123 fi
10124 ;;
10125
10126cegcc)
10127 # use the weaker test based on 'objdump'. See mingw*.
10128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10129 lt_cv_file_magic_cmd='$OBJDUMP -f'
10130 ;;
10131
10132darwin* | rhapsody*)
10133 lt_cv_deplibs_check_method=pass_all
10134 ;;
10135
10136freebsd* | dragonfly*)
10137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10138 case $host_cpu in
10139 i*86 )
10140 # Not sure whether the presence of OpenBSD here was a mistake.
10141 # Let's accept both of them until this is cleared up.
10142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10143 lt_cv_file_magic_cmd=/usr/bin/file
10144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10145 ;;
10146 esac
10147 else
10148 lt_cv_deplibs_check_method=pass_all
10149 fi
10150 ;;
10151
10152gnu*)
10153 lt_cv_deplibs_check_method=pass_all
10154 ;;
10155
10156hpux10.20* | hpux11*)
10157 lt_cv_file_magic_cmd=/usr/bin/file
10158 case $host_cpu in
10159 ia64*)
10160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10162 ;;
10163 hppa*64*)
10164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10166 ;;
10167 *)
10168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10170 ;;
10171 esac
10172 ;;
10173
10174interix[3-9]*)
10175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10177 ;;
10178
10179irix5* | irix6* | nonstopux*)
10180 case $LD in
10181 *-32|*"-32 ") libmagic=32-bit;;
10182 *-n32|*"-n32 ") libmagic=N32;;
10183 *-64|*"-64 ") libmagic=64-bit;;
10184 *) libmagic=never-match;;
10185 esac
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189# This must be Linux ELF.
10190linux* | k*bsd*-gnu)
10191 lt_cv_deplibs_check_method=pass_all
10192 ;;
10193
10194netbsd*)
10195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10197 else
10198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10199 fi
10200 ;;
10201
10202newos6*)
10203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10204 lt_cv_file_magic_cmd=/usr/bin/file
10205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10206 ;;
10207
10208*nto* | *qnx*)
10209 lt_cv_deplibs_check_method=pass_all
10210 ;;
10211
10212openbsd*)
10213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10215 else
10216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10217 fi
10218 ;;
10219
10220osf3* | osf4* | osf5*)
10221 lt_cv_deplibs_check_method=pass_all
10222 ;;
10223
10224rdos*)
10225 lt_cv_deplibs_check_method=pass_all
10226 ;;
10227
10228solaris*)
10229 lt_cv_deplibs_check_method=pass_all
10230 ;;
10231
10232sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10233 lt_cv_deplibs_check_method=pass_all
10234 ;;
10235
10236sysv4 | sysv4.3*)
10237 case $host_vendor in
10238 motorola)
10239 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]'
10240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10241 ;;
10242 ncr)
10243 lt_cv_deplibs_check_method=pass_all
10244 ;;
10245 sequent)
10246 lt_cv_file_magic_cmd='/bin/file'
10247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10248 ;;
10249 sni)
10250 lt_cv_file_magic_cmd='/bin/file'
10251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10252 lt_cv_file_magic_test_file=/lib/libc.so
10253 ;;
10254 siemens)
10255 lt_cv_deplibs_check_method=pass_all
10256 ;;
10257 pc)
10258 lt_cv_deplibs_check_method=pass_all
10259 ;;
10260 esac
10261 ;;
10262
10263tpf*)
10264 lt_cv_deplibs_check_method=pass_all
10265 ;;
10266esac
10267
10268fi
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10270$as_echo "$lt_cv_deplibs_check_method" >&6; }
10271file_magic_cmd=$lt_cv_file_magic_cmd
10272deplibs_check_method=$lt_cv_deplibs_check_method
10273test -z "$deplibs_check_method" && deplibs_check_method=unknown
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286if test -n "$ac_tool_prefix"; then
10287 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10288set dummy ${ac_tool_prefix}ar; ac_word=$2
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if test "${ac_cv_prog_AR+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10293else
10294 if test -n "$AR"; then
10295 ac_cv_prog_AR="$AR" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304 ac_cv_prog_AR="${ac_tool_prefix}ar"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309 done
10310IFS=$as_save_IFS
10311
10312fi
10313fi
10314AR=$ac_cv_prog_AR
10315if test -n "$AR"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10317$as_echo "$AR" >&6; }
10318else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
10321fi
10322
10323
10324fi
10325if test -z "$ac_cv_prog_AR"; then
10326 ac_ct_AR=$AR
10327 # Extract the first word of "ar", so it can be a program name with args.
10328set dummy ar; ac_word=$2
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
10331if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333else
10334 if test -n "$ac_ct_AR"; then
10335 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10336else
10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_prog_ac_ct_AR="ar"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348done
10349 done
10350IFS=$as_save_IFS
10351
10352fi
10353fi
10354ac_ct_AR=$ac_cv_prog_ac_ct_AR
10355if test -n "$ac_ct_AR"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10357$as_echo "$ac_ct_AR" >&6; }
10358else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
10361fi
10362
10363 if test "x$ac_ct_AR" = x; then
10364 AR="false"
10365 else
10366 case $cross_compiling:$ac_tool_warned in
10367yes:)
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10370ac_tool_warned=yes ;;
10371esac
10372 AR=$ac_ct_AR
10373 fi
10374else
10375 AR="$ac_cv_prog_AR"
10376fi
10377
10378test -z "$AR" && AR=ar
10379test -z "$AR_FLAGS" && AR_FLAGS=cru
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391if test -n "$ac_tool_prefix"; then
10392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10393set dummy ${ac_tool_prefix}strip; ac_word=$2
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395$as_echo_n "checking for $ac_word... " >&6; }
10396if test "${ac_cv_prog_STRIP+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10398else
10399 if test -n "$STRIP"; then
10400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10401else
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413done
10414 done
10415IFS=$as_save_IFS
10416
10417fi
10418fi
10419STRIP=$ac_cv_prog_STRIP
10420if test -n "$STRIP"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10422$as_echo "$STRIP" >&6; }
10423else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425$as_echo "no" >&6; }
10426fi
10427
10428
10429fi
10430if test -z "$ac_cv_prog_STRIP"; then
10431 ac_ct_STRIP=$STRIP
10432 # Extract the first word of "strip", so it can be a program name with args.
10433set dummy strip; ac_word=$2
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435$as_echo_n "checking for $ac_word... " >&6; }
10436if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438else
10439 if test -n "$ac_ct_STRIP"; then
10440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10441else
10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in $PATH
10444do
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449 ac_cv_prog_ac_ct_STRIP="strip"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10452 fi
10453done
10454 done
10455IFS=$as_save_IFS
10456
10457fi
10458fi
10459ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10460if test -n "$ac_ct_STRIP"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10462$as_echo "$ac_ct_STRIP" >&6; }
10463else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465$as_echo "no" >&6; }
10466fi
10467
10468 if test "x$ac_ct_STRIP" = x; then
10469 STRIP=":"
10470 else
10471 case $cross_compiling:$ac_tool_warned in
10472yes:)
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10475ac_tool_warned=yes ;;
10476esac
10477 STRIP=$ac_ct_STRIP
10478 fi
10479else
10480 STRIP="$ac_cv_prog_STRIP"
10481fi
10482
10483test -z "$STRIP" && STRIP=:
10484
10485
10486
10487
10488
10489
10490if test -n "$ac_tool_prefix"; then
10491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10492set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
10495if test "${ac_cv_prog_RANLIB+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10497else
10498 if test -n "$RANLIB"; then
10499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513 done
10514IFS=$as_save_IFS
10515
10516fi
10517fi
10518RANLIB=$ac_cv_prog_RANLIB
10519if test -n "$RANLIB"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10521$as_echo "$RANLIB" >&6; }
10522else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
10525fi
10526
10527
10528fi
10529if test -z "$ac_cv_prog_RANLIB"; then
10530 ac_ct_RANLIB=$RANLIB
10531 # Extract the first word of "ranlib", so it can be a program name with args.
10532set dummy ranlib; ac_word=$2
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534$as_echo_n "checking for $ac_word... " >&6; }
10535if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10537else
10538 if test -n "$ac_ct_RANLIB"; then
10539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10540else
10541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542for as_dir in $PATH
10543do
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10548 ac_cv_prog_ac_ct_RANLIB="ranlib"
10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10551 fi
10552done
10553 done
10554IFS=$as_save_IFS
10555
10556fi
10557fi
10558ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10559if test -n "$ac_ct_RANLIB"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10561$as_echo "$ac_ct_RANLIB" >&6; }
10562else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564$as_echo "no" >&6; }
10565fi
10566
10567 if test "x$ac_ct_RANLIB" = x; then
10568 RANLIB=":"
10569 else
10570 case $cross_compiling:$ac_tool_warned in
10571yes:)
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10574ac_tool_warned=yes ;;
10575esac
10576 RANLIB=$ac_ct_RANLIB
10577 fi
10578else
10579 RANLIB="$ac_cv_prog_RANLIB"
10580fi
10581
10582test -z "$RANLIB" && RANLIB=:
10583
10584
10585
10586
10587
10588
10589# Determine commands to create old-style static archives.
10590old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10591old_postinstall_cmds='chmod 644 $oldlib'
10592old_postuninstall_cmds=
10593
10594if test -n "$RANLIB"; then
10595 case $host_os in
10596 openbsd*)
10597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10598 ;;
10599 *)
10600 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10601 ;;
10602 esac
10603 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10604fi
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639# If no C compiler was specified, use CC.
10640LTCC=${LTCC-"$CC"}
10641
10642# If no C compiler flags were specified, use CFLAGS.
10643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10644
10645# Allow CC to be a program name with arguments.
10646compiler=$CC
10647
10648
10649# Check for command to grab the raw symbol name followed by C symbol from nm.
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10651$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10652if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654else
10655
10656# These are sane defaults that work on at least a few old systems.
10657# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10658
10659# Character class describing NM global symbol codes.
10660symcode='[BCDEGRST]'
10661
10662# Regexp to match symbols that can be accessed directly from C.
10663sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10664
10665# Define system-specific variables.
10666case $host_os in
10667aix*)
10668 symcode='[BCDT]'
10669 ;;
10670cygwin* | mingw* | pw32* | cegcc*)
10671 symcode='[ABCDGISTW]'
10672 ;;
10673hpux*)
10674 if test "$host_cpu" = ia64; then
10675 symcode='[ABCDEGRST]'
10676 fi
10677 ;;
10678irix* | nonstopux*)
10679 symcode='[BCDEGRST]'
10680 ;;
10681osf*)
10682 symcode='[BCDEGQRST]'
10683 ;;
10684solaris*)
10685 symcode='[BDRT]'
10686 ;;
10687sco3.2v5*)
10688 symcode='[DT]'
10689 ;;
10690sysv4.2uw2*)
10691 symcode='[DT]'
10692 ;;
10693sysv5* | sco5v6* | unixware* | OpenUNIX*)
10694 symcode='[ABDT]'
10695 ;;
10696sysv4)
10697 symcode='[DFNSTU]'
10698 ;;
10699esac
10700
10701# If we're using GNU nm, then use its standard symbol codes.
10702case `$NM -V 2>&1` in
10703*GNU* | *'with BFD'*)
10704 symcode='[ABCDGIRSTW]' ;;
10705esac
10706
10707# Transform an extracted symbol line into a proper C declaration.
10708# Some systems (esp. on ia64) link data and code symbols differently,
10709# so use this general approach.
10710lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10711
10712# Transform an extracted symbol line into symbol name and symbol address
10713lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10714lt_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'"
10715
10716# Handle CRLF in mingw tool chain
10717opt_cr=
10718case $build_os in
10719mingw*)
10720 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10721 ;;
10722esac
10723
10724# Try without a prefix underscore, then with it.
10725for ac_symprfx in "" "_"; do
10726
10727 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10728 symxfrm="\\1 $ac_symprfx\\2 \\2"
10729
10730 # Write the raw and C identifiers.
10731 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10732 # Fake it for dumpbin and say T for any non-static function
10733 # and D for any global variable.
10734 # Also find C++ and __fastcall symbols from MSVC++,
10735 # which start with @ or ?.
10736 lt_cv_sys_global_symbol_pipe="$AWK '"\
10737" {last_section=section; section=\$ 3};"\
10738" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10739" \$ 0!~/External *\|/{next};"\
10740" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10741" {if(hide[section]) next};"\
10742" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10743" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10744" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10745" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10746" ' prfx=^$ac_symprfx"
10747 else
10748 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10749 fi
10750
10751 # Check to see that the pipe works correctly.
10752 pipe_works=no
10753
10754 rm -f conftest*
10755 cat > conftest.$ac_ext <<_LT_EOF
10756#ifdef __cplusplus
10757extern "C" {
10758#endif
10759char nm_test_var;
10760void nm_test_func(void);
10761void nm_test_func(void){}
10762#ifdef __cplusplus
10763}
10764#endif
10765int main(){nm_test_var='a';nm_test_func();return(0);}
10766_LT_EOF
10767
10768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10769 (eval $ac_compile) 2>&5
10770 ac_status=$?
10771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10772 test $ac_status = 0; }; then
10773 # Now try to grab the symbols.
10774 nlist=conftest.nm
10775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10776 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10777 ac_status=$?
10778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779 test $ac_status = 0; } && test -s "$nlist"; then
10780 # Try sorting and uniquifying the output.
10781 if sort "$nlist" | uniq > "$nlist"T; then
10782 mv -f "$nlist"T "$nlist"
10783 else
10784 rm -f "$nlist"T
10785 fi
10786
10787 # Make sure that we snagged all the symbols we need.
10788 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10789 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10790 cat <<_LT_EOF > conftest.$ac_ext
10791#ifdef __cplusplus
10792extern "C" {
10793#endif
10794
10795_LT_EOF
10796 # Now generate the symbol file.
10797 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10798
10799 cat <<_LT_EOF >> conftest.$ac_ext
10800
10801/* The mapping between symbol names and symbols. */
10802const struct {
10803 const char *name;
10804 void *address;
10805}
10806lt__PROGRAM__LTX_preloaded_symbols[] =
10807{
10808 { "@PROGRAM@", (void *) 0 },
10809_LT_EOF
10810 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10811 cat <<\_LT_EOF >> conftest.$ac_ext
10812 {0, (void *) 0}
10813};
10814
10815/* This works around a problem in FreeBSD linker */
10816#ifdef FREEBSD_WORKAROUND
10817static const void *lt_preloaded_setup() {
10818 return lt__PROGRAM__LTX_preloaded_symbols;
10819}
10820#endif
10821
10822#ifdef __cplusplus
10823}
10824#endif
10825_LT_EOF
10826 # Now try linking the two files.
10827 mv conftest.$ac_objext conftstm.$ac_objext
10828 lt_save_LIBS="$LIBS"
10829 lt_save_CFLAGS="$CFLAGS"
10830 LIBS="conftstm.$ac_objext"
10831 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10833 (eval $ac_link) 2>&5
10834 ac_status=$?
10835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10837 pipe_works=yes
10838 fi
10839 LIBS="$lt_save_LIBS"
10840 CFLAGS="$lt_save_CFLAGS"
10841 else
10842 echo "cannot find nm_test_func in $nlist" >&5
10843 fi
10844 else
10845 echo "cannot find nm_test_var in $nlist" >&5
10846 fi
10847 else
10848 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10849 fi
10850 else
10851 echo "$progname: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 fi
10854 rm -rf conftest* conftst*
10855
10856 # Do not use the global_symbol_pipe unless it works.
10857 if test "$pipe_works" = yes; then
10858 break
10859 else
10860 lt_cv_sys_global_symbol_pipe=
10861 fi
10862done
10863
10864fi
10865
10866if test -z "$lt_cv_sys_global_symbol_pipe"; then
10867 lt_cv_sys_global_symbol_to_cdecl=
10868fi
10869if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10871$as_echo "failed" >&6; }
10872else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10874$as_echo "ok" >&6; }
10875fi
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898# Check whether --enable-libtool-lock was given.
10899if test "${enable_libtool_lock+set}" = set; then :
10900 enableval=$enable_libtool_lock;
10901fi
10902
10903test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10904
10905# Some flags need to be propagated to the compiler or linker for good
10906# libtool support.
10907case $host in
10908ia64-*-hpux*)
10909 # Find out which ABI we are using.
10910 echo 'int i;' > conftest.$ac_ext
10911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10912 (eval $ac_compile) 2>&5
10913 ac_status=$?
10914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10915 test $ac_status = 0; }; then
10916 case `/usr/bin/file conftest.$ac_objext` in
10917 *ELF-32*)
10918 HPUX_IA64_MODE="32"
10919 ;;
10920 *ELF-64*)
10921 HPUX_IA64_MODE="64"
10922 ;;
10923 esac
10924 fi
10925 rm -rf conftest*
10926 ;;
10927*-*-irix6*)
10928 # Find out which ABI we are using.
cristy23f7a922010-10-11 00:27:48 +000010929 echo '#line 10929 "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10931 (eval $ac_compile) 2>&5
10932 ac_status=$?
10933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10934 test $ac_status = 0; }; then
10935 if test "$lt_cv_prog_gnu_ld" = yes; then
10936 case `/usr/bin/file conftest.$ac_objext` in
10937 *32-bit*)
10938 LD="${LD-ld} -melf32bsmip"
10939 ;;
10940 *N32*)
10941 LD="${LD-ld} -melf32bmipn32"
10942 ;;
10943 *64-bit*)
10944 LD="${LD-ld} -melf64bmip"
10945 ;;
10946 esac
10947 else
10948 case `/usr/bin/file conftest.$ac_objext` in
10949 *32-bit*)
10950 LD="${LD-ld} -32"
10951 ;;
10952 *N32*)
10953 LD="${LD-ld} -n32"
10954 ;;
10955 *64-bit*)
10956 LD="${LD-ld} -64"
10957 ;;
10958 esac
10959 fi
10960 fi
10961 rm -rf conftest*
10962 ;;
10963
10964x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10965s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10966 # Find out which ABI we are using.
10967 echo 'int i;' > conftest.$ac_ext
10968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10969 (eval $ac_compile) 2>&5
10970 ac_status=$?
10971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10972 test $ac_status = 0; }; then
10973 case `/usr/bin/file conftest.o` in
10974 *32-bit*)
10975 case $host in
10976 x86_64-*kfreebsd*-gnu)
10977 LD="${LD-ld} -m elf_i386_fbsd"
10978 ;;
10979 x86_64-*linux*)
10980 LD="${LD-ld} -m elf_i386"
10981 ;;
10982 ppc64-*linux*|powerpc64-*linux*)
10983 LD="${LD-ld} -m elf32ppclinux"
10984 ;;
10985 s390x-*linux*)
10986 LD="${LD-ld} -m elf_s390"
10987 ;;
10988 sparc64-*linux*)
10989 LD="${LD-ld} -m elf32_sparc"
10990 ;;
10991 esac
10992 ;;
10993 *64-bit*)
10994 case $host in
10995 x86_64-*kfreebsd*-gnu)
10996 LD="${LD-ld} -m elf_x86_64_fbsd"
10997 ;;
10998 x86_64-*linux*)
10999 LD="${LD-ld} -m elf_x86_64"
11000 ;;
11001 ppc*-*linux*|powerpc*-*linux*)
11002 LD="${LD-ld} -m elf64ppc"
11003 ;;
11004 s390*-*linux*|s390*-*tpf*)
11005 LD="${LD-ld} -m elf64_s390"
11006 ;;
11007 sparc*-*linux*)
11008 LD="${LD-ld} -m elf64_sparc"
11009 ;;
11010 esac
11011 ;;
11012 esac
11013 fi
11014 rm -rf conftest*
11015 ;;
11016
11017*-*-sco3.2v5*)
11018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11019 SAVE_CFLAGS="$CFLAGS"
11020 CFLAGS="$CFLAGS -belf"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11022$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11023if test "${lt_cv_cc_needs_belf+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025else
11026 ac_ext=c
11027ac_cpp='$CPP $CPPFLAGS'
11028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11030ac_compiler_gnu=$ac_cv_c_compiler_gnu
11031
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h. */
11034
11035int
11036main ()
11037{
11038
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043if ac_fn_c_try_link "$LINENO"; then :
11044 lt_cv_cc_needs_belf=yes
11045else
11046 lt_cv_cc_needs_belf=no
11047fi
11048rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 ac_ext=c
11051ac_cpp='$CPP $CPPFLAGS'
11052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11054ac_compiler_gnu=$ac_cv_c_compiler_gnu
11055
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11058$as_echo "$lt_cv_cc_needs_belf" >&6; }
11059 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11060 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11061 CFLAGS="$SAVE_CFLAGS"
11062 fi
11063 ;;
11064sparc*-*solaris*)
11065 # Find out which ABI we are using.
11066 echo 'int i;' > conftest.$ac_ext
11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11068 (eval $ac_compile) 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; }; then
11072 case `/usr/bin/file conftest.o` in
11073 *64-bit*)
11074 case $lt_cv_prog_gnu_ld in
11075 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11076 *)
11077 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11078 LD="${LD-ld} -64"
11079 fi
11080 ;;
11081 esac
11082 ;;
11083 esac
11084 fi
11085 rm -rf conftest*
11086 ;;
11087esac
11088
11089need_locks="$enable_libtool_lock"
11090
11091
11092 case $host_os in
11093 rhapsody* | darwin*)
11094 if test -n "$ac_tool_prefix"; then
11095 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11096set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
11099if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 if test -n "$DSYMUTIL"; then
11103 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116done
11117 done
11118IFS=$as_save_IFS
11119
11120fi
11121fi
11122DSYMUTIL=$ac_cv_prog_DSYMUTIL
11123if test -n "$DSYMUTIL"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11125$as_echo "$DSYMUTIL" >&6; }
11126else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
11129fi
11130
11131
11132fi
11133if test -z "$ac_cv_prog_DSYMUTIL"; then
11134 ac_ct_DSYMUTIL=$DSYMUTIL
11135 # Extract the first word of "dsymutil", so it can be a program name with args.
11136set dummy dsymutil; ac_word=$2
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
11139if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141else
11142 if test -n "$ac_ct_DSYMUTIL"; then
11143 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11144else
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11152 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11155 fi
11156done
11157 done
11158IFS=$as_save_IFS
11159
11160fi
11161fi
11162ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11163if test -n "$ac_ct_DSYMUTIL"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11165$as_echo "$ac_ct_DSYMUTIL" >&6; }
11166else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
11169fi
11170
11171 if test "x$ac_ct_DSYMUTIL" = x; then
11172 DSYMUTIL=":"
11173 else
11174 case $cross_compiling:$ac_tool_warned in
11175yes:)
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178ac_tool_warned=yes ;;
11179esac
11180 DSYMUTIL=$ac_ct_DSYMUTIL
11181 fi
11182else
11183 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11184fi
11185
11186 if test -n "$ac_tool_prefix"; then
11187 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11188set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190$as_echo_n "checking for $ac_word... " >&6; }
11191if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11193else
11194 if test -n "$NMEDIT"; then
11195 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209 done
11210IFS=$as_save_IFS
11211
11212fi
11213fi
11214NMEDIT=$ac_cv_prog_NMEDIT
11215if test -n "$NMEDIT"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11217$as_echo "$NMEDIT" >&6; }
11218else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220$as_echo "no" >&6; }
11221fi
11222
11223
11224fi
11225if test -z "$ac_cv_prog_NMEDIT"; then
11226 ac_ct_NMEDIT=$NMEDIT
11227 # Extract the first word of "nmedit", so it can be a program name with args.
11228set dummy nmedit; ac_word=$2
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230$as_echo_n "checking for $ac_word... " >&6; }
11231if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11233else
11234 if test -n "$ac_ct_NMEDIT"; then
11235 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11236else
11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11244 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 break 2
11247 fi
11248done
11249 done
11250IFS=$as_save_IFS
11251
11252fi
11253fi
11254ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11255if test -n "$ac_ct_NMEDIT"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11257$as_echo "$ac_ct_NMEDIT" >&6; }
11258else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260$as_echo "no" >&6; }
11261fi
11262
11263 if test "x$ac_ct_NMEDIT" = x; then
11264 NMEDIT=":"
11265 else
11266 case $cross_compiling:$ac_tool_warned in
11267yes:)
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270ac_tool_warned=yes ;;
11271esac
11272 NMEDIT=$ac_ct_NMEDIT
11273 fi
11274else
11275 NMEDIT="$ac_cv_prog_NMEDIT"
11276fi
11277
11278 if test -n "$ac_tool_prefix"; then
11279 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11280set dummy ${ac_tool_prefix}lipo; ac_word=$2
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282$as_echo_n "checking for $ac_word... " >&6; }
11283if test "${ac_cv_prog_LIPO+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
11285else
11286 if test -n "$LIPO"; then
11287 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11288else
11289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300done
11301 done
11302IFS=$as_save_IFS
11303
11304fi
11305fi
11306LIPO=$ac_cv_prog_LIPO
11307if test -n "$LIPO"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11309$as_echo "$LIPO" >&6; }
11310else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312$as_echo "no" >&6; }
11313fi
11314
11315
11316fi
11317if test -z "$ac_cv_prog_LIPO"; then
11318 ac_ct_LIPO=$LIPO
11319 # Extract the first word of "lipo", so it can be a program name with args.
11320set dummy lipo; ac_word=$2
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322$as_echo_n "checking for $ac_word... " >&6; }
11323if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325else
11326 if test -n "$ac_ct_LIPO"; then
11327 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11328else
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11336 ac_cv_prog_ac_ct_LIPO="lipo"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11339 fi
11340done
11341 done
11342IFS=$as_save_IFS
11343
11344fi
11345fi
11346ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11347if test -n "$ac_ct_LIPO"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11349$as_echo "$ac_ct_LIPO" >&6; }
11350else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355 if test "x$ac_ct_LIPO" = x; then
11356 LIPO=":"
11357 else
11358 case $cross_compiling:$ac_tool_warned in
11359yes:)
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11362ac_tool_warned=yes ;;
11363esac
11364 LIPO=$ac_ct_LIPO
11365 fi
11366else
11367 LIPO="$ac_cv_prog_LIPO"
11368fi
11369
11370 if test -n "$ac_tool_prefix"; then
11371 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11372set dummy ${ac_tool_prefix}otool; ac_word=$2
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374$as_echo_n "checking for $ac_word... " >&6; }
11375if test "${ac_cv_prog_OTOOL+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377else
11378 if test -n "$OTOOL"; then
11379 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11380else
11381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382for as_dir in $PATH
11383do
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392done
11393 done
11394IFS=$as_save_IFS
11395
11396fi
11397fi
11398OTOOL=$ac_cv_prog_OTOOL
11399if test -n "$OTOOL"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11401$as_echo "$OTOOL" >&6; }
11402else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
11405fi
11406
11407
11408fi
11409if test -z "$ac_cv_prog_OTOOL"; then
11410 ac_ct_OTOOL=$OTOOL
11411 # Extract the first word of "otool", so it can be a program name with args.
11412set dummy otool; ac_word=$2
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414$as_echo_n "checking for $ac_word... " >&6; }
11415if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417else
11418 if test -n "$ac_ct_OTOOL"; then
11419 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11420else
11421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422for as_dir in $PATH
11423do
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
11427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11428 ac_cv_prog_ac_ct_OTOOL="otool"
11429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 break 2
11431 fi
11432done
11433 done
11434IFS=$as_save_IFS
11435
11436fi
11437fi
11438ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11439if test -n "$ac_ct_OTOOL"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11441$as_echo "$ac_ct_OTOOL" >&6; }
11442else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444$as_echo "no" >&6; }
11445fi
11446
11447 if test "x$ac_ct_OTOOL" = x; then
11448 OTOOL=":"
11449 else
11450 case $cross_compiling:$ac_tool_warned in
11451yes:)
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11454ac_tool_warned=yes ;;
11455esac
11456 OTOOL=$ac_ct_OTOOL
11457 fi
11458else
11459 OTOOL="$ac_cv_prog_OTOOL"
11460fi
11461
11462 if test -n "$ac_tool_prefix"; then
11463 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11464set dummy ${ac_tool_prefix}otool64; ac_word=$2
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469else
11470 if test -n "$OTOOL64"; then
11471 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11472else
11473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $PATH
11475do
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11483 fi
11484done
11485 done
11486IFS=$as_save_IFS
11487
11488fi
11489fi
11490OTOOL64=$ac_cv_prog_OTOOL64
11491if test -n "$OTOOL64"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11493$as_echo "$OTOOL64" >&6; }
11494else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496$as_echo "no" >&6; }
11497fi
11498
11499
11500fi
11501if test -z "$ac_cv_prog_OTOOL64"; then
11502 ac_ct_OTOOL64=$OTOOL64
11503 # Extract the first word of "otool64", so it can be a program name with args.
11504set dummy otool64; ac_word=$2
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
11507if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509else
11510 if test -n "$ac_ct_OTOOL64"; then
11511 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11512else
11513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514for as_dir in $PATH
11515do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520 ac_cv_prog_ac_ct_OTOOL64="otool64"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524done
11525 done
11526IFS=$as_save_IFS
11527
11528fi
11529fi
11530ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11531if test -n "$ac_ct_OTOOL64"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11533$as_echo "$ac_ct_OTOOL64" >&6; }
11534else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
11537fi
11538
11539 if test "x$ac_ct_OTOOL64" = x; then
11540 OTOOL64=":"
11541 else
11542 case $cross_compiling:$ac_tool_warned in
11543yes:)
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11546ac_tool_warned=yes ;;
11547esac
11548 OTOOL64=$ac_ct_OTOOL64
11549 fi
11550else
11551 OTOOL64="$ac_cv_prog_OTOOL64"
11552fi
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11581$as_echo_n "checking for -single_module linker flag... " >&6; }
11582if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11584else
11585 lt_cv_apple_cc_single_mod=no
11586 if test -z "${LT_MULTI_MODULE}"; then
11587 # By default we will add the -single_module flag. You can override
11588 # by either setting the environment variable LT_MULTI_MODULE
11589 # non-empty at configure time, or by adding -multi_module to the
11590 # link flags.
11591 rm -rf libconftest.dylib*
11592 echo "int foo(void){return 1;}" > conftest.c
11593 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11594-dynamiclib -Wl,-single_module conftest.c" >&5
11595 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11596 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11597 _lt_result=$?
11598 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11599 lt_cv_apple_cc_single_mod=yes
11600 else
11601 cat conftest.err >&5
11602 fi
11603 rm -rf libconftest.dylib*
11604 rm -f conftest.*
11605 fi
11606fi
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11608$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11610$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11611if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11612 $as_echo_n "(cached) " >&6
11613else
11614 lt_cv_ld_exported_symbols_list=no
11615 save_LDFLAGS=$LDFLAGS
11616 echo "_main" > conftest.sym
11617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h. */
11620
11621int
11622main ()
11623{
11624
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629if ac_fn_c_try_link "$LINENO"; then :
11630 lt_cv_ld_exported_symbols_list=yes
11631else
11632 lt_cv_ld_exported_symbols_list=no
11633fi
11634rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LDFLAGS="$save_LDFLAGS"
11637
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11640$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11641 case $host_os in
11642 rhapsody* | darwin1.[012])
11643 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11644 darwin1.*)
11645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11646 darwin*) # darwin 5.x on
11647 # if running on 10.5 or later, the deployment target defaults
11648 # to the OS version, if on x86, and 10.4, the deployment
11649 # target defaults to 10.4. Don't you love it?
11650 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11651 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11652 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11653 10.[012]*)
11654 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11655 10.*)
11656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11657 esac
11658 ;;
11659 esac
11660 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11661 _lt_dar_single_mod='$single_module'
11662 fi
11663 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11664 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11665 else
11666 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11667 fi
11668 if test "$DSYMUTIL" != ":"; then
11669 _lt_dsymutil='~$DSYMUTIL $lib || :'
11670 else
11671 _lt_dsymutil=
11672 fi
11673 ;;
11674 esac
11675
11676for ac_header in dlfcn.h
11677do :
11678 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11679"
11680if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11681 cat >>confdefs.h <<_ACEOF
11682#define HAVE_DLFCN_H 1
11683_ACEOF
11684
11685fi
11686
11687done
11688
11689
11690
11691ac_ext=cpp
11692ac_cpp='$CXXCPP $CPPFLAGS'
11693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11696if test -z "$CXX"; then
11697 if test -n "$CCC"; then
11698 CXX=$CCC
11699 else
11700 if test -n "$ac_tool_prefix"; then
11701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11702 do
11703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706$as_echo_n "checking for $ac_word... " >&6; }
11707if test "${ac_cv_prog_CXX+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709else
11710 if test -n "$CXX"; then
11711 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11712else
11713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH
11715do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724done
11725 done
11726IFS=$as_save_IFS
11727
11728fi
11729fi
11730CXX=$ac_cv_prog_CXX
11731if test -n "$CXX"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11733$as_echo "$CXX" >&6; }
11734else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737fi
11738
11739
11740 test -n "$CXX" && break
11741 done
11742fi
11743if test -z "$CXX"; then
11744 ac_ct_CXX=$CXX
11745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11746do
11747 # Extract the first word of "$ac_prog", so it can be a program name with args.
11748set dummy $ac_prog; ac_word=$2
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750$as_echo_n "checking for $ac_word... " >&6; }
11751if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11752 $as_echo_n "(cached) " >&6
11753else
11754 if test -n "$ac_ct_CXX"; then
11755 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11756else
11757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764 ac_cv_prog_ac_ct_CXX="$ac_prog"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768done
11769 done
11770IFS=$as_save_IFS
11771
11772fi
11773fi
11774ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11775if test -n "$ac_ct_CXX"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11777$as_echo "$ac_ct_CXX" >&6; }
11778else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
11781fi
11782
11783
11784 test -n "$ac_ct_CXX" && break
11785done
11786
11787 if test "x$ac_ct_CXX" = x; then
11788 CXX="g++"
11789 else
11790 case $cross_compiling:$ac_tool_warned in
11791yes:)
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11794ac_tool_warned=yes ;;
11795esac
11796 CXX=$ac_ct_CXX
11797 fi
11798fi
11799
11800 fi
11801fi
11802# Provide some information about the compiler.
11803$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11804set X $ac_compile
11805ac_compiler=$2
11806for ac_option in --version -v -V -qversion; do
11807 { { ac_try="$ac_compiler $ac_option >&5"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11813$as_echo "$ac_try_echo"; } >&5
11814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11815 ac_status=$?
11816 if test -s conftest.err; then
11817 sed '10a\
11818... rest of stderr output deleted ...
11819 10q' conftest.err >conftest.er1
11820 cat conftest.er1 >&5
11821 fi
11822 rm -f conftest.er1 conftest.err
11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824 test $ac_status = 0; }
11825done
11826
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11828$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11829if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
11831else
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h. */
11834
11835int
11836main ()
11837{
11838#ifndef __GNUC__
11839 choke me
11840#endif
11841
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846if ac_fn_cxx_try_compile "$LINENO"; then :
11847 ac_compiler_gnu=yes
11848else
11849 ac_compiler_gnu=no
11850fi
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11853
11854fi
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11856$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11857if test $ac_compiler_gnu = yes; then
11858 GXX=yes
11859else
11860 GXX=
11861fi
11862ac_test_CXXFLAGS=${CXXFLAGS+set}
11863ac_save_CXXFLAGS=$CXXFLAGS
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11865$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11866if test "${ac_cv_prog_cxx_g+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868else
11869 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11870 ac_cxx_werror_flag=yes
11871 ac_cv_prog_cxx_g=no
11872 CXXFLAGS="-g"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874/* end confdefs.h. */
11875
11876int
11877main ()
11878{
11879
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884if ac_fn_cxx_try_compile "$LINENO"; then :
11885 ac_cv_prog_cxx_g=yes
11886else
11887 CXXFLAGS=""
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889/* end confdefs.h. */
11890
11891int
11892main ()
11893{
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899if ac_fn_cxx_try_compile "$LINENO"; then :
11900
11901else
11902 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11903 CXXFLAGS="-g"
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905/* end confdefs.h. */
11906
11907int
11908main ()
11909{
11910
11911 ;
11912 return 0;
11913}
11914_ACEOF
11915if ac_fn_cxx_try_compile "$LINENO"; then :
11916 ac_cv_prog_cxx_g=yes
11917fi
11918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919fi
11920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921fi
11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11924fi
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11926$as_echo "$ac_cv_prog_cxx_g" >&6; }
11927if test "$ac_test_CXXFLAGS" = set; then
11928 CXXFLAGS=$ac_save_CXXFLAGS
11929elif test $ac_cv_prog_cxx_g = yes; then
11930 if test "$GXX" = yes; then
11931 CXXFLAGS="-g -O2"
11932 else
11933 CXXFLAGS="-g"
11934 fi
11935else
11936 if test "$GXX" = yes; then
11937 CXXFLAGS="-O2"
11938 else
11939 CXXFLAGS=
11940 fi
11941fi
11942ac_ext=c
11943ac_cpp='$CPP $CPPFLAGS'
11944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11946ac_compiler_gnu=$ac_cv_c_compiler_gnu
11947
11948depcc="$CXX" am_compiler_list=
11949
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11951$as_echo_n "checking dependency style of $depcc... " >&6; }
11952if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954else
11955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11956 # We make a subdir and do the tests there. Otherwise we can end up
11957 # making bogus files that we don't know about and never remove. For
11958 # instance it was reported that on HP-UX the gcc test will end up
11959 # making a dummy file named `D' -- because `-MD' means `put the output
11960 # in D'.
11961 mkdir conftest.dir
11962 # Copy depcomp to subdir because otherwise we won't find it if we're
11963 # using a relative directory.
11964 cp "$am_depcomp" conftest.dir
11965 cd conftest.dir
11966 # We will build objects and dependencies in a subdirectory because
11967 # it helps to detect inapplicable dependency modes. For instance
11968 # both Tru64's cc and ICC support -MD to output dependencies as a
11969 # side effect of compilation, but ICC will put the dependencies in
11970 # the current directory while Tru64 will put them in the object
11971 # directory.
11972 mkdir sub
11973
11974 am_cv_CXX_dependencies_compiler_type=none
11975 if test "$am_compiler_list" = ""; then
11976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11977 fi
11978 am__universal=false
11979 case " $depcc " in #(
11980 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11981 esac
11982
11983 for depmode in $am_compiler_list; do
11984 # Setup a source with many dependencies, because some compilers
11985 # like to wrap large dependency lists on column 80 (with \), and
11986 # we should not choose a depcomp mode which is confused by this.
11987 #
11988 # We need to recreate these files for each test, as the compiler may
11989 # overwrite some of them when testing with obscure command lines.
11990 # This happens at least with the AIX C compiler.
11991 : > sub/conftest.c
11992 for i in 1 2 3 4 5 6; do
11993 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11994 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11995 # Solaris 8's {/usr,}/bin/sh.
11996 touch sub/conftst$i.h
11997 done
11998 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11999
12000 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12001 # mode. It turns out that the SunPro C++ compiler does not properly
12002 # handle `-M -o', and we need to detect this. Also, some Intel
12003 # versions had trouble with output in subdirs
12004 am__obj=sub/conftest.${OBJEXT-o}
12005 am__minus_obj="-o $am__obj"
12006 case $depmode in
12007 gcc)
12008 # This depmode causes a compiler race in universal mode.
12009 test "$am__universal" = false || continue
12010 ;;
12011 nosideeffect)
12012 # after this tag, mechanisms are not by side-effect, so they'll
12013 # only be used when explicitly requested
12014 if test "x$enable_dependency_tracking" = xyes; then
12015 continue
12016 else
12017 break
12018 fi
12019 ;;
12020 msvisualcpp | msvcmsys)
12021 # This compiler won't grok `-c -o', but also, the minuso test has
12022 # not run yet. These depmodes are late enough in the game, and
12023 # so weak that their functioning should not be impacted.
12024 am__obj=conftest.${OBJEXT-o}
12025 am__minus_obj=
12026 ;;
12027 none) break ;;
12028 esac
12029 if depmode=$depmode \
12030 source=sub/conftest.c object=$am__obj \
12031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12032 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12033 >/dev/null 2>conftest.err &&
12034 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12036 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12038 # icc doesn't choke on unknown options, it will just issue warnings
12039 # or remarks (even with -Werror). So we grep stderr for any message
12040 # that says an option was ignored or not supported.
12041 # When given -MP, icc 7.0 and 7.1 complain thusly:
12042 # icc: Command line warning: ignoring option '-M'; no argument required
12043 # The diagnosis changed in icc 8.0:
12044 # icc: Command line remark: option '-MP' not supported
12045 if (grep 'ignoring option' conftest.err ||
12046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12047 am_cv_CXX_dependencies_compiler_type=$depmode
12048 break
12049 fi
12050 fi
12051 done
12052
12053 cd ..
12054 rm -rf conftest.dir
12055else
12056 am_cv_CXX_dependencies_compiler_type=none
12057fi
12058
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12061$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12062CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12063
12064 if
12065 test "x$enable_dependency_tracking" != xno \
12066 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12067 am__fastdepCXX_TRUE=
12068 am__fastdepCXX_FALSE='#'
12069else
12070 am__fastdepCXX_TRUE='#'
12071 am__fastdepCXX_FALSE=
12072fi
12073
12074
12075if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12076 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12077 (test "X$CXX" != "Xg++"))) ; then
12078 ac_ext=cpp
12079ac_cpp='$CXXCPP $CPPFLAGS'
12080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12084$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12085if test -z "$CXXCPP"; then
12086 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12088else
12089 # Double quotes because CXXCPP needs to be expanded
12090 for CXXCPP in "$CXX -E" "/lib/cpp"
12091 do
12092 ac_preproc_ok=false
12093for ac_cxx_preproc_warn_flag in '' yes
12094do
12095 # Use a header file that comes with gcc, so configuring glibc
12096 # with a fresh cross-compiler works.
12097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12098 # <limits.h> exists even on freestanding compilers.
12099 # On the NeXT, cc -E runs the code through the compiler's parser,
12100 # not just through cpp. "Syntax error" is here to catch this case.
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102/* end confdefs.h. */
12103#ifdef __STDC__
12104# include <limits.h>
12105#else
12106# include <assert.h>
12107#endif
12108 Syntax error
12109_ACEOF
12110if ac_fn_cxx_try_cpp "$LINENO"; then :
12111
12112else
12113 # Broken: fails on valid input.
12114continue
12115fi
12116rm -f conftest.err conftest.$ac_ext
12117
12118 # OK, works on sane cases. Now check whether nonexistent headers
12119 # can be detected and how.
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121/* end confdefs.h. */
12122#include <ac_nonexistent.h>
12123_ACEOF
12124if ac_fn_cxx_try_cpp "$LINENO"; then :
12125 # Broken: success on invalid input.
12126continue
12127else
12128 # Passes both tests.
12129ac_preproc_ok=:
12130break
12131fi
12132rm -f conftest.err conftest.$ac_ext
12133
12134done
12135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12136rm -f conftest.err conftest.$ac_ext
12137if $ac_preproc_ok; then :
12138 break
12139fi
12140
12141 done
12142 ac_cv_prog_CXXCPP=$CXXCPP
12143
12144fi
12145 CXXCPP=$ac_cv_prog_CXXCPP
12146else
12147 ac_cv_prog_CXXCPP=$CXXCPP
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12150$as_echo "$CXXCPP" >&6; }
12151ac_preproc_ok=false
12152for ac_cxx_preproc_warn_flag in '' yes
12153do
12154 # Use a header file that comes with gcc, so configuring glibc
12155 # with a fresh cross-compiler works.
12156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157 # <limits.h> exists even on freestanding compilers.
12158 # On the NeXT, cc -E runs the code through the compiler's parser,
12159 # not just through cpp. "Syntax error" is here to catch this case.
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161/* end confdefs.h. */
12162#ifdef __STDC__
12163# include <limits.h>
12164#else
12165# include <assert.h>
12166#endif
12167 Syntax error
12168_ACEOF
12169if ac_fn_cxx_try_cpp "$LINENO"; then :
12170
12171else
12172 # Broken: fails on valid input.
12173continue
12174fi
12175rm -f conftest.err conftest.$ac_ext
12176
12177 # OK, works on sane cases. Now check whether nonexistent headers
12178 # can be detected and how.
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180/* end confdefs.h. */
12181#include <ac_nonexistent.h>
12182_ACEOF
12183if ac_fn_cxx_try_cpp "$LINENO"; then :
12184 # Broken: success on invalid input.
12185continue
12186else
12187 # Passes both tests.
12188ac_preproc_ok=:
12189break
12190fi
12191rm -f conftest.err conftest.$ac_ext
12192
12193done
12194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12195rm -f conftest.err conftest.$ac_ext
12196if $ac_preproc_ok; then :
12197
12198else
12199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12201_lt_caught_CXX_error=yes; }
12202fi
12203
12204ac_ext=c
12205ac_cpp='$CPP $CPPFLAGS'
12206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208ac_compiler_gnu=$ac_cv_c_compiler_gnu
12209
12210else
12211 _lt_caught_CXX_error=yes
12212fi
12213
12214
12215
12216
12217
12218# Set options
12219enable_win32_dll=yes
12220
12221case $host in
12222*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12223 if test -n "$ac_tool_prefix"; then
12224 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12225set dummy ${ac_tool_prefix}as; ac_word=$2
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227$as_echo_n "checking for $ac_word... " >&6; }
12228if test "${ac_cv_prog_AS+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230else
12231 if test -n "$AS"; then
12232 ac_cv_prog_AS="$AS" # Let the user override the test.
12233else
12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235for as_dir in $PATH
12236do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12241 ac_cv_prog_AS="${ac_tool_prefix}as"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245done
12246 done
12247IFS=$as_save_IFS
12248
12249fi
12250fi
12251AS=$ac_cv_prog_AS
12252if test -n "$AS"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12254$as_echo "$AS" >&6; }
12255else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258fi
12259
12260
12261fi
12262if test -z "$ac_cv_prog_AS"; then
12263 ac_ct_AS=$AS
12264 # Extract the first word of "as", so it can be a program name with args.
12265set dummy as; ac_word=$2
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270else
12271 if test -n "$ac_ct_AS"; then
12272 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281 ac_cv_prog_ac_ct_AS="as"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12284 fi
12285done
12286 done
12287IFS=$as_save_IFS
12288
12289fi
12290fi
12291ac_ct_AS=$ac_cv_prog_ac_ct_AS
12292if test -n "$ac_ct_AS"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12294$as_echo "$ac_ct_AS" >&6; }
12295else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300 if test "x$ac_ct_AS" = x; then
12301 AS="false"
12302 else
12303 case $cross_compiling:$ac_tool_warned in
12304yes:)
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12307ac_tool_warned=yes ;;
12308esac
12309 AS=$ac_ct_AS
12310 fi
12311else
12312 AS="$ac_cv_prog_AS"
12313fi
12314
12315 if test -n "$ac_tool_prefix"; then
12316 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12317set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319$as_echo_n "checking for $ac_word... " >&6; }
12320if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12322else
12323 if test -n "$DLLTOOL"; then
12324 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12325else
12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12333 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12336 fi
12337done
12338 done
12339IFS=$as_save_IFS
12340
12341fi
12342fi
12343DLLTOOL=$ac_cv_prog_DLLTOOL
12344if test -n "$DLLTOOL"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12346$as_echo "$DLLTOOL" >&6; }
12347else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
12350fi
12351
12352
12353fi
12354if test -z "$ac_cv_prog_DLLTOOL"; then
12355 ac_ct_DLLTOOL=$DLLTOOL
12356 # Extract the first word of "dlltool", so it can be a program name with args.
12357set dummy dlltool; ac_word=$2
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
12360if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362else
12363 if test -n "$ac_ct_DLLTOOL"; then
12364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12365else
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12373 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377done
12378 done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12384if test -n "$ac_ct_DLLTOOL"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12386$as_echo "$ac_ct_DLLTOOL" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391
12392 if test "x$ac_ct_DLLTOOL" = x; then
12393 DLLTOOL="false"
12394 else
12395 case $cross_compiling:$ac_tool_warned in
12396yes:)
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12399ac_tool_warned=yes ;;
12400esac
12401 DLLTOOL=$ac_ct_DLLTOOL
12402 fi
12403else
12404 DLLTOOL="$ac_cv_prog_DLLTOOL"
12405fi
12406
12407 if test -n "$ac_tool_prefix"; then
12408 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12409set dummy ${ac_tool_prefix}objdump; ac_word=$2
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411$as_echo_n "checking for $ac_word... " >&6; }
12412if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12414else
12415 if test -n "$OBJDUMP"; then
12416 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12417else
12418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421 IFS=$as_save_IFS
12422 test -z "$as_dir" && as_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12425 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 break 2
12428 fi
12429done
12430 done
12431IFS=$as_save_IFS
12432
12433fi
12434fi
12435OBJDUMP=$ac_cv_prog_OBJDUMP
12436if test -n "$OBJDUMP"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12438$as_echo "$OBJDUMP" >&6; }
12439else
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441$as_echo "no" >&6; }
12442fi
12443
12444
12445fi
12446if test -z "$ac_cv_prog_OBJDUMP"; then
12447 ac_ct_OBJDUMP=$OBJDUMP
12448 # Extract the first word of "objdump", so it can be a program name with args.
12449set dummy objdump; ac_word=$2
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451$as_echo_n "checking for $ac_word... " >&6; }
12452if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454else
12455 if test -n "$ac_ct_OBJDUMP"; then
12456 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12457else
12458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459for as_dir in $PATH
12460do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12468 fi
12469done
12470 done
12471IFS=$as_save_IFS
12472
12473fi
12474fi
12475ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12476if test -n "$ac_ct_OBJDUMP"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12478$as_echo "$ac_ct_OBJDUMP" >&6; }
12479else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
12482fi
12483
12484 if test "x$ac_ct_OBJDUMP" = x; then
12485 OBJDUMP="false"
12486 else
12487 case $cross_compiling:$ac_tool_warned in
12488yes:)
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12491ac_tool_warned=yes ;;
12492esac
12493 OBJDUMP=$ac_ct_OBJDUMP
12494 fi
12495else
12496 OBJDUMP="$ac_cv_prog_OBJDUMP"
12497fi
12498
12499 ;;
12500esac
12501
12502test -z "$AS" && AS=as
12503
12504
12505
12506
12507
12508test -z "$DLLTOOL" && DLLTOOL=dlltool
12509
12510
12511
12512
12513
12514test -z "$OBJDUMP" && OBJDUMP=objdump
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524 # Check whether --enable-shared was given.
12525if test "${enable_shared+set}" = set; then :
12526 enableval=$enable_shared; p=${PACKAGE-default}
12527 case $enableval in
12528 yes) enable_shared=yes ;;
12529 no) enable_shared=no ;;
12530 *)
12531 enable_shared=no
12532 # Look at the argument we got. We use all the common list separators.
12533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12534 for pkg in $enableval; do
12535 IFS="$lt_save_ifs"
12536 if test "X$pkg" = "X$p"; then
12537 enable_shared=yes
12538 fi
12539 done
12540 IFS="$lt_save_ifs"
12541 ;;
12542 esac
12543else
12544 enable_shared=yes
12545fi
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555 # Check whether --enable-static was given.
12556if test "${enable_static+set}" = set; then :
12557 enableval=$enable_static; p=${PACKAGE-default}
12558 case $enableval in
12559 yes) enable_static=yes ;;
12560 no) enable_static=no ;;
12561 *)
12562 enable_static=no
12563 # Look at the argument we got. We use all the common list separators.
12564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12565 for pkg in $enableval; do
12566 IFS="$lt_save_ifs"
12567 if test "X$pkg" = "X$p"; then
12568 enable_static=yes
12569 fi
12570 done
12571 IFS="$lt_save_ifs"
12572 ;;
12573 esac
12574else
12575 enable_static=yes
12576fi
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587# Check whether --with-pic was given.
12588if test "${with_pic+set}" = set; then :
12589 withval=$with_pic; pic_mode="$withval"
12590else
12591 pic_mode=default
12592fi
12593
12594
12595test -z "$pic_mode" && pic_mode=default
12596
12597
12598
12599
12600
12601
12602
12603 # Check whether --enable-fast-install was given.
12604if test "${enable_fast_install+set}" = set; then :
12605 enableval=$enable_fast_install; p=${PACKAGE-default}
12606 case $enableval in
12607 yes) enable_fast_install=yes ;;
12608 no) enable_fast_install=no ;;
12609 *)
12610 enable_fast_install=no
12611 # Look at the argument we got. We use all the common list separators.
12612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12613 for pkg in $enableval; do
12614 IFS="$lt_save_ifs"
12615 if test "X$pkg" = "X$p"; then
12616 enable_fast_install=yes
12617 fi
12618 done
12619 IFS="$lt_save_ifs"
12620 ;;
12621 esac
12622else
12623 enable_fast_install=yes
12624fi
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636# This can be used to rebuild libtool when needed
12637LIBTOOL_DEPS="$ltmain"
12638
12639# Always use our own libtool.
12640LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666test -z "$LN_S" && LN_S="ln -s"
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681if test -n "${ZSH_VERSION+set}" ; then
12682 setopt NO_GLOB_SUBST
12683fi
12684
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12686$as_echo_n "checking for objdir... " >&6; }
12687if test "${lt_cv_objdir+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12689else
12690 rm -f .libs 2>/dev/null
12691mkdir .libs 2>/dev/null
12692if test -d .libs; then
12693 lt_cv_objdir=.libs
12694else
12695 # MS-DOS does not allow filenames that begin with a dot.
12696 lt_cv_objdir=_libs
12697fi
12698rmdir .libs 2>/dev/null
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12701$as_echo "$lt_cv_objdir" >&6; }
12702objdir=$lt_cv_objdir
12703
12704
12705
12706
12707
12708cat >>confdefs.h <<_ACEOF
12709#define LT_OBJDIR "$lt_cv_objdir/"
12710_ACEOF
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728case $host_os in
12729aix3*)
12730 # AIX sometimes has problems with the GCC collect2 program. For some
12731 # reason, if we set the COLLECT_NAMES environment variable, the problems
12732 # vanish in a puff of smoke.
12733 if test "X${COLLECT_NAMES+set}" != Xset; then
12734 COLLECT_NAMES=
12735 export COLLECT_NAMES
12736 fi
12737 ;;
12738esac
12739
12740# Sed substitution that helps us do robust quoting. It backslashifies
12741# metacharacters that are still active within double-quoted strings.
12742sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12743
12744# Same as above, but do not quote variable references.
12745double_quote_subst='s/\(["`\\]\)/\\\1/g'
12746
12747# Sed substitution to delay expansion of an escaped shell variable in a
12748# double_quote_subst'ed string.
12749delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12750
12751# Sed substitution to delay expansion of an escaped single quote.
12752delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12753
12754# Sed substitution to avoid accidental globbing in evaled expressions
12755no_glob_subst='s/\*/\\\*/g'
12756
12757# Global variables:
12758ofile=libtool
12759can_build_shared=yes
12760
12761# All known linkers require a `.a' archive for static linking (except MSVC,
12762# which needs '.lib').
12763libext=a
12764
12765with_gnu_ld="$lt_cv_prog_gnu_ld"
12766
12767old_CC="$CC"
12768old_CFLAGS="$CFLAGS"
12769
12770# Set sane defaults for various variables
12771test -z "$CC" && CC=cc
12772test -z "$LTCC" && LTCC=$CC
12773test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12774test -z "$LD" && LD=ld
12775test -z "$ac_objext" && ac_objext=o
12776
12777for cc_temp in $compiler""; do
12778 case $cc_temp in
12779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12781 \-*) ;;
12782 *) break;;
12783 esac
12784done
12785cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12786
12787
12788# Only perform the check for file, if the check method requires it
12789test -z "$MAGIC_CMD" && MAGIC_CMD=file
12790case $deplibs_check_method in
12791file_magic*)
12792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12794$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12795if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12796 $as_echo_n "(cached) " >&6
12797else
12798 case $MAGIC_CMD in
12799[\\/*] | ?:[\\/]*)
12800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12801 ;;
12802*)
12803 lt_save_MAGIC_CMD="$MAGIC_CMD"
12804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12805 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12806 for ac_dir in $ac_dummy; do
12807 IFS="$lt_save_ifs"
12808 test -z "$ac_dir" && ac_dir=.
12809 if test -f $ac_dir/${ac_tool_prefix}file; then
12810 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12811 if test -n "$file_magic_test_file"; then
12812 case $deplibs_check_method in
12813 "file_magic "*)
12814 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12817 $EGREP "$file_magic_regex" > /dev/null; then
12818 :
12819 else
12820 cat <<_LT_EOF 1>&2
12821
12822*** Warning: the command libtool uses to detect shared libraries,
12823*** $file_magic_cmd, produces output that libtool cannot recognize.
12824*** The result is that libtool may fail to recognize shared libraries
12825*** as such. This will affect the creation of libtool libraries that
12826*** depend on shared libraries, but programs linked with such libtool
12827*** libraries will work regardless of this problem. Nevertheless, you
12828*** may want to report the problem to your system manager and/or to
12829*** bug-libtool@gnu.org
12830
12831_LT_EOF
12832 fi ;;
12833 esac
12834 fi
12835 break
12836 fi
12837 done
12838 IFS="$lt_save_ifs"
12839 MAGIC_CMD="$lt_save_MAGIC_CMD"
12840 ;;
12841esac
12842fi
12843
12844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12845if test -n "$MAGIC_CMD"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12847$as_echo "$MAGIC_CMD" >&6; }
12848else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
12851fi
12852
12853
12854
12855
12856
12857if test -z "$lt_cv_path_MAGIC_CMD"; then
12858 if test -n "$ac_tool_prefix"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12860$as_echo_n "checking for file... " >&6; }
12861if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12863else
12864 case $MAGIC_CMD in
12865[\\/*] | ?:[\\/]*)
12866 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12867 ;;
12868*)
12869 lt_save_MAGIC_CMD="$MAGIC_CMD"
12870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12871 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12872 for ac_dir in $ac_dummy; do
12873 IFS="$lt_save_ifs"
12874 test -z "$ac_dir" && ac_dir=.
12875 if test -f $ac_dir/file; then
12876 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12877 if test -n "$file_magic_test_file"; then
12878 case $deplibs_check_method in
12879 "file_magic "*)
12880 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12882 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12883 $EGREP "$file_magic_regex" > /dev/null; then
12884 :
12885 else
12886 cat <<_LT_EOF 1>&2
12887
12888*** Warning: the command libtool uses to detect shared libraries,
12889*** $file_magic_cmd, produces output that libtool cannot recognize.
12890*** The result is that libtool may fail to recognize shared libraries
12891*** as such. This will affect the creation of libtool libraries that
12892*** depend on shared libraries, but programs linked with such libtool
12893*** libraries will work regardless of this problem. Nevertheless, you
12894*** may want to report the problem to your system manager and/or to
12895*** bug-libtool@gnu.org
12896
12897_LT_EOF
12898 fi ;;
12899 esac
12900 fi
12901 break
12902 fi
12903 done
12904 IFS="$lt_save_ifs"
12905 MAGIC_CMD="$lt_save_MAGIC_CMD"
12906 ;;
12907esac
12908fi
12909
12910MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12911if test -n "$MAGIC_CMD"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12913$as_echo "$MAGIC_CMD" >&6; }
12914else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916$as_echo "no" >&6; }
12917fi
12918
12919
12920 else
12921 MAGIC_CMD=:
12922 fi
12923fi
12924
12925 fi
12926 ;;
12927esac
12928
12929# Use C for the default configuration in the libtool script
12930
12931lt_save_CC="$CC"
12932ac_ext=c
12933ac_cpp='$CPP $CPPFLAGS'
12934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937
12938
12939# Source file extension for C test sources.
12940ac_ext=c
12941
12942# Object file extension for compiled C test sources.
12943objext=o
12944objext=$objext
12945
12946# Code to be used in simple compile tests
12947lt_simple_compile_test_code="int some_variable = 0;"
12948
12949# Code to be used in simple link tests
12950lt_simple_link_test_code='int main(){return(0);}'
12951
12952
12953
12954
12955
12956
12957
12958# If no C compiler was specified, use CC.
12959LTCC=${LTCC-"$CC"}
12960
12961# If no C compiler flags were specified, use CFLAGS.
12962LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12963
12964# Allow CC to be a program name with arguments.
12965compiler=$CC
12966
12967# Save the default compiler, since it gets overwritten when the other
12968# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12969compiler_DEFAULT=$CC
12970
12971# save warnings/boilerplate of simple test code
12972ac_outfile=conftest.$ac_objext
12973echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12974eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12975_lt_compiler_boilerplate=`cat conftest.err`
12976$RM conftest*
12977
12978ac_outfile=conftest.$ac_objext
12979echo "$lt_simple_link_test_code" >conftest.$ac_ext
12980eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12981_lt_linker_boilerplate=`cat conftest.err`
12982$RM -r conftest*
12983
12984
12985## CAVEAT EMPTOR:
12986## There is no encapsulation within the following macros, do not change
12987## the running order or otherwise move them around unless you know exactly
12988## what you are doing...
12989if test -n "$compiler"; then
12990
12991lt_prog_compiler_no_builtin_flag=
12992
12993if test "$GCC" = yes; then
12994 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12995
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12997$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12998if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13000else
13001 lt_cv_prog_compiler_rtti_exceptions=no
13002 ac_outfile=conftest.$ac_objext
13003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13004 lt_compiler_flag="-fno-rtti -fno-exceptions"
13005 # Insert the option either (1) after the last *FLAGS variable, or
13006 # (2) before a word containing "conftest.", or (3) at the end.
13007 # Note that $ac_compile itself does not contain backslashes and begins
13008 # with a dollar sign (not a hyphen), so the echo should work correctly.
13009 # The option is referenced via a variable to avoid confusing sed.
13010 lt_compile=`echo "$ac_compile" | $SED \
13011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13013 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000013014 (eval echo "\"\$as_me:13014: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013015 (eval "$lt_compile" 2>conftest.err)
13016 ac_status=$?
13017 cat conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000013018 echo "$as_me:13018: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013019 if (exit $ac_status) && test -s "$ac_outfile"; then
13020 # The compiler can only warn and ignore the option if not recognized
13021 # So say no if there are warnings other than the usual output.
13022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13025 lt_cv_prog_compiler_rtti_exceptions=yes
13026 fi
13027 fi
13028 $RM conftest*
13029
13030fi
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13032$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13033
13034if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13035 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13036else
13037 :
13038fi
13039
13040fi
13041
13042
13043
13044
13045
13046
13047 lt_prog_compiler_wl=
13048lt_prog_compiler_pic=
13049lt_prog_compiler_static=
13050
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13052$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13053
13054 if test "$GCC" = yes; then
13055 lt_prog_compiler_wl='-Wl,'
13056 lt_prog_compiler_static='-static'
13057
13058 case $host_os in
13059 aix*)
13060 # All AIX code is PIC.
13061 if test "$host_cpu" = ia64; then
13062 # AIX 5 now supports IA64 processor
13063 lt_prog_compiler_static='-Bstatic'
13064 fi
13065 ;;
13066
13067 amigaos*)
13068 case $host_cpu in
13069 powerpc)
13070 # see comment about AmigaOS4 .so support
13071 lt_prog_compiler_pic='-fPIC'
13072 ;;
13073 m68k)
13074 # FIXME: we need at least 68020 code to build shared libraries, but
13075 # adding the `-m68020' flag to GCC prevents building anything better,
13076 # like `-m68040'.
13077 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13078 ;;
13079 esac
13080 ;;
13081
13082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13083 # PIC is the default for these OSes.
13084 ;;
13085
13086 mingw* | cygwin* | pw32* | os2* | cegcc*)
13087 # This hack is so that the source file can tell whether it is being
13088 # built for inclusion in a dll (and should export symbols for example).
13089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13090 # (--disable-auto-import) libraries
13091 lt_prog_compiler_pic='-DDLL_EXPORT'
13092 ;;
13093
13094 darwin* | rhapsody*)
13095 # PIC is the default on this platform
13096 # Common symbols not allowed in MH_DYLIB files
13097 lt_prog_compiler_pic='-fno-common'
13098 ;;
13099
13100 hpux*)
13101 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13102 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13103 # sets the default TLS model and affects inlining.
13104 case $host_cpu in
13105 hppa*64*)
13106 # +Z the default
13107 ;;
13108 *)
13109 lt_prog_compiler_pic='-fPIC'
13110 ;;
13111 esac
13112 ;;
13113
13114 interix[3-9]*)
13115 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13116 # Instead, we relocate shared libraries at runtime.
13117 ;;
13118
13119 msdosdjgpp*)
13120 # Just because we use GCC doesn't mean we suddenly get shared libraries
13121 # on systems that don't support them.
13122 lt_prog_compiler_can_build_shared=no
13123 enable_shared=no
13124 ;;
13125
13126 *nto* | *qnx*)
13127 # QNX uses GNU C++, but need to define -shared option too, otherwise
13128 # it will coredump.
13129 lt_prog_compiler_pic='-fPIC -shared'
13130 ;;
13131
13132 sysv4*MP*)
13133 if test -d /usr/nec; then
13134 lt_prog_compiler_pic=-Kconform_pic
13135 fi
13136 ;;
13137
13138 *)
13139 lt_prog_compiler_pic='-fPIC'
13140 ;;
13141 esac
13142 else
13143 # PORTME Check for flag to pass linker flags through the system compiler.
13144 case $host_os in
13145 aix*)
13146 lt_prog_compiler_wl='-Wl,'
13147 if test "$host_cpu" = ia64; then
13148 # AIX 5 now supports IA64 processor
13149 lt_prog_compiler_static='-Bstatic'
13150 else
13151 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13152 fi
13153 ;;
13154
13155 mingw* | cygwin* | pw32* | os2* | cegcc*)
13156 # This hack is so that the source file can tell whether it is being
13157 # built for inclusion in a dll (and should export symbols for example).
13158 lt_prog_compiler_pic='-DDLL_EXPORT'
13159 ;;
13160
13161 hpux9* | hpux10* | hpux11*)
13162 lt_prog_compiler_wl='-Wl,'
13163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13164 # not for PA HP-UX.
13165 case $host_cpu in
13166 hppa*64*|ia64*)
13167 # +Z the default
13168 ;;
13169 *)
13170 lt_prog_compiler_pic='+Z'
13171 ;;
13172 esac
13173 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13174 lt_prog_compiler_static='${wl}-a ${wl}archive'
13175 ;;
13176
13177 irix5* | irix6* | nonstopux*)
13178 lt_prog_compiler_wl='-Wl,'
13179 # PIC (with -KPIC) is the default.
13180 lt_prog_compiler_static='-non_shared'
13181 ;;
13182
13183 linux* | k*bsd*-gnu)
13184 case $cc_basename in
13185 # old Intel for x86_64 which still supported -KPIC.
13186 ecc*)
13187 lt_prog_compiler_wl='-Wl,'
13188 lt_prog_compiler_pic='-KPIC'
13189 lt_prog_compiler_static='-static'
13190 ;;
13191 # icc used to be incompatible with GCC.
13192 # ICC 10 doesn't accept -KPIC any more.
13193 icc* | ifort*)
13194 lt_prog_compiler_wl='-Wl,'
13195 lt_prog_compiler_pic='-fPIC'
13196 lt_prog_compiler_static='-static'
13197 ;;
13198 # Lahey Fortran 8.1.
13199 lf95*)
13200 lt_prog_compiler_wl='-Wl,'
13201 lt_prog_compiler_pic='--shared'
13202 lt_prog_compiler_static='--static'
13203 ;;
13204 pgcc* | pgf77* | pgf90* | pgf95*)
13205 # Portland Group compilers (*not* the Pentium gcc compiler,
13206 # which looks to be a dead project)
13207 lt_prog_compiler_wl='-Wl,'
13208 lt_prog_compiler_pic='-fpic'
13209 lt_prog_compiler_static='-Bstatic'
13210 ;;
13211 ccc*)
13212 lt_prog_compiler_wl='-Wl,'
13213 # All Alpha code is PIC.
13214 lt_prog_compiler_static='-non_shared'
13215 ;;
13216 xl*)
13217 # IBM XL C 8.0/Fortran 10.1 on PPC
13218 lt_prog_compiler_wl='-Wl,'
13219 lt_prog_compiler_pic='-qpic'
13220 lt_prog_compiler_static='-qstaticlink'
13221 ;;
13222 *)
13223 case `$CC -V 2>&1 | sed 5q` in
13224 *Sun\ C*)
13225 # Sun C 5.9
13226 lt_prog_compiler_pic='-KPIC'
13227 lt_prog_compiler_static='-Bstatic'
13228 lt_prog_compiler_wl='-Wl,'
13229 ;;
13230 *Sun\ F*)
13231 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13232 lt_prog_compiler_pic='-KPIC'
13233 lt_prog_compiler_static='-Bstatic'
13234 lt_prog_compiler_wl=''
13235 ;;
13236 esac
13237 ;;
13238 esac
13239 ;;
13240
13241 newsos6)
13242 lt_prog_compiler_pic='-KPIC'
13243 lt_prog_compiler_static='-Bstatic'
13244 ;;
13245
13246 *nto* | *qnx*)
13247 # QNX uses GNU C++, but need to define -shared option too, otherwise
13248 # it will coredump.
13249 lt_prog_compiler_pic='-fPIC -shared'
13250 ;;
13251
13252 osf3* | osf4* | osf5*)
13253 lt_prog_compiler_wl='-Wl,'
13254 # All OSF/1 code is PIC.
13255 lt_prog_compiler_static='-non_shared'
13256 ;;
13257
13258 rdos*)
13259 lt_prog_compiler_static='-non_shared'
13260 ;;
13261
13262 solaris*)
13263 lt_prog_compiler_pic='-KPIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 case $cc_basename in
13266 f77* | f90* | f95*)
13267 lt_prog_compiler_wl='-Qoption ld ';;
13268 *)
13269 lt_prog_compiler_wl='-Wl,';;
13270 esac
13271 ;;
13272
13273 sunos4*)
13274 lt_prog_compiler_wl='-Qoption ld '
13275 lt_prog_compiler_pic='-PIC'
13276 lt_prog_compiler_static='-Bstatic'
13277 ;;
13278
13279 sysv4 | sysv4.2uw2* | sysv4.3*)
13280 lt_prog_compiler_wl='-Wl,'
13281 lt_prog_compiler_pic='-KPIC'
13282 lt_prog_compiler_static='-Bstatic'
13283 ;;
13284
13285 sysv4*MP*)
13286 if test -d /usr/nec ;then
13287 lt_prog_compiler_pic='-Kconform_pic'
13288 lt_prog_compiler_static='-Bstatic'
13289 fi
13290 ;;
13291
13292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13293 lt_prog_compiler_wl='-Wl,'
13294 lt_prog_compiler_pic='-KPIC'
13295 lt_prog_compiler_static='-Bstatic'
13296 ;;
13297
13298 unicos*)
13299 lt_prog_compiler_wl='-Wl,'
13300 lt_prog_compiler_can_build_shared=no
13301 ;;
13302
13303 uts4*)
13304 lt_prog_compiler_pic='-pic'
13305 lt_prog_compiler_static='-Bstatic'
13306 ;;
13307
13308 *)
13309 lt_prog_compiler_can_build_shared=no
13310 ;;
13311 esac
13312 fi
13313
13314case $host_os in
13315 # For platforms which do not support PIC, -DPIC is meaningless:
13316 *djgpp*)
13317 lt_prog_compiler_pic=
13318 ;;
13319 *)
13320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13321 ;;
13322esac
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13324$as_echo "$lt_prog_compiler_pic" >&6; }
13325
13326
13327
13328
13329
13330
13331#
13332# Check to make sure the PIC flag actually works.
13333#
13334if test -n "$lt_prog_compiler_pic"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13336$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13337if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13339else
13340 lt_cv_prog_compiler_pic_works=no
13341 ac_outfile=conftest.$ac_objext
13342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13343 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13344 # Insert the option either (1) after the last *FLAGS variable, or
13345 # (2) before a word containing "conftest.", or (3) at the end.
13346 # Note that $ac_compile itself does not contain backslashes and begins
13347 # with a dollar sign (not a hyphen), so the echo should work correctly.
13348 # The option is referenced via a variable to avoid confusing sed.
13349 lt_compile=`echo "$ac_compile" | $SED \
13350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13352 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000013353 (eval echo "\"\$as_me:13353: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013354 (eval "$lt_compile" 2>conftest.err)
13355 ac_status=$?
13356 cat conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000013357 echo "$as_me:13357: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013358 if (exit $ac_status) && test -s "$ac_outfile"; then
13359 # The compiler can only warn and ignore the option if not recognized
13360 # So say no if there are warnings other than the usual output.
13361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13364 lt_cv_prog_compiler_pic_works=yes
13365 fi
13366 fi
13367 $RM conftest*
13368
13369fi
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13371$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13372
13373if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13374 case $lt_prog_compiler_pic in
13375 "" | " "*) ;;
13376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13377 esac
13378else
13379 lt_prog_compiler_pic=
13380 lt_prog_compiler_can_build_shared=no
13381fi
13382
13383fi
13384
13385
13386
13387
13388
13389
13390#
13391# Check to make sure the static flag actually works.
13392#
13393wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13395$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13396if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13398else
13399 lt_cv_prog_compiler_static_works=no
13400 save_LDFLAGS="$LDFLAGS"
13401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13404 # The linker can only warn and ignore the option if not recognized
13405 # So say no if there are warnings
13406 if test -s conftest.err; then
13407 # Append any errors to the config.log.
13408 cat conftest.err 1>&5
13409 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13411 if diff conftest.exp conftest.er2 >/dev/null; then
13412 lt_cv_prog_compiler_static_works=yes
13413 fi
13414 else
13415 lt_cv_prog_compiler_static_works=yes
13416 fi
13417 fi
13418 $RM -r conftest*
13419 LDFLAGS="$save_LDFLAGS"
13420
13421fi
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13423$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13424
13425if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13426 :
13427else
13428 lt_prog_compiler_static=
13429fi
13430
13431
13432
13433
13434
13435
13436
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13438$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13439if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441else
13442 lt_cv_prog_compiler_c_o=no
13443 $RM -r conftest 2>/dev/null
13444 mkdir conftest
13445 cd conftest
13446 mkdir out
13447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13448
13449 lt_compiler_flag="-o out/conftest2.$ac_objext"
13450 # Insert the option either (1) after the last *FLAGS variable, or
13451 # (2) before a word containing "conftest.", or (3) at the end.
13452 # Note that $ac_compile itself does not contain backslashes and begins
13453 # with a dollar sign (not a hyphen), so the echo should work correctly.
13454 lt_compile=`echo "$ac_compile" | $SED \
13455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13457 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000013458 (eval echo "\"\$as_me:13458: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013459 (eval "$lt_compile" 2>out/conftest.err)
13460 ac_status=$?
13461 cat out/conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000013462 echo "$as_me:13462: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13464 then
13465 # The compiler can only warn and ignore the option if not recognized
13466 # So say no if there are warnings
13467 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13470 lt_cv_prog_compiler_c_o=yes
13471 fi
13472 fi
13473 chmod u+w . 2>&5
13474 $RM conftest*
13475 # SGI C++ compiler will create directory out/ii_files/ for
13476 # template instantiation
13477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13478 $RM out/* && rmdir out
13479 cd ..
13480 $RM -r conftest
13481 $RM conftest*
13482
13483fi
13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13485$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13486
13487
13488
13489
13490
13491
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13494if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
13496else
13497 lt_cv_prog_compiler_c_o=no
13498 $RM -r conftest 2>/dev/null
13499 mkdir conftest
13500 cd conftest
13501 mkdir out
13502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503
13504 lt_compiler_flag="-o out/conftest2.$ac_objext"
13505 # Insert the option either (1) after the last *FLAGS variable, or
13506 # (2) before a word containing "conftest.", or (3) at the end.
13507 # Note that $ac_compile itself does not contain backslashes and begins
13508 # with a dollar sign (not a hyphen), so the echo should work correctly.
13509 lt_compile=`echo "$ac_compile" | $SED \
13510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13512 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000013513 (eval echo "\"\$as_me:13513: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013514 (eval "$lt_compile" 2>out/conftest.err)
13515 ac_status=$?
13516 cat out/conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000013517 echo "$as_me:13517: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13519 then
13520 # The compiler can only warn and ignore the option if not recognized
13521 # So say no if there are warnings
13522 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13525 lt_cv_prog_compiler_c_o=yes
13526 fi
13527 fi
13528 chmod u+w . 2>&5
13529 $RM conftest*
13530 # SGI C++ compiler will create directory out/ii_files/ for
13531 # template instantiation
13532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13533 $RM out/* && rmdir out
13534 cd ..
13535 $RM -r conftest
13536 $RM conftest*
13537
13538fi
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13540$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13541
13542
13543
13544
13545hard_links="nottested"
13546if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13547 # do not overwrite the value of need_locks provided by the user
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13549$as_echo_n "checking if we can lock with hard links... " >&6; }
13550 hard_links=yes
13551 $RM conftest*
13552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13553 touch conftest.a
13554 ln conftest.a conftest.b 2>&5 || hard_links=no
13555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13557$as_echo "$hard_links" >&6; }
13558 if test "$hard_links" = no; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13560$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13561 need_locks=warn
13562 fi
13563else
13564 need_locks=no
13565fi
13566
13567
13568
13569
13570
13571
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13573$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13574
13575 runpath_var=
13576 allow_undefined_flag=
13577 always_export_symbols=no
13578 archive_cmds=
13579 archive_expsym_cmds=
13580 compiler_needs_object=no
13581 enable_shared_with_static_runtimes=no
13582 export_dynamic_flag_spec=
13583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13584 hardcode_automatic=no
13585 hardcode_direct=no
13586 hardcode_direct_absolute=no
13587 hardcode_libdir_flag_spec=
13588 hardcode_libdir_flag_spec_ld=
13589 hardcode_libdir_separator=
13590 hardcode_minus_L=no
13591 hardcode_shlibpath_var=unsupported
13592 inherit_rpath=no
13593 link_all_deplibs=unknown
13594 module_cmds=
13595 module_expsym_cmds=
13596 old_archive_from_new_cmds=
13597 old_archive_from_expsyms_cmds=
13598 thread_safe_flag_spec=
13599 whole_archive_flag_spec=
13600 # include_expsyms should be a list of space-separated symbols to be *always*
13601 # included in the symbol list
13602 include_expsyms=
13603 # exclude_expsyms can be an extended regexp of symbols to exclude
13604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13606 # as well as any symbol that contains `d'.
13607 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13609 # platforms (ab)use it in PIC code, but their linkers get confused if
13610 # the symbol is explicitly referenced. Since portable code cannot
13611 # rely on this symbol name, it's probably fine to never include it in
13612 # preloaded symbol tables.
13613 # Exclude shared library initialization/finalization symbols.
13614 extract_expsyms_cmds=
13615
13616 case $host_os in
13617 cygwin* | mingw* | pw32* | cegcc*)
13618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13619 # When not using gcc, we currently assume that we are using
13620 # Microsoft Visual C++.
13621 if test "$GCC" != yes; then
13622 with_gnu_ld=no
13623 fi
13624 ;;
13625 interix*)
13626 # we just hope/assume this is gcc and not c89 (= MSVC++)
13627 with_gnu_ld=yes
13628 ;;
13629 openbsd*)
13630 with_gnu_ld=no
13631 ;;
13632 esac
13633
13634 ld_shlibs=yes
13635 if test "$with_gnu_ld" = yes; then
13636 # If archive_cmds runs LD, not CC, wlarc should be empty
13637 wlarc='${wl}'
13638
13639 # Set some defaults for GNU ld with shared library support. These
13640 # are reset later if shared libraries are not supported. Putting them
13641 # here allows them to be overridden if necessary.
13642 runpath_var=LD_RUN_PATH
13643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13644 export_dynamic_flag_spec='${wl}--export-dynamic'
13645 # ancient GNU ld didn't support --whole-archive et. al.
13646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13648 else
13649 whole_archive_flag_spec=
13650 fi
13651 supports_anon_versioning=no
13652 case `$LD -v 2>&1` in
13653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13656 *\ 2.11.*) ;; # other 2.11 versions
13657 *) supports_anon_versioning=yes ;;
13658 esac
13659
13660 # See if GNU ld supports shared libraries.
13661 case $host_os in
13662 aix[3-9]*)
13663 # On AIX/PPC, the GNU linker is very broken
13664 if test "$host_cpu" != ia64; then
13665 ld_shlibs=no
13666 cat <<_LT_EOF 1>&2
13667
13668*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13669*** to be unable to reliably create shared libraries on AIX.
13670*** Therefore, libtool is disabling shared libraries support. If you
13671*** really care for shared libraries, you may want to modify your PATH
13672*** so that a non-GNU linker is found, and then restart.
13673
13674_LT_EOF
13675 fi
13676 ;;
13677
13678 amigaos*)
13679 case $host_cpu in
13680 powerpc)
13681 # see comment about AmigaOS4 .so support
13682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683 archive_expsym_cmds=''
13684 ;;
13685 m68k)
13686 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)'
13687 hardcode_libdir_flag_spec='-L$libdir'
13688 hardcode_minus_L=yes
13689 ;;
13690 esac
13691 ;;
13692
13693 beos*)
13694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13695 allow_undefined_flag=unsupported
13696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13697 # support --undefined. This deserves some investigation. FIXME
13698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699 else
13700 ld_shlibs=no
13701 fi
13702 ;;
13703
13704 cygwin* | mingw* | pw32* | cegcc*)
13705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13706 # as there is no search path for DLLs.
13707 hardcode_libdir_flag_spec='-L$libdir'
13708 allow_undefined_flag=unsupported
13709 always_export_symbols=no
13710 enable_shared_with_static_runtimes=yes
13711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13712
13713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13715 # If the export-symbols file already is a .def file (1st line
13716 # is EXPORTS), use it as is; otherwise, prepend...
13717 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13718 cp $export_symbols $output_objdir/$soname.def;
13719 else
13720 echo EXPORTS > $output_objdir/$soname.def;
13721 cat $export_symbols >> $output_objdir/$soname.def;
13722 fi~
13723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13724 else
13725 ld_shlibs=no
13726 fi
13727 ;;
13728
13729 interix[3-9]*)
13730 hardcode_direct=no
13731 hardcode_shlibpath_var=no
13732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13733 export_dynamic_flag_spec='${wl}-E'
13734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13735 # Instead, shared libraries are loaded at an image base (0x10000000 by
13736 # default) and relocated if they conflict, which is a slow very memory
13737 # consuming and fragmenting process. To avoid this, we pick a random,
13738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13741 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'
13742 ;;
13743
13744 gnu* | linux* | tpf* | k*bsd*-gnu)
13745 tmp_diet=no
13746 if test "$host_os" = linux-dietlibc; then
13747 case $cc_basename in
13748 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13749 esac
13750 fi
13751 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13752 && test "$tmp_diet" = no
13753 then
13754 tmp_addflag=
13755 tmp_sharedflag='-shared'
13756 case $cc_basename,$host_cpu in
13757 pgcc*) # Portland Group C compiler
13758 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13759 tmp_addflag=' $pic_flag'
13760 ;;
13761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13762 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13763 tmp_addflag=' $pic_flag -Mnomain' ;;
13764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13765 tmp_addflag=' -i_dynamic' ;;
13766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13767 tmp_addflag=' -i_dynamic -nofor_main' ;;
13768 ifc* | ifort*) # Intel Fortran compiler
13769 tmp_addflag=' -nofor_main' ;;
13770 lf95*) # Lahey Fortran 8.1
13771 whole_archive_flag_spec=
13772 tmp_sharedflag='--shared' ;;
13773 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13774 tmp_sharedflag='-qmkshrobj'
13775 tmp_addflag= ;;
13776 esac
13777 case `$CC -V 2>&1 | sed 5q` in
13778 *Sun\ C*) # Sun C 5.9
13779 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13780 compiler_needs_object=yes
13781 tmp_sharedflag='-G' ;;
13782 *Sun\ F*) # Sun Fortran 8.3
13783 tmp_sharedflag='-G' ;;
13784 esac
13785 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13786
13787 if test "x$supports_anon_versioning" = xyes; then
13788 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13790 echo "local: *; };" >> $output_objdir/$libname.ver~
13791 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13792 fi
13793
13794 case $cc_basename in
13795 xlf*)
13796 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13797 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13798 hardcode_libdir_flag_spec=
13799 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13800 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13801 if test "x$supports_anon_versioning" = xyes; then
13802 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13804 echo "local: *; };" >> $output_objdir/$libname.ver~
13805 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13806 fi
13807 ;;
13808 esac
13809 else
13810 ld_shlibs=no
13811 fi
13812 ;;
13813
13814 netbsd*)
13815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13816 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13817 wlarc=
13818 else
13819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13821 fi
13822 ;;
13823
13824 solaris*)
13825 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13826 ld_shlibs=no
13827 cat <<_LT_EOF 1>&2
13828
13829*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13830*** create shared libraries on Solaris systems. Therefore, libtool
13831*** is disabling shared libraries support. We urge you to upgrade GNU
13832*** binutils to release 2.9.1 or newer. Another option is to modify
13833*** your PATH or compiler configuration so that the native linker is
13834*** used, and then restart.
13835
13836_LT_EOF
13837 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13840 else
13841 ld_shlibs=no
13842 fi
13843 ;;
13844
13845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13846 case `$LD -v 2>&1` in
13847 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13848 ld_shlibs=no
13849 cat <<_LT_EOF 1>&2
13850
13851*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13852*** reliably create shared libraries on SCO systems. Therefore, libtool
13853*** is disabling shared libraries support. We urge you to upgrade GNU
13854*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13855*** your PATH or compiler configuration so that the native linker is
13856*** used, and then restart.
13857
13858_LT_EOF
13859 ;;
13860 *)
13861 # For security reasons, it is highly recommended that you always
13862 # use absolute paths for naming shared libraries, and exclude the
13863 # DT_RUNPATH tag from executables and libraries. But doing so
13864 # requires that you compile everything twice, which is a pain.
13865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13869 else
13870 ld_shlibs=no
13871 fi
13872 ;;
13873 esac
13874 ;;
13875
13876 sunos4*)
13877 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13878 wlarc=
13879 hardcode_direct=yes
13880 hardcode_shlibpath_var=no
13881 ;;
13882
13883 *)
13884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13887 else
13888 ld_shlibs=no
13889 fi
13890 ;;
13891 esac
13892
13893 if test "$ld_shlibs" = no; then
13894 runpath_var=
13895 hardcode_libdir_flag_spec=
13896 export_dynamic_flag_spec=
13897 whole_archive_flag_spec=
13898 fi
13899 else
13900 # PORTME fill in a description of your system's linker (not GNU ld)
13901 case $host_os in
13902 aix3*)
13903 allow_undefined_flag=unsupported
13904 always_export_symbols=yes
13905 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'
13906 # Note: this linker hardcodes the directories in LIBPATH if there
13907 # are no directories specified by -L.
13908 hardcode_minus_L=yes
13909 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13910 # Neither direct hardcoding nor static linking is supported with a
13911 # broken collect2.
13912 hardcode_direct=unsupported
13913 fi
13914 ;;
13915
13916 aix[4-9]*)
13917 if test "$host_cpu" = ia64; then
13918 # On IA64, the linker does run time linking by default, so we don't
13919 # have to do anything special.
13920 aix_use_runtimelinking=no
13921 exp_sym_flag='-Bexport'
13922 no_entry_flag=""
13923 else
13924 # If we're using GNU nm, then we don't want the "-C" option.
13925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13927 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13928 else
13929 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'
13930 fi
13931 aix_use_runtimelinking=no
13932
13933 # Test if we are trying to use run time linking or normal
13934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13935 # need to do runtime linking.
13936 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13937 for ld_flag in $LDFLAGS; do
13938 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13939 aix_use_runtimelinking=yes
13940 break
13941 fi
13942 done
13943 ;;
13944 esac
13945
13946 exp_sym_flag='-bexport'
13947 no_entry_flag='-bnoentry'
13948 fi
13949
13950 # When large executables or shared objects are built, AIX ld can
13951 # have problems creating the table of contents. If linking a library
13952 # or program results in "error TOC overflow" add -mminimal-toc to
13953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13955
13956 archive_cmds=''
13957 hardcode_direct=yes
13958 hardcode_direct_absolute=yes
13959 hardcode_libdir_separator=':'
13960 link_all_deplibs=yes
13961 file_list_spec='${wl}-f,'
13962
13963 if test "$GCC" = yes; then
13964 case $host_os in aix4.[012]|aix4.[012].*)
13965 # We only want to do this on AIX 4.2 and lower, the check
13966 # below for broken collect2 doesn't work under 4.3+
13967 collect2name=`${CC} -print-prog-name=collect2`
13968 if test -f "$collect2name" &&
13969 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13970 then
13971 # We have reworked collect2
13972 :
13973 else
13974 # We have old collect2
13975 hardcode_direct=unsupported
13976 # It fails to find uninstalled libraries when the uninstalled
13977 # path is not listed in the libpath. Setting hardcode_minus_L
13978 # to unsupported forces relinking
13979 hardcode_minus_L=yes
13980 hardcode_libdir_flag_spec='-L$libdir'
13981 hardcode_libdir_separator=
13982 fi
13983 ;;
13984 esac
13985 shared_flag='-shared'
13986 if test "$aix_use_runtimelinking" = yes; then
13987 shared_flag="$shared_flag "'${wl}-G'
13988 fi
13989 else
13990 # not using gcc
13991 if test "$host_cpu" = ia64; then
13992 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13993 # chokes on -Wl,-G. The following line is correct:
13994 shared_flag='-G'
13995 else
13996 if test "$aix_use_runtimelinking" = yes; then
13997 shared_flag='${wl}-G'
13998 else
13999 shared_flag='${wl}-bM:SRE'
14000 fi
14001 fi
14002 fi
14003
14004 export_dynamic_flag_spec='${wl}-bexpall'
14005 # It seems that -bexpall does not export symbols beginning with
14006 # underscore (_), so it is better to generate a list of symbols to export.
14007 always_export_symbols=yes
14008 if test "$aix_use_runtimelinking" = yes; then
14009 # Warning - without using the other runtime loading flags (-brtl),
14010 # -berok will link without error, but may produce a broken library.
14011 allow_undefined_flag='-berok'
14012 # Determine the default libpath from the value encoded in an
14013 # empty executable.
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015/* end confdefs.h. */
14016
14017int
14018main ()
14019{
14020
14021 ;
14022 return 0;
14023}
14024_ACEOF
14025if ac_fn_c_try_link "$LINENO"; then :
14026
14027lt_aix_libpath_sed='
14028 /Import File Strings/,/^$/ {
14029 /^0/ {
14030 s/^0 *\(.*\)$/\1/
14031 p
14032 }
14033 }'
14034aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14035# Check for a 64-bit object if we didn't find anything.
14036if test -z "$aix_libpath"; then
14037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14038fi
14039fi
14040rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14043
14044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14045 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14046 else
14047 if test "$host_cpu" = ia64; then
14048 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14049 allow_undefined_flag="-z nodefs"
14050 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"
14051 else
14052 # Determine the default libpath from the value encoded in an
14053 # empty executable.
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055/* end confdefs.h. */
14056
14057int
14058main ()
14059{
14060
14061 ;
14062 return 0;
14063}
14064_ACEOF
14065if ac_fn_c_try_link "$LINENO"; then :
14066
14067lt_aix_libpath_sed='
14068 /Import File Strings/,/^$/ {
14069 /^0/ {
14070 s/^0 *\(.*\)$/\1/
14071 p
14072 }
14073 }'
14074aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14075# Check for a 64-bit object if we didn't find anything.
14076if test -z "$aix_libpath"; then
14077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14078fi
14079fi
14080rm -f core conftest.err conftest.$ac_objext \
14081 conftest$ac_exeext conftest.$ac_ext
14082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14083
14084 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14085 # Warning - without using the other run time loading flags,
14086 # -berok will link without error, but may produce a broken library.
14087 no_undefined_flag=' ${wl}-bernotok'
14088 allow_undefined_flag=' ${wl}-berok'
14089 # Exported symbols can be pulled into shared objects from archives
14090 whole_archive_flag_spec='$convenience'
14091 archive_cmds_need_lc=yes
14092 # This is similar to how AIX traditionally builds its shared libraries.
14093 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'
14094 fi
14095 fi
14096 ;;
14097
14098 amigaos*)
14099 case $host_cpu in
14100 powerpc)
14101 # see comment about AmigaOS4 .so support
14102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 archive_expsym_cmds=''
14104 ;;
14105 m68k)
14106 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)'
14107 hardcode_libdir_flag_spec='-L$libdir'
14108 hardcode_minus_L=yes
14109 ;;
14110 esac
14111 ;;
14112
14113 bsdi[45]*)
14114 export_dynamic_flag_spec=-rdynamic
14115 ;;
14116
14117 cygwin* | mingw* | pw32* | cegcc*)
14118 # When not using gcc, we currently assume that we are using
14119 # Microsoft Visual C++.
14120 # hardcode_libdir_flag_spec is actually meaningless, as there is
14121 # no search path for DLLs.
14122 hardcode_libdir_flag_spec=' '
14123 allow_undefined_flag=unsupported
14124 # Tell ltmain to make .lib files, not .a files.
14125 libext=lib
14126 # Tell ltmain to make .dll files, not .so files.
14127 shrext_cmds=".dll"
14128 # FIXME: Setting linknames here is a bad hack.
14129 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14130 # The linker will automatically build a .lib file if we build a DLL.
14131 old_archive_from_new_cmds='true'
14132 # FIXME: Should let the user specify the lib program.
14133 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14134 fix_srcfile_path='`cygpath -w "$srcfile"`'
14135 enable_shared_with_static_runtimes=yes
14136 ;;
14137
14138 darwin* | rhapsody*)
14139
14140
14141 archive_cmds_need_lc=no
14142 hardcode_direct=no
14143 hardcode_automatic=yes
14144 hardcode_shlibpath_var=unsupported
14145 whole_archive_flag_spec=''
14146 link_all_deplibs=yes
14147 allow_undefined_flag="$_lt_dar_allow_undefined"
14148 case $cc_basename in
14149 ifort*) _lt_dar_can_shared=yes ;;
14150 *) _lt_dar_can_shared=$GCC ;;
14151 esac
14152 if test "$_lt_dar_can_shared" = "yes"; then
14153 output_verbose_link_cmd=echo
14154 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14155 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14156 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}"
14157 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}"
14158
14159 else
14160 ld_shlibs=no
14161 fi
14162
14163 ;;
14164
14165 dgux*)
14166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14167 hardcode_libdir_flag_spec='-L$libdir'
14168 hardcode_shlibpath_var=no
14169 ;;
14170
14171 freebsd1*)
14172 ld_shlibs=no
14173 ;;
14174
14175 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14176 # support. Future versions do this automatically, but an explicit c++rt0.o
14177 # does not break anything, and helps significantly (at the cost of a little
14178 # extra space).
14179 freebsd2.2*)
14180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14181 hardcode_libdir_flag_spec='-R$libdir'
14182 hardcode_direct=yes
14183 hardcode_shlibpath_var=no
14184 ;;
14185
14186 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14187 freebsd2*)
14188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14189 hardcode_direct=yes
14190 hardcode_minus_L=yes
14191 hardcode_shlibpath_var=no
14192 ;;
14193
14194 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14195 freebsd* | dragonfly*)
14196 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14197 hardcode_libdir_flag_spec='-R$libdir'
14198 hardcode_direct=yes
14199 hardcode_shlibpath_var=no
14200 ;;
14201
14202 hpux9*)
14203 if test "$GCC" = yes; then
14204 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'
14205 else
14206 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'
14207 fi
14208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14209 hardcode_libdir_separator=:
14210 hardcode_direct=yes
14211
14212 # hardcode_minus_L: Not really in the search PATH,
14213 # but as the default location of the library.
14214 hardcode_minus_L=yes
14215 export_dynamic_flag_spec='${wl}-E'
14216 ;;
14217
14218 hpux10*)
14219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14221 else
14222 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14223 fi
14224 if test "$with_gnu_ld" = no; then
14225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14226 hardcode_libdir_flag_spec_ld='+b $libdir'
14227 hardcode_libdir_separator=:
14228 hardcode_direct=yes
14229 hardcode_direct_absolute=yes
14230 export_dynamic_flag_spec='${wl}-E'
14231 # hardcode_minus_L: Not really in the search PATH,
14232 # but as the default location of the library.
14233 hardcode_minus_L=yes
14234 fi
14235 ;;
14236
14237 hpux11*)
14238 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14239 case $host_cpu in
14240 hppa*64*)
14241 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14242 ;;
14243 ia64*)
14244 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14245 ;;
14246 *)
14247 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14248 ;;
14249 esac
14250 else
14251 case $host_cpu in
14252 hppa*64*)
14253 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14254 ;;
14255 ia64*)
14256 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14257 ;;
14258 *)
14259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14260 ;;
14261 esac
14262 fi
14263 if test "$with_gnu_ld" = no; then
14264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14265 hardcode_libdir_separator=:
14266
14267 case $host_cpu in
14268 hppa*64*|ia64*)
14269 hardcode_direct=no
14270 hardcode_shlibpath_var=no
14271 ;;
14272 *)
14273 hardcode_direct=yes
14274 hardcode_direct_absolute=yes
14275 export_dynamic_flag_spec='${wl}-E'
14276
14277 # hardcode_minus_L: Not really in the search PATH,
14278 # but as the default location of the library.
14279 hardcode_minus_L=yes
14280 ;;
14281 esac
14282 fi
14283 ;;
14284
14285 irix5* | irix6* | nonstopux*)
14286 if test "$GCC" = yes; then
14287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14288 # Try to use the -exported_symbol ld option, if it does not
14289 # work, assume that -exports_file does not work either and
14290 # implicitly export all symbols.
14291 save_LDFLAGS="$LDFLAGS"
14292 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294/* end confdefs.h. */
14295int foo(void) {}
14296_ACEOF
14297if ac_fn_c_try_link "$LINENO"; then :
14298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14299
14300fi
14301rm -f core conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303 LDFLAGS="$save_LDFLAGS"
14304 else
14305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14307 fi
14308 archive_cmds_need_lc='no'
14309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14310 hardcode_libdir_separator=:
14311 inherit_rpath=yes
14312 link_all_deplibs=yes
14313 ;;
14314
14315 netbsd*)
14316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14318 else
14319 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14320 fi
14321 hardcode_libdir_flag_spec='-R$libdir'
14322 hardcode_direct=yes
14323 hardcode_shlibpath_var=no
14324 ;;
14325
14326 newsos6)
14327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14328 hardcode_direct=yes
14329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14330 hardcode_libdir_separator=:
14331 hardcode_shlibpath_var=no
14332 ;;
14333
14334 *nto* | *qnx*)
14335 ;;
14336
14337 openbsd*)
14338 if test -f /usr/libexec/ld.so; then
14339 hardcode_direct=yes
14340 hardcode_shlibpath_var=no
14341 hardcode_direct_absolute=yes
14342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14344 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14346 export_dynamic_flag_spec='${wl}-E'
14347 else
14348 case $host_os in
14349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14351 hardcode_libdir_flag_spec='-R$libdir'
14352 ;;
14353 *)
14354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14356 ;;
14357 esac
14358 fi
14359 else
14360 ld_shlibs=no
14361 fi
14362 ;;
14363
14364 os2*)
14365 hardcode_libdir_flag_spec='-L$libdir'
14366 hardcode_minus_L=yes
14367 allow_undefined_flag=unsupported
14368 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'
14369 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14370 ;;
14371
14372 osf3*)
14373 if test "$GCC" = yes; then
14374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14375 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14376 else
14377 allow_undefined_flag=' -expect_unresolved \*'
14378 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14379 fi
14380 archive_cmds_need_lc='no'
14381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14382 hardcode_libdir_separator=:
14383 ;;
14384
14385 osf4* | osf5*) # as osf3* with the addition of -msym flag
14386 if test "$GCC" = yes; then
14387 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14388 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14390 else
14391 allow_undefined_flag=' -expect_unresolved \*'
14392 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14393 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~
14394 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14395
14396 # Both c and cxx compiler support -rpath directly
14397 hardcode_libdir_flag_spec='-rpath $libdir'
14398 fi
14399 archive_cmds_need_lc='no'
14400 hardcode_libdir_separator=:
14401 ;;
14402
14403 solaris*)
14404 no_undefined_flag=' -z defs'
14405 if test "$GCC" = yes; then
14406 wlarc='${wl}'
14407 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14409 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14410 else
14411 case `$CC -V 2>&1` in
14412 *"Compilers 5.0"*)
14413 wlarc=''
14414 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14416 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14417 ;;
14418 *)
14419 wlarc='${wl}'
14420 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14422 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14423 ;;
14424 esac
14425 fi
14426 hardcode_libdir_flag_spec='-R$libdir'
14427 hardcode_shlibpath_var=no
14428 case $host_os in
14429 solaris2.[0-5] | solaris2.[0-5].*) ;;
14430 *)
14431 # The compiler driver will combine and reorder linker options,
14432 # but understands `-z linker_flag'. GCC discards it without `$wl',
14433 # but is careful enough not to reorder.
14434 # Supported since Solaris 2.6 (maybe 2.5.1?)
14435 if test "$GCC" = yes; then
14436 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14437 else
14438 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14439 fi
14440 ;;
14441 esac
14442 link_all_deplibs=yes
14443 ;;
14444
14445 sunos4*)
14446 if test "x$host_vendor" = xsequent; then
14447 # Use $CC to link under sequent, because it throws in some extra .o
14448 # files that make .init and .fini sections work.
14449 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14450 else
14451 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14452 fi
14453 hardcode_libdir_flag_spec='-L$libdir'
14454 hardcode_direct=yes
14455 hardcode_minus_L=yes
14456 hardcode_shlibpath_var=no
14457 ;;
14458
14459 sysv4)
14460 case $host_vendor in
14461 sni)
14462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463 hardcode_direct=yes # is this really true???
14464 ;;
14465 siemens)
14466 ## LD is ld it makes a PLAMLIB
14467 ## CC just makes a GrossModule.
14468 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14469 reload_cmds='$CC -r -o $output$reload_objs'
14470 hardcode_direct=no
14471 ;;
14472 motorola)
14473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14474 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14475 ;;
14476 esac
14477 runpath_var='LD_RUN_PATH'
14478 hardcode_shlibpath_var=no
14479 ;;
14480
14481 sysv4.3*)
14482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14483 hardcode_shlibpath_var=no
14484 export_dynamic_flag_spec='-Bexport'
14485 ;;
14486
14487 sysv4*MP*)
14488 if test -d /usr/nec; then
14489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490 hardcode_shlibpath_var=no
14491 runpath_var=LD_RUN_PATH
14492 hardcode_runpath_var=yes
14493 ld_shlibs=yes
14494 fi
14495 ;;
14496
14497 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14498 no_undefined_flag='${wl}-z,text'
14499 archive_cmds_need_lc=no
14500 hardcode_shlibpath_var=no
14501 runpath_var='LD_RUN_PATH'
14502
14503 if test "$GCC" = yes; then
14504 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506 else
14507 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509 fi
14510 ;;
14511
14512 sysv5* | sco3.2v5* | sco5v6*)
14513 # Note: We can NOT use -z defs as we might desire, because we do not
14514 # link with -lc, and that would cause any symbols used from libc to
14515 # always be unresolved, which means just about no library would
14516 # ever link correctly. If we're not using GNU ld we use -z text
14517 # though, which does catch some bad symbols but isn't as heavy-handed
14518 # as -z defs.
14519 no_undefined_flag='${wl}-z,text'
14520 allow_undefined_flag='${wl}-z,nodefs'
14521 archive_cmds_need_lc=no
14522 hardcode_shlibpath_var=no
14523 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14524 hardcode_libdir_separator=':'
14525 link_all_deplibs=yes
14526 export_dynamic_flag_spec='${wl}-Bexport'
14527 runpath_var='LD_RUN_PATH'
14528
14529 if test "$GCC" = yes; then
14530 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14532 else
14533 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 fi
14536 ;;
14537
14538 uts4*)
14539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540 hardcode_libdir_flag_spec='-L$libdir'
14541 hardcode_shlibpath_var=no
14542 ;;
14543
14544 *)
14545 ld_shlibs=no
14546 ;;
14547 esac
14548
14549 if test x$host_vendor = xsni; then
14550 case $host in
14551 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14552 export_dynamic_flag_spec='${wl}-Blargedynsym'
14553 ;;
14554 esac
14555 fi
14556 fi
14557
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14559$as_echo "$ld_shlibs" >&6; }
14560test "$ld_shlibs" = no && can_build_shared=no
14561
14562with_gnu_ld=$with_gnu_ld
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578#
14579# Do we need to explicitly link libc?
14580#
14581case "x$archive_cmds_need_lc" in
14582x|xyes)
14583 # Assume -lc should be added
14584 archive_cmds_need_lc=yes
14585
14586 if test "$enable_shared" = yes && test "$GCC" = yes; then
14587 case $archive_cmds in
14588 *'~'*)
14589 # FIXME: we may have to deal with multi-command sequences.
14590 ;;
14591 '$CC '*)
14592 # Test whether the compiler implicitly links with -lc since on some
14593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14594 # to ld, don't add -lc before -lgcc.
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14596$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14597 $RM conftest*
14598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14599
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601 (eval $ac_compile) 2>&5
14602 ac_status=$?
14603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604 test $ac_status = 0; } 2>conftest.err; then
14605 soname=conftest
14606 lib=conftest
14607 libobjs=conftest.$ac_objext
14608 deplibs=
14609 wl=$lt_prog_compiler_wl
14610 pic_flag=$lt_prog_compiler_pic
14611 compiler_flags=-v
14612 linker_flags=-v
14613 verstring=
14614 output_objdir=.
14615 libname=conftest
14616 lt_save_allow_undefined_flag=$allow_undefined_flag
14617 allow_undefined_flag=
14618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14619 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14620 ac_status=$?
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; }
14623 then
14624 archive_cmds_need_lc=no
14625 else
14626 archive_cmds_need_lc=yes
14627 fi
14628 allow_undefined_flag=$lt_save_allow_undefined_flag
14629 else
14630 cat conftest.err 1>&5
14631 fi
14632 $RM conftest*
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14634$as_echo "$archive_cmds_need_lc" >&6; }
14635 ;;
14636 esac
14637 fi
14638 ;;
14639esac
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14798$as_echo_n "checking dynamic linker characteristics... " >&6; }
14799
14800if test "$GCC" = yes; then
14801 case $host_os in
14802 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14803 *) lt_awk_arg="/^libraries:/" ;;
14804 esac
14805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14806 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14807 # if the path contains ";" then we assume it to be the separator
14808 # otherwise default to the standard path separator (i.e. ":") - it is
14809 # assumed that no part of a normal pathname contains ";" but that should
14810 # okay in the real world where ";" in dirpaths is itself problematic.
14811 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14812 else
14813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14814 fi
14815 # Ok, now we have the path, separated by spaces, we can step through it
14816 # and add multilib dir if necessary.
14817 lt_tmp_lt_search_path_spec=
14818 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14819 for lt_sys_path in $lt_search_path_spec; do
14820 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14821 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14822 else
14823 test -d "$lt_sys_path" && \
14824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14825 fi
14826 done
14827 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14828BEGIN {RS=" "; FS="/|\n";} {
14829 lt_foo="";
14830 lt_count=0;
14831 for (lt_i = NF; lt_i > 0; lt_i--) {
14832 if ($lt_i != "" && $lt_i != ".") {
14833 if ($lt_i == "..") {
14834 lt_count++;
14835 } else {
14836 if (lt_count == 0) {
14837 lt_foo="/" $lt_i lt_foo;
14838 } else {
14839 lt_count--;
14840 }
14841 }
14842 }
14843 }
14844 if (lt_foo != "") { lt_freq[lt_foo]++; }
14845 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14846}'`
14847 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14848else
14849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14850fi
14851library_names_spec=
14852libname_spec='lib$name'
14853soname_spec=
14854shrext_cmds=".so"
14855postinstall_cmds=
14856postuninstall_cmds=
14857finish_cmds=
14858finish_eval=
14859shlibpath_var=
14860shlibpath_overrides_runpath=unknown
14861version_type=none
14862dynamic_linker="$host_os ld.so"
14863sys_lib_dlsearch_path_spec="/lib /usr/lib"
14864need_lib_prefix=unknown
14865hardcode_into_libs=no
14866
14867# when you set need_version to no, make sure it does not cause -set_version
14868# flags to be left without arguments
14869need_version=unknown
14870
14871case $host_os in
14872aix3*)
14873 version_type=linux
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14875 shlibpath_var=LIBPATH
14876
14877 # AIX 3 has no versioning support, so we append a major version to the name.
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 ;;
14880
14881aix[4-9]*)
14882 version_type=linux
14883 need_lib_prefix=no
14884 need_version=no
14885 hardcode_into_libs=yes
14886 if test "$host_cpu" = ia64; then
14887 # AIX 5 supports IA64
14888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 else
14891 # With GCC up to 2.95.x, collect2 would create an import file
14892 # for dependence libraries. The import file would start with
14893 # the line `#! .'. This would cause the generated library to
14894 # depend on `.', always an invalid library. This was fixed in
14895 # development snapshots of GCC prior to 3.0.
14896 case $host_os in
14897 aix4 | aix4.[01] | aix4.[01].*)
14898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14899 echo ' yes '
14900 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14901 :
14902 else
14903 can_build_shared=no
14904 fi
14905 ;;
14906 esac
14907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14908 # soname into executable. Probably we can add versioning support to
14909 # collect2, so additional links can be useful in future.
14910 if test "$aix_use_runtimelinking" = yes; then
14911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14912 # instead of lib<name>.a to let people know that these are not
14913 # typical AIX shared libraries.
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 else
14916 # We preserve .a as extension for shared libraries through AIX4.2
14917 # and later when we are not doing run time linking.
14918 library_names_spec='${libname}${release}.a $libname.a'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 fi
14921 shlibpath_var=LIBPATH
14922 fi
14923 ;;
14924
14925amigaos*)
14926 case $host_cpu in
14927 powerpc)
14928 # Since July 2007 AmigaOS4 officially supports .so libraries.
14929 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 ;;
14932 m68k)
14933 library_names_spec='$libname.ixlibrary $libname.a'
14934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14935 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14936 ;;
14937 esac
14938 ;;
14939
14940beos*)
14941 library_names_spec='${libname}${shared_ext}'
14942 dynamic_linker="$host_os ld.so"
14943 shlibpath_var=LIBRARY_PATH
14944 ;;
14945
14946bsdi[45]*)
14947 version_type=linux
14948 need_version=no
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14954 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14955 # the default ld.so.conf also contains /usr/contrib/lib and
14956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14957 # libtool to hard-code these into programs
14958 ;;
14959
14960cygwin* | mingw* | pw32* | cegcc*)
14961 version_type=windows
14962 shrext_cmds=".dll"
14963 need_version=no
14964 need_lib_prefix=no
14965
14966 case $GCC,$host_os in
14967 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14968 library_names_spec='$libname.dll.a'
14969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14970 postinstall_cmds='base_file=`basename \${file}`~
14971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14972 dldir=$destdir/`dirname \$dlpath`~
14973 test -d \$dldir || mkdir -p \$dldir~
14974 $install_prog $dir/$dlname \$dldir/$dlname~
14975 chmod a+x \$dldir/$dlname~
14976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14978 fi'
14979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14980 dlpath=$dir/\$dldll~
14981 $RM \$dlpath'
14982 shlibpath_overrides_runpath=yes
14983
14984 case $host_os in
14985 cygwin*)
14986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14989 ;;
14990 mingw* | cegcc*)
14991 # MinGW DLLs use traditional 'lib' prefix
14992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14993 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14994 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14995 # It is most probably a Windows format PATH printed by
14996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14997 # path with ; separators, and with drive letters. We can handle the
14998 # drive letters (cygwin fileutils understands them), so leave them,
14999 # especially as we might pass files found there to a mingw objdump,
15000 # which wouldn't understand a cygwinified path. Ahh.
15001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15002 else
15003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15004 fi
15005 ;;
15006 pw32*)
15007 # pw32 DLLs use 'pw' prefix rather than 'lib'
15008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15009 ;;
15010 esac
15011 ;;
15012
15013 *)
15014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15015 ;;
15016 esac
15017 dynamic_linker='Win32 ld.exe'
15018 # FIXME: first we should search . and the directory the executable is in
15019 shlibpath_var=PATH
15020 ;;
15021
15022darwin* | rhapsody*)
15023 dynamic_linker="$host_os dyld"
15024 version_type=darwin
15025 need_lib_prefix=no
15026 need_version=no
15027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15028 soname_spec='${libname}${release}${major}$shared_ext'
15029 shlibpath_overrides_runpath=yes
15030 shlibpath_var=DYLD_LIBRARY_PATH
15031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15032
15033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15035 ;;
15036
15037dgux*)
15038 version_type=linux
15039 need_lib_prefix=no
15040 need_version=no
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 ;;
15045
15046freebsd1*)
15047 dynamic_linker=no
15048 ;;
15049
15050freebsd* | dragonfly*)
15051 # DragonFly does not have aout. When/if they implement a new
15052 # versioning mechanism, adjust this.
15053 if test -x /usr/bin/objformat; then
15054 objformat=`/usr/bin/objformat`
15055 else
15056 case $host_os in
15057 freebsd[123]*) objformat=aout ;;
15058 *) objformat=elf ;;
15059 esac
15060 fi
15061 version_type=freebsd-$objformat
15062 case $version_type in
15063 freebsd-elf*)
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065 need_version=no
15066 need_lib_prefix=no
15067 ;;
15068 freebsd-*)
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15070 need_version=yes
15071 ;;
15072 esac
15073 shlibpath_var=LD_LIBRARY_PATH
15074 case $host_os in
15075 freebsd2*)
15076 shlibpath_overrides_runpath=yes
15077 ;;
15078 freebsd3.[01]* | freebsdelf3.[01]*)
15079 shlibpath_overrides_runpath=yes
15080 hardcode_into_libs=yes
15081 ;;
15082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15084 shlibpath_overrides_runpath=no
15085 hardcode_into_libs=yes
15086 ;;
15087 *) # from 4.6 on, and DragonFly
15088 shlibpath_overrides_runpath=yes
15089 hardcode_into_libs=yes
15090 ;;
15091 esac
15092 ;;
15093
15094gnu*)
15095 version_type=linux
15096 need_lib_prefix=no
15097 need_version=no
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 hardcode_into_libs=yes
15102 ;;
15103
15104hpux9* | hpux10* | hpux11*)
15105 # Give a soname corresponding to the major version so that dld.sl refuses to
15106 # link against other versions.
15107 version_type=sunos
15108 need_lib_prefix=no
15109 need_version=no
15110 case $host_cpu in
15111 ia64*)
15112 shrext_cmds='.so'
15113 hardcode_into_libs=yes
15114 dynamic_linker="$host_os dld.so"
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 if test "X$HPUX_IA64_MODE" = X32; then
15120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15121 else
15122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15123 fi
15124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15125 ;;
15126 hppa*64*)
15127 shrext_cmds='.sl'
15128 hardcode_into_libs=yes
15129 dynamic_linker="$host_os dld.sl"
15130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15136 ;;
15137 *)
15138 shrext_cmds='.sl'
15139 dynamic_linker="$host_os dld.sl"
15140 shlibpath_var=SHLIB_PATH
15141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 ;;
15145 esac
15146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15147 postinstall_cmds='chmod 555 $lib'
15148 ;;
15149
15150interix[3-9]*)
15151 version_type=linux
15152 need_lib_prefix=no
15153 need_version=no
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15157 shlibpath_var=LD_LIBRARY_PATH
15158 shlibpath_overrides_runpath=no
15159 hardcode_into_libs=yes
15160 ;;
15161
15162irix5* | irix6* | nonstopux*)
15163 case $host_os in
15164 nonstopux*) version_type=nonstopux ;;
15165 *)
15166 if test "$lt_cv_prog_gnu_ld" = yes; then
15167 version_type=linux
15168 else
15169 version_type=irix
15170 fi ;;
15171 esac
15172 need_lib_prefix=no
15173 need_version=no
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15176 case $host_os in
15177 irix5* | nonstopux*)
15178 libsuff= shlibsuff=
15179 ;;
15180 *)
15181 case $LD in # libtool.m4 will add one of these switches to LD
15182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15183 libsuff= shlibsuff= libmagic=32-bit;;
15184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15185 libsuff=32 shlibsuff=N32 libmagic=N32;;
15186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15188 *) libsuff= shlibsuff= libmagic=never-match;;
15189 esac
15190 ;;
15191 esac
15192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15193 shlibpath_overrides_runpath=no
15194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15196 hardcode_into_libs=yes
15197 ;;
15198
15199# No shared lib support for Linux oldld, aout, or coff.
15200linux*oldld* | linux*aout* | linux*coff*)
15201 dynamic_linker=no
15202 ;;
15203
15204# This must be Linux ELF.
15205linux* | k*bsd*-gnu)
15206 version_type=linux
15207 need_lib_prefix=no
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=no
15214 # Some binutils ld are patched to set DT_RUNPATH
15215 save_LDFLAGS=$LDFLAGS
15216 save_libdir=$libdir
15217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220/* end confdefs.h. */
15221
15222int
15223main ()
15224{
15225
15226 ;
15227 return 0;
15228}
15229_ACEOF
15230if ac_fn_c_try_link "$LINENO"; then :
15231 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15232 shlibpath_overrides_runpath=yes
15233fi
15234fi
15235rm -f core conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LDFLAGS=$save_LDFLAGS
15238 libdir=$save_libdir
15239
15240 # This implies no fast_install, which is unacceptable.
15241 # Some rework will be needed to allow for fast_install
15242 # before this can be enabled.
15243 hardcode_into_libs=yes
15244
15245 # Add ABI-specific directories to the system library path.
15246 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15247
15248 # Append ld.so.conf contents to the search path
15249 if test -f /etc/ld.so.conf; then
15250 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;/^$/d' | tr '\n' ' '`
15251 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15252 fi
15253
15254 # We used to test for /lib/ld.so.1 and disable shared libraries on
15255 # powerpc, because MkLinux only supported shared libraries with the
15256 # GNU dynamic linker. Since this was broken with cross compilers,
15257 # most powerpc-linux boxes support dynamic linking these days and
15258 # people can always --disable-shared, the test was removed, and we
15259 # assume the GNU/Linux dynamic linker is in use.
15260 dynamic_linker='GNU/Linux ld.so'
15261 ;;
15262
15263netbsd*)
15264 version_type=sunos
15265 need_lib_prefix=no
15266 need_version=no
15267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15270 dynamic_linker='NetBSD (a.out) ld.so'
15271 else
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 dynamic_linker='NetBSD ld.elf_so'
15275 fi
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=yes
15278 hardcode_into_libs=yes
15279 ;;
15280
15281newsos6)
15282 version_type=linux
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=yes
15286 ;;
15287
15288*nto* | *qnx*)
15289 version_type=qnx
15290 need_lib_prefix=no
15291 need_version=no
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 shlibpath_overrides_runpath=no
15296 hardcode_into_libs=yes
15297 dynamic_linker='ldqnx.so'
15298 ;;
15299
15300openbsd*)
15301 version_type=sunos
15302 sys_lib_dlsearch_path_spec="/usr/lib"
15303 need_lib_prefix=no
15304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15305 case $host_os in
15306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15307 *) need_version=no ;;
15308 esac
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15311 shlibpath_var=LD_LIBRARY_PATH
15312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15313 case $host_os in
15314 openbsd2.[89] | openbsd2.[89].*)
15315 shlibpath_overrides_runpath=no
15316 ;;
15317 *)
15318 shlibpath_overrides_runpath=yes
15319 ;;
15320 esac
15321 else
15322 shlibpath_overrides_runpath=yes
15323 fi
15324 ;;
15325
15326os2*)
15327 libname_spec='$name'
15328 shrext_cmds=".dll"
15329 need_lib_prefix=no
15330 library_names_spec='$libname${shared_ext} $libname.a'
15331 dynamic_linker='OS/2 ld.exe'
15332 shlibpath_var=LIBPATH
15333 ;;
15334
15335osf3* | osf4* | osf5*)
15336 version_type=osf
15337 need_lib_prefix=no
15338 need_version=no
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15344 ;;
15345
15346rdos*)
15347 dynamic_linker=no
15348 ;;
15349
15350solaris*)
15351 version_type=linux
15352 need_lib_prefix=no
15353 need_version=no
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 shlibpath_overrides_runpath=yes
15358 hardcode_into_libs=yes
15359 # ldd complains unless libraries are executable
15360 postinstall_cmds='chmod +x $lib'
15361 ;;
15362
15363sunos4*)
15364 version_type=sunos
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 shlibpath_overrides_runpath=yes
15369 if test "$with_gnu_ld" = yes; then
15370 need_lib_prefix=no
15371 fi
15372 need_version=yes
15373 ;;
15374
15375sysv4 | sysv4.3*)
15376 version_type=linux
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 case $host_vendor in
15381 sni)
15382 shlibpath_overrides_runpath=no
15383 need_lib_prefix=no
15384 runpath_var=LD_RUN_PATH
15385 ;;
15386 siemens)
15387 need_lib_prefix=no
15388 ;;
15389 motorola)
15390 need_lib_prefix=no
15391 need_version=no
15392 shlibpath_overrides_runpath=no
15393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15394 ;;
15395 esac
15396 ;;
15397
15398sysv4*MP*)
15399 if test -d /usr/nec ;then
15400 version_type=linux
15401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15402 soname_spec='$libname${shared_ext}.$major'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 fi
15405 ;;
15406
15407sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15408 version_type=freebsd-elf
15409 need_lib_prefix=no
15410 need_version=no
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 shlibpath_overrides_runpath=yes
15415 hardcode_into_libs=yes
15416 if test "$with_gnu_ld" = yes; then
15417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15418 else
15419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15420 case $host_os in
15421 sco3.2v5*)
15422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15423 ;;
15424 esac
15425 fi
15426 sys_lib_dlsearch_path_spec='/usr/lib'
15427 ;;
15428
15429tpf*)
15430 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15431 version_type=linux
15432 need_lib_prefix=no
15433 need_version=no
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=no
15437 hardcode_into_libs=yes
15438 ;;
15439
15440uts4*)
15441 version_type=linux
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 ;;
15446
15447*)
15448 dynamic_linker=no
15449 ;;
15450esac
15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15452$as_echo "$dynamic_linker" >&6; }
15453test "$dynamic_linker" = no && can_build_shared=no
15454
15455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15456if test "$GCC" = yes; then
15457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15458fi
15459
15460if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15461 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15462fi
15463if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15464 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15465fi
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15554$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15555hardcode_action=
15556if test -n "$hardcode_libdir_flag_spec" ||
15557 test -n "$runpath_var" ||
15558 test "X$hardcode_automatic" = "Xyes" ; then
15559
15560 # We can hardcode non-existent directories.
15561 if test "$hardcode_direct" != no &&
15562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15563 # have to relink, otherwise we might link with an installed library
15564 # when we should be linking with a yet-to-be-installed one
15565 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15566 test "$hardcode_minus_L" != no; then
15567 # Linking always hardcodes the temporary library directory.
15568 hardcode_action=relink
15569 else
15570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15571 hardcode_action=immediate
15572 fi
15573else
15574 # We cannot hardcode anything, or else we can only hardcode existing
15575 # directories.
15576 hardcode_action=unsupported
15577fi
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15579$as_echo "$hardcode_action" >&6; }
15580
15581if test "$hardcode_action" = relink ||
15582 test "$inherit_rpath" = yes; then
15583 # Fast installation is not supported
15584 enable_fast_install=no
15585elif test "$shlibpath_overrides_runpath" = yes ||
15586 test "$enable_shared" = no; then
15587 # Fast installation is not necessary
15588 enable_fast_install=needless
15589fi
15590
15591
15592
15593
15594
15595
15596 if test "x$enable_dlopen" != xyes; then
15597 enable_dlopen=unknown
15598 enable_dlopen_self=unknown
15599 enable_dlopen_self_static=unknown
15600else
15601 lt_cv_dlopen=no
15602 lt_cv_dlopen_libs=
15603
15604 case $host_os in
15605 beos*)
15606 lt_cv_dlopen="load_add_on"
15607 lt_cv_dlopen_libs=
15608 lt_cv_dlopen_self=yes
15609 ;;
15610
15611 mingw* | pw32* | cegcc*)
15612 lt_cv_dlopen="LoadLibrary"
15613 lt_cv_dlopen_libs=
15614 ;;
15615
15616 cygwin*)
15617 lt_cv_dlopen="dlopen"
15618 lt_cv_dlopen_libs=
15619 ;;
15620
15621 darwin*)
15622 # if libdl is installed we need to link against it
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15624$as_echo_n "checking for dlopen in -ldl... " >&6; }
15625if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15626 $as_echo_n "(cached) " >&6
15627else
15628 ac_check_lib_save_LIBS=$LIBS
15629LIBS="-ldl $LIBS"
15630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631/* end confdefs.h. */
15632
15633/* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15636#ifdef __cplusplus
15637extern "C"
15638#endif
15639char dlopen ();
15640int
15641main ()
15642{
15643return dlopen ();
15644 ;
15645 return 0;
15646}
15647_ACEOF
15648if ac_fn_c_try_link "$LINENO"; then :
15649 ac_cv_lib_dl_dlopen=yes
15650else
15651 ac_cv_lib_dl_dlopen=no
15652fi
15653rm -f core conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655LIBS=$ac_check_lib_save_LIBS
15656fi
15657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15658$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15659if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15661else
15662
15663 lt_cv_dlopen="dyld"
15664 lt_cv_dlopen_libs=
15665 lt_cv_dlopen_self=yes
15666
15667fi
15668
15669 ;;
15670
15671 *)
15672 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15673if test "x$ac_cv_func_shl_load" = x""yes; then :
15674 lt_cv_dlopen="shl_load"
15675else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15677$as_echo_n "checking for shl_load in -ldld... " >&6; }
15678if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15679 $as_echo_n "(cached) " >&6
15680else
15681 ac_check_lib_save_LIBS=$LIBS
15682LIBS="-ldld $LIBS"
15683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684/* end confdefs.h. */
15685
15686/* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15689#ifdef __cplusplus
15690extern "C"
15691#endif
15692char shl_load ();
15693int
15694main ()
15695{
15696return shl_load ();
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701if ac_fn_c_try_link "$LINENO"; then :
15702 ac_cv_lib_dld_shl_load=yes
15703else
15704 ac_cv_lib_dld_shl_load=no
15705fi
15706rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708LIBS=$ac_check_lib_save_LIBS
15709fi
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15711$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15712if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15713 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15714else
15715 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15716if test "x$ac_cv_func_dlopen" = x""yes; then :
15717 lt_cv_dlopen="dlopen"
15718else
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15720$as_echo_n "checking for dlopen in -ldl... " >&6; }
15721if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15722 $as_echo_n "(cached) " >&6
15723else
15724 ac_check_lib_save_LIBS=$LIBS
15725LIBS="-ldl $LIBS"
15726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727/* end confdefs.h. */
15728
15729/* Override any GCC internal prototype to avoid an error.
15730 Use char because int might match the return type of a GCC
15731 builtin and then its argument prototype would still apply. */
15732#ifdef __cplusplus
15733extern "C"
15734#endif
15735char dlopen ();
15736int
15737main ()
15738{
15739return dlopen ();
15740 ;
15741 return 0;
15742}
15743_ACEOF
15744if ac_fn_c_try_link "$LINENO"; then :
15745 ac_cv_lib_dl_dlopen=yes
15746else
15747 ac_cv_lib_dl_dlopen=no
15748fi
15749rm -f core conftest.err conftest.$ac_objext \
15750 conftest$ac_exeext conftest.$ac_ext
15751LIBS=$ac_check_lib_save_LIBS
15752fi
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15754$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15755if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15757else
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15759$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15760if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15761 $as_echo_n "(cached) " >&6
15762else
15763 ac_check_lib_save_LIBS=$LIBS
15764LIBS="-lsvld $LIBS"
15765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h. */
15767
15768/* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15771#ifdef __cplusplus
15772extern "C"
15773#endif
15774char dlopen ();
15775int
15776main ()
15777{
15778return dlopen ();
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783if ac_fn_c_try_link "$LINENO"; then :
15784 ac_cv_lib_svld_dlopen=yes
15785else
15786 ac_cv_lib_svld_dlopen=no
15787fi
15788rm -f core conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
15790LIBS=$ac_check_lib_save_LIBS
15791fi
15792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15793$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15794if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15796else
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15798$as_echo_n "checking for dld_link in -ldld... " >&6; }
15799if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15800 $as_echo_n "(cached) " >&6
15801else
15802 ac_check_lib_save_LIBS=$LIBS
15803LIBS="-ldld $LIBS"
15804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805/* end confdefs.h. */
15806
15807/* Override any GCC internal prototype to avoid an error.
15808 Use char because int might match the return type of a GCC
15809 builtin and then its argument prototype would still apply. */
15810#ifdef __cplusplus
15811extern "C"
15812#endif
15813char dld_link ();
15814int
15815main ()
15816{
15817return dld_link ();
15818 ;
15819 return 0;
15820}
15821_ACEOF
15822if ac_fn_c_try_link "$LINENO"; then :
15823 ac_cv_lib_dld_dld_link=yes
15824else
15825 ac_cv_lib_dld_dld_link=no
15826fi
15827rm -f core conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext conftest.$ac_ext
15829LIBS=$ac_check_lib_save_LIBS
15830fi
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15832$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15833if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15835fi
15836
15837
15838fi
15839
15840
15841fi
15842
15843
15844fi
15845
15846
15847fi
15848
15849
15850fi
15851
15852 ;;
15853 esac
15854
15855 if test "x$lt_cv_dlopen" != xno; then
15856 enable_dlopen=yes
15857 else
15858 enable_dlopen=no
15859 fi
15860
15861 case $lt_cv_dlopen in
15862 dlopen)
15863 save_CPPFLAGS="$CPPFLAGS"
15864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15865
15866 save_LDFLAGS="$LDFLAGS"
15867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15868
15869 save_LIBS="$LIBS"
15870 LIBS="$lt_cv_dlopen_libs $LIBS"
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15873$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15874if test "${lt_cv_dlopen_self+set}" = set; then :
15875 $as_echo_n "(cached) " >&6
15876else
15877 if test "$cross_compiling" = yes; then :
15878 lt_cv_dlopen_self=cross
15879else
15880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15881 lt_status=$lt_dlunknown
15882 cat > conftest.$ac_ext <<_LT_EOF
cristy23f7a922010-10-11 00:27:48 +000015883#line 15883 "configure"
cristy73bd4a52010-10-05 11:24:23 +000015884#include "confdefs.h"
15885
15886#if HAVE_DLFCN_H
15887#include <dlfcn.h>
15888#endif
15889
15890#include <stdio.h>
15891
15892#ifdef RTLD_GLOBAL
15893# define LT_DLGLOBAL RTLD_GLOBAL
15894#else
15895# ifdef DL_GLOBAL
15896# define LT_DLGLOBAL DL_GLOBAL
15897# else
15898# define LT_DLGLOBAL 0
15899# endif
15900#endif
15901
15902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15903 find out it does not work in some platform. */
15904#ifndef LT_DLLAZY_OR_NOW
15905# ifdef RTLD_LAZY
15906# define LT_DLLAZY_OR_NOW RTLD_LAZY
15907# else
15908# ifdef DL_LAZY
15909# define LT_DLLAZY_OR_NOW DL_LAZY
15910# else
15911# ifdef RTLD_NOW
15912# define LT_DLLAZY_OR_NOW RTLD_NOW
15913# else
15914# ifdef DL_NOW
15915# define LT_DLLAZY_OR_NOW DL_NOW
15916# else
15917# define LT_DLLAZY_OR_NOW 0
15918# endif
15919# endif
15920# endif
15921# endif
15922#endif
15923
15924void fnord() { int i=42;}
15925int main ()
15926{
15927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15928 int status = $lt_dlunknown;
15929
15930 if (self)
15931 {
15932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15934 /* dlclose (self); */
15935 }
15936 else
15937 puts (dlerror ());
15938
15939 return status;
15940}
15941_LT_EOF
15942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15943 (eval $ac_link) 2>&5
15944 ac_status=$?
15945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15946 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15947 (./conftest; exit; ) >&5 2>/dev/null
15948 lt_status=$?
15949 case x$lt_status in
15950 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15951 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15952 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15953 esac
15954 else :
15955 # compilation failed
15956 lt_cv_dlopen_self=no
15957 fi
15958fi
15959rm -fr conftest*
15960
15961
15962fi
15963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15964$as_echo "$lt_cv_dlopen_self" >&6; }
15965
15966 if test "x$lt_cv_dlopen_self" = xyes; then
15967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15969$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15970if test "${lt_cv_dlopen_self_static+set}" = set; then :
15971 $as_echo_n "(cached) " >&6
15972else
15973 if test "$cross_compiling" = yes; then :
15974 lt_cv_dlopen_self_static=cross
15975else
15976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15977 lt_status=$lt_dlunknown
15978 cat > conftest.$ac_ext <<_LT_EOF
cristy23f7a922010-10-11 00:27:48 +000015979#line 15979 "configure"
cristy73bd4a52010-10-05 11:24:23 +000015980#include "confdefs.h"
15981
15982#if HAVE_DLFCN_H
15983#include <dlfcn.h>
15984#endif
15985
15986#include <stdio.h>
15987
15988#ifdef RTLD_GLOBAL
15989# define LT_DLGLOBAL RTLD_GLOBAL
15990#else
15991# ifdef DL_GLOBAL
15992# define LT_DLGLOBAL DL_GLOBAL
15993# else
15994# define LT_DLGLOBAL 0
15995# endif
15996#endif
15997
15998/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15999 find out it does not work in some platform. */
16000#ifndef LT_DLLAZY_OR_NOW
16001# ifdef RTLD_LAZY
16002# define LT_DLLAZY_OR_NOW RTLD_LAZY
16003# else
16004# ifdef DL_LAZY
16005# define LT_DLLAZY_OR_NOW DL_LAZY
16006# else
16007# ifdef RTLD_NOW
16008# define LT_DLLAZY_OR_NOW RTLD_NOW
16009# else
16010# ifdef DL_NOW
16011# define LT_DLLAZY_OR_NOW DL_NOW
16012# else
16013# define LT_DLLAZY_OR_NOW 0
16014# endif
16015# endif
16016# endif
16017# endif
16018#endif
16019
16020void fnord() { int i=42;}
16021int main ()
16022{
16023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16024 int status = $lt_dlunknown;
16025
16026 if (self)
16027 {
16028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16030 /* dlclose (self); */
16031 }
16032 else
16033 puts (dlerror ());
16034
16035 return status;
16036}
16037_LT_EOF
16038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16039 (eval $ac_link) 2>&5
16040 ac_status=$?
16041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16043 (./conftest; exit; ) >&5 2>/dev/null
16044 lt_status=$?
16045 case x$lt_status in
16046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16049 esac
16050 else :
16051 # compilation failed
16052 lt_cv_dlopen_self_static=no
16053 fi
16054fi
16055rm -fr conftest*
16056
16057
16058fi
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16060$as_echo "$lt_cv_dlopen_self_static" >&6; }
16061 fi
16062
16063 CPPFLAGS="$save_CPPFLAGS"
16064 LDFLAGS="$save_LDFLAGS"
16065 LIBS="$save_LIBS"
16066 ;;
16067 esac
16068
16069 case $lt_cv_dlopen_self in
16070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16071 *) enable_dlopen_self=unknown ;;
16072 esac
16073
16074 case $lt_cv_dlopen_self_static in
16075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16076 *) enable_dlopen_self_static=unknown ;;
16077 esac
16078fi
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096striplib=
16097old_striplib=
16098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16099$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16100if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16104$as_echo "yes" >&6; }
16105else
16106# FIXME - insert some real tests, host_os isn't really good enough
16107 case $host_os in
16108 darwin*)
16109 if test -n "$STRIP" ; then
16110 striplib="$STRIP -x"
16111 old_striplib="$STRIP -S"
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16113$as_echo "yes" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116$as_echo "no" >&6; }
16117 fi
16118 ;;
16119 *)
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121$as_echo "no" >&6; }
16122 ;;
16123 esac
16124fi
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137 # Report which library types will actually be built
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16139$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16141$as_echo "$can_build_shared" >&6; }
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16144$as_echo_n "checking whether to build shared libraries... " >&6; }
16145 test "$can_build_shared" = "no" && enable_shared=no
16146
16147 # On AIX, shared libraries and static libraries use the same namespace, and
16148 # are all built from PIC.
16149 case $host_os in
16150 aix3*)
16151 test "$enable_shared" = yes && enable_static=no
16152 if test -n "$RANLIB"; then
16153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16154 postinstall_cmds='$RANLIB $lib'
16155 fi
16156 ;;
16157
16158 aix[4-9]*)
16159 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16160 test "$enable_shared" = yes && enable_static=no
16161 fi
16162 ;;
16163 esac
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16165$as_echo "$enable_shared" >&6; }
16166
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16168$as_echo_n "checking whether to build static libraries... " >&6; }
16169 # Make sure either enable_shared or enable_static is yes.
16170 test "$enable_shared" = yes || enable_static=yes
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16172$as_echo "$enable_static" >&6; }
16173
16174
16175
16176
16177fi
16178ac_ext=c
16179ac_cpp='$CPP $CPPFLAGS'
16180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16182ac_compiler_gnu=$ac_cv_c_compiler_gnu
16183
16184CC="$lt_save_CC"
16185
16186
16187ac_ext=cpp
16188ac_cpp='$CXXCPP $CPPFLAGS'
16189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16192
16193archive_cmds_need_lc_CXX=no
16194allow_undefined_flag_CXX=
16195always_export_symbols_CXX=no
16196archive_expsym_cmds_CXX=
16197compiler_needs_object_CXX=no
16198export_dynamic_flag_spec_CXX=
16199hardcode_direct_CXX=no
16200hardcode_direct_absolute_CXX=no
16201hardcode_libdir_flag_spec_CXX=
16202hardcode_libdir_flag_spec_ld_CXX=
16203hardcode_libdir_separator_CXX=
16204hardcode_minus_L_CXX=no
16205hardcode_shlibpath_var_CXX=unsupported
16206hardcode_automatic_CXX=no
16207inherit_rpath_CXX=no
16208module_cmds_CXX=
16209module_expsym_cmds_CXX=
16210link_all_deplibs_CXX=unknown
16211old_archive_cmds_CXX=$old_archive_cmds
16212no_undefined_flag_CXX=
16213whole_archive_flag_spec_CXX=
16214enable_shared_with_static_runtimes_CXX=no
16215
16216# Source file extension for C++ test sources.
16217ac_ext=cpp
16218
16219# Object file extension for compiled C++ test sources.
16220objext=o
16221objext_CXX=$objext
16222
16223# No sense in running all these tests if we already determined that
16224# the CXX compiler isn't working. Some variables (like enable_shared)
16225# are currently assumed to apply to all compilers on this platform,
16226# and will be corrupted by setting them based on a non-working compiler.
16227if test "$_lt_caught_CXX_error" != yes; then
16228 # Code to be used in simple compile tests
16229 lt_simple_compile_test_code="int some_variable = 0;"
16230
16231 # Code to be used in simple link tests
16232 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16233
16234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16235
16236
16237
16238
16239
16240
16241# If no C compiler was specified, use CC.
16242LTCC=${LTCC-"$CC"}
16243
16244# If no C compiler flags were specified, use CFLAGS.
16245LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16246
16247# Allow CC to be a program name with arguments.
16248compiler=$CC
16249
16250
16251 # save warnings/boilerplate of simple test code
16252 ac_outfile=conftest.$ac_objext
16253echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16254eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16255_lt_compiler_boilerplate=`cat conftest.err`
16256$RM conftest*
16257
16258 ac_outfile=conftest.$ac_objext
16259echo "$lt_simple_link_test_code" >conftest.$ac_ext
16260eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16261_lt_linker_boilerplate=`cat conftest.err`
16262$RM -r conftest*
16263
16264
16265 # Allow CC to be a program name with arguments.
16266 lt_save_CC=$CC
16267 lt_save_LD=$LD
16268 lt_save_GCC=$GCC
16269 GCC=$GXX
16270 lt_save_with_gnu_ld=$with_gnu_ld
16271 lt_save_path_LD=$lt_cv_path_LD
16272 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16273 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16274 else
16275 $as_unset lt_cv_prog_gnu_ld
16276 fi
16277 if test -n "${lt_cv_path_LDCXX+set}"; then
16278 lt_cv_path_LD=$lt_cv_path_LDCXX
16279 else
16280 $as_unset lt_cv_path_LD
16281 fi
16282 test -z "${LDCXX+set}" || LD=$LDCXX
16283 CC=${CXX-"c++"}
16284 compiler=$CC
16285 compiler_CXX=$CC
16286 for cc_temp in $compiler""; do
16287 case $cc_temp in
16288 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16289 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16290 \-*) ;;
16291 *) break;;
16292 esac
16293done
16294cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16295
16296
16297 if test -n "$compiler"; then
16298 # We don't want -fno-exception when compiling C++ code, so set the
16299 # no_builtin_flag separately
16300 if test "$GXX" = yes; then
16301 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16302 else
16303 lt_prog_compiler_no_builtin_flag_CXX=
16304 fi
16305
16306 if test "$GXX" = yes; then
16307 # Set up default GNU C++ configuration
16308
16309
16310
16311# Check whether --with-gnu-ld was given.
16312if test "${with_gnu_ld+set}" = set; then :
16313 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16314else
16315 with_gnu_ld=no
16316fi
16317
16318ac_prog=ld
16319if test "$GCC" = yes; then
16320 # Check if gcc -print-prog-name=ld gives a path.
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16322$as_echo_n "checking for ld used by $CC... " >&6; }
16323 case $host in
16324 *-*-mingw*)
16325 # gcc leaves a trailing carriage return which upsets mingw
16326 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16327 *)
16328 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16329 esac
16330 case $ac_prog in
16331 # Accept absolute paths.
16332 [\\/]* | ?:[\\/]*)
16333 re_direlt='/[^/][^/]*/\.\./'
16334 # Canonicalize the pathname of ld
16335 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16336 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16337 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16338 done
16339 test -z "$LD" && LD="$ac_prog"
16340 ;;
16341 "")
16342 # If it fails, then pretend we aren't using GCC.
16343 ac_prog=ld
16344 ;;
16345 *)
16346 # If it is relative, then search for the first ld in PATH.
16347 with_gnu_ld=unknown
16348 ;;
16349 esac
16350elif test "$with_gnu_ld" = yes; then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16352$as_echo_n "checking for GNU ld... " >&6; }
16353else
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16355$as_echo_n "checking for non-GNU ld... " >&6; }
16356fi
16357if test "${lt_cv_path_LD+set}" = set; then :
16358 $as_echo_n "(cached) " >&6
16359else
16360 if test -z "$LD"; then
16361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16362 for ac_dir in $PATH; do
16363 IFS="$lt_save_ifs"
16364 test -z "$ac_dir" && ac_dir=.
16365 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16366 lt_cv_path_LD="$ac_dir/$ac_prog"
16367 # Check to see if the program is GNU ld. I'd rather use --version,
16368 # but apparently some variants of GNU ld only accept -v.
16369 # Break only if it was the GNU/non-GNU ld that we prefer.
16370 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16371 *GNU* | *'with BFD'*)
16372 test "$with_gnu_ld" != no && break
16373 ;;
16374 *)
16375 test "$with_gnu_ld" != yes && break
16376 ;;
16377 esac
16378 fi
16379 done
16380 IFS="$lt_save_ifs"
16381else
16382 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16383fi
16384fi
16385
16386LD="$lt_cv_path_LD"
16387if test -n "$LD"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16389$as_echo "$LD" >&6; }
16390else
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16392$as_echo "no" >&6; }
16393fi
16394test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16396$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16397if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16398 $as_echo_n "(cached) " >&6
16399else
16400 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16401case `$LD -v 2>&1 </dev/null` in
16402*GNU* | *'with BFD'*)
16403 lt_cv_prog_gnu_ld=yes
16404 ;;
16405*)
16406 lt_cv_prog_gnu_ld=no
16407 ;;
16408esac
16409fi
16410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16411$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16412with_gnu_ld=$lt_cv_prog_gnu_ld
16413
16414
16415
16416
16417
16418
16419
16420 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16421 # archiving commands below assume that GNU ld is being used.
16422 if test "$with_gnu_ld" = yes; then
16423 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16424 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'
16425
16426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16427 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16428
16429 # If archive_cmds runs LD, not CC, wlarc should be empty
16430 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16431 # investigate it a little bit more. (MM)
16432 wlarc='${wl}'
16433
16434 # ancient GNU ld didn't support --whole-archive et. al.
16435 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16436 $GREP 'no-whole-archive' > /dev/null; then
16437 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16438 else
16439 whole_archive_flag_spec_CXX=
16440 fi
16441 else
16442 with_gnu_ld=no
16443 wlarc=
16444
16445 # A generic and very simple default shared library creation
16446 # command for GNU C++ for the case where it uses the native
16447 # linker, instead of GNU ld. If possible, this setting should
16448 # overridden to take advantage of the native linker features on
16449 # the platform it is being used on.
16450 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16451 fi
16452
16453 # Commands to make compiler produce verbose output that lists
16454 # what "hidden" libraries, object files and flags are used when
16455 # linking a shared library.
16456 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16457
16458 else
16459 GXX=no
16460 with_gnu_ld=no
16461 wlarc=
16462 fi
16463
16464 # PORTME: fill in a description of your system's C++ link characteristics
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16466$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16467 ld_shlibs_CXX=yes
16468 case $host_os in
16469 aix3*)
16470 # FIXME: insert proper C++ library support
16471 ld_shlibs_CXX=no
16472 ;;
16473 aix[4-9]*)
16474 if test "$host_cpu" = ia64; then
16475 # On IA64, the linker does run time linking by default, so we don't
16476 # have to do anything special.
16477 aix_use_runtimelinking=no
16478 exp_sym_flag='-Bexport'
16479 no_entry_flag=""
16480 else
16481 aix_use_runtimelinking=no
16482
16483 # Test if we are trying to use run time linking or normal
16484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16485 # need to do runtime linking.
16486 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16487 for ld_flag in $LDFLAGS; do
16488 case $ld_flag in
16489 *-brtl*)
16490 aix_use_runtimelinking=yes
16491 break
16492 ;;
16493 esac
16494 done
16495 ;;
16496 esac
16497
16498 exp_sym_flag='-bexport'
16499 no_entry_flag='-bnoentry'
16500 fi
16501
16502 # When large executables or shared objects are built, AIX ld can
16503 # have problems creating the table of contents. If linking a library
16504 # or program results in "error TOC overflow" add -mminimal-toc to
16505 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16506 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16507
16508 archive_cmds_CXX=''
16509 hardcode_direct_CXX=yes
16510 hardcode_direct_absolute_CXX=yes
16511 hardcode_libdir_separator_CXX=':'
16512 link_all_deplibs_CXX=yes
16513 file_list_spec_CXX='${wl}-f,'
16514
16515 if test "$GXX" = yes; then
16516 case $host_os in aix4.[012]|aix4.[012].*)
16517 # We only want to do this on AIX 4.2 and lower, the check
16518 # below for broken collect2 doesn't work under 4.3+
16519 collect2name=`${CC} -print-prog-name=collect2`
16520 if test -f "$collect2name" &&
16521 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16522 then
16523 # We have reworked collect2
16524 :
16525 else
16526 # We have old collect2
16527 hardcode_direct_CXX=unsupported
16528 # It fails to find uninstalled libraries when the uninstalled
16529 # path is not listed in the libpath. Setting hardcode_minus_L
16530 # to unsupported forces relinking
16531 hardcode_minus_L_CXX=yes
16532 hardcode_libdir_flag_spec_CXX='-L$libdir'
16533 hardcode_libdir_separator_CXX=
16534 fi
16535 esac
16536 shared_flag='-shared'
16537 if test "$aix_use_runtimelinking" = yes; then
16538 shared_flag="$shared_flag "'${wl}-G'
16539 fi
16540 else
16541 # not using gcc
16542 if test "$host_cpu" = ia64; then
16543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16544 # chokes on -Wl,-G. The following line is correct:
16545 shared_flag='-G'
16546 else
16547 if test "$aix_use_runtimelinking" = yes; then
16548 shared_flag='${wl}-G'
16549 else
16550 shared_flag='${wl}-bM:SRE'
16551 fi
16552 fi
16553 fi
16554
16555 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16556 # It seems that -bexpall does not export symbols beginning with
16557 # underscore (_), so it is better to generate a list of symbols to
16558 # export.
16559 always_export_symbols_CXX=yes
16560 if test "$aix_use_runtimelinking" = yes; then
16561 # Warning - without using the other runtime loading flags (-brtl),
16562 # -berok will link without error, but may produce a broken library.
16563 allow_undefined_flag_CXX='-berok'
16564 # Determine the default libpath from the value encoded in an empty
16565 # executable.
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h. */
16568
16569int
16570main ()
16571{
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577if ac_fn_cxx_try_link "$LINENO"; then :
16578
16579lt_aix_libpath_sed='
16580 /Import File Strings/,/^$/ {
16581 /^0/ {
16582 s/^0 *\(.*\)$/\1/
16583 p
16584 }
16585 }'
16586aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16587# Check for a 64-bit object if we didn't find anything.
16588if test -z "$aix_libpath"; then
16589 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16590fi
16591fi
16592rm -f core conftest.err conftest.$ac_objext \
16593 conftest$ac_exeext conftest.$ac_ext
16594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16595
16596 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16597
16598 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16599 else
16600 if test "$host_cpu" = ia64; then
16601 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16602 allow_undefined_flag_CXX="-z nodefs"
16603 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"
16604 else
16605 # Determine the default libpath from the value encoded in an
16606 # empty executable.
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608/* end confdefs.h. */
16609
16610int
16611main ()
16612{
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618if ac_fn_cxx_try_link "$LINENO"; then :
16619
16620lt_aix_libpath_sed='
16621 /Import File Strings/,/^$/ {
16622 /^0/ {
16623 s/^0 *\(.*\)$/\1/
16624 p
16625 }
16626 }'
16627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16628# Check for a 64-bit object if we didn't find anything.
16629if test -z "$aix_libpath"; then
16630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16631fi
16632fi
16633rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16636
16637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16638 # Warning - without using the other run time loading flags,
16639 # -berok will link without error, but may produce a broken library.
16640 no_undefined_flag_CXX=' ${wl}-bernotok'
16641 allow_undefined_flag_CXX=' ${wl}-berok'
16642 # Exported symbols can be pulled into shared objects from archives
16643 whole_archive_flag_spec_CXX='$convenience'
16644 archive_cmds_need_lc_CXX=yes
16645 # This is similar to how AIX traditionally builds its shared
16646 # libraries.
16647 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'
16648 fi
16649 fi
16650 ;;
16651
16652 beos*)
16653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16654 allow_undefined_flag_CXX=unsupported
16655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16656 # support --undefined. This deserves some investigation. FIXME
16657 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16658 else
16659 ld_shlibs_CXX=no
16660 fi
16661 ;;
16662
16663 chorus*)
16664 case $cc_basename in
16665 *)
16666 # FIXME: insert proper C++ library support
16667 ld_shlibs_CXX=no
16668 ;;
16669 esac
16670 ;;
16671
16672 cygwin* | mingw* | pw32* | cegcc*)
16673 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16674 # as there is no search path for DLLs.
16675 hardcode_libdir_flag_spec_CXX='-L$libdir'
16676 allow_undefined_flag_CXX=unsupported
16677 always_export_symbols_CXX=no
16678 enable_shared_with_static_runtimes_CXX=yes
16679
16680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16681 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'
16682 # If the export-symbols file already is a .def file (1st line
16683 # is EXPORTS), use it as is; otherwise, prepend...
16684 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16685 cp $export_symbols $output_objdir/$soname.def;
16686 else
16687 echo EXPORTS > $output_objdir/$soname.def;
16688 cat $export_symbols >> $output_objdir/$soname.def;
16689 fi~
16690 $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'
16691 else
16692 ld_shlibs_CXX=no
16693 fi
16694 ;;
16695 darwin* | rhapsody*)
16696
16697
16698 archive_cmds_need_lc_CXX=no
16699 hardcode_direct_CXX=no
16700 hardcode_automatic_CXX=yes
16701 hardcode_shlibpath_var_CXX=unsupported
16702 whole_archive_flag_spec_CXX=''
16703 link_all_deplibs_CXX=yes
16704 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16705 case $cc_basename in
16706 ifort*) _lt_dar_can_shared=yes ;;
16707 *) _lt_dar_can_shared=$GCC ;;
16708 esac
16709 if test "$_lt_dar_can_shared" = "yes"; then
16710 output_verbose_link_cmd=echo
16711 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}"
16712 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16713 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}"
16714 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}"
16715 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16716 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}"
16717 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}"
16718 fi
16719
16720 else
16721 ld_shlibs_CXX=no
16722 fi
16723
16724 ;;
16725
16726 dgux*)
16727 case $cc_basename in
16728 ec++*)
16729 # FIXME: insert proper C++ library support
16730 ld_shlibs_CXX=no
16731 ;;
16732 ghcx*)
16733 # Green Hills C++ Compiler
16734 # FIXME: insert proper C++ library support
16735 ld_shlibs_CXX=no
16736 ;;
16737 *)
16738 # FIXME: insert proper C++ library support
16739 ld_shlibs_CXX=no
16740 ;;
16741 esac
16742 ;;
16743
16744 freebsd[12]*)
16745 # C++ shared libraries reported to be fairly broken before
16746 # switch to ELF
16747 ld_shlibs_CXX=no
16748 ;;
16749
16750 freebsd-elf*)
16751 archive_cmds_need_lc_CXX=no
16752 ;;
16753
16754 freebsd* | dragonfly*)
16755 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16756 # conventions
16757 ld_shlibs_CXX=yes
16758 ;;
16759
16760 gnu*)
16761 ;;
16762
16763 hpux9*)
16764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16765 hardcode_libdir_separator_CXX=:
16766 export_dynamic_flag_spec_CXX='${wl}-E'
16767 hardcode_direct_CXX=yes
16768 hardcode_minus_L_CXX=yes # Not in the search PATH,
16769 # but as the default
16770 # location of the library.
16771
16772 case $cc_basename in
16773 CC*)
16774 # FIXME: insert proper C++ library support
16775 ld_shlibs_CXX=no
16776 ;;
16777 aCC*)
16778 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'
16779 # Commands to make compiler produce verbose output that lists
16780 # what "hidden" libraries, object files and flags are used when
16781 # linking a shared library.
16782 #
16783 # There doesn't appear to be a way to prevent this compiler from
16784 # explicitly linking system object files so we need to strip them
16785 # from the output so that they don't get included in the library
16786 # dependencies.
16787 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; $ECHO "X$list" | $Xsed'
16788 ;;
16789 *)
16790 if test "$GXX" = yes; then
16791 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'
16792 else
16793 # FIXME: insert proper C++ library support
16794 ld_shlibs_CXX=no
16795 fi
16796 ;;
16797 esac
16798 ;;
16799
16800 hpux10*|hpux11*)
16801 if test $with_gnu_ld = no; then
16802 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16803 hardcode_libdir_separator_CXX=:
16804
16805 case $host_cpu in
16806 hppa*64*|ia64*)
16807 ;;
16808 *)
16809 export_dynamic_flag_spec_CXX='${wl}-E'
16810 ;;
16811 esac
16812 fi
16813 case $host_cpu in
16814 hppa*64*|ia64*)
16815 hardcode_direct_CXX=no
16816 hardcode_shlibpath_var_CXX=no
16817 ;;
16818 *)
16819 hardcode_direct_CXX=yes
16820 hardcode_direct_absolute_CXX=yes
16821 hardcode_minus_L_CXX=yes # Not in the search PATH,
16822 # but as the default
16823 # location of the library.
16824 ;;
16825 esac
16826
16827 case $cc_basename in
16828 CC*)
16829 # FIXME: insert proper C++ library support
16830 ld_shlibs_CXX=no
16831 ;;
16832 aCC*)
16833 case $host_cpu in
16834 hppa*64*)
16835 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16836 ;;
16837 ia64*)
16838 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16839 ;;
16840 *)
16841 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16842 ;;
16843 esac
16844 # Commands to make compiler produce verbose output that lists
16845 # what "hidden" libraries, object files and flags are used when
16846 # linking a shared library.
16847 #
16848 # There doesn't appear to be a way to prevent this compiler from
16849 # explicitly linking system object files so we need to strip them
16850 # from the output so that they don't get included in the library
16851 # dependencies.
16852 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; $ECHO "X$list" | $Xsed'
16853 ;;
16854 *)
16855 if test "$GXX" = yes; then
16856 if test $with_gnu_ld = no; then
16857 case $host_cpu in
16858 hppa*64*)
16859 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16860 ;;
16861 ia64*)
16862 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16863 ;;
16864 *)
16865 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'
16866 ;;
16867 esac
16868 fi
16869 else
16870 # FIXME: insert proper C++ library support
16871 ld_shlibs_CXX=no
16872 fi
16873 ;;
16874 esac
16875 ;;
16876
16877 interix[3-9]*)
16878 hardcode_direct_CXX=no
16879 hardcode_shlibpath_var_CXX=no
16880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16881 export_dynamic_flag_spec_CXX='${wl}-E'
16882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16883 # Instead, shared libraries are loaded at an image base (0x10000000 by
16884 # default) and relocated if they conflict, which is a slow very memory
16885 # consuming and fragmenting process. To avoid this, we pick a random,
16886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16888 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'
16889 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'
16890 ;;
16891 irix5* | irix6*)
16892 case $cc_basename in
16893 CC*)
16894 # SGI C++
16895 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16896
16897 # Archives containing C++ object files must be created using
16898 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16899 # necessary to make sure instantiated templates are included
16900 # in the archive.
16901 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16902 ;;
16903 *)
16904 if test "$GXX" = yes; then
16905 if test "$with_gnu_ld" = no; then
16906 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16907 else
16908 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16909 fi
16910 fi
16911 link_all_deplibs_CXX=yes
16912 ;;
16913 esac
16914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16915 hardcode_libdir_separator_CXX=:
16916 inherit_rpath_CXX=yes
16917 ;;
16918
16919 linux* | k*bsd*-gnu)
16920 case $cc_basename in
16921 KCC*)
16922 # Kuck and Associates, Inc. (KAI) C++ Compiler
16923
16924 # KCC will only create a shared library if the output file
16925 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16926 # to its proper name (with version) after linking.
16927 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'
16928 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'
16929 # Commands to make compiler produce verbose output that lists
16930 # what "hidden" libraries, object files and flags are used when
16931 # linking a shared library.
16932 #
16933 # There doesn't appear to be a way to prevent this compiler from
16934 # explicitly linking system object files so we need to strip them
16935 # from the output so that they don't get included in the library
16936 # dependencies.
16937 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; $ECHO "X$list" | $Xsed'
16938
16939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16941
16942 # Archives containing C++ object files must be created using
16943 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16944 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16945 ;;
16946 icpc* | ecpc* )
16947 # Intel C++
16948 with_gnu_ld=yes
16949 # version 8.0 and above of icpc choke on multiply defined symbols
16950 # if we add $predep_objects and $postdep_objects, however 7.1 and
16951 # earlier do not add the objects themselves.
16952 case `$CC -V 2>&1` in
16953 *"Version 7."*)
16954 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955 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'
16956 ;;
16957 *) # Version 8.0 or newer
16958 tmp_idyn=
16959 case $host_cpu in
16960 ia64*) tmp_idyn=' -i_dynamic';;
16961 esac
16962 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16963 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'
16964 ;;
16965 esac
16966 archive_cmds_need_lc_CXX=no
16967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16968 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16969 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16970 ;;
16971 pgCC* | pgcpp*)
16972 # Portland Group C++ compiler
16973 case `$CC -V` in
16974 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16975 prelink_cmds_CXX='tpldir=Template.dir~
16976 rm -rf $tpldir~
16977 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16978 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16979 old_archive_cmds_CXX='tpldir=Template.dir~
16980 rm -rf $tpldir~
16981 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16982 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16983 $RANLIB $oldlib'
16984 archive_cmds_CXX='tpldir=Template.dir~
16985 rm -rf $tpldir~
16986 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16987 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16988 archive_expsym_cmds_CXX='tpldir=Template.dir~
16989 rm -rf $tpldir~
16990 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16991 $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'
16992 ;;
16993 *) # Version 6 will use weak symbols
16994 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16995 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'
16996 ;;
16997 esac
16998
16999 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17001 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17002 ;;
17003 cxx*)
17004 # Compaq C++
17005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17006 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'
17007
17008 runpath_var=LD_RUN_PATH
17009 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17010 hardcode_libdir_separator_CXX=:
17011
17012 # Commands to make compiler produce verbose output that lists
17013 # what "hidden" libraries, object files and flags are used when
17014 # linking a shared library.
17015 #
17016 # There doesn't appear to be a way to prevent this compiler from
17017 # explicitly linking system object files so we need to strip them
17018 # from the output so that they don't get included in the library
17019 # dependencies.
17020 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17021 ;;
17022 xl*)
17023 # IBM XL 8.0 on PPC, with GNU ld
17024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17025 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17026 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17027 if test "x$supports_anon_versioning" = xyes; then
17028 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17030 echo "local: *; };" >> $output_objdir/$libname.ver~
17031 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17032 fi
17033 ;;
17034 *)
17035 case `$CC -V 2>&1 | sed 5q` in
17036 *Sun\ C*)
17037 # Sun C++ 5.9
17038 no_undefined_flag_CXX=' -zdefs'
17039 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17040 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'
17041 hardcode_libdir_flag_spec_CXX='-R$libdir'
17042 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17043 compiler_needs_object_CXX=yes
17044
17045 # Not sure whether something based on
17046 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17047 # would be better.
17048 output_verbose_link_cmd='echo'
17049
17050 # Archives containing C++ object files must be created using
17051 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17052 # necessary to make sure instantiated templates are included
17053 # in the archive.
17054 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17055 ;;
17056 esac
17057 ;;
17058 esac
17059 ;;
17060
17061 lynxos*)
17062 # FIXME: insert proper C++ library support
17063 ld_shlibs_CXX=no
17064 ;;
17065
17066 m88k*)
17067 # FIXME: insert proper C++ library support
17068 ld_shlibs_CXX=no
17069 ;;
17070
17071 mvs*)
17072 case $cc_basename in
17073 cxx*)
17074 # FIXME: insert proper C++ library support
17075 ld_shlibs_CXX=no
17076 ;;
17077 *)
17078 # FIXME: insert proper C++ library support
17079 ld_shlibs_CXX=no
17080 ;;
17081 esac
17082 ;;
17083
17084 netbsd*)
17085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17086 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17087 wlarc=
17088 hardcode_libdir_flag_spec_CXX='-R$libdir'
17089 hardcode_direct_CXX=yes
17090 hardcode_shlibpath_var_CXX=no
17091 fi
17092 # Workaround some broken pre-1.5 toolchains
17093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17094 ;;
17095
17096 *nto* | *qnx*)
17097 ld_shlibs_CXX=yes
17098 ;;
17099
17100 openbsd2*)
17101 # C++ shared libraries are fairly broken
17102 ld_shlibs_CXX=no
17103 ;;
17104
17105 openbsd*)
17106 if test -f /usr/libexec/ld.so; then
17107 hardcode_direct_CXX=yes
17108 hardcode_shlibpath_var_CXX=no
17109 hardcode_direct_absolute_CXX=yes
17110 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17113 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17114 export_dynamic_flag_spec_CXX='${wl}-E'
17115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17116 fi
17117 output_verbose_link_cmd=echo
17118 else
17119 ld_shlibs_CXX=no
17120 fi
17121 ;;
17122
17123 osf3* | osf4* | osf5*)
17124 case $cc_basename in
17125 KCC*)
17126 # Kuck and Associates, Inc. (KAI) C++ Compiler
17127
17128 # KCC will only create a shared library if the output file
17129 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17130 # to its proper name (with version) after linking.
17131 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'
17132
17133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17134 hardcode_libdir_separator_CXX=:
17135
17136 # Archives containing C++ object files must be created using
17137 # the KAI C++ compiler.
17138 case $host in
17139 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17140 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17141 esac
17142 ;;
17143 RCC*)
17144 # Rational C++ 2.4.1
17145 # FIXME: insert proper C++ library support
17146 ld_shlibs_CXX=no
17147 ;;
17148 cxx*)
17149 case $host in
17150 osf3*)
17151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17152 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17154 ;;
17155 *)
17156 allow_undefined_flag_CXX=' -expect_unresolved \*'
17157 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17158 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17159 echo "-hidden">> $lib.exp~
17160 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
17161 $RM $lib.exp'
17162 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17163 ;;
17164 esac
17165
17166 hardcode_libdir_separator_CXX=:
17167
17168 # Commands to make compiler produce verbose output that lists
17169 # what "hidden" libraries, object files and flags are used when
17170 # linking a shared library.
17171 #
17172 # There doesn't appear to be a way to prevent this compiler from
17173 # explicitly linking system object files so we need to strip them
17174 # from the output so that they don't get included in the library
17175 # dependencies.
17176 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17177 ;;
17178 *)
17179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17180 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17181 case $host in
17182 osf3*)
17183 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17184 ;;
17185 *)
17186 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17187 ;;
17188 esac
17189
17190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17191 hardcode_libdir_separator_CXX=:
17192
17193 # Commands to make compiler produce verbose output that lists
17194 # what "hidden" libraries, object files and flags are used when
17195 # linking a shared library.
17196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17197
17198 else
17199 # FIXME: insert proper C++ library support
17200 ld_shlibs_CXX=no
17201 fi
17202 ;;
17203 esac
17204 ;;
17205
17206 psos*)
17207 # FIXME: insert proper C++ library support
17208 ld_shlibs_CXX=no
17209 ;;
17210
17211 sunos4*)
17212 case $cc_basename in
17213 CC*)
17214 # Sun C++ 4.x
17215 # FIXME: insert proper C++ library support
17216 ld_shlibs_CXX=no
17217 ;;
17218 lcc*)
17219 # Lucid
17220 # FIXME: insert proper C++ library support
17221 ld_shlibs_CXX=no
17222 ;;
17223 *)
17224 # FIXME: insert proper C++ library support
17225 ld_shlibs_CXX=no
17226 ;;
17227 esac
17228 ;;
17229
17230 solaris*)
17231 case $cc_basename in
17232 CC*)
17233 # Sun C++ 4.2, 5.x and Centerline C++
17234 archive_cmds_need_lc_CXX=yes
17235 no_undefined_flag_CXX=' -zdefs'
17236 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17237 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17238 $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'
17239
17240 hardcode_libdir_flag_spec_CXX='-R$libdir'
17241 hardcode_shlibpath_var_CXX=no
17242 case $host_os in
17243 solaris2.[0-5] | solaris2.[0-5].*) ;;
17244 *)
17245 # The compiler driver will combine and reorder linker options,
17246 # but understands `-z linker_flag'.
17247 # Supported since Solaris 2.6 (maybe 2.5.1?)
17248 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17249 ;;
17250 esac
17251 link_all_deplibs_CXX=yes
17252
17253 output_verbose_link_cmd='echo'
17254
17255 # Archives containing C++ object files must be created using
17256 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17257 # necessary to make sure instantiated templates are included
17258 # in the archive.
17259 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17260 ;;
17261 gcx*)
17262 # Green Hills C++ Compiler
17263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17264
17265 # The C++ compiler must be used to create the archive.
17266 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17267 ;;
17268 *)
17269 # GNU C++ compiler with Solaris linker
17270 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17271 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17272 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17273 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17274 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17275 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17276
17277 # Commands to make compiler produce verbose output that lists
17278 # what "hidden" libraries, object files and flags are used when
17279 # linking a shared library.
17280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17281 else
17282 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17283 # platform.
17284 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17285 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17286 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17287
17288 # Commands to make compiler produce verbose output that lists
17289 # what "hidden" libraries, object files and flags are used when
17290 # linking a shared library.
17291 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17292 fi
17293
17294 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17295 case $host_os in
17296 solaris2.[0-5] | solaris2.[0-5].*) ;;
17297 *)
17298 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17299 ;;
17300 esac
17301 fi
17302 ;;
17303 esac
17304 ;;
17305
17306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17307 no_undefined_flag_CXX='${wl}-z,text'
17308 archive_cmds_need_lc_CXX=no
17309 hardcode_shlibpath_var_CXX=no
17310 runpath_var='LD_RUN_PATH'
17311
17312 case $cc_basename in
17313 CC*)
17314 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17315 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17316 ;;
17317 *)
17318 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 ;;
17321 esac
17322 ;;
17323
17324 sysv5* | sco3.2v5* | sco5v6*)
17325 # Note: We can NOT use -z defs as we might desire, because we do not
17326 # link with -lc, and that would cause any symbols used from libc to
17327 # always be unresolved, which means just about no library would
17328 # ever link correctly. If we're not using GNU ld we use -z text
17329 # though, which does catch some bad symbols but isn't as heavy-handed
17330 # as -z defs.
17331 no_undefined_flag_CXX='${wl}-z,text'
17332 allow_undefined_flag_CXX='${wl}-z,nodefs'
17333 archive_cmds_need_lc_CXX=no
17334 hardcode_shlibpath_var_CXX=no
17335 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17336 hardcode_libdir_separator_CXX=':'
17337 link_all_deplibs_CXX=yes
17338 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17339 runpath_var='LD_RUN_PATH'
17340
17341 case $cc_basename in
17342 CC*)
17343 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17345 ;;
17346 *)
17347 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17349 ;;
17350 esac
17351 ;;
17352
17353 tandem*)
17354 case $cc_basename in
17355 NCC*)
17356 # NonStop-UX NCC 3.20
17357 # FIXME: insert proper C++ library support
17358 ld_shlibs_CXX=no
17359 ;;
17360 *)
17361 # FIXME: insert proper C++ library support
17362 ld_shlibs_CXX=no
17363 ;;
17364 esac
17365 ;;
17366
17367 vxworks*)
17368 # FIXME: insert proper C++ library support
17369 ld_shlibs_CXX=no
17370 ;;
17371
17372 *)
17373 # FIXME: insert proper C++ library support
17374 ld_shlibs_CXX=no
17375 ;;
17376 esac
17377
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17379$as_echo "$ld_shlibs_CXX" >&6; }
17380 test "$ld_shlibs_CXX" = no && can_build_shared=no
17381
17382 GCC_CXX="$GXX"
17383 LD_CXX="$LD"
17384
17385 ## CAVEAT EMPTOR:
17386 ## There is no encapsulation within the following macros, do not change
17387 ## the running order or otherwise move them around unless you know exactly
17388 ## what you are doing...
17389 # Dependencies to place before and after the object being linked:
17390predep_objects_CXX=
17391postdep_objects_CXX=
17392predeps_CXX=
17393postdeps_CXX=
17394compiler_lib_search_path_CXX=
17395
17396cat > conftest.$ac_ext <<_LT_EOF
17397class Foo
17398{
17399public:
17400 Foo (void) { a = 0; }
17401private:
17402 int a;
17403};
17404_LT_EOF
17405
17406if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17407 (eval $ac_compile) 2>&5
17408 ac_status=$?
17409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17410 test $ac_status = 0; }; then
17411 # Parse the compiler output and extract the necessary
17412 # objects, libraries and library flags.
17413
17414 # Sentinel used to keep track of whether or not we are before
17415 # the conftest object file.
17416 pre_test_object_deps_done=no
17417
17418 for p in `eval "$output_verbose_link_cmd"`; do
17419 case $p in
17420
17421 -L* | -R* | -l*)
17422 # Some compilers place space between "-{L,R}" and the path.
17423 # Remove the space.
17424 if test $p = "-L" ||
17425 test $p = "-R"; then
17426 prev=$p
17427 continue
17428 else
17429 prev=
17430 fi
17431
17432 if test "$pre_test_object_deps_done" = no; then
17433 case $p in
17434 -L* | -R*)
17435 # Internal compiler library paths should come after those
17436 # provided the user. The postdeps already come after the
17437 # user supplied libs so there is no need to process them.
17438 if test -z "$compiler_lib_search_path_CXX"; then
17439 compiler_lib_search_path_CXX="${prev}${p}"
17440 else
17441 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17442 fi
17443 ;;
17444 # The "-l" case would never come before the object being
17445 # linked, so don't bother handling this case.
17446 esac
17447 else
17448 if test -z "$postdeps_CXX"; then
17449 postdeps_CXX="${prev}${p}"
17450 else
17451 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17452 fi
17453 fi
17454 ;;
17455
17456 *.$objext)
17457 # This assumes that the test object file only shows up
17458 # once in the compiler output.
17459 if test "$p" = "conftest.$objext"; then
17460 pre_test_object_deps_done=yes
17461 continue
17462 fi
17463
17464 if test "$pre_test_object_deps_done" = no; then
17465 if test -z "$predep_objects_CXX"; then
17466 predep_objects_CXX="$p"
17467 else
17468 predep_objects_CXX="$predep_objects_CXX $p"
17469 fi
17470 else
17471 if test -z "$postdep_objects_CXX"; then
17472 postdep_objects_CXX="$p"
17473 else
17474 postdep_objects_CXX="$postdep_objects_CXX $p"
17475 fi
17476 fi
17477 ;;
17478
17479 *) ;; # Ignore the rest.
17480
17481 esac
17482 done
17483
17484 # Clean up.
17485 rm -f a.out a.exe
17486else
17487 echo "libtool.m4: error: problem compiling CXX test program"
17488fi
17489
17490$RM -f confest.$objext
17491
17492# PORTME: override above test on systems where it is broken
17493case $host_os in
17494interix[3-9]*)
17495 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17496 # hack all around it, let's just trust "g++" to DTRT.
17497 predep_objects_CXX=
17498 postdep_objects_CXX=
17499 postdeps_CXX=
17500 ;;
17501
17502linux*)
17503 case `$CC -V 2>&1 | sed 5q` in
17504 *Sun\ C*)
17505 # Sun C++ 5.9
17506
17507 # The more standards-conforming stlport4 library is
17508 # incompatible with the Cstd library. Avoid specifying
17509 # it if it's in CXXFLAGS. Ignore libCrun as
17510 # -library=stlport4 depends on it.
17511 case " $CXX $CXXFLAGS " in
17512 *" -library=stlport4 "*)
17513 solaris_use_stlport4=yes
17514 ;;
17515 esac
17516
17517 if test "$solaris_use_stlport4" != yes; then
17518 postdeps_CXX='-library=Cstd -library=Crun'
17519 fi
17520 ;;
17521 esac
17522 ;;
17523
17524solaris*)
17525 case $cc_basename in
17526 CC*)
17527 # The more standards-conforming stlport4 library is
17528 # incompatible with the Cstd library. Avoid specifying
17529 # it if it's in CXXFLAGS. Ignore libCrun as
17530 # -library=stlport4 depends on it.
17531 case " $CXX $CXXFLAGS " in
17532 *" -library=stlport4 "*)
17533 solaris_use_stlport4=yes
17534 ;;
17535 esac
17536
17537 # Adding this requires a known-good setup of shared libraries for
17538 # Sun compiler versions before 5.6, else PIC objects from an old
17539 # archive will be linked into the output, leading to subtle bugs.
17540 if test "$solaris_use_stlport4" != yes; then
17541 postdeps_CXX='-library=Cstd -library=Crun'
17542 fi
17543 ;;
17544 esac
17545 ;;
17546esac
17547
17548
17549case " $postdeps_CXX " in
17550*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17551esac
17552 compiler_lib_search_dirs_CXX=
17553if test -n "${compiler_lib_search_path_CXX}"; then
17554 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17555fi
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587 lt_prog_compiler_wl_CXX=
17588lt_prog_compiler_pic_CXX=
17589lt_prog_compiler_static_CXX=
17590
17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17592$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17593
17594 # C++ specific cases for pic, static, wl, etc.
17595 if test "$GXX" = yes; then
17596 lt_prog_compiler_wl_CXX='-Wl,'
17597 lt_prog_compiler_static_CXX='-static'
17598
17599 case $host_os in
17600 aix*)
17601 # All AIX code is PIC.
17602 if test "$host_cpu" = ia64; then
17603 # AIX 5 now supports IA64 processor
17604 lt_prog_compiler_static_CXX='-Bstatic'
17605 fi
17606 ;;
17607
17608 amigaos*)
17609 case $host_cpu in
17610 powerpc)
17611 # see comment about AmigaOS4 .so support
17612 lt_prog_compiler_pic_CXX='-fPIC'
17613 ;;
17614 m68k)
17615 # FIXME: we need at least 68020 code to build shared libraries, but
17616 # adding the `-m68020' flag to GCC prevents building anything better,
17617 # like `-m68040'.
17618 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17619 ;;
17620 esac
17621 ;;
17622
17623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17624 # PIC is the default for these OSes.
17625 ;;
17626 mingw* | cygwin* | os2* | pw32* | cegcc*)
17627 # This hack is so that the source file can tell whether it is being
17628 # built for inclusion in a dll (and should export symbols for example).
17629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17630 # (--disable-auto-import) libraries
17631 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17632 ;;
17633 darwin* | rhapsody*)
17634 # PIC is the default on this platform
17635 # Common symbols not allowed in MH_DYLIB files
17636 lt_prog_compiler_pic_CXX='-fno-common'
17637 ;;
17638 *djgpp*)
17639 # DJGPP does not support shared libraries at all
17640 lt_prog_compiler_pic_CXX=
17641 ;;
17642 interix[3-9]*)
17643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17644 # Instead, we relocate shared libraries at runtime.
17645 ;;
17646 sysv4*MP*)
17647 if test -d /usr/nec; then
17648 lt_prog_compiler_pic_CXX=-Kconform_pic
17649 fi
17650 ;;
17651 hpux*)
17652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17654 # sets the default TLS model and affects inlining.
17655 case $host_cpu in
17656 hppa*64*)
17657 ;;
17658 *)
17659 lt_prog_compiler_pic_CXX='-fPIC'
17660 ;;
17661 esac
17662 ;;
17663 *qnx* | *nto*)
17664 # QNX uses GNU C++, but need to define -shared option too, otherwise
17665 # it will coredump.
17666 lt_prog_compiler_pic_CXX='-fPIC -shared'
17667 ;;
17668 *)
17669 lt_prog_compiler_pic_CXX='-fPIC'
17670 ;;
17671 esac
17672 else
17673 case $host_os in
17674 aix[4-9]*)
17675 # All AIX code is PIC.
17676 if test "$host_cpu" = ia64; then
17677 # AIX 5 now supports IA64 processor
17678 lt_prog_compiler_static_CXX='-Bstatic'
17679 else
17680 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17681 fi
17682 ;;
17683 chorus*)
17684 case $cc_basename in
17685 cxch68*)
17686 # Green Hills C++ Compiler
17687 # _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"
17688 ;;
17689 esac
17690 ;;
17691 dgux*)
17692 case $cc_basename in
17693 ec++*)
17694 lt_prog_compiler_pic_CXX='-KPIC'
17695 ;;
17696 ghcx*)
17697 # Green Hills C++ Compiler
17698 lt_prog_compiler_pic_CXX='-pic'
17699 ;;
17700 *)
17701 ;;
17702 esac
17703 ;;
17704 freebsd* | dragonfly*)
17705 # FreeBSD uses GNU C++
17706 ;;
17707 hpux9* | hpux10* | hpux11*)
17708 case $cc_basename in
17709 CC*)
17710 lt_prog_compiler_wl_CXX='-Wl,'
17711 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17712 if test "$host_cpu" != ia64; then
17713 lt_prog_compiler_pic_CXX='+Z'
17714 fi
17715 ;;
17716 aCC*)
17717 lt_prog_compiler_wl_CXX='-Wl,'
17718 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17719 case $host_cpu in
17720 hppa*64*|ia64*)
17721 # +Z the default
17722 ;;
17723 *)
17724 lt_prog_compiler_pic_CXX='+Z'
17725 ;;
17726 esac
17727 ;;
17728 *)
17729 ;;
17730 esac
17731 ;;
17732 interix*)
17733 # This is c89, which is MS Visual C++ (no shared libs)
17734 # Anyone wants to do a port?
17735 ;;
17736 irix5* | irix6* | nonstopux*)
17737 case $cc_basename in
17738 CC*)
17739 lt_prog_compiler_wl_CXX='-Wl,'
17740 lt_prog_compiler_static_CXX='-non_shared'
17741 # CC pic flag -KPIC is the default.
17742 ;;
17743 *)
17744 ;;
17745 esac
17746 ;;
17747 linux* | k*bsd*-gnu)
17748 case $cc_basename in
17749 KCC*)
17750 # KAI C++ Compiler
17751 lt_prog_compiler_wl_CXX='--backend -Wl,'
17752 lt_prog_compiler_pic_CXX='-fPIC'
17753 ;;
17754 ecpc* )
17755 # old Intel C++ for x86_64 which still supported -KPIC.
17756 lt_prog_compiler_wl_CXX='-Wl,'
17757 lt_prog_compiler_pic_CXX='-KPIC'
17758 lt_prog_compiler_static_CXX='-static'
17759 ;;
17760 icpc* )
17761 # Intel C++, used to be incompatible with GCC.
17762 # ICC 10 doesn't accept -KPIC any more.
17763 lt_prog_compiler_wl_CXX='-Wl,'
17764 lt_prog_compiler_pic_CXX='-fPIC'
17765 lt_prog_compiler_static_CXX='-static'
17766 ;;
17767 pgCC* | pgcpp*)
17768 # Portland Group C++ compiler
17769 lt_prog_compiler_wl_CXX='-Wl,'
17770 lt_prog_compiler_pic_CXX='-fpic'
17771 lt_prog_compiler_static_CXX='-Bstatic'
17772 ;;
17773 cxx*)
17774 # Compaq C++
17775 # Make sure the PIC flag is empty. It appears that all Alpha
17776 # Linux and Compaq Tru64 Unix objects are PIC.
17777 lt_prog_compiler_pic_CXX=
17778 lt_prog_compiler_static_CXX='-non_shared'
17779 ;;
17780 xlc* | xlC*)
17781 # IBM XL 8.0 on PPC
17782 lt_prog_compiler_wl_CXX='-Wl,'
17783 lt_prog_compiler_pic_CXX='-qpic'
17784 lt_prog_compiler_static_CXX='-qstaticlink'
17785 ;;
17786 *)
17787 case `$CC -V 2>&1 | sed 5q` in
17788 *Sun\ C*)
17789 # Sun C++ 5.9
17790 lt_prog_compiler_pic_CXX='-KPIC'
17791 lt_prog_compiler_static_CXX='-Bstatic'
17792 lt_prog_compiler_wl_CXX='-Qoption ld '
17793 ;;
17794 esac
17795 ;;
17796 esac
17797 ;;
17798 lynxos*)
17799 ;;
17800 m88k*)
17801 ;;
17802 mvs*)
17803 case $cc_basename in
17804 cxx*)
17805 lt_prog_compiler_pic_CXX='-W c,exportall'
17806 ;;
17807 *)
17808 ;;
17809 esac
17810 ;;
17811 netbsd*)
17812 ;;
17813 *qnx* | *nto*)
17814 # QNX uses GNU C++, but need to define -shared option too, otherwise
17815 # it will coredump.
17816 lt_prog_compiler_pic_CXX='-fPIC -shared'
17817 ;;
17818 osf3* | osf4* | osf5*)
17819 case $cc_basename in
17820 KCC*)
17821 lt_prog_compiler_wl_CXX='--backend -Wl,'
17822 ;;
17823 RCC*)
17824 # Rational C++ 2.4.1
17825 lt_prog_compiler_pic_CXX='-pic'
17826 ;;
17827 cxx*)
17828 # Digital/Compaq C++
17829 lt_prog_compiler_wl_CXX='-Wl,'
17830 # Make sure the PIC flag is empty. It appears that all Alpha
17831 # Linux and Compaq Tru64 Unix objects are PIC.
17832 lt_prog_compiler_pic_CXX=
17833 lt_prog_compiler_static_CXX='-non_shared'
17834 ;;
17835 *)
17836 ;;
17837 esac
17838 ;;
17839 psos*)
17840 ;;
17841 solaris*)
17842 case $cc_basename in
17843 CC*)
17844 # Sun C++ 4.2, 5.x and Centerline C++
17845 lt_prog_compiler_pic_CXX='-KPIC'
17846 lt_prog_compiler_static_CXX='-Bstatic'
17847 lt_prog_compiler_wl_CXX='-Qoption ld '
17848 ;;
17849 gcx*)
17850 # Green Hills C++ Compiler
17851 lt_prog_compiler_pic_CXX='-PIC'
17852 ;;
17853 *)
17854 ;;
17855 esac
17856 ;;
17857 sunos4*)
17858 case $cc_basename in
17859 CC*)
17860 # Sun C++ 4.x
17861 lt_prog_compiler_pic_CXX='-pic'
17862 lt_prog_compiler_static_CXX='-Bstatic'
17863 ;;
17864 lcc*)
17865 # Lucid
17866 lt_prog_compiler_pic_CXX='-pic'
17867 ;;
17868 *)
17869 ;;
17870 esac
17871 ;;
17872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17873 case $cc_basename in
17874 CC*)
17875 lt_prog_compiler_wl_CXX='-Wl,'
17876 lt_prog_compiler_pic_CXX='-KPIC'
17877 lt_prog_compiler_static_CXX='-Bstatic'
17878 ;;
17879 esac
17880 ;;
17881 tandem*)
17882 case $cc_basename in
17883 NCC*)
17884 # NonStop-UX NCC 3.20
17885 lt_prog_compiler_pic_CXX='-KPIC'
17886 ;;
17887 *)
17888 ;;
17889 esac
17890 ;;
17891 vxworks*)
17892 ;;
17893 *)
17894 lt_prog_compiler_can_build_shared_CXX=no
17895 ;;
17896 esac
17897 fi
17898
17899case $host_os in
17900 # For platforms which do not support PIC, -DPIC is meaningless:
17901 *djgpp*)
17902 lt_prog_compiler_pic_CXX=
17903 ;;
17904 *)
17905 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17906 ;;
17907esac
17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17909$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17910
17911
17912
17913#
17914# Check to make sure the PIC flag actually works.
17915#
17916if test -n "$lt_prog_compiler_pic_CXX"; then
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17918$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17919if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17920 $as_echo_n "(cached) " >&6
17921else
17922 lt_cv_prog_compiler_pic_works_CXX=no
17923 ac_outfile=conftest.$ac_objext
17924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17925 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17926 # Insert the option either (1) after the last *FLAGS variable, or
17927 # (2) before a word containing "conftest.", or (3) at the end.
17928 # Note that $ac_compile itself does not contain backslashes and begins
17929 # with a dollar sign (not a hyphen), so the echo should work correctly.
17930 # The option is referenced via a variable to avoid confusing sed.
17931 lt_compile=`echo "$ac_compile" | $SED \
17932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17934 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000017935 (eval echo "\"\$as_me:17935: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017936 (eval "$lt_compile" 2>conftest.err)
17937 ac_status=$?
17938 cat conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000017939 echo "$as_me:17939: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017940 if (exit $ac_status) && test -s "$ac_outfile"; then
17941 # The compiler can only warn and ignore the option if not recognized
17942 # So say no if there are warnings other than the usual output.
17943 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17946 lt_cv_prog_compiler_pic_works_CXX=yes
17947 fi
17948 fi
17949 $RM conftest*
17950
17951fi
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17953$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17954
17955if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17956 case $lt_prog_compiler_pic_CXX in
17957 "" | " "*) ;;
17958 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17959 esac
17960else
17961 lt_prog_compiler_pic_CXX=
17962 lt_prog_compiler_can_build_shared_CXX=no
17963fi
17964
17965fi
17966
17967
17968
17969#
17970# Check to make sure the static flag actually works.
17971#
17972wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17974$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17975if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17976 $as_echo_n "(cached) " >&6
17977else
17978 lt_cv_prog_compiler_static_works_CXX=no
17979 save_LDFLAGS="$LDFLAGS"
17980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17981 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17983 # The linker can only warn and ignore the option if not recognized
17984 # So say no if there are warnings
17985 if test -s conftest.err; then
17986 # Append any errors to the config.log.
17987 cat conftest.err 1>&5
17988 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17990 if diff conftest.exp conftest.er2 >/dev/null; then
17991 lt_cv_prog_compiler_static_works_CXX=yes
17992 fi
17993 else
17994 lt_cv_prog_compiler_static_works_CXX=yes
17995 fi
17996 fi
17997 $RM -r conftest*
17998 LDFLAGS="$save_LDFLAGS"
17999
18000fi
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18002$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18003
18004if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18005 :
18006else
18007 lt_prog_compiler_static_CXX=
18008fi
18009
18010
18011
18012
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18014$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18015if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18017else
18018 lt_cv_prog_compiler_c_o_CXX=no
18019 $RM -r conftest 2>/dev/null
18020 mkdir conftest
18021 cd conftest
18022 mkdir out
18023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18024
18025 lt_compiler_flag="-o out/conftest2.$ac_objext"
18026 # Insert the option either (1) after the last *FLAGS variable, or
18027 # (2) before a word containing "conftest.", or (3) at the end.
18028 # Note that $ac_compile itself does not contain backslashes and begins
18029 # with a dollar sign (not a hyphen), so the echo should work correctly.
18030 lt_compile=`echo "$ac_compile" | $SED \
18031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18033 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000018034 (eval echo "\"\$as_me:18034: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018035 (eval "$lt_compile" 2>out/conftest.err)
18036 ac_status=$?
18037 cat out/conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000018038 echo "$as_me:18038: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18040 then
18041 # The compiler can only warn and ignore the option if not recognized
18042 # So say no if there are warnings
18043 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18046 lt_cv_prog_compiler_c_o_CXX=yes
18047 fi
18048 fi
18049 chmod u+w . 2>&5
18050 $RM conftest*
18051 # SGI C++ compiler will create directory out/ii_files/ for
18052 # template instantiation
18053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18054 $RM out/* && rmdir out
18055 cd ..
18056 $RM -r conftest
18057 $RM conftest*
18058
18059fi
18060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18061$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18062
18063
18064
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18066$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18067if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18068 $as_echo_n "(cached) " >&6
18069else
18070 lt_cv_prog_compiler_c_o_CXX=no
18071 $RM -r conftest 2>/dev/null
18072 mkdir conftest
18073 cd conftest
18074 mkdir out
18075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18076
18077 lt_compiler_flag="-o out/conftest2.$ac_objext"
18078 # Insert the option either (1) after the last *FLAGS variable, or
18079 # (2) before a word containing "conftest.", or (3) at the end.
18080 # Note that $ac_compile itself does not contain backslashes and begins
18081 # with a dollar sign (not a hyphen), so the echo should work correctly.
18082 lt_compile=`echo "$ac_compile" | $SED \
18083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18085 -e 's:$: $lt_compiler_flag:'`
cristy23f7a922010-10-11 00:27:48 +000018086 (eval echo "\"\$as_me:18086: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018087 (eval "$lt_compile" 2>out/conftest.err)
18088 ac_status=$?
18089 cat out/conftest.err >&5
cristy23f7a922010-10-11 00:27:48 +000018090 echo "$as_me:18090: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18092 then
18093 # The compiler can only warn and ignore the option if not recognized
18094 # So say no if there are warnings
18095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18098 lt_cv_prog_compiler_c_o_CXX=yes
18099 fi
18100 fi
18101 chmod u+w . 2>&5
18102 $RM conftest*
18103 # SGI C++ compiler will create directory out/ii_files/ for
18104 # template instantiation
18105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18106 $RM out/* && rmdir out
18107 cd ..
18108 $RM -r conftest
18109 $RM conftest*
18110
18111fi
18112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18113$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18114
18115
18116
18117
18118hard_links="nottested"
18119if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18120 # do not overwrite the value of need_locks provided by the user
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18122$as_echo_n "checking if we can lock with hard links... " >&6; }
18123 hard_links=yes
18124 $RM conftest*
18125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18126 touch conftest.a
18127 ln conftest.a conftest.b 2>&5 || hard_links=no
18128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18130$as_echo "$hard_links" >&6; }
18131 if test "$hard_links" = no; then
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18133$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18134 need_locks=warn
18135 fi
18136else
18137 need_locks=no
18138fi
18139
18140
18141
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18143$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18144
18145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18146 case $host_os in
18147 aix[4-9]*)
18148 # If we're using GNU nm, then we don't want the "-C" option.
18149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18150 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18151 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18152 else
18153 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'
18154 fi
18155 ;;
18156 pw32*)
18157 export_symbols_cmds_CXX="$ltdll_cmds"
18158 ;;
18159 cygwin* | mingw* | cegcc*)
18160 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'
18161 ;;
18162 *)
18163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18164 ;;
18165 esac
18166 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18167
18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18169$as_echo "$ld_shlibs_CXX" >&6; }
18170test "$ld_shlibs_CXX" = no && can_build_shared=no
18171
18172with_gnu_ld_CXX=$with_gnu_ld
18173
18174
18175
18176
18177
18178
18179#
18180# Do we need to explicitly link libc?
18181#
18182case "x$archive_cmds_need_lc_CXX" in
18183x|xyes)
18184 # Assume -lc should be added
18185 archive_cmds_need_lc_CXX=yes
18186
18187 if test "$enable_shared" = yes && test "$GCC" = yes; then
18188 case $archive_cmds_CXX in
18189 *'~'*)
18190 # FIXME: we may have to deal with multi-command sequences.
18191 ;;
18192 '$CC '*)
18193 # Test whether the compiler implicitly links with -lc since on some
18194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18195 # to ld, don't add -lc before -lgcc.
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18197$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18198 $RM conftest*
18199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18200
18201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18202 (eval $ac_compile) 2>&5
18203 ac_status=$?
18204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18205 test $ac_status = 0; } 2>conftest.err; then
18206 soname=conftest
18207 lib=conftest
18208 libobjs=conftest.$ac_objext
18209 deplibs=
18210 wl=$lt_prog_compiler_wl_CXX
18211 pic_flag=$lt_prog_compiler_pic_CXX
18212 compiler_flags=-v
18213 linker_flags=-v
18214 verstring=
18215 output_objdir=.
18216 libname=conftest
18217 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18218 allow_undefined_flag_CXX=
18219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18220 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18221 ac_status=$?
18222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18223 test $ac_status = 0; }
18224 then
18225 archive_cmds_need_lc_CXX=no
18226 else
18227 archive_cmds_need_lc_CXX=yes
18228 fi
18229 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18230 else
18231 cat conftest.err 1>&5
18232 fi
18233 $RM conftest*
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18235$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18236 ;;
18237 esac
18238 fi
18239 ;;
18240esac
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18306$as_echo_n "checking dynamic linker characteristics... " >&6; }
18307
18308library_names_spec=
18309libname_spec='lib$name'
18310soname_spec=
18311shrext_cmds=".so"
18312postinstall_cmds=
18313postuninstall_cmds=
18314finish_cmds=
18315finish_eval=
18316shlibpath_var=
18317shlibpath_overrides_runpath=unknown
18318version_type=none
18319dynamic_linker="$host_os ld.so"
18320sys_lib_dlsearch_path_spec="/lib /usr/lib"
18321need_lib_prefix=unknown
18322hardcode_into_libs=no
18323
18324# when you set need_version to no, make sure it does not cause -set_version
18325# flags to be left without arguments
18326need_version=unknown
18327
18328case $host_os in
18329aix3*)
18330 version_type=linux
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18332 shlibpath_var=LIBPATH
18333
18334 # AIX 3 has no versioning support, so we append a major version to the name.
18335 soname_spec='${libname}${release}${shared_ext}$major'
18336 ;;
18337
18338aix[4-9]*)
18339 version_type=linux
18340 need_lib_prefix=no
18341 need_version=no
18342 hardcode_into_libs=yes
18343 if test "$host_cpu" = ia64; then
18344 # AIX 5 supports IA64
18345 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18346 shlibpath_var=LD_LIBRARY_PATH
18347 else
18348 # With GCC up to 2.95.x, collect2 would create an import file
18349 # for dependence libraries. The import file would start with
18350 # the line `#! .'. This would cause the generated library to
18351 # depend on `.', always an invalid library. This was fixed in
18352 # development snapshots of GCC prior to 3.0.
18353 case $host_os in
18354 aix4 | aix4.[01] | aix4.[01].*)
18355 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18356 echo ' yes '
18357 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18358 :
18359 else
18360 can_build_shared=no
18361 fi
18362 ;;
18363 esac
18364 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18365 # soname into executable. Probably we can add versioning support to
18366 # collect2, so additional links can be useful in future.
18367 if test "$aix_use_runtimelinking" = yes; then
18368 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18369 # instead of lib<name>.a to let people know that these are not
18370 # typical AIX shared libraries.
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 else
18373 # We preserve .a as extension for shared libraries through AIX4.2
18374 # and later when we are not doing run time linking.
18375 library_names_spec='${libname}${release}.a $libname.a'
18376 soname_spec='${libname}${release}${shared_ext}$major'
18377 fi
18378 shlibpath_var=LIBPATH
18379 fi
18380 ;;
18381
18382amigaos*)
18383 case $host_cpu in
18384 powerpc)
18385 # Since July 2007 AmigaOS4 officially supports .so libraries.
18386 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 ;;
18389 m68k)
18390 library_names_spec='$libname.ixlibrary $libname.a'
18391 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18392 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
18393 ;;
18394 esac
18395 ;;
18396
18397beos*)
18398 library_names_spec='${libname}${shared_ext}'
18399 dynamic_linker="$host_os ld.so"
18400 shlibpath_var=LIBRARY_PATH
18401 ;;
18402
18403bsdi[45]*)
18404 version_type=linux
18405 need_version=no
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 soname_spec='${libname}${release}${shared_ext}$major'
18408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18409 shlibpath_var=LD_LIBRARY_PATH
18410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18412 # the default ld.so.conf also contains /usr/contrib/lib and
18413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18414 # libtool to hard-code these into programs
18415 ;;
18416
18417cygwin* | mingw* | pw32* | cegcc*)
18418 version_type=windows
18419 shrext_cmds=".dll"
18420 need_version=no
18421 need_lib_prefix=no
18422
18423 case $GCC,$host_os in
18424 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18425 library_names_spec='$libname.dll.a'
18426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18427 postinstall_cmds='base_file=`basename \${file}`~
18428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18429 dldir=$destdir/`dirname \$dlpath`~
18430 test -d \$dldir || mkdir -p \$dldir~
18431 $install_prog $dir/$dlname \$dldir/$dlname~
18432 chmod a+x \$dldir/$dlname~
18433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18435 fi'
18436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18437 dlpath=$dir/\$dldll~
18438 $RM \$dlpath'
18439 shlibpath_overrides_runpath=yes
18440
18441 case $host_os in
18442 cygwin*)
18443 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18444 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18446 ;;
18447 mingw* | cegcc*)
18448 # MinGW DLLs use traditional 'lib' prefix
18449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18450 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18451 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18452 # It is most probably a Windows format PATH printed by
18453 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18454 # path with ; separators, and with drive letters. We can handle the
18455 # drive letters (cygwin fileutils understands them), so leave them,
18456 # especially as we might pass files found there to a mingw objdump,
18457 # which wouldn't understand a cygwinified path. Ahh.
18458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18459 else
18460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18461 fi
18462 ;;
18463 pw32*)
18464 # pw32 DLLs use 'pw' prefix rather than 'lib'
18465 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18466 ;;
18467 esac
18468 ;;
18469
18470 *)
18471 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18472 ;;
18473 esac
18474 dynamic_linker='Win32 ld.exe'
18475 # FIXME: first we should search . and the directory the executable is in
18476 shlibpath_var=PATH
18477 ;;
18478
18479darwin* | rhapsody*)
18480 dynamic_linker="$host_os dyld"
18481 version_type=darwin
18482 need_lib_prefix=no
18483 need_version=no
18484 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18485 soname_spec='${libname}${release}${major}$shared_ext'
18486 shlibpath_overrides_runpath=yes
18487 shlibpath_var=DYLD_LIBRARY_PATH
18488 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18489
18490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18491 ;;
18492
18493dgux*)
18494 version_type=linux
18495 need_lib_prefix=no
18496 need_version=no
18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18498 soname_spec='${libname}${release}${shared_ext}$major'
18499 shlibpath_var=LD_LIBRARY_PATH
18500 ;;
18501
18502freebsd1*)
18503 dynamic_linker=no
18504 ;;
18505
18506freebsd* | dragonfly*)
18507 # DragonFly does not have aout. When/if they implement a new
18508 # versioning mechanism, adjust this.
18509 if test -x /usr/bin/objformat; then
18510 objformat=`/usr/bin/objformat`
18511 else
18512 case $host_os in
18513 freebsd[123]*) objformat=aout ;;
18514 *) objformat=elf ;;
18515 esac
18516 fi
18517 version_type=freebsd-$objformat
18518 case $version_type in
18519 freebsd-elf*)
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18521 need_version=no
18522 need_lib_prefix=no
18523 ;;
18524 freebsd-*)
18525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18526 need_version=yes
18527 ;;
18528 esac
18529 shlibpath_var=LD_LIBRARY_PATH
18530 case $host_os in
18531 freebsd2*)
18532 shlibpath_overrides_runpath=yes
18533 ;;
18534 freebsd3.[01]* | freebsdelf3.[01]*)
18535 shlibpath_overrides_runpath=yes
18536 hardcode_into_libs=yes
18537 ;;
18538 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18539 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18540 shlibpath_overrides_runpath=no
18541 hardcode_into_libs=yes
18542 ;;
18543 *) # from 4.6 on, and DragonFly
18544 shlibpath_overrides_runpath=yes
18545 hardcode_into_libs=yes
18546 ;;
18547 esac
18548 ;;
18549
18550gnu*)
18551 version_type=linux
18552 need_lib_prefix=no
18553 need_version=no
18554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18555 soname_spec='${libname}${release}${shared_ext}$major'
18556 shlibpath_var=LD_LIBRARY_PATH
18557 hardcode_into_libs=yes
18558 ;;
18559
18560hpux9* | hpux10* | hpux11*)
18561 # Give a soname corresponding to the major version so that dld.sl refuses to
18562 # link against other versions.
18563 version_type=sunos
18564 need_lib_prefix=no
18565 need_version=no
18566 case $host_cpu in
18567 ia64*)
18568 shrext_cmds='.so'
18569 hardcode_into_libs=yes
18570 dynamic_linker="$host_os dld.so"
18571 shlibpath_var=LD_LIBRARY_PATH
18572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574 soname_spec='${libname}${release}${shared_ext}$major'
18575 if test "X$HPUX_IA64_MODE" = X32; then
18576 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18577 else
18578 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18579 fi
18580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18581 ;;
18582 hppa*64*)
18583 shrext_cmds='.sl'
18584 hardcode_into_libs=yes
18585 dynamic_linker="$host_os dld.sl"
18586 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18589 soname_spec='${libname}${release}${shared_ext}$major'
18590 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18592 ;;
18593 *)
18594 shrext_cmds='.sl'
18595 dynamic_linker="$host_os dld.sl"
18596 shlibpath_var=SHLIB_PATH
18597 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18599 soname_spec='${libname}${release}${shared_ext}$major'
18600 ;;
18601 esac
18602 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18603 postinstall_cmds='chmod 555 $lib'
18604 ;;
18605
18606interix[3-9]*)
18607 version_type=linux
18608 need_lib_prefix=no
18609 need_version=no
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18613 shlibpath_var=LD_LIBRARY_PATH
18614 shlibpath_overrides_runpath=no
18615 hardcode_into_libs=yes
18616 ;;
18617
18618irix5* | irix6* | nonstopux*)
18619 case $host_os in
18620 nonstopux*) version_type=nonstopux ;;
18621 *)
18622 if test "$lt_cv_prog_gnu_ld" = yes; then
18623 version_type=linux
18624 else
18625 version_type=irix
18626 fi ;;
18627 esac
18628 need_lib_prefix=no
18629 need_version=no
18630 soname_spec='${libname}${release}${shared_ext}$major'
18631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18632 case $host_os in
18633 irix5* | nonstopux*)
18634 libsuff= shlibsuff=
18635 ;;
18636 *)
18637 case $LD in # libtool.m4 will add one of these switches to LD
18638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18639 libsuff= shlibsuff= libmagic=32-bit;;
18640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18641 libsuff=32 shlibsuff=N32 libmagic=N32;;
18642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18643 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18644 *) libsuff= shlibsuff= libmagic=never-match;;
18645 esac
18646 ;;
18647 esac
18648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18649 shlibpath_overrides_runpath=no
18650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18652 hardcode_into_libs=yes
18653 ;;
18654
18655# No shared lib support for Linux oldld, aout, or coff.
18656linux*oldld* | linux*aout* | linux*coff*)
18657 dynamic_linker=no
18658 ;;
18659
18660# This must be Linux ELF.
18661linux* | k*bsd*-gnu)
18662 version_type=linux
18663 need_lib_prefix=no
18664 need_version=no
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666 soname_spec='${libname}${release}${shared_ext}$major'
18667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=no
18670 # Some binutils ld are patched to set DT_RUNPATH
18671 save_LDFLAGS=$LDFLAGS
18672 save_libdir=$libdir
18673 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18674 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676/* end confdefs.h. */
18677
18678int
18679main ()
18680{
18681
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686if ac_fn_cxx_try_link "$LINENO"; then :
18687 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18688 shlibpath_overrides_runpath=yes
18689fi
18690fi
18691rm -f core conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext conftest.$ac_ext
18693 LDFLAGS=$save_LDFLAGS
18694 libdir=$save_libdir
18695
18696 # This implies no fast_install, which is unacceptable.
18697 # Some rework will be needed to allow for fast_install
18698 # before this can be enabled.
18699 hardcode_into_libs=yes
18700
18701 # Add ABI-specific directories to the system library path.
18702 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18703
18704 # Append ld.so.conf contents to the search path
18705 if test -f /etc/ld.so.conf; then
18706 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;/^$/d' | tr '\n' ' '`
18707 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18708 fi
18709
18710 # We used to test for /lib/ld.so.1 and disable shared libraries on
18711 # powerpc, because MkLinux only supported shared libraries with the
18712 # GNU dynamic linker. Since this was broken with cross compilers,
18713 # most powerpc-linux boxes support dynamic linking these days and
18714 # people can always --disable-shared, the test was removed, and we
18715 # assume the GNU/Linux dynamic linker is in use.
18716 dynamic_linker='GNU/Linux ld.so'
18717 ;;
18718
18719netbsd*)
18720 version_type=sunos
18721 need_lib_prefix=no
18722 need_version=no
18723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18726 dynamic_linker='NetBSD (a.out) ld.so'
18727 else
18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 dynamic_linker='NetBSD ld.elf_so'
18731 fi
18732 shlibpath_var=LD_LIBRARY_PATH
18733 shlibpath_overrides_runpath=yes
18734 hardcode_into_libs=yes
18735 ;;
18736
18737newsos6)
18738 version_type=linux
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 shlibpath_var=LD_LIBRARY_PATH
18741 shlibpath_overrides_runpath=yes
18742 ;;
18743
18744*nto* | *qnx*)
18745 version_type=qnx
18746 need_lib_prefix=no
18747 need_version=no
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 shlibpath_overrides_runpath=no
18752 hardcode_into_libs=yes
18753 dynamic_linker='ldqnx.so'
18754 ;;
18755
18756openbsd*)
18757 version_type=sunos
18758 sys_lib_dlsearch_path_spec="/usr/lib"
18759 need_lib_prefix=no
18760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18761 case $host_os in
18762 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18763 *) need_version=no ;;
18764 esac
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18767 shlibpath_var=LD_LIBRARY_PATH
18768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18769 case $host_os in
18770 openbsd2.[89] | openbsd2.[89].*)
18771 shlibpath_overrides_runpath=no
18772 ;;
18773 *)
18774 shlibpath_overrides_runpath=yes
18775 ;;
18776 esac
18777 else
18778 shlibpath_overrides_runpath=yes
18779 fi
18780 ;;
18781
18782os2*)
18783 libname_spec='$name'
18784 shrext_cmds=".dll"
18785 need_lib_prefix=no
18786 library_names_spec='$libname${shared_ext} $libname.a'
18787 dynamic_linker='OS/2 ld.exe'
18788 shlibpath_var=LIBPATH
18789 ;;
18790
18791osf3* | osf4* | osf5*)
18792 version_type=osf
18793 need_lib_prefix=no
18794 need_version=no
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18800 ;;
18801
18802rdos*)
18803 dynamic_linker=no
18804 ;;
18805
18806solaris*)
18807 version_type=linux
18808 need_lib_prefix=no
18809 need_version=no
18810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18811 soname_spec='${libname}${release}${shared_ext}$major'
18812 shlibpath_var=LD_LIBRARY_PATH
18813 shlibpath_overrides_runpath=yes
18814 hardcode_into_libs=yes
18815 # ldd complains unless libraries are executable
18816 postinstall_cmds='chmod +x $lib'
18817 ;;
18818
18819sunos4*)
18820 version_type=sunos
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 shlibpath_overrides_runpath=yes
18825 if test "$with_gnu_ld" = yes; then
18826 need_lib_prefix=no
18827 fi
18828 need_version=yes
18829 ;;
18830
18831sysv4 | sysv4.3*)
18832 version_type=linux
18833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834 soname_spec='${libname}${release}${shared_ext}$major'
18835 shlibpath_var=LD_LIBRARY_PATH
18836 case $host_vendor in
18837 sni)
18838 shlibpath_overrides_runpath=no
18839 need_lib_prefix=no
18840 runpath_var=LD_RUN_PATH
18841 ;;
18842 siemens)
18843 need_lib_prefix=no
18844 ;;
18845 motorola)
18846 need_lib_prefix=no
18847 need_version=no
18848 shlibpath_overrides_runpath=no
18849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18850 ;;
18851 esac
18852 ;;
18853
18854sysv4*MP*)
18855 if test -d /usr/nec ;then
18856 version_type=linux
18857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18858 soname_spec='$libname${shared_ext}.$major'
18859 shlibpath_var=LD_LIBRARY_PATH
18860 fi
18861 ;;
18862
18863sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18864 version_type=freebsd-elf
18865 need_lib_prefix=no
18866 need_version=no
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 shlibpath_var=LD_LIBRARY_PATH
18870 shlibpath_overrides_runpath=yes
18871 hardcode_into_libs=yes
18872 if test "$with_gnu_ld" = yes; then
18873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18874 else
18875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18876 case $host_os in
18877 sco3.2v5*)
18878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18879 ;;
18880 esac
18881 fi
18882 sys_lib_dlsearch_path_spec='/usr/lib'
18883 ;;
18884
18885tpf*)
18886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18887 version_type=linux
18888 need_lib_prefix=no
18889 need_version=no
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891 shlibpath_var=LD_LIBRARY_PATH
18892 shlibpath_overrides_runpath=no
18893 hardcode_into_libs=yes
18894 ;;
18895
18896uts4*)
18897 version_type=linux
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899 soname_spec='${libname}${release}${shared_ext}$major'
18900 shlibpath_var=LD_LIBRARY_PATH
18901 ;;
18902
18903*)
18904 dynamic_linker=no
18905 ;;
18906esac
18907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18908$as_echo "$dynamic_linker" >&6; }
18909test "$dynamic_linker" = no && can_build_shared=no
18910
18911variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18912if test "$GCC" = yes; then
18913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18914fi
18915
18916if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18918fi
18919if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18921fi
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18959$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18960hardcode_action_CXX=
18961if test -n "$hardcode_libdir_flag_spec_CXX" ||
18962 test -n "$runpath_var_CXX" ||
18963 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18964
18965 # We can hardcode non-existent directories.
18966 if test "$hardcode_direct_CXX" != no &&
18967 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18968 # have to relink, otherwise we might link with an installed library
18969 # when we should be linking with a yet-to-be-installed one
18970 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18971 test "$hardcode_minus_L_CXX" != no; then
18972 # Linking always hardcodes the temporary library directory.
18973 hardcode_action_CXX=relink
18974 else
18975 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18976 hardcode_action_CXX=immediate
18977 fi
18978else
18979 # We cannot hardcode anything, or else we can only hardcode existing
18980 # directories.
18981 hardcode_action_CXX=unsupported
18982fi
18983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18984$as_echo "$hardcode_action_CXX" >&6; }
18985
18986if test "$hardcode_action_CXX" = relink ||
18987 test "$inherit_rpath_CXX" = yes; then
18988 # Fast installation is not supported
18989 enable_fast_install=no
18990elif test "$shlibpath_overrides_runpath" = yes ||
18991 test "$enable_shared" = no; then
18992 # Fast installation is not necessary
18993 enable_fast_install=needless
18994fi
18995
18996
18997
18998
18999
19000
19001
19002 fi # test -n "$compiler"
19003
19004 CC=$lt_save_CC
19005 LDCXX=$LD
19006 LD=$lt_save_LD
19007 GCC=$lt_save_GCC
19008 with_gnu_ld=$lt_save_with_gnu_ld
19009 lt_cv_path_LDCXX=$lt_cv_path_LD
19010 lt_cv_path_LD=$lt_save_path_LD
19011 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19012 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19013fi # test "$_lt_caught_CXX_error" != yes
19014
19015ac_ext=c
19016ac_cpp='$CPP $CPPFLAGS'
19017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019ac_compiler_gnu=$ac_cv_c_compiler_gnu
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033 ac_config_commands="$ac_config_commands libtool"
19034
19035
19036
19037
19038# Only expand once:
19039
19040
19041
cristy3ed852e2009-09-05 21:47:34 +000019042
19043
19044# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019045
19046
19047
19048
19049
19050
19051
19052
19053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19054$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19055if test "${libltdl_cv_shlibext+set}" = set; then :
19056 $as_echo_n "(cached) " >&6
19057else
19058
19059module=yes
19060eval libltdl_cv_shlibext=$shrext_cmds
19061
19062fi
19063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19064$as_echo "$libltdl_cv_shlibext" >&6; }
19065if test -n "$libltdl_cv_shlibext"; then
19066
19067cat >>confdefs.h <<_ACEOF
19068#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19069_ACEOF
19070
19071fi
19072
19073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19074$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19075if test "${lt_cv_module_path_var+set}" = set; then :
19076 $as_echo_n "(cached) " >&6
19077else
19078 lt_cv_module_path_var="$shlibpath_var"
19079fi
19080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19081$as_echo "$lt_cv_module_path_var" >&6; }
19082if test -n "$lt_cv_module_path_var"; then
19083
19084cat >>confdefs.h <<_ACEOF
19085#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19086_ACEOF
19087
19088fi
19089
19090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19091$as_echo_n "checking for the default library search path... " >&6; }
19092if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19094else
19095 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19096fi
19097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19098$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19099if test -n "$lt_cv_sys_dlsearch_path"; then
19100 sys_dlsearch_path=
19101 for dir in $lt_cv_sys_dlsearch_path; do
19102 if test -z "$sys_dlsearch_path"; then
19103 sys_dlsearch_path="$dir"
19104 else
19105 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19106 fi
19107 done
19108
19109cat >>confdefs.h <<_ACEOF
19110#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19111_ACEOF
19112
19113fi
19114
19115
19116LT_DLLOADERS=
19117
19118
19119ac_ext=c
19120ac_cpp='$CPP $CPPFLAGS'
19121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123ac_compiler_gnu=$ac_cv_c_compiler_gnu
19124
19125
19126LIBADD_DLOPEN=
19127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19128$as_echo_n "checking for library containing dlopen... " >&6; }
19129if test "${ac_cv_search_dlopen+set}" = set; then :
19130 $as_echo_n "(cached) " >&6
19131else
19132 ac_func_search_save_LIBS=$LIBS
19133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h. */
19135
19136/* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19139#ifdef __cplusplus
19140extern "C"
19141#endif
19142char dlopen ();
19143int
19144main ()
19145{
19146return dlopen ();
19147 ;
19148 return 0;
19149}
19150_ACEOF
19151for ac_lib in '' dl; do
19152 if test -z "$ac_lib"; then
19153 ac_res="none required"
19154 else
19155 ac_res=-l$ac_lib
19156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19157 fi
19158 if ac_fn_c_try_link "$LINENO"; then :
19159 ac_cv_search_dlopen=$ac_res
19160fi
19161rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext
19163 if test "${ac_cv_search_dlopen+set}" = set; then :
19164 break
19165fi
19166done
19167if test "${ac_cv_search_dlopen+set}" = set; then :
19168
19169else
19170 ac_cv_search_dlopen=no
19171fi
19172rm conftest.$ac_ext
19173LIBS=$ac_func_search_save_LIBS
19174fi
19175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19176$as_echo "$ac_cv_search_dlopen" >&6; }
19177ac_res=$ac_cv_search_dlopen
19178if test "$ac_res" != no; then :
19179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19180
19181$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19182
19183 if test "$ac_cv_search_dlopen" != "none required" ; then
19184 LIBADD_DLOPEN="-ldl"
19185 fi
19186 libltdl_cv_lib_dl_dlopen="yes"
19187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19188else
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190/* end confdefs.h. */
19191#if HAVE_DLFCN_H
19192# include <dlfcn.h>
19193#endif
19194
19195int
19196main ()
19197{
19198dlopen(0, 0);
19199 ;
19200 return 0;
19201}
19202_ACEOF
19203if ac_fn_c_try_link "$LINENO"; then :
19204
19205$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19206
19207 libltdl_cv_func_dlopen="yes"
19208 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19209else
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19211$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19212if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19213 $as_echo_n "(cached) " >&6
19214else
19215 ac_check_lib_save_LIBS=$LIBS
19216LIBS="-lsvld $LIBS"
19217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218/* end confdefs.h. */
19219
19220/* Override any GCC internal prototype to avoid an error.
19221 Use char because int might match the return type of a GCC
19222 builtin and then its argument prototype would still apply. */
19223#ifdef __cplusplus
19224extern "C"
19225#endif
19226char dlopen ();
19227int
19228main ()
19229{
19230return dlopen ();
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235if ac_fn_c_try_link "$LINENO"; then :
19236 ac_cv_lib_svld_dlopen=yes
19237else
19238 ac_cv_lib_svld_dlopen=no
19239fi
19240rm -f core conftest.err conftest.$ac_objext \
19241 conftest$ac_exeext conftest.$ac_ext
19242LIBS=$ac_check_lib_save_LIBS
19243fi
19244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19245$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19246if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19247
19248$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19249
19250 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19251 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19252fi
19253
19254fi
19255rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257fi
19258
19259if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19260then
19261 lt_save_LIBS="$LIBS"
19262 LIBS="$LIBS $LIBADD_DLOPEN"
19263 for ac_func in dlerror
19264do :
19265 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19266if test "x$ac_cv_func_dlerror" = x""yes; then :
19267 cat >>confdefs.h <<_ACEOF
19268#define HAVE_DLERROR 1
19269_ACEOF
19270
19271fi
19272done
19273
19274 LIBS="$lt_save_LIBS"
19275fi
19276
19277
19278LIBADD_SHL_LOAD=
19279ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19280if test "x$ac_cv_func_shl_load" = x""yes; then :
19281
19282$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19283
19284 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19285else
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19287$as_echo_n "checking for shl_load in -ldld... " >&6; }
19288if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19289 $as_echo_n "(cached) " >&6
19290else
19291 ac_check_lib_save_LIBS=$LIBS
19292LIBS="-ldld $LIBS"
19293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294/* end confdefs.h. */
19295
19296/* Override any GCC internal prototype to avoid an error.
19297 Use char because int might match the return type of a GCC
19298 builtin and then its argument prototype would still apply. */
19299#ifdef __cplusplus
19300extern "C"
19301#endif
19302char shl_load ();
19303int
19304main ()
19305{
19306return shl_load ();
19307 ;
19308 return 0;
19309}
19310_ACEOF
19311if ac_fn_c_try_link "$LINENO"; then :
19312 ac_cv_lib_dld_shl_load=yes
19313else
19314 ac_cv_lib_dld_shl_load=no
19315fi
19316rm -f core conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318LIBS=$ac_check_lib_save_LIBS
19319fi
19320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19321$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19322if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19323
19324$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19325
19326 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19327 LIBADD_SHL_LOAD="-ldld"
19328fi
19329
19330fi
19331
19332
19333
19334case $host_os in
19335darwin[1567].*)
19336# We only want this for pre-Mac OS X 10.4.
19337 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19338if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19339
19340$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19341
19342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19343fi
19344
19345 ;;
19346beos*)
19347 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19348 ;;
19349cygwin* | mingw* | os2* | pw32*)
19350 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19351"
19352if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19353 ac_have_decl=1
19354else
19355 ac_have_decl=0
19356fi
19357
19358cat >>confdefs.h <<_ACEOF
19359#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19360_ACEOF
19361
19362 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19363 ;;
19364esac
19365
19366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19367$as_echo_n "checking for dld_link in -ldld... " >&6; }
19368if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19369 $as_echo_n "(cached) " >&6
19370else
19371 ac_check_lib_save_LIBS=$LIBS
19372LIBS="-ldld $LIBS"
19373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374/* end confdefs.h. */
19375
19376/* Override any GCC internal prototype to avoid an error.
19377 Use char because int might match the return type of a GCC
19378 builtin and then its argument prototype would still apply. */
19379#ifdef __cplusplus
19380extern "C"
19381#endif
19382char dld_link ();
19383int
19384main ()
19385{
19386return dld_link ();
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391if ac_fn_c_try_link "$LINENO"; then :
19392 ac_cv_lib_dld_dld_link=yes
19393else
19394 ac_cv_lib_dld_dld_link=no
19395fi
19396rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19401$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19402if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19403
19404$as_echo "#define HAVE_DLD 1" >>confdefs.h
19405
19406 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19407fi
19408
19409
19410
19411
19412LT_DLPREOPEN=
19413if test -n "$LT_DLLOADERS"
19414then
19415 for lt_loader in $LT_DLLOADERS; do
19416 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19417 done
19418
19419$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19420
19421fi
19422
19423
19424LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19425
19426
19427ac_ext=c
19428ac_cpp='$CPP $CPPFLAGS'
19429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431ac_compiler_gnu=$ac_cv_c_compiler_gnu
19432
19433
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19435$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19436if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
19438else
19439 lt_cv_sys_symbol_underscore=no
19440 cat > conftest.$ac_ext <<_LT_EOF
19441void nm_test_func(){}
19442int main(){nm_test_func;return 0;}
19443_LT_EOF
19444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19445 (eval $ac_compile) 2>&5
19446 ac_status=$?
19447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19448 test $ac_status = 0; }; then
19449 # Now try to grab the symbols.
19450 ac_nlist=conftest.nm
19451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19453 ac_status=$?
19454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19455 test $ac_status = 0; } && test -s "$ac_nlist"; then
19456 # See whether the symbols have a leading underscore.
19457 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19458 lt_cv_sys_symbol_underscore=yes
19459 else
19460 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19461 :
19462 else
19463 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19464 fi
19465 fi
19466 else
19467 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19468 fi
19469 else
19470 echo "configure: failed program was:" >&5
19471 cat conftest.c >&5
19472 fi
19473 rm -rf conftest*
19474
19475fi
19476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19477$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19478 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19479
19480
19481if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19482 if test x"$libltdl_cv_func_dlopen" = xyes ||
19483 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19485$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19486if test "${libltdl_cv_need_uscore+set}" = set; then :
19487 $as_echo_n "(cached) " >&6
19488else
19489 libltdl_cv_need_uscore=unknown
19490 save_LIBS="$LIBS"
19491 LIBS="$LIBS $LIBADD_DLOPEN"
19492 if test "$cross_compiling" = yes; then :
19493 libltdl_cv_need_uscore=cross
19494else
19495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19496 lt_status=$lt_dlunknown
19497 cat > conftest.$ac_ext <<_LT_EOF
cristy23f7a922010-10-11 00:27:48 +000019498#line 19498 "configure"
cristy73bd4a52010-10-05 11:24:23 +000019499#include "confdefs.h"
19500
19501#if HAVE_DLFCN_H
19502#include <dlfcn.h>
19503#endif
19504
19505#include <stdio.h>
19506
19507#ifdef RTLD_GLOBAL
19508# define LT_DLGLOBAL RTLD_GLOBAL
19509#else
19510# ifdef DL_GLOBAL
19511# define LT_DLGLOBAL DL_GLOBAL
19512# else
19513# define LT_DLGLOBAL 0
19514# endif
19515#endif
19516
19517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19518 find out it does not work in some platform. */
19519#ifndef LT_DLLAZY_OR_NOW
19520# ifdef RTLD_LAZY
19521# define LT_DLLAZY_OR_NOW RTLD_LAZY
19522# else
19523# ifdef DL_LAZY
19524# define LT_DLLAZY_OR_NOW DL_LAZY
19525# else
19526# ifdef RTLD_NOW
19527# define LT_DLLAZY_OR_NOW RTLD_NOW
19528# else
19529# ifdef DL_NOW
19530# define LT_DLLAZY_OR_NOW DL_NOW
19531# else
19532# define LT_DLLAZY_OR_NOW 0
19533# endif
19534# endif
19535# endif
19536# endif
19537#endif
19538
19539void fnord() { int i=42;}
19540int main ()
19541{
19542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19543 int status = $lt_dlunknown;
19544
19545 if (self)
19546 {
19547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19548 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19549 /* dlclose (self); */
19550 }
19551 else
19552 puts (dlerror ());
19553
19554 return status;
19555}
19556_LT_EOF
19557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19558 (eval $ac_link) 2>&5
19559 ac_status=$?
19560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19561 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19562 (./conftest; exit; ) >&5 2>/dev/null
19563 lt_status=$?
19564 case x$lt_status in
19565 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19566 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19567 x$lt_dlunknown|x*) ;;
19568 esac
19569 else :
19570 # compilation failed
19571
19572 fi
19573fi
19574rm -fr conftest*
19575
19576 LIBS="$save_LIBS"
19577
19578fi
19579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19580$as_echo "$libltdl_cv_need_uscore" >&6; }
19581 fi
19582fi
19583
19584if test x"$libltdl_cv_need_uscore" = xyes; then
19585
19586$as_echo "#define NEED_USCORE 1" >>confdefs.h
19587
19588fi
19589
19590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19591$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19592if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19593 $as_echo_n "(cached) " >&6
19594else
19595 # PORTME does your system automatically load deplibs for dlopen?
19596 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19597 # For now, we just catch OSes we know something about -- in the
19598 # future, we'll try test this programmatically.
19599 lt_cv_sys_dlopen_deplibs=unknown
19600 case $host_os in
19601 aix3*|aix4.1.*|aix4.2.*)
19602 # Unknown whether this is true for these versions of AIX, but
19603 # we want this `case' here to explicitly catch those versions.
19604 lt_cv_sys_dlopen_deplibs=unknown
19605 ;;
19606 aix[4-9]*)
19607 lt_cv_sys_dlopen_deplibs=yes
19608 ;;
19609 amigaos*)
19610 case $host_cpu in
19611 powerpc)
19612 lt_cv_sys_dlopen_deplibs=no
19613 ;;
19614 esac
19615 ;;
19616 darwin*)
19617 # Assuming the user has installed a libdl from somewhere, this is true
19618 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19619 lt_cv_sys_dlopen_deplibs=yes
19620 ;;
19621 freebsd* | dragonfly*)
19622 lt_cv_sys_dlopen_deplibs=yes
19623 ;;
19624 gnu* | linux* | k*bsd*-gnu)
19625 # GNU and its variants, using gnu ld.so (Glibc)
19626 lt_cv_sys_dlopen_deplibs=yes
19627 ;;
19628 hpux10*|hpux11*)
19629 lt_cv_sys_dlopen_deplibs=yes
19630 ;;
19631 interix*)
19632 lt_cv_sys_dlopen_deplibs=yes
19633 ;;
19634 irix[12345]*|irix6.[01]*)
19635 # Catch all versions of IRIX before 6.2, and indicate that we don't
19636 # know how it worked for any of those versions.
19637 lt_cv_sys_dlopen_deplibs=unknown
19638 ;;
19639 irix*)
19640 # The case above catches anything before 6.2, and it's known that
19641 # at 6.2 and later dlopen does load deplibs.
19642 lt_cv_sys_dlopen_deplibs=yes
19643 ;;
19644 netbsd*)
19645 lt_cv_sys_dlopen_deplibs=yes
19646 ;;
19647 openbsd*)
19648 lt_cv_sys_dlopen_deplibs=yes
19649 ;;
19650 osf[1234]*)
19651 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19652 # it did *not* use an RPATH in a shared library to find objects the
19653 # library depends on, so we explicitly say `no'.
19654 lt_cv_sys_dlopen_deplibs=no
19655 ;;
19656 osf5.0|osf5.0a|osf5.1)
19657 # dlopen *does* load deplibs and with the right loader patch applied
19658 # it even uses RPATH in a shared library to search for shared objects
19659 # that the library depends on, but there's no easy way to know if that
19660 # patch is installed. Since this is the case, all we can really
19661 # say is unknown -- it depends on the patch being installed. If
19662 # it is, this changes to `yes'. Without it, it would be `no'.
19663 lt_cv_sys_dlopen_deplibs=unknown
19664 ;;
19665 osf*)
19666 # the two cases above should catch all versions of osf <= 5.1. Read
19667 # the comments above for what we know about them.
19668 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19669 # is used to find them so we can finally say `yes'.
19670 lt_cv_sys_dlopen_deplibs=yes
19671 ;;
19672 qnx*)
19673 lt_cv_sys_dlopen_deplibs=yes
19674 ;;
19675 solaris*)
19676 lt_cv_sys_dlopen_deplibs=yes
19677 ;;
19678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19679 libltdl_cv_sys_dlopen_deplibs=yes
19680 ;;
19681 esac
19682
19683fi
19684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19685$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19686if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19687
19688$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19689
19690fi
19691
19692:
19693
19694for ac_header in argz.h
19695do :
19696 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19697"
19698if test "x$ac_cv_header_argz_h" = x""yes; then :
19699 cat >>confdefs.h <<_ACEOF
19700#define HAVE_ARGZ_H 1
19701_ACEOF
19702
19703fi
19704
19705done
19706
19707
19708ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19709# include <argz.h>
19710#endif
19711"
19712if test "x$ac_cv_type_error_t" = x""yes; then :
19713
19714cat >>confdefs.h <<_ACEOF
19715#define HAVE_ERROR_T 1
19716_ACEOF
19717
19718
19719else
19720
19721$as_echo "#define error_t int" >>confdefs.h
19722
19723
19724$as_echo "#define __error_t_defined 1" >>confdefs.h
19725
19726fi
19727
19728
19729ARGZ_H=
19730for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19731 argz_next argz_stringify
19732do :
19733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19734ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19735eval as_val=\$$as_ac_var
19736 if test "x$as_val" = x""yes; then :
19737 cat >>confdefs.h <<_ACEOF
19738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19739_ACEOF
19740
19741else
19742 ARGZ_H=argz.h;
19743
19744 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19745
19746fi
19747done
19748
19749
19750if test -z "$ARGZ_H"; then :
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19752$as_echo_n "checking if argz actually works... " >&6; }
19753if test "${lt_cv_sys_argz_works+set}" = set; then :
19754 $as_echo_n "(cached) " >&6
19755else
19756 case $host_os in #(
19757 *cygwin*)
19758 lt_cv_sys_argz_works=no
19759 if test "$cross_compiling" != no; then
19760 lt_cv_sys_argz_works="guessing no"
19761 else
19762 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19763 save_IFS=$IFS
19764 IFS=-.
19765 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19766 IFS=$save_IFS
19767 lt_os_major=${2-0}
19768 lt_os_minor=${3-0}
19769 lt_os_micro=${4-0}
19770 if test "$lt_os_major" -gt 1 \
19771 || { test "$lt_os_major" -eq 1 \
19772 && { test "$lt_os_minor" -gt 5 \
19773 || { test "$lt_os_minor" -eq 5 \
19774 && test "$lt_os_micro" -gt 24; }; }; }; then
19775 lt_cv_sys_argz_works=yes
19776 fi
19777 fi
19778 ;; #(
19779 *) lt_cv_sys_argz_works=yes ;;
19780 esac
19781fi
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19783$as_echo "$lt_cv_sys_argz_works" >&6; }
19784 if test $lt_cv_sys_argz_works = yes; then :
19785
19786$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19787
19788else
19789 ARGZ_H=argz.h
19790
19791
19792 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19793
19794fi
19795fi
19796
19797
19798
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19800$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19801if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19802 $as_echo_n "(cached) " >&6
19803else
19804 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19805 libltdl_cv_preloaded_symbols=yes
19806 else
19807 libltdl_cv_preloaded_symbols=no
19808 fi
19809
19810fi
19811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19812$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19813if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19814
19815$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19816
19817fi
19818
19819# Set options
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831# Check whether --with-included_ltdl was given.
19832if test "${with_included_ltdl+set}" = set; then :
19833 withval=$with_included_ltdl;
19834fi
19835
19836
19837if test "x$with_included_ltdl" != xyes; then
19838 # We are not being forced to use the included libltdl sources, so
19839 # decide whether there is a useful installed version we can use.
19840 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19841
19842"
19843if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19844 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19845 #include <ltdl.h>
19846"
19847if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19849$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19850if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19851 $as_echo_n "(cached) " >&6
19852else
19853 ac_check_lib_save_LIBS=$LIBS
19854LIBS="-lltdl $LIBS"
19855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856/* end confdefs.h. */
19857
19858/* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19861#ifdef __cplusplus
19862extern "C"
19863#endif
19864char lt_dladvise_preload ();
19865int
19866main ()
19867{
19868return lt_dladvise_preload ();
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873if ac_fn_c_try_link "$LINENO"; then :
19874 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19875else
19876 ac_cv_lib_ltdl_lt_dladvise_preload=no
19877fi
19878rm -f core conftest.err conftest.$ac_objext \
19879 conftest$ac_exeext conftest.$ac_ext
19880LIBS=$ac_check_lib_save_LIBS
19881fi
19882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19883$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19884if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19885 with_included_ltdl=no
19886else
19887 with_included_ltdl=yes
19888fi
19889
19890else
19891 with_included_ltdl=yes
19892fi
19893
19894else
19895 with_included_ltdl=yes
19896fi
19897
19898
19899fi
19900
19901
19902
19903
19904# Check whether --with-ltdl_include was given.
19905if test "${with_ltdl_include+set}" = set; then :
19906 withval=$with_ltdl_include;
19907fi
19908
19909
19910if test -n "$with_ltdl_include"; then
19911 if test -f "$with_ltdl_include/ltdl.h"; then :
19912 else
19913 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19914 fi
19915else
19916 with_ltdl_include=no
19917fi
19918
19919
19920# Check whether --with-ltdl_lib was given.
19921if test "${with_ltdl_lib+set}" = set; then :
19922 withval=$with_ltdl_lib;
19923fi
19924
19925
19926if test -n "$with_ltdl_lib"; then
19927 if test -f "$with_ltdl_lib/libltdl.la"; then :
19928 else
19929 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19930 fi
19931else
19932 with_ltdl_lib=no
19933fi
19934
19935case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19936 ,yes,no,no,)
19937 case $enable_ltdl_convenience in
19938 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19939 "") enable_ltdl_convenience=yes
19940 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19941esac
19942LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19943LTDLDEPS=$LIBLTDL
19944LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19945
19946
19947
19948
19949
19950# For backwards non-gettext consistent compatibility...
19951INCLTDL="$LTDLINCL"
19952
19953
19954 ;;
19955 ,no,no,no,)
19956 # If the included ltdl is not to be used, then use the
19957 # preinstalled libltdl we found.
19958
19959$as_echo "#define HAVE_LTDL 1" >>confdefs.h
19960
19961 LIBLTDL=-lltdl
19962 LTDLDEPS=
19963 LTDLINCL=
19964 ;;
19965 ,no*,no,*)
19966 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19967 ;;
19968 *) with_included_ltdl=no
19969 LIBLTDL="-L$with_ltdl_lib -lltdl"
19970 LTDLDEPS=
19971 LTDLINCL="-I$with_ltdl_include"
19972 ;;
19973esac
19974INCLTDL="$LTDLINCL"
19975
19976# Report our decision...
19977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19978$as_echo_n "checking where to find libltdl headers... " >&6; }
19979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19980$as_echo "$LTDLINCL" >&6; }
19981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19982$as_echo_n "checking where to find libltdl library... " >&6; }
19983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19984$as_echo "$LIBLTDL" >&6; }
19985
19986
19987
19988# Check whether --enable-ltdl-install was given.
19989if test "${enable_ltdl_install+set}" = set; then :
19990 enableval=$enable_ltdl_install;
19991fi
19992
19993
19994case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19995 *yes*) ;;
19996 *) enable_ltdl_convenience=yes ;;
19997esac
19998
19999 if test x"${enable_ltdl_install-no}" != xno; then
20000 INSTALL_LTDL_TRUE=
20001 INSTALL_LTDL_FALSE='#'
20002else
20003 INSTALL_LTDL_TRUE='#'
20004 INSTALL_LTDL_FALSE=
20005fi
20006
20007 if test x"${enable_ltdl_convenience-no}" != xno; then
20008 CONVENIENCE_LTDL_TRUE=
20009 CONVENIENCE_LTDL_FALSE='#'
20010else
20011 CONVENIENCE_LTDL_TRUE='#'
20012 CONVENIENCE_LTDL_FALSE=
20013fi
20014
20015
20016
20017
20018
20019
20020
20021# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20022# the user used. This is so that ltdl.h can pick up the parent projects
20023# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20024# definitions required by ltdl.c.
20025# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20026
20027
20028
20029for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20030do :
20031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20032ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20033"
20034eval as_val=\$$as_ac_Header
20035 if test "x$as_val" = x""yes; then :
20036 cat >>confdefs.h <<_ACEOF
20037#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20038_ACEOF
20039
20040fi
20041
20042done
20043
20044
20045for ac_func in closedir opendir readdir
20046do :
20047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20048ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20049eval as_val=\$$as_ac_var
20050 if test "x$as_val" = x""yes; then :
20051 cat >>confdefs.h <<_ACEOF
20052#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20053_ACEOF
20054
20055else
20056
20057
20058 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20059
20060fi
20061done
20062
20063for ac_func in strlcat strlcpy
20064do :
20065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20067eval as_val=\$$as_ac_var
20068 if test "x$as_val" = x""yes; then :
20069 cat >>confdefs.h <<_ACEOF
20070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20071_ACEOF
20072
20073else
20074
20075
20076 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20077
20078fi
20079done
20080
20081
20082
20083cat >>confdefs.h <<_ACEOF
20084#define LT_LIBEXT "$libext"
20085_ACEOF
20086
20087
20088name=ltdl
20089LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20090
20091
20092
20093
20094
20095
20096
20097
20098# Only expand once:
20099
20100
cristy3ed852e2009-09-05 21:47:34 +000020101
20102# Check to see if building shared libraries
20103libtool_build_shared_libs='no'
20104if test "$enable_shared" = 'yes'; then
20105 libtool_build_shared_libs='yes'
20106fi
20107
20108# Check to see if building static libraries
20109libtool_build_static_libs='no'
20110if test "$enable_static" = 'yes'; then
20111 libtool_build_static_libs='yes'
20112fi
20113
cristy73bd4a52010-10-05 11:24:23 +000020114 if test "${libtool_build_shared_libs}" = 'yes'; then
20115 WITH_SHARED_LIBS_TRUE=
20116 WITH_SHARED_LIBS_FALSE='#'
20117else
20118 WITH_SHARED_LIBS_TRUE='#'
20119 WITH_SHARED_LIBS_FALSE=
20120fi
20121
cristy3ed852e2009-09-05 21:47:34 +000020122#
20123# Enable support for building loadable modules
20124#
20125
20126# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020127if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020128 withval=$with_modules; with_modules=$withval
20129else
cristy5a1cefd2010-01-06 20:42:35 +000020130 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020131fi
20132
20133
20134# Only allow building loadable modules if we are building shared libraries
20135if test "$with_modules" != 'no' ; then
20136 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020137 { $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 +000020138$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20139 with_modules='no'
20140 fi
20141fi
20142if test "$with_modules" != 'no'; then
20143
cristy8b350f62009-11-15 23:12:43 +000020144$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020145
20146fi
cristy73bd4a52010-10-05 11:24:23 +000020147 if test "$with_modules" != 'no'; then
20148 WITH_MODULES_TRUE=
20149 WITH_MODULES_FALSE='#'
20150else
20151 WITH_MODULES_TRUE='#'
20152 WITH_MODULES_FALSE=
20153fi
20154
cristy3ed852e2009-09-05 21:47:34 +000020155
20156# Enable building/use of libltdl if we are building shared libraries regardless
20157# of whether modules are built or not.
20158with_ltdl='no'
20159if test "$libtool_build_shared_libs" != 'no'; then
20160 with_ltdl='yes'
20161fi
20162
cristy73bd4a52010-10-05 11:24:23 +000020163 if test "$with_ltdl" != 'no'; then
20164 WITH_LTDL_TRUE=
20165 WITH_LTDL_FALSE='#'
20166else
20167 WITH_LTDL_TRUE='#'
20168 WITH_LTDL_FALSE=
20169fi
20170
cristy3ed852e2009-09-05 21:47:34 +000020171if test "$with_ltdl" != 'no'; then
20172
cristy8b350f62009-11-15 23:12:43 +000020173$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020174
20175
20176 # Set DLLDFLAGS
20177 if test X"$enable_shared" = Xyes; then
20178 DLLDFLAGS=-export-dynamic
20179
20180 fi
20181fi
20182
20183# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020184# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020185# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020186if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020187 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20188else
20189 enable_delegate_build='no'
20190fi
20191
20192
20193# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020194if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020195 enableval=$enable_deprecated; enable_deprecated=$enableval
20196else
20197 enable_deprecated='no'
20198fi
20199
20200
20201if test "$enable_deprecated" = 'yes'; then
20202
cristy8b350f62009-11-15 23:12:43 +000020203$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020204
20205else
20206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20207fi
20208
20209# Build a version of ImageMagick which operates uninstalled.
20210# Used to build distributions located via MAGICK_HOME / executable path
20211# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020212if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 enableval=$enable_installed; enable_installed=$enableval
20214else
20215 enable_installed='yes'
20216fi
20217
20218
20219if test "$enable_installed" = 'yes'; then
20220
cristy8b350f62009-11-15 23:12:43 +000020221$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020222
20223else
20224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20225fi
20226
20227# Permit enciphering and deciphering image pixels.
20228# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020229if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020230 enableval=$enable_cipher; enable_cipher=$enableval
20231else
20232 enable_cipher='yes'
20233fi
20234
20235
20236if test "$enable_cipher" = 'yes'; then
20237
cristy8b350f62009-11-15 23:12:43 +000020238$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020239
20240fi
20241
20242# Build an embeddable version of ImageMagick.
20243# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020244if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020245 enableval=$enable_embeddable; enable_embeddable=$enableval
20246else
20247 enable_embeddable='no'
20248fi
20249
20250
20251if test "$enable_embeddable" = 'yes'; then
20252
cristy8b350f62009-11-15 23:12:43 +000020253$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020254
20255fi
20256
20257# Build a high dynamic range version of ImageMagick.
20258# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020259if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020260 enableval=$enable_hdri; enable_hdri=$enableval
20261else
20262 enable_hdri='no'
20263fi
20264
20265
20266MAGICK_HDRI=""
20267if test "$enable_hdri" = 'yes'; then
20268 MAGICK_HDRI="HDRI"
20269
cristy8b350f62009-11-15 23:12:43 +000020270$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020271
cristyfd9dcd42010-08-08 18:07:02 +000020272 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020273fi
20274
cristy3ed852e2009-09-05 21:47:34 +000020275# Build a version of ImageMagick with assert statements.
20276# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020277if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020278 enableval=$enable_assert; enable_assert=$enableval
20279else
20280 enable_assert='yes'
20281fi
20282
20283
20284if test "$enable_assert" = 'no'; then
20285
cristy8b350f62009-11-15 23:12:43 +000020286$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020287
20288fi
20289
20290# Add configure option --enable-maintainer-mode which enables dependency
20291# checking and generation useful to package maintainers. This is made an
20292# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020293
20294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20295$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20296 # Check whether --enable-maintainer-mode was given.
20297if test "${enable_maintainer_mode+set}" = set; then :
20298 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20299else
20300 USE_MAINTAINER_MODE=no
20301fi
20302
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20304$as_echo "$USE_MAINTAINER_MODE" >&6; }
20305 if test $USE_MAINTAINER_MODE = yes; then
20306 MAINTAINER_MODE_TRUE=
20307 MAINTAINER_MODE_FALSE='#'
20308else
20309 MAINTAINER_MODE_TRUE='#'
20310 MAINTAINER_MODE_FALSE=
20311fi
20312
20313 MAINT=$MAINTAINER_MODE_TRUE
20314
20315
cristy3ed852e2009-09-05 21:47:34 +000020316
20317
20318# Enable ccmalloc memory debugging support
20319# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020320if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020321 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20322else
20323 enable_ccmalloc='no'
20324fi
20325
20326
20327# Enable Electric Fence memory debugging support
20328# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020329if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020330 enableval=$enable_efence; enable_efence=$enableval
20331else
20332 enable_efence='no'
20333fi
20334
20335
20336# Enable prof-based profiling support
20337# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020338if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020339 enableval=$enable_prof; enable_prof=$enableval
20340else
20341 enable_prof='no'
20342fi
20343
20344
20345# Enable gprof-based profiling support
20346# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020347if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020348 enableval=$enable_gprof; enable_gprof=$enableval
20349else
20350 enable_gprof='no'
20351fi
20352
20353
20354# Enable gcov-based profiling support
20355# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020356if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020357 enableval=$enable_gcov; enable_gcov=$enableval
20358else
20359 enable_gcov='no'
20360fi
20361
20362
20363enable_profiling='no'
20364if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20365 enable_profiling='yes'
20366 if test "$libtool_build_shared_libs" = 'yes'; then
20367 echo "Warning: Can not profile code using shared libraries"
20368 fi
20369fi
20370
20371# Magick API method prefix
20372
20373# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020374if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020375 withval=$with_method_prefix; with_method_prefix=$enableval
20376else
20377 with_method_prefix=''
20378fi
20379
20380
20381if test "$with_method_prefix" != ''; then
20382
20383cat >>confdefs.h <<_ACEOF
20384#define NAMESPACE_PREFIX $with_method_prefix
20385_ACEOF
20386
20387fi
20388
20389# Number of bits in a Quantum
20390
20391# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020392if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020393 withval=$with_quantum_depth; with_quantum_depth=$withval
20394else
20395 with_quantum_depth=16
20396fi
20397
20398
20399if test "$with_quantum_depth" != '8'; then
20400 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20401fi
20402
20403case "${with_quantum_depth}" in
20404 8 ) ;;
20405 16 ) ;;
20406 32 ) ;;
20407 64 ) ;;
cristyf6fcb5d2010-09-24 01:19:13 +000020408 * ) { as_fn_set_status 16
20409as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020410esac
cristycdae12a2010-09-19 02:24:31 +000020411if test "$enable_hdri" = 'yes'; then
20412 with_quantum_depth=16
20413fi
cristy3ed852e2009-09-05 21:47:34 +000020414QUANTUM_DEPTH="$with_quantum_depth"
20415
20416cat >>confdefs.h <<_ACEOF
20417#define QUANTUM_DEPTH $QUANTUM_DEPTH
20418_ACEOF
20419
20420
20421# Set pixel cache threshold
20422
20423# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020424if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020425 withval=$with_cache; with_cache=$withval
20426else
20427 with_cache=''
20428fi
20429
20430
20431if test "$with_cache" != ''; then
20432
20433cat >>confdefs.h <<_ACEOF
20434#define PixelCacheThreshold $with_cache
20435_ACEOF
20436
20437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20438fi
20439
20440# Disable/Enable support for full delegate paths
20441
20442# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020443if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020444 withval=$with_frozenpaths; with_frozenpaths=$withval
20445else
20446 with_frozenpaths='no'
20447fi
20448
20449
20450# Enable build/install of Magick++
20451
20452# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020453if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020454 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20455else
20456 with_magick_plus_plus='yes'
20457fi
20458
20459
20460# Disable build/install of PerlMagick.
20461
20462# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020463if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020464 withval=$with_perl; with_perl=$withval
20465else
cristyb5f4e2f2010-04-25 00:49:11 +000020466 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020467fi
20468
20469
20470# Options to pass when configuring PerlMagick
20471
20472# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020473if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020474 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020475fi
20476
20477
cristy3ed852e2009-09-05 21:47:34 +000020478
20479# Enable umem, object-caching memory allocation library.
20480
20481# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020482if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020483 withval=$with_umem; with_umem=$withval
20484else
20485 with_umem='no'
20486fi
20487
20488if test "$with_umem" != 'yes' ; then
20489 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20490fi
20491
20492#
20493# Specify path to shared libstdc++ if not in normal location
20494#
20495
20496# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020497if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020498 withval=$with_libstdc; with_libstdc=$withval
20499else
20500 with_libstdc=''
20501fi
20502
20503
20504if test "$with_libstdc" != ''; then
20505 if test -d "$with_libstdc"; then
20506 LIBSTDCLDFLAGS="-L$with_libstdc"
20507 fi
20508fi
20509
20510
20511# Does gcc required -traditional?
20512if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020514$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020515if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020516 $as_echo_n "(cached) " >&6
20517else
20518 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020520/* end confdefs.h. */
20521#include <sgtty.h>
20522Autoconf TIOCGETP
20523_ACEOF
20524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020525 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020526 ac_cv_prog_gcc_traditional=yes
20527else
20528 ac_cv_prog_gcc_traditional=no
20529fi
20530rm -f conftest*
20531
20532
20533 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020535/* end confdefs.h. */
20536#include <termio.h>
20537Autoconf TCGETA
20538_ACEOF
20539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020540 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020541 ac_cv_prog_gcc_traditional=yes
20542fi
20543rm -f conftest*
20544
20545 fi
20546fi
cristy8b350f62009-11-15 23:12:43 +000020547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020548$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20549 if test $ac_cv_prog_gcc_traditional = yes; then
20550 CC="$CC -traditional"
20551 fi
20552fi
20553
20554
20555########
20556#
20557# Set defines required to build DLLs and modules using MinGW
20558#
20559########
20560# These options are set for multi-thread DLL module build
20561# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20562# module: _DLL
20563# executable/Magick++: _DLL _MAGICKMOD_
20564MODULE_EXTRA_CPPFLAGS=''
20565LIBRARY_EXTRA_CPPFLAGS=''
20566if test "${native_win32_build}" = 'yes'; then
20567 if test "${libtool_build_shared_libs}" = 'yes'; then
20568 CPPFLAGS="$CPPFLAGS -D_DLL"
20569 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20570 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20571 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20572 if test "$with_modules" = 'yes'; then
20573 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20574 else
20575 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20576 fi
20577 else
20578 CPPFLAGS="$CPPFLAGS -D_LIB"
20579 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20580 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20581 fi
20582 if test "$with_threads" = 'yes'; then
20583 CPPFLAGS="$CPPFLAGS -D_MT"
20584 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20585 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20586 fi
20587fi
20588
20589
20590
20591# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020593$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020594if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020595 $as_echo_n "(cached) " >&6
20596else
cristy8b350f62009-11-15 23:12:43 +000020597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020598/* end confdefs.h. */
20599#include <stdlib.h>
20600#include <stdarg.h>
20601#include <string.h>
20602#include <float.h>
20603
20604int
20605main ()
20606{
20607
20608 ;
20609 return 0;
20610}
20611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020612if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020613 ac_cv_header_stdc=yes
20614else
cristy8b350f62009-11-15 23:12:43 +000020615 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020616fi
cristy3ed852e2009-09-05 21:47:34 +000020617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618
20619if test $ac_cv_header_stdc = yes; then
20620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020622/* end confdefs.h. */
20623#include <string.h>
20624
20625_ACEOF
20626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020627 $EGREP "memchr" >/dev/null 2>&1; then :
20628
cristy3ed852e2009-09-05 21:47:34 +000020629else
20630 ac_cv_header_stdc=no
20631fi
20632rm -f conftest*
20633
20634fi
20635
20636if test $ac_cv_header_stdc = yes; then
20637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020639/* end confdefs.h. */
20640#include <stdlib.h>
20641
20642_ACEOF
20643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020644 $EGREP "free" >/dev/null 2>&1; then :
20645
cristy3ed852e2009-09-05 21:47:34 +000020646else
20647 ac_cv_header_stdc=no
20648fi
20649rm -f conftest*
20650
20651fi
20652
20653if test $ac_cv_header_stdc = yes; then
20654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020655 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020656 :
20657else
cristy8b350f62009-11-15 23:12:43 +000020658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020659/* end confdefs.h. */
20660#include <ctype.h>
20661#include <stdlib.h>
20662#if ((' ' & 0x0FF) == 0x020)
20663# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20664# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20665#else
20666# define ISLOWER(c) \
20667 (('a' <= (c) && (c) <= 'i') \
20668 || ('j' <= (c) && (c) <= 'r') \
20669 || ('s' <= (c) && (c) <= 'z'))
20670# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20671#endif
20672
20673#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20674int
20675main ()
20676{
20677 int i;
20678 for (i = 0; i < 256; i++)
20679 if (XOR (islower (i), ISLOWER (i))
20680 || toupper (i) != TOUPPER (i))
20681 return 2;
20682 return 0;
20683}
20684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020685if ac_fn_c_try_run "$LINENO"; then :
20686
cristy3ed852e2009-09-05 21:47:34 +000020687else
cristy8b350f62009-11-15 23:12:43 +000020688 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020689fi
cristy8b350f62009-11-15 23:12:43 +000020690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20691 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020692fi
20693
cristy3ed852e2009-09-05 21:47:34 +000020694fi
20695fi
cristy8b350f62009-11-15 23:12:43 +000020696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020697$as_echo "$ac_cv_header_stdc" >&6; }
20698if test $ac_cv_header_stdc = yes; then
20699
cristy8b350f62009-11-15 23:12:43 +000020700$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020701
20702fi
20703
20704if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020705 { $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 +000020706 header files. Compilation cannot proceed. Please install the ANSI C
20707 headers and rerun this script." >&5
20708$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20709 header files. Compilation cannot proceed. Please install the ANSI C
20710 headers and rerun this script." >&2;};
20711fi
cristya0b81c32010-01-22 02:54:33 +000020712
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20714$as_echo_n "checking whether to enable assertions... " >&6; }
20715 # Check whether --enable-assert was given.
20716if test "${enable_assert+set}" = set; then :
20717 enableval=$enable_assert; ac_enable_assert=$enableval
20718 if test "x$enableval" = xno; then :
20719
20720$as_echo "#define NDEBUG 1" >>confdefs.h
20721
20722elif test "x$enableval" != xyes; then :
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20724$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20725 ac_enable_assert=yes
20726fi
20727else
20728 ac_enable_assert=yes
20729fi
20730
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20732$as_echo "$ac_enable_assert" >&6; }
20733
cristy3ed852e2009-09-05 21:47:34 +000020734ac_header_dirent=no
20735for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20736 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020738$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020740 $as_echo_n "(cached) " >&6
20741else
cristy8b350f62009-11-15 23:12:43 +000020742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020743/* end confdefs.h. */
20744#include <sys/types.h>
20745#include <$ac_hdr>
20746
20747int
20748main ()
20749{
20750if ((DIR *) 0)
20751return 0;
20752 ;
20753 return 0;
20754}
20755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020756if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020757 eval "$as_ac_Header=yes"
20758else
cristy8b350f62009-11-15 23:12:43 +000020759 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020760fi
cristy3ed852e2009-09-05 21:47:34 +000020761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762fi
cristy8b350f62009-11-15 23:12:43 +000020763eval ac_res=\$$as_ac_Header
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020765$as_echo "$ac_res" >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020766eval as_val=\$$as_ac_Header
20767 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020768 cat >>confdefs.h <<_ACEOF
20769#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20770_ACEOF
20771
20772ac_header_dirent=$ac_hdr; break
20773fi
20774
20775done
20776# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20777if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020779$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020780if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020781 $as_echo_n "(cached) " >&6
20782else
20783 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020785/* end confdefs.h. */
20786
20787/* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20790#ifdef __cplusplus
20791extern "C"
20792#endif
20793char opendir ();
20794int
20795main ()
20796{
20797return opendir ();
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802for ac_lib in '' dir; do
20803 if test -z "$ac_lib"; then
20804 ac_res="none required"
20805 else
20806 ac_res=-l$ac_lib
20807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20808 fi
cristy8b350f62009-11-15 23:12:43 +000020809 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020810 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020811fi
cristy8b350f62009-11-15 23:12:43 +000020812rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext
20814 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020815 break
20816fi
20817done
cristy8b350f62009-11-15 23:12:43 +000020818if test "${ac_cv_search_opendir+set}" = set; then :
20819
cristy3ed852e2009-09-05 21:47:34 +000020820else
20821 ac_cv_search_opendir=no
20822fi
20823rm conftest.$ac_ext
20824LIBS=$ac_func_search_save_LIBS
20825fi
cristy8b350f62009-11-15 23:12:43 +000020826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020827$as_echo "$ac_cv_search_opendir" >&6; }
20828ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020829if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20831
20832fi
20833
20834else
cristy8b350f62009-11-15 23:12:43 +000020835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020836$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020837if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020838 $as_echo_n "(cached) " >&6
20839else
20840 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020842/* end confdefs.h. */
20843
20844/* Override any GCC internal prototype to avoid an error.
20845 Use char because int might match the return type of a GCC
20846 builtin and then its argument prototype would still apply. */
20847#ifdef __cplusplus
20848extern "C"
20849#endif
20850char opendir ();
20851int
20852main ()
20853{
20854return opendir ();
20855 ;
20856 return 0;
20857}
20858_ACEOF
20859for ac_lib in '' x; do
20860 if test -z "$ac_lib"; then
20861 ac_res="none required"
20862 else
20863 ac_res=-l$ac_lib
20864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20865 fi
cristy8b350f62009-11-15 23:12:43 +000020866 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020867 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020868fi
cristy8b350f62009-11-15 23:12:43 +000020869rm -f core conftest.err conftest.$ac_objext \
20870 conftest$ac_exeext
20871 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020872 break
20873fi
20874done
cristy8b350f62009-11-15 23:12:43 +000020875if test "${ac_cv_search_opendir+set}" = set; then :
20876
cristy3ed852e2009-09-05 21:47:34 +000020877else
20878 ac_cv_search_opendir=no
20879fi
20880rm conftest.$ac_ext
20881LIBS=$ac_func_search_save_LIBS
20882fi
cristy8b350f62009-11-15 23:12:43 +000020883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020884$as_echo "$ac_cv_search_opendir" >&6; }
20885ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020886if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20888
20889fi
20890
20891fi
20892
20893
20894# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020895for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000020896do :
20897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20898ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000020899eval as_val=\$$as_ac_Header
20900 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020901 cat >>confdefs.h <<_ACEOF
20902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20903_ACEOF
20904
20905fi
20906
20907done
20908
20909
20910########
20911#
20912# Checks for typedefs, structures, and compiler characteristics.
20913#
20914########
20915
cristy8b350f62009-11-15 23:12:43 +000020916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020917$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020918if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020919 $as_echo_n "(cached) " >&6
20920else
cristy8b350f62009-11-15 23:12:43 +000020921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020922/* end confdefs.h. */
20923
20924#include <stdbool.h>
20925#ifndef bool
20926 "error: bool is not defined"
20927#endif
20928#ifndef false
20929 "error: false is not defined"
20930#endif
20931#if false
20932 "error: false is not 0"
20933#endif
20934#ifndef true
20935 "error: true is not defined"
20936#endif
20937#if true != 1
20938 "error: true is not 1"
20939#endif
20940#ifndef __bool_true_false_are_defined
20941 "error: __bool_true_false_are_defined is not defined"
20942#endif
20943
20944 struct s { _Bool s: 1; _Bool t; } s;
20945
20946 char a[true == 1 ? 1 : -1];
20947 char b[false == 0 ? 1 : -1];
20948 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20949 char d[(bool) 0.5 == true ? 1 : -1];
20950 bool e = &s;
20951 char f[(_Bool) 0.0 == false ? 1 : -1];
20952 char g[true];
20953 char h[sizeof (_Bool)];
20954 char i[sizeof s.t];
20955 enum { j = false, k = true, l = false * true, m = true * 256 };
20956 /* The following fails for
20957 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20958 _Bool n[m];
20959 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20960 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20961# if defined __xlc__ || defined __GNUC__
20962 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20963 reported by James Lemley on 2005-10-05; see
20964 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20965 This test is not quite right, since xlc is allowed to
20966 reject this program, as the initializer for xlcbug is
20967 not one of the forms that C requires support for.
20968 However, doing the test right would require a runtime
20969 test, and that would make cross-compilation harder.
20970 Let us hope that IBM fixes the xlc bug, and also adds
20971 support for this kind of constant expression. In the
20972 meantime, this test will reject xlc, which is OK, since
20973 our stdbool.h substitute should suffice. We also test
20974 this with GCC, where it should work, to detect more
20975 quickly whether someone messes up the test in the
20976 future. */
20977 char digs[] = "0123456789";
20978 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20979# endif
20980 /* Catch a bug in an HP-UX C compiler. See
20981 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20982 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20983 */
20984 _Bool q = true;
20985 _Bool *pq = &q;
20986
20987int
20988main ()
20989{
20990
20991 *pq |= q;
20992 *pq |= ! q;
20993 /* Refer to every declared value, to avoid compiler optimizations. */
20994 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20995 + !m + !n + !o + !p + !q + !pq);
20996
20997 ;
20998 return 0;
20999}
21000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021001if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021002 ac_cv_header_stdbool_h=yes
21003else
cristy8b350f62009-11-15 23:12:43 +000021004 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021005fi
cristy3ed852e2009-09-05 21:47:34 +000021006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007fi
cristy8b350f62009-11-15 23:12:43 +000021008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021009$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021010ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21011if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021012
21013cat >>confdefs.h <<_ACEOF
21014#define HAVE__BOOL 1
21015_ACEOF
21016
21017
21018fi
21019
21020if test $ac_cv_header_stdbool_h = yes; then
21021
cristy8b350f62009-11-15 23:12:43 +000021022$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021023
21024fi
21025
cristy8b350f62009-11-15 23:12:43 +000021026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021027$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021028if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021029 $as_echo_n "(cached) " >&6
21030else
cristy8b350f62009-11-15 23:12:43 +000021031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021032/* end confdefs.h. */
21033
21034int
21035main ()
21036{
21037
21038volatile int x;
21039int * volatile y = (int *) 0;
21040return !x && !y;
21041 ;
21042 return 0;
21043}
21044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021046 ac_cv_c_volatile=yes
21047else
cristy8b350f62009-11-15 23:12:43 +000021048 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021049fi
cristy3ed852e2009-09-05 21:47:34 +000021050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051fi
cristy8b350f62009-11-15 23:12:43 +000021052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021053$as_echo "$ac_cv_c_volatile" >&6; }
21054if test $ac_cv_c_volatile = no; then
21055
cristy8b350f62009-11-15 23:12:43 +000021056$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021057
21058fi
21059
cristy8b350f62009-11-15 23:12:43 +000021060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021061$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021062if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021063 $as_echo_n "(cached) " >&6
21064else
cristy8b350f62009-11-15 23:12:43 +000021065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021066/* end confdefs.h. */
21067#define x(y) #y
21068
21069char *s = x(teststring);
21070_ACEOF
21071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021072 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 ac_cv_c_stringize=no
21074else
21075 ac_cv_c_stringize=yes
21076fi
21077rm -f conftest*
21078
21079fi
cristy8b350f62009-11-15 23:12:43 +000021080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021081$as_echo "$ac_cv_c_stringize" >&6; }
21082if test $ac_cv_c_stringize = yes; then
21083
cristy8b350f62009-11-15 23:12:43 +000021084$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021085
21086fi
21087
cristy8b350f62009-11-15 23:12:43 +000021088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021089$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021090if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021091 $as_echo_n "(cached) " >&6
21092else
cristy8b350f62009-11-15 23:12:43 +000021093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021094/* end confdefs.h. */
21095#include <sys/types.h>
21096#include <sys/stat.h>
21097
21098#if defined S_ISBLK && defined S_IFDIR
21099extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21100#endif
21101
21102#if defined S_ISBLK && defined S_IFCHR
21103extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21104#endif
21105
21106#if defined S_ISLNK && defined S_IFREG
21107extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21108#endif
21109
21110#if defined S_ISSOCK && defined S_IFREG
21111extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21112#endif
21113
21114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021115if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021116 ac_cv_header_stat_broken=no
21117else
cristy8b350f62009-11-15 23:12:43 +000021118 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021119fi
cristy3ed852e2009-09-05 21:47:34 +000021120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121fi
cristy8b350f62009-11-15 23:12:43 +000021122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021123$as_echo "$ac_cv_header_stat_broken" >&6; }
21124if test $ac_cv_header_stat_broken = yes; then
21125
cristy8b350f62009-11-15 23:12:43 +000021126$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021127
21128fi
21129
cristy8b350f62009-11-15 23:12:43 +000021130{ $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 +000021131$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021132if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021133 $as_echo_n "(cached) " >&6
21134else
cristy8b350f62009-11-15 23:12:43 +000021135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021136/* end confdefs.h. */
21137#include <sys/types.h>
21138#include <sys/time.h>
21139#include <time.h>
21140
21141int
21142main ()
21143{
21144if ((struct tm *) 0)
21145return 0;
21146 ;
21147 return 0;
21148}
21149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021150if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021151 ac_cv_header_time=yes
21152else
cristy8b350f62009-11-15 23:12:43 +000021153 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021154fi
cristy3ed852e2009-09-05 21:47:34 +000021155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156fi
cristy8b350f62009-11-15 23:12:43 +000021157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021158$as_echo "$ac_cv_header_time" >&6; }
21159if test $ac_cv_header_time = yes; then
21160
cristy8b350f62009-11-15 23:12:43 +000021161$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021162
21163fi
21164
cristy8b350f62009-11-15 23:12:43 +000021165{ $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 +000021166$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021167if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021168 $as_echo_n "(cached) " >&6
21169else
cristy8b350f62009-11-15 23:12:43 +000021170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021171/* end confdefs.h. */
21172#include <sys/types.h>
21173#include <time.h>
21174
21175int
21176main ()
21177{
21178struct tm tm;
21179 int *p = &tm.tm_sec;
21180 return !p;
21181 ;
21182 return 0;
21183}
21184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021185if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021186 ac_cv_struct_tm=time.h
21187else
cristy8b350f62009-11-15 23:12:43 +000021188 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021189fi
cristy3ed852e2009-09-05 21:47:34 +000021190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191fi
cristy8b350f62009-11-15 23:12:43 +000021192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021193$as_echo "$ac_cv_struct_tm" >&6; }
21194if test $ac_cv_struct_tm = sys/time.h; then
21195
cristy8b350f62009-11-15 23:12:43 +000021196$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021197
21198fi
21199
cristy92703d82010-04-26 00:18:18 +000021200ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21201#include <$ac_cv_struct_tm>
21202
21203"
21204if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21205
21206cat >>confdefs.h <<_ACEOF
21207#define HAVE_STRUCT_TM_TM_ZONE 1
21208_ACEOF
21209
21210
21211fi
21212
21213if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21214
21215$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21216
21217else
21218 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21219"
21220if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21221 ac_have_decl=1
21222else
21223 ac_have_decl=0
21224fi
21225
21226cat >>confdefs.h <<_ACEOF
21227#define HAVE_DECL_TZNAME $ac_have_decl
21228_ACEOF
21229
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21231$as_echo_n "checking for tzname... " >&6; }
21232if test "${ac_cv_var_tzname+set}" = set; then :
21233 $as_echo_n "(cached) " >&6
21234else
21235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236/* end confdefs.h. */
21237#include <time.h>
21238#if !HAVE_DECL_TZNAME
21239extern char *tzname[];
21240#endif
21241
21242int
21243main ()
21244{
21245return tzname[0][0];
21246 ;
21247 return 0;
21248}
21249_ACEOF
21250if ac_fn_c_try_link "$LINENO"; then :
21251 ac_cv_var_tzname=yes
21252else
21253 ac_cv_var_tzname=no
21254fi
21255rm -f core conftest.err conftest.$ac_objext \
21256 conftest$ac_exeext conftest.$ac_ext
21257fi
21258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21259$as_echo "$ac_cv_var_tzname" >&6; }
21260 if test $ac_cv_var_tzname = yes; then
21261
21262$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21263
21264 fi
21265fi
21266
cristy8b350f62009-11-15 23:12:43 +000021267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021268$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021269if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021270 $as_echo_n "(cached) " >&6
21271else
21272 echo '#! /bin/cat
21273exit 69
21274' >conftest
21275chmod u+x conftest
21276(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21277if test $? -ne 69; then
21278 ac_cv_sys_interpreter=yes
21279else
21280 ac_cv_sys_interpreter=no
21281fi
21282rm -f conftest
21283fi
cristy8b350f62009-11-15 23:12:43 +000021284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021285$as_echo "$ac_cv_sys_interpreter" >&6; }
21286interpval=$ac_cv_sys_interpreter
21287
21288
cristy3ed852e2009-09-05 21:47:34 +000021289# If the C compiler supports the keyword inline, do nothing. Otherwise
21290# define inline to __inline__ or __inline if it accepts one of those,
21291# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021293$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021294if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021295 $as_echo_n "(cached) " >&6
21296else
21297 ac_cv_c_inline=no
21298for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021300/* end confdefs.h. */
21301#ifndef __cplusplus
21302typedef int foo_t;
21303static $ac_kw foo_t static_foo () {return 0; }
21304$ac_kw foo_t foo () {return 0; }
21305#endif
21306
21307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021308if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021309 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021310fi
cristy3ed852e2009-09-05 21:47:34 +000021311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 test "$ac_cv_c_inline" != no && break
21313done
21314
21315fi
cristy8b350f62009-11-15 23:12:43 +000021316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021317$as_echo "$ac_cv_c_inline" >&6; }
21318
cristy3ed852e2009-09-05 21:47:34 +000021319case $ac_cv_c_inline in
21320 inline | yes) ;;
21321 *)
21322 case $ac_cv_c_inline in
21323 no) ac_val=;;
21324 *) ac_val=$ac_cv_c_inline;;
21325 esac
21326 cat >>confdefs.h <<_ACEOF
21327#ifndef __cplusplus
21328#define inline $ac_val
21329#endif
21330_ACEOF
21331 ;;
21332esac
21333
21334
21335# If the C compiler supports the keyword restrict, do nothing. Otherwise
21336# define restrict to __restrict__ or __restrict if it accepts one of those,
21337# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021339$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021340if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021341 $as_echo_n "(cached) " >&6
21342else
21343 ac_cv_c_restrict=no
21344 # The order here caters to the fact that C++ does not require restrict.
21345 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021347/* end confdefs.h. */
21348typedef int * int_ptr;
21349 int foo (int_ptr $ac_kw ip) {
21350 return ip[0];
21351 }
21352int
21353main ()
21354{
21355int s[1];
21356 int * $ac_kw t = s;
21357 t[0] = 0;
21358 return foo(t)
21359 ;
21360 return 0;
21361}
21362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021363if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021365fi
cristy3ed852e2009-09-05 21:47:34 +000021366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367 test "$ac_cv_c_restrict" != no && break
21368 done
21369
21370fi
cristy8b350f62009-11-15 23:12:43 +000021371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021372$as_echo "$ac_cv_c_restrict" >&6; }
21373
cristy3ed852e2009-09-05 21:47:34 +000021374 case $ac_cv_c_restrict in
21375 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021376 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021377 ;;
21378 *) cat >>confdefs.h <<_ACEOF
21379#define restrict $ac_cv_c_restrict
21380_ACEOF
21381 ;;
21382 esac
21383
21384
21385# If words are stored with the most significant byte first (like
21386# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021388$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021389if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021390 $as_echo_n "(cached) " >&6
21391else
21392 ac_cv_c_bigendian=unknown
21393 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021395/* end confdefs.h. */
21396#ifndef __APPLE_CC__
21397 not a universal capable compiler
21398 #endif
21399 typedef int dummy;
21400
21401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021402if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021403
21404 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021405 # there are at least two -arch flags with different values.
21406 ac_arch=
21407 ac_prev=
21408 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21409 if test -n "$ac_prev"; then
21410 case $ac_word in
21411 i?86 | x86_64 | ppc | ppc64)
21412 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21413 ac_arch=$ac_word
21414 else
21415 ac_cv_c_bigendian=universal
21416 break
21417 fi
21418 ;;
21419 esac
21420 ac_prev=
21421 elif test "x$ac_word" = "x-arch"; then
21422 ac_prev=arch
21423 fi
21424 done
cristy3ed852e2009-09-05 21:47:34 +000021425fi
cristy3ed852e2009-09-05 21:47:34 +000021426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 if test $ac_cv_c_bigendian = unknown; then
21428 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021430/* end confdefs.h. */
21431#include <sys/types.h>
21432 #include <sys/param.h>
21433
21434int
21435main ()
21436{
21437#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21438 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21439 && LITTLE_ENDIAN)
21440 bogus endian macros
21441 #endif
21442
21443 ;
21444 return 0;
21445}
21446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021447if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021448 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021450/* end confdefs.h. */
21451#include <sys/types.h>
21452 #include <sys/param.h>
21453
21454int
21455main ()
21456{
21457#if BYTE_ORDER != BIG_ENDIAN
21458 not big endian
21459 #endif
21460
21461 ;
21462 return 0;
21463}
21464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021465if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 ac_cv_c_bigendian=yes
21467else
cristy8b350f62009-11-15 23:12:43 +000021468 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021469fi
cristy3ed852e2009-09-05 21:47:34 +000021470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021471fi
cristy3ed852e2009-09-05 21:47:34 +000021472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 fi
21474 if test $ac_cv_c_bigendian = unknown; then
21475 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021477/* end confdefs.h. */
21478#include <limits.h>
21479
21480int
21481main ()
21482{
21483#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21484 bogus endian macros
21485 #endif
21486
21487 ;
21488 return 0;
21489}
21490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021491if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021492 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021494/* end confdefs.h. */
21495#include <limits.h>
21496
21497int
21498main ()
21499{
21500#ifndef _BIG_ENDIAN
21501 not big endian
21502 #endif
21503
21504 ;
21505 return 0;
21506}
21507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021508if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021509 ac_cv_c_bigendian=yes
21510else
cristy8b350f62009-11-15 23:12:43 +000021511 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021512fi
cristy3ed852e2009-09-05 21:47:34 +000021513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021514fi
cristy3ed852e2009-09-05 21:47:34 +000021515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 fi
21517 if test $ac_cv_c_bigendian = unknown; then
21518 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021519 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021520 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021522/* end confdefs.h. */
21523short int ascii_mm[] =
21524 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21525 short int ascii_ii[] =
21526 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21527 int use_ascii (int i) {
21528 return ascii_mm[i] + ascii_ii[i];
21529 }
21530 short int ebcdic_ii[] =
21531 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21532 short int ebcdic_mm[] =
21533 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21534 int use_ebcdic (int i) {
21535 return ebcdic_mm[i] + ebcdic_ii[i];
21536 }
21537 extern int foo;
21538
21539int
21540main ()
21541{
21542return use_ascii (foo) == use_ebcdic (foo);
21543 ;
21544 return 0;
21545}
21546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021547if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21549 ac_cv_c_bigendian=yes
21550 fi
21551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21552 if test "$ac_cv_c_bigendian" = unknown; then
21553 ac_cv_c_bigendian=no
21554 else
21555 # finding both strings is unlikely to happen, but who knows?
21556 ac_cv_c_bigendian=unknown
21557 fi
21558 fi
cristy3ed852e2009-09-05 21:47:34 +000021559fi
cristy3ed852e2009-09-05 21:47:34 +000021560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561else
cristy8b350f62009-11-15 23:12:43 +000021562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021563/* end confdefs.h. */
21564$ac_includes_default
21565int
21566main ()
21567{
21568
21569 /* Are we little or big endian? From Harbison&Steele. */
21570 union
21571 {
21572 long int l;
21573 char c[sizeof (long int)];
21574 } u;
21575 u.l = 1;
21576 return u.c[sizeof (long int) - 1] == 1;
21577
21578 ;
21579 return 0;
21580}
21581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021582if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021583 ac_cv_c_bigendian=no
21584else
cristy8b350f62009-11-15 23:12:43 +000021585 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021586fi
cristy8b350f62009-11-15 23:12:43 +000021587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21588 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021589fi
21590
cristy3ed852e2009-09-05 21:47:34 +000021591 fi
21592fi
cristy8b350f62009-11-15 23:12:43 +000021593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo "$ac_cv_c_bigendian" >&6; }
21595 case $ac_cv_c_bigendian in #(
21596 yes)
cristy8b350f62009-11-15 23:12:43 +000021597 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021598;; #(
21599 no)
21600 ;; #(
21601 universal)
21602
cristy8b350f62009-11-15 23:12:43 +000021603$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021604
21605 ;; #(
21606 *)
cristyf6fcb5d2010-09-24 01:19:13 +000021607 as_fn_error "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021608 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021609 esac
21610
21611
21612# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021613ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21614if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021615
cristy3ed852e2009-09-05 21:47:34 +000021616else
21617
21618cat >>confdefs.h <<_ACEOF
21619#define mode_t int
21620_ACEOF
21621
21622fi
21623
21624
21625# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021626ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21627if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021628
cristy3ed852e2009-09-05 21:47:34 +000021629else
21630
21631cat >>confdefs.h <<_ACEOF
21632#define off_t long int
21633_ACEOF
21634
21635fi
21636
21637
21638# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021639ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21640if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021641
cristy3ed852e2009-09-05 21:47:34 +000021642else
21643
21644cat >>confdefs.h <<_ACEOF
21645#define pid_t int
21646_ACEOF
21647
21648fi
21649
21650
21651# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021652ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21653if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021654
cristy3ed852e2009-09-05 21:47:34 +000021655else
21656
21657cat >>confdefs.h <<_ACEOF
21658#define size_t unsigned int
21659_ACEOF
21660
21661fi
21662
21663
21664# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021665ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21666if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021667
cristy3ed852e2009-09-05 21:47:34 +000021668else
21669
21670cat >>confdefs.h <<_ACEOF
21671#define ssize_t int
21672_ACEOF
21673
21674fi
21675
21676
21677# If the C compiler supports a working long double type with more range
21678# or precision than the double type, define HAVE_LONG_DOUBLE.
21679
cristy8b350f62009-11-15 23:12:43 +000021680 { $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 +000021681$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021682if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 $as_echo_n "(cached) " >&6
21684else
cristy8b350f62009-11-15 23:12:43 +000021685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021686/* end confdefs.h. */
21687#include <float.h>
21688 long double const a[] =
21689 {
21690 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21691 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21692 };
21693 long double
21694 f (long double x)
21695 {
21696 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21697 + (x ? f (x) : 'c'));
21698 }
21699
21700int
21701main ()
21702{
21703static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21704 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21705 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21706 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21707 && (int) LDBL_EPSILON == 0
21708 )];
21709test_array [0] = 0
21710
21711 ;
21712 return 0;
21713}
21714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 ac_cv_type_long_double_wider=yes
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021719fi
cristy3ed852e2009-09-05 21:47:34 +000021720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721fi
cristy8b350f62009-11-15 23:12:43 +000021722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021723$as_echo "$ac_cv_type_long_double_wider" >&6; }
21724 if test $ac_cv_type_long_double_wider = yes; then
21725
cristy8b350f62009-11-15 23:12:43 +000021726$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021727
21728 fi
21729
21730
21731# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21732# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021734$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021735if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021736 $as_echo_n "(cached) " >&6
21737else
cristy8b350f62009-11-15 23:12:43 +000021738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021739/* end confdefs.h. */
21740$ac_includes_default
21741int
21742main ()
21743{
21744static int test_array [1 - 2 * !(((char) -1) < 0)];
21745test_array [0] = 0
21746
21747 ;
21748 return 0;
21749}
21750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021751if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 ac_cv_c_char_unsigned=no
21753else
cristy8b350f62009-11-15 23:12:43 +000021754 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021755fi
cristy3ed852e2009-09-05 21:47:34 +000021756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757fi
cristy8b350f62009-11-15 23:12:43 +000021758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021759$as_echo "$ac_cv_c_char_unsigned" >&6; }
21760if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021761 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021762
21763fi
21764
21765
21766# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21767# The cast to long int works around a bug in the HP C Compiler
21768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21770# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021772$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021773if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 $as_echo_n "(cached) " >&6
21775else
cristy8b350f62009-11-15 23:12:43 +000021776 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 +000021777
cristy3ed852e2009-09-05 21:47:34 +000021778else
cristy8b350f62009-11-15 23:12:43 +000021779 if test "$ac_cv_type_signed_short" = yes; then
21780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021782{ as_fn_set_status 77
21783as_fn_error "cannot compute sizeof (signed short)
21784See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021785 else
21786 ac_cv_sizeof_signed_short=0
21787 fi
21788fi
cristy8b350f62009-11-15 23:12:43 +000021789
cristy3ed852e2009-09-05 21:47:34 +000021790fi
cristy8b350f62009-11-15 23:12:43 +000021791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021792$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21793
21794
21795
21796cat >>confdefs.h <<_ACEOF
21797#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21798_ACEOF
21799
21800
21801
21802# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21803# The cast to long int works around a bug in the HP C Compiler
21804# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21805# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21806# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021808$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021809if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021810 $as_echo_n "(cached) " >&6
21811else
cristy8b350f62009-11-15 23:12:43 +000021812 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 +000021813
cristy3ed852e2009-09-05 21:47:34 +000021814else
cristy8b350f62009-11-15 23:12:43 +000021815 if test "$ac_cv_type_unsigned_short" = yes; then
21816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021818{ as_fn_set_status 77
21819as_fn_error "cannot compute sizeof (unsigned short)
21820See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021821 else
21822 ac_cv_sizeof_unsigned_short=0
21823 fi
21824fi
cristy8b350f62009-11-15 23:12:43 +000021825
cristy3ed852e2009-09-05 21:47:34 +000021826fi
cristy8b350f62009-11-15 23:12:43 +000021827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021828$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21829
21830
21831
21832cat >>confdefs.h <<_ACEOF
21833#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21834_ACEOF
21835
21836
21837
21838# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21839# The cast to long int works around a bug in the HP C Compiler
21840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21842# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021844$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021845if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 $as_echo_n "(cached) " >&6
21847else
cristy8b350f62009-11-15 23:12:43 +000021848 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 +000021849
cristy3ed852e2009-09-05 21:47:34 +000021850else
cristy8b350f62009-11-15 23:12:43 +000021851 if test "$ac_cv_type_signed_int" = yes; then
21852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021854{ as_fn_set_status 77
21855as_fn_error "cannot compute sizeof (signed int)
21856See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021857 else
21858 ac_cv_sizeof_signed_int=0
21859 fi
21860fi
cristy8b350f62009-11-15 23:12:43 +000021861
cristy3ed852e2009-09-05 21:47:34 +000021862fi
cristy8b350f62009-11-15 23:12:43 +000021863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021864$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21865
21866
21867
21868cat >>confdefs.h <<_ACEOF
21869#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21870_ACEOF
21871
21872
21873
21874# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21875# The cast to long int works around a bug in the HP C Compiler
21876# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21877# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21878# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021880$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021881if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021882 $as_echo_n "(cached) " >&6
21883else
cristy8b350f62009-11-15 23:12:43 +000021884 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 +000021885
cristy3ed852e2009-09-05 21:47:34 +000021886else
cristy8b350f62009-11-15 23:12:43 +000021887 if test "$ac_cv_type_unsigned_int" = yes; then
21888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021890{ as_fn_set_status 77
21891as_fn_error "cannot compute sizeof (unsigned int)
21892See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021893 else
21894 ac_cv_sizeof_unsigned_int=0
21895 fi
21896fi
cristy8b350f62009-11-15 23:12:43 +000021897
cristy3ed852e2009-09-05 21:47:34 +000021898fi
cristy8b350f62009-11-15 23:12:43 +000021899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21901
21902
21903
21904cat >>confdefs.h <<_ACEOF
21905#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21906_ACEOF
21907
21908
21909
21910# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21911# The cast to long int works around a bug in the HP C Compiler
21912# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21913# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21914# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021916$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021917if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021918 $as_echo_n "(cached) " >&6
21919else
cristy8b350f62009-11-15 23:12:43 +000021920 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 +000021921
cristy3ed852e2009-09-05 21:47:34 +000021922else
cristy8b350f62009-11-15 23:12:43 +000021923 if test "$ac_cv_type_signed_long" = yes; then
21924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021926{ as_fn_set_status 77
21927as_fn_error "cannot compute sizeof (signed long)
21928See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021929 else
21930 ac_cv_sizeof_signed_long=0
21931 fi
21932fi
cristy8b350f62009-11-15 23:12:43 +000021933
cristy3ed852e2009-09-05 21:47:34 +000021934fi
cristy8b350f62009-11-15 23:12:43 +000021935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21937
21938
21939
21940cat >>confdefs.h <<_ACEOF
21941#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21942_ACEOF
21943
21944
21945
21946# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21947# The cast to long int works around a bug in the HP C Compiler
21948# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21949# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21950# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021953if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 $as_echo_n "(cached) " >&6
21955else
cristy8b350f62009-11-15 23:12:43 +000021956 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 +000021957
cristy3ed852e2009-09-05 21:47:34 +000021958else
cristy8b350f62009-11-15 23:12:43 +000021959 if test "$ac_cv_type_unsigned_long" = yes; then
21960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021962{ as_fn_set_status 77
21963as_fn_error "cannot compute sizeof (unsigned long)
21964See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021965 else
21966 ac_cv_sizeof_unsigned_long=0
21967 fi
21968fi
cristy8b350f62009-11-15 23:12:43 +000021969
cristy3ed852e2009-09-05 21:47:34 +000021970fi
cristy8b350f62009-11-15 23:12:43 +000021971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21973
21974
21975
21976cat >>confdefs.h <<_ACEOF
21977#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21978_ACEOF
21979
21980
21981
21982# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21983# 'signed long long' is not supported then the value defined is zero.
21984# The cast to long int works around a bug in the HP C Compiler
21985# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21986# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21987# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021990if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021991 $as_echo_n "(cached) " >&6
21992else
cristy8b350f62009-11-15 23:12:43 +000021993 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 +000021994
cristy3ed852e2009-09-05 21:47:34 +000021995else
cristy8b350f62009-11-15 23:12:43 +000021996 if test "$ac_cv_type_signed_long_long" = yes; then
21997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021999{ as_fn_set_status 77
22000as_fn_error "cannot compute sizeof (signed long long)
22001See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022002 else
22003 ac_cv_sizeof_signed_long_long=0
22004 fi
22005fi
cristy8b350f62009-11-15 23:12:43 +000022006
cristy3ed852e2009-09-05 21:47:34 +000022007fi
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22010
22011
22012
22013cat >>confdefs.h <<_ACEOF
22014#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22015_ACEOF
22016
22017
22018
22019# Obtain size of a 'unsigned long long' and define as
22020# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22021# supported then the value defined is zero.
22022# The cast to long int works around a bug in the HP C Compiler
22023# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22024# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22025# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022027$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022028if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022029 $as_echo_n "(cached) " >&6
22030else
cristy8b350f62009-11-15 23:12:43 +000022031 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 +000022032
cristy3ed852e2009-09-05 21:47:34 +000022033else
cristy8b350f62009-11-15 23:12:43 +000022034 if test "$ac_cv_type_unsigned_long_long" = yes; then
22035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022037{ as_fn_set_status 77
22038as_fn_error "cannot compute sizeof (unsigned long long)
22039See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022040 else
22041 ac_cv_sizeof_unsigned_long_long=0
22042 fi
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044
cristy3ed852e2009-09-05 21:47:34 +000022045fi
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22048
22049
22050
22051cat >>confdefs.h <<_ACEOF
22052#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22053_ACEOF
22054
22055
22056
22057# Obtain size of off_t and define as SIZEOF_OFF_T
22058# The cast to long int works around a bug in the HP C Compiler
22059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22061# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022063$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022064if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022065 $as_echo_n "(cached) " >&6
22066else
cristy8b350f62009-11-15 23:12:43 +000022067 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 +000022068
cristy3ed852e2009-09-05 21:47:34 +000022069else
cristy8b350f62009-11-15 23:12:43 +000022070 if test "$ac_cv_type_off_t" = yes; then
22071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022073{ as_fn_set_status 77
22074as_fn_error "cannot compute sizeof (off_t)
22075See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022076 else
22077 ac_cv_sizeof_off_t=0
22078 fi
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080
cristy3ed852e2009-09-05 21:47:34 +000022081fi
cristy8b350f62009-11-15 23:12:43 +000022082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022083$as_echo "$ac_cv_sizeof_off_t" >&6; }
22084
22085
22086
22087cat >>confdefs.h <<_ACEOF
22088#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22089_ACEOF
22090
22091
22092
22093# Obtain size of size_t and define as SIZEOF_SIZE_T
22094# The cast to long int works around a bug in the HP C Compiler
22095# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22096# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22097# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022099$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022100if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 $as_echo_n "(cached) " >&6
22102else
cristy8b350f62009-11-15 23:12:43 +000022103 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 +000022104
cristy3ed852e2009-09-05 21:47:34 +000022105else
cristy8b350f62009-11-15 23:12:43 +000022106 if test "$ac_cv_type_size_t" = yes; then
22107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022109{ as_fn_set_status 77
22110as_fn_error "cannot compute sizeof (size_t)
22111See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022112 else
22113 ac_cv_sizeof_size_t=0
22114 fi
22115fi
cristy8b350f62009-11-15 23:12:43 +000022116
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy8b350f62009-11-15 23:12:43 +000022118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022119$as_echo "$ac_cv_sizeof_size_t" >&6; }
22120
22121
22122
22123cat >>confdefs.h <<_ACEOF
22124#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22125_ACEOF
22126
22127
22128
cristy330e9352010-06-01 18:42:49 +000022129# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22130# The cast to long int works around a bug in the HP C Compiler
22131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22133# This bug is HP SR number 8606223364.
22134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22135$as_echo_n "checking size of ssize_t... " >&6; }
22136if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22137 $as_echo_n "(cached) " >&6
22138else
22139 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22140
22141else
22142 if test "$ac_cv_type_ssize_t" = yes; then
22143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022145{ as_fn_set_status 77
22146as_fn_error "cannot compute sizeof (ssize_t)
22147See \`config.log' for more details." "$LINENO" 5; }; }
cristy330e9352010-06-01 18:42:49 +000022148 else
22149 ac_cv_sizeof_ssize_t=0
22150 fi
22151fi
22152
22153fi
22154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22155$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22156
22157
22158
22159cat >>confdefs.h <<_ACEOF
22160#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22161_ACEOF
22162
22163
22164
cristy3ed852e2009-09-05 21:47:34 +000022165# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22166# The cast to long int works around a bug in the HP C Compiler
22167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22169# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022171$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022172if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022173 $as_echo_n "(cached) " >&6
22174else
cristy8b350f62009-11-15 23:12:43 +000022175 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 +000022176
cristy3ed852e2009-09-05 21:47:34 +000022177else
cristy8b350f62009-11-15 23:12:43 +000022178 if test "$ac_cv_type_unsigned_intp" = yes; then
22179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022181{ as_fn_set_status 77
22182as_fn_error "cannot compute sizeof (unsigned int*)
22183See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022184 else
22185 ac_cv_sizeof_unsigned_intp=0
22186 fi
22187fi
cristy8b350f62009-11-15 23:12:43 +000022188
cristy3ed852e2009-09-05 21:47:34 +000022189fi
cristy8b350f62009-11-15 23:12:43 +000022190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022191$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22192
22193
22194
22195cat >>confdefs.h <<_ACEOF
22196#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22197_ACEOF
22198
22199
22200
22201#
22202# Compute sized types for current CPU and compiler options.
22203#
22204
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo_n "checking for signed 8-bit type... " >&6; }
22207INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022209$as_echo "$INT8_T" >&6; }
22210
22211
cristy8b350f62009-11-15 23:12:43 +000022212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22214UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022216$as_echo "$UINT8_T" >&6; }
22217
22218
cristy8b350f62009-11-15 23:12:43 +000022219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022220$as_echo_n "checking for signed 16-bit type... " >&6; }
22221INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022223$as_echo "$INT16_T" >&6; }
22224
22225
cristy8b350f62009-11-15 23:12:43 +000022226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022227$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22228UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022230$as_echo "$UINT16_T" >&6; }
22231
22232
cristy8b350f62009-11-15 23:12:43 +000022233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022234$as_echo_n "checking for signed 32-bit type... " >&6; }
22235INT32_T='none'
22236if test $ac_cv_sizeof_signed_int -eq 4; then
22237 INT32_T='signed int'
22238elif test $ac_cv_sizeof_signed_long -eq 4; then
22239 INT32_T='signed long'
22240fi
cristy8b350f62009-11-15 23:12:43 +000022241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022242$as_echo "$INT32_T" >&6; }
22243
22244
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22247UINT32_T='none'
22248if test $ac_cv_sizeof_unsigned_int -eq 4; then
22249 UINT32_T='unsigned int'
22250elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22251 UINT32_T='unsigned long'
22252fi
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo "$UINT32_T" >&6; }
22255
22256
cristy8b350f62009-11-15 23:12:43 +000022257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo_n "checking for signed 64-bit type... " >&6; }
22259INT64_T='none'
22260if test $ac_cv_sizeof_signed_long -eq 8; then
22261 INT64_T='signed long'
22262elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22263 INT64_T='signed long long'
22264fi
cristy8b350f62009-11-15 23:12:43 +000022265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022266$as_echo "$INT64_T" >&6; }
22267
22268
cristy8b350f62009-11-15 23:12:43 +000022269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022270$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22271UINT64_T='none'
22272if test $ac_cv_sizeof_unsigned_long -eq 8; then
22273 UINT64_T='unsigned long'
22274elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22275 UINT64_T='unsigned long long'
22276fi
cristy8b350f62009-11-15 23:12:43 +000022277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022278$as_echo "$UINT64_T" >&6; }
22279
22280
cristy8b350f62009-11-15 23:12:43 +000022281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022282$as_echo_n "checking for unsigned maximum type... " >&6; }
22283UINTMAX_T='none'
22284if test "$UINT64_T" != 'none'; then
22285 UINTMAX_T=$UINT64_T
22286elif test "$UINT32_T" != 'none'; then
22287 UINTMAX_T=$UINT32_T
22288fi
cristy8b350f62009-11-15 23:12:43 +000022289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022290$as_echo "$UINTMAX_T" >&6; }
22291
22292
cristy8b350f62009-11-15 23:12:43 +000022293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022294$as_echo_n "checking for pointer difference type... " >&6; }
22295UINTPTR_T='none'
22296if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22297 UINTPTR_T='unsigned long'
22298elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22299 UINTPTR_T='unsigned long long'
22300fi
cristy8b350f62009-11-15 23:12:43 +000022301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022302$as_echo "$UINTPTR_T" >&6; }
22303
22304
cristy8b350f62009-11-15 23:12:43 +000022305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022306$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022308/* end confdefs.h. */
22309
22310int
22311main ()
22312{
22313{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22314 ;
22315 return 0;
22316}
22317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022318if ac_fn_c_try_compile "$LINENO"; then :
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022320$as_echo "yes" >&6; }
22321else
cristy8b350f62009-11-15 23:12:43 +000022322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022323$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022325$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022327/* end confdefs.h. */
22328
22329int
22330main ()
22331{
22332{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22333 ;
22334 return 0;
22335}
22336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022337if ac_fn_c_try_compile "$LINENO"; then :
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022339$as_echo "yes" >&6; }
22340
cristy8b350f62009-11-15 23:12:43 +000022341$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022342
22343else
cristy8b350f62009-11-15 23:12:43 +000022344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022345$as_echo "no" >&6; }
22346
cristy8b350f62009-11-15 23:12:43 +000022347$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022348
22349fi
cristy3ed852e2009-09-05 21:47:34 +000022350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351fi
cristy3ed852e2009-09-05 21:47:34 +000022352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353
22354########
22355#
22356# Check for functions
22357#
22358########
cristy73bd4a52010-10-05 11:24:23 +000022359for ac_header in stdlib.h unistd.h
22360do :
22361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22362ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22363eval as_val=\$$as_ac_Header
22364 if test "x$as_val" = x""yes; then :
22365 cat >>confdefs.h <<_ACEOF
22366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22367_ACEOF
22368
22369fi
22370
22371done
22372
22373for ac_func in getpagesize
22374do :
22375 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22376if test "x$ac_cv_func_getpagesize" = x""yes; then :
22377 cat >>confdefs.h <<_ACEOF
22378#define HAVE_GETPAGESIZE 1
22379_ACEOF
22380
22381fi
22382done
22383
22384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22385$as_echo_n "checking for working mmap file i/o... " >&6; }
22386if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22387 $as_echo_n "(cached) " >&6
22388else
22389 if test "$cross_compiling" = yes; then :
22390 magick_cv_func_mmap_fileio=no
22391else
22392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393/* end confdefs.h. */
22394$ac_includes_default
22395/* malloc might have been renamed as rpl_malloc. */
22396#undef malloc
22397
22398/*
22399 This test is derived from GNU Autoconf's similar macro.
22400 The purpose of this test is to verify that files may be memory
22401 mapped, and that memory mapping and file I/O are coherent.
22402
22403 The test creates a test file, memory maps the file, updates
22404 the file using the memory map, and then reads the file using
22405 file I/O to verify that the file contains the updates.
22406*/
22407
22408#include <fcntl.h>
22409#include <sys/mman.h>
22410
22411#if !STDC_HEADERS && !HAVE_STDLIB_H
22412char *malloc ();
22413#endif
22414
22415/* This mess was copied from the GNU getpagesize.h. */
22416#if !HAVE_GETPAGESIZE
22417/* Assume that all systems that can run configure have sys/param.h. */
22418# if !HAVE_SYS_PARAM_H
22419# define HAVE_SYS_PARAM_H 1
22420# endif
22421
22422# ifdef _SC_PAGESIZE
22423# define getpagesize() sysconf(_SC_PAGESIZE)
22424# else /* no _SC_PAGESIZE */
22425# if HAVE_SYS_PARAM_H
22426# include <sys/param.h>
22427# ifdef EXEC_PAGESIZE
22428# define getpagesize() EXEC_PAGESIZE
22429# else /* no EXEC_PAGESIZE */
22430# ifdef NBPG
22431# define getpagesize() NBPG * CLSIZE
22432# ifndef CLSIZE
22433# define CLSIZE 1
22434# endif /* no CLSIZE */
22435# else /* no NBPG */
22436# ifdef NBPC
22437# define getpagesize() NBPC
22438# else /* no NBPC */
22439# ifdef PAGESIZE
22440# define getpagesize() PAGESIZE
22441# endif /* PAGESIZE */
22442# endif /* no NBPC */
22443# endif /* no NBPG */
22444# endif /* no EXEC_PAGESIZE */
22445# else /* no HAVE_SYS_PARAM_H */
22446# define getpagesize() 8192 /* punt totally */
22447# endif /* no HAVE_SYS_PARAM_H */
22448# endif /* no _SC_PAGESIZE */
22449
22450#endif /* no HAVE_GETPAGESIZE */
22451
22452int
22453main ()
22454{
22455 char *data, *data2, *data3;
22456 int i, pagesize;
22457 int fd;
22458
22459 pagesize = getpagesize ();
22460
22461 /* First, make a file with some known garbage in it. */
22462 data = (char *) malloc (pagesize);
22463 if (!data)
22464 exit (1);
22465 for (i = 0; i < pagesize; ++i)
22466 *(data + i) = rand ();
22467 umask (0);
22468 fd = creat ("conftest.mmap", 0600);
22469 if (fd < 0)
22470 exit (1);
22471 if (write (fd, data, pagesize) != pagesize)
22472 exit (1);
22473 close (fd);
22474
22475 /* Mmap the file as read/write/shared and verify that we see the
22476 same garbage. */
22477 fd = open ("conftest.mmap", O_RDWR);
22478 if (fd < 0)
22479 exit (1);
22480 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22481 if (data2 == 0)
22482 exit (1);
22483 for (i = 0; i < pagesize; ++i)
22484 if (*(data + i) != *(data2 + i))
22485 exit (1);
22486
22487 /* Finally, make sure that changes to the mapped area
22488 percolate back to the file as seen by read(). */
22489 for (i = 0; i < pagesize; ++i)
22490 *(data2 + i) = *(data2 + i) + 1;
22491 data3 = (char *) malloc (pagesize);
22492 if (!data3)
22493 exit (1);
22494 if (read (fd, data3, pagesize) != pagesize)
22495 exit (1);
22496 for (i = 0; i < pagesize; ++i)
22497 if (*(data2 + i) != *(data3 + i))
22498 exit (1);
22499 close (fd);
22500 exit (0);
22501}
22502_ACEOF
22503if ac_fn_c_try_run "$LINENO"; then :
22504 magick_cv_func_mmap_fileio=yes
22505else
22506 magick_cv_func_mmap_fileio=no
22507fi
22508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22509 conftest.$ac_objext conftest.beam conftest.$ac_ext
22510fi
22511
22512fi
22513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22514$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22515if test $magick_cv_func_mmap_fileio = yes; then
22516
22517$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22518
22519fi
22520rm -f conftest.mmap
22521
cristy8b350f62009-11-15 23:12:43 +000022522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022524if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 $as_echo_n "(cached) " >&6
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022528 ac_cv_func_closedir_void=yes
22529else
cristy8b350f62009-11-15 23:12:43 +000022530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022531/* end confdefs.h. */
22532$ac_includes_default
22533#include <$ac_header_dirent>
22534#ifndef __cplusplus
22535int closedir ();
22536#endif
22537
22538int
22539main ()
22540{
22541return closedir (opendir (".")) != 0;
22542 ;
22543 return 0;
22544}
22545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022546if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022547 ac_cv_func_closedir_void=no
22548else
cristy8b350f62009-11-15 23:12:43 +000022549 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022550fi
cristy8b350f62009-11-15 23:12:43 +000022551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22552 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022553fi
22554
cristy3ed852e2009-09-05 21:47:34 +000022555fi
cristy8b350f62009-11-15 23:12:43 +000022556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022557$as_echo "$ac_cv_func_closedir_void" >&6; }
22558if test $ac_cv_func_closedir_void = yes; then
22559
cristy8b350f62009-11-15 23:12:43 +000022560$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022561
22562fi
22563
cristycd4c5312009-11-22 01:19:08 +000022564
22565
22566
22567 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022568do :
22569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022570ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22571"
cristyf6fcb5d2010-09-24 01:19:13 +000022572eval as_val=\$$as_ac_Header
22573 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 cat >>confdefs.h <<_ACEOF
22575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22576_ACEOF
22577
22578fi
22579
22580done
22581
cristycd4c5312009-11-22 01:19:08 +000022582
22583
22584
22585
22586
22587
22588
cristy3ed852e2009-09-05 21:47:34 +000022589for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022590do :
22591 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22592if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022593 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022595_ACEOF
22596
22597fi
22598done
22599
cristy8b350f62009-11-15 23:12:43 +000022600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022601$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022602if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022603 $as_echo_n "(cached) " >&6
22604else
cristy8b350f62009-11-15 23:12:43 +000022605 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022606 ac_cv_func_mmap_fixed_mapped=no
22607else
cristy8b350f62009-11-15 23:12:43 +000022608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022609/* end confdefs.h. */
22610$ac_includes_default
22611/* malloc might have been renamed as rpl_malloc. */
22612#undef malloc
22613
22614/* Thanks to Mike Haertel and Jim Avera for this test.
22615 Here is a matrix of mmap possibilities:
22616 mmap private not fixed
22617 mmap private fixed at somewhere currently unmapped
22618 mmap private fixed at somewhere already mapped
22619 mmap shared not fixed
22620 mmap shared fixed at somewhere currently unmapped
22621 mmap shared fixed at somewhere already mapped
22622 For private mappings, we should verify that changes cannot be read()
22623 back from the file, nor mmap's back from the file at a different
22624 address. (There have been systems where private was not correctly
22625 implemented like the infamous i386 svr4.0, and systems where the
22626 VM page cache was not coherent with the file system buffer cache
22627 like early versions of FreeBSD and possibly contemporary NetBSD.)
22628 For shared mappings, we should conversely verify that changes get
22629 propagated back to all the places they're supposed to be.
22630
22631 Grep wants private fixed already mapped.
22632 The main things grep needs to know about mmap are:
22633 * does it exist and is it safe to write into the mmap'd area
22634 * how to use it (BSD variants) */
22635
22636#include <fcntl.h>
22637#include <sys/mman.h>
22638
22639#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22640char *malloc ();
22641#endif
22642
22643/* This mess was copied from the GNU getpagesize.h. */
22644#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022645# ifdef _SC_PAGESIZE
22646# define getpagesize() sysconf(_SC_PAGESIZE)
22647# else /* no _SC_PAGESIZE */
22648# ifdef HAVE_SYS_PARAM_H
22649# include <sys/param.h>
22650# ifdef EXEC_PAGESIZE
22651# define getpagesize() EXEC_PAGESIZE
22652# else /* no EXEC_PAGESIZE */
22653# ifdef NBPG
22654# define getpagesize() NBPG * CLSIZE
22655# ifndef CLSIZE
22656# define CLSIZE 1
22657# endif /* no CLSIZE */
22658# else /* no NBPG */
22659# ifdef NBPC
22660# define getpagesize() NBPC
22661# else /* no NBPC */
22662# ifdef PAGESIZE
22663# define getpagesize() PAGESIZE
22664# endif /* PAGESIZE */
22665# endif /* no NBPC */
22666# endif /* no NBPG */
22667# endif /* no EXEC_PAGESIZE */
22668# else /* no HAVE_SYS_PARAM_H */
22669# define getpagesize() 8192 /* punt totally */
22670# endif /* no HAVE_SYS_PARAM_H */
22671# endif /* no _SC_PAGESIZE */
22672
22673#endif /* no HAVE_GETPAGESIZE */
22674
22675int
22676main ()
22677{
22678 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022679 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022680 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022681 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022682
22683 pagesize = getpagesize ();
22684
22685 /* First, make a file with some known garbage in it. */
22686 data = (char *) malloc (pagesize);
22687 if (!data)
22688 return 1;
22689 for (i = 0; i < pagesize; ++i)
22690 *(data + i) = rand ();
22691 umask (0);
22692 fd = creat ("conftest.mmap", 0600);
22693 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022694 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022695 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022696 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022697 close (fd);
22698
cristycd4c5312009-11-22 01:19:08 +000022699 /* Next, check that the tail of a page is zero-filled. File must have
22700 non-zero length, otherwise we risk SIGBUS for entire page. */
22701 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22702 if (fd2 < 0)
22703 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022704 cdata2 = "";
22705 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022706 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022707 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022708 if (data2 == MAP_FAILED)
22709 return 6;
22710 for (i = 0; i < pagesize; ++i)
22711 if (*(data2 + i))
22712 return 7;
22713 close (fd2);
22714 if (munmap (data2, pagesize))
22715 return 8;
22716
cristy3ed852e2009-09-05 21:47:34 +000022717 /* Next, try to mmap the file at a fixed address which already has
22718 something else allocated at it. If we can, also make sure that
22719 we see the same garbage. */
22720 fd = open ("conftest.mmap", O_RDWR);
22721 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022722 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022723 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22724 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022725 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022726 for (i = 0; i < pagesize; ++i)
22727 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022728 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022729
22730 /* Finally, make sure that changes to the mapped area do not
22731 percolate back to the file as seen by read(). (This is a bug on
22732 some variants of i386 svr4.0.) */
22733 for (i = 0; i < pagesize; ++i)
22734 *(data2 + i) = *(data2 + i) + 1;
22735 data3 = (char *) malloc (pagesize);
22736 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022737 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022738 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022739 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022740 for (i = 0; i < pagesize; ++i)
22741 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022742 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022743 close (fd);
22744 return 0;
22745}
22746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022747if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022748 ac_cv_func_mmap_fixed_mapped=yes
22749else
cristy8b350f62009-11-15 23:12:43 +000022750 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022751fi
cristy8b350f62009-11-15 23:12:43 +000022752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22753 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022754fi
22755
cristy3ed852e2009-09-05 21:47:34 +000022756fi
cristy8b350f62009-11-15 23:12:43 +000022757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022758$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22759if test $ac_cv_func_mmap_fixed_mapped = yes; then
22760
cristy8b350f62009-11-15 23:12:43 +000022761$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022762
22763fi
cristycd4c5312009-11-22 01:19:08 +000022764rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022765
cristy3ed852e2009-09-05 21:47:34 +000022766for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022767do :
22768 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22769if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022771#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022772_ACEOF
22773
22774fi
22775
22776done
22777
cristy3ed852e2009-09-05 21:47:34 +000022778for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022779do :
22780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22781ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000022782eval as_val=\$$as_ac_var
22783 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022784 cat >>confdefs.h <<_ACEOF
22785#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22786_ACEOF
22787
22788fi
22789done
22790
22791if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022793$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022794if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022795 $as_echo_n "(cached) " >&6
22796else
cristy8b350f62009-11-15 23:12:43 +000022797 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022798 ac_cv_func_fork_works=cross
22799else
cristy8b350f62009-11-15 23:12:43 +000022800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022801/* end confdefs.h. */
22802$ac_includes_default
22803int
22804main ()
22805{
22806
22807 /* By Ruediger Kuhlmann. */
22808 return fork () < 0;
22809
22810 ;
22811 return 0;
22812}
22813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022814if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022815 ac_cv_func_fork_works=yes
22816else
cristy8b350f62009-11-15 23:12:43 +000022817 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022818fi
cristy8b350f62009-11-15 23:12:43 +000022819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22820 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022821fi
22822
cristy3ed852e2009-09-05 21:47:34 +000022823fi
cristy8b350f62009-11-15 23:12:43 +000022824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022825$as_echo "$ac_cv_func_fork_works" >&6; }
22826
22827else
22828 ac_cv_func_fork_works=$ac_cv_func_fork
22829fi
22830if test "x$ac_cv_func_fork_works" = xcross; then
22831 case $host in
22832 *-*-amigaos* | *-*-msdosdjgpp*)
22833 # Override, as these systems have only a dummy fork() stub
22834 ac_cv_func_fork_works=no
22835 ;;
22836 *)
22837 ac_cv_func_fork_works=yes
22838 ;;
22839 esac
cristy8b350f62009-11-15 23:12:43 +000022840 { $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 +000022841$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22842fi
22843ac_cv_func_vfork_works=$ac_cv_func_vfork
22844if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022846$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022847if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022848 $as_echo_n "(cached) " >&6
22849else
cristy8b350f62009-11-15 23:12:43 +000022850 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022851 ac_cv_func_vfork_works=cross
22852else
cristy8b350f62009-11-15 23:12:43 +000022853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022854/* end confdefs.h. */
22855/* Thanks to Paul Eggert for this test. */
22856$ac_includes_default
22857#include <sys/wait.h>
22858#ifdef HAVE_VFORK_H
22859# include <vfork.h>
22860#endif
22861/* On some sparc systems, changes by the child to local and incoming
22862 argument registers are propagated back to the parent. The compiler
22863 is told about this with #include <vfork.h>, but some compilers
22864 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22865 static variable whose address is put into a register that is
22866 clobbered by the vfork. */
22867static void
22868#ifdef __cplusplus
22869sparc_address_test (int arg)
22870# else
22871sparc_address_test (arg) int arg;
22872#endif
22873{
22874 static pid_t child;
22875 if (!child) {
22876 child = vfork ();
22877 if (child < 0) {
22878 perror ("vfork");
22879 _exit(2);
22880 }
22881 if (!child) {
22882 arg = getpid();
22883 write(-1, "", 0);
22884 _exit (arg);
22885 }
22886 }
22887}
22888
22889int
22890main ()
22891{
22892 pid_t parent = getpid ();
22893 pid_t child;
22894
22895 sparc_address_test (0);
22896
22897 child = vfork ();
22898
22899 if (child == 0) {
22900 /* Here is another test for sparc vfork register problems. This
22901 test uses lots of local variables, at least as many local
22902 variables as main has allocated so far including compiler
22903 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22904 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22905 reuse the register of parent for one of the local variables,
22906 since it will think that parent can't possibly be used any more
22907 in this routine. Assigning to the local variable will thus
22908 munge parent in the parent process. */
22909 pid_t
22910 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22911 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22912 /* Convince the compiler that p..p7 are live; otherwise, it might
22913 use the same hardware register for all 8 local variables. */
22914 if (p != p1 || p != p2 || p != p3 || p != p4
22915 || p != p5 || p != p6 || p != p7)
22916 _exit(1);
22917
22918 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22919 from child file descriptors. If the child closes a descriptor
22920 before it execs or exits, this munges the parent's descriptor
22921 as well. Test for this by closing stdout in the child. */
22922 _exit(close(fileno(stdout)) != 0);
22923 } else {
22924 int status;
22925 struct stat st;
22926
22927 while (wait(&status) != child)
22928 ;
22929 return (
22930 /* Was there some problem with vforking? */
22931 child < 0
22932
22933 /* Did the child fail? (This shouldn't happen.) */
22934 || status
22935
22936 /* Did the vfork/compiler bug occur? */
22937 || parent != getpid()
22938
22939 /* Did the file descriptor bug occur? */
22940 || fstat(fileno(stdout), &st) != 0
22941 );
22942 }
22943}
22944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022945if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022946 ac_cv_func_vfork_works=yes
22947else
cristy8b350f62009-11-15 23:12:43 +000022948 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022949fi
cristy8b350f62009-11-15 23:12:43 +000022950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22951 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022952fi
22953
cristy3ed852e2009-09-05 21:47:34 +000022954fi
cristy8b350f62009-11-15 23:12:43 +000022955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022956$as_echo "$ac_cv_func_vfork_works" >&6; }
22957
22958fi;
22959if test "x$ac_cv_func_fork_works" = xcross; then
22960 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022961 { $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 +000022962$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22963fi
22964
22965if test "x$ac_cv_func_vfork_works" = xyes; then
22966
cristy8b350f62009-11-15 23:12:43 +000022967$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022968
22969else
22970
cristy8b350f62009-11-15 23:12:43 +000022971$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022972
22973fi
22974if test "x$ac_cv_func_fork_works" = xyes; then
22975
cristy8b350f62009-11-15 23:12:43 +000022976$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022977
22978fi
22979
cristy8b350f62009-11-15 23:12:43 +000022980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022981$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022982if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022983 $as_echo_n "(cached) " >&6
22984else
cristy8b350f62009-11-15 23:12:43 +000022985 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022986 ac_cv_func_memcmp_working=no
22987else
cristy8b350f62009-11-15 23:12:43 +000022988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022989/* end confdefs.h. */
22990$ac_includes_default
22991int
22992main ()
22993{
22994
22995 /* Some versions of memcmp are not 8-bit clean. */
22996 char c0 = '\100', c1 = '\200', c2 = '\201';
22997 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22998 return 1;
22999
23000 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23001 or more and with at least one buffer not starting on a 4-byte boundary.
23002 William Lewis provided this test program. */
23003 {
23004 char foo[21];
23005 char bar[21];
23006 int i;
23007 for (i = 0; i < 4; i++)
23008 {
23009 char *a = foo + i;
23010 char *b = bar + i;
23011 strcpy (a, "--------01111111");
23012 strcpy (b, "--------10000000");
23013 if (memcmp (a, b, 16) >= 0)
23014 return 1;
23015 }
23016 return 0;
23017 }
23018
23019 ;
23020 return 0;
23021}
23022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023023if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023024 ac_cv_func_memcmp_working=yes
23025else
cristy8b350f62009-11-15 23:12:43 +000023026 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023027fi
cristy8b350f62009-11-15 23:12:43 +000023028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23029 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023030fi
23031
cristy3ed852e2009-09-05 21:47:34 +000023032fi
cristy8b350f62009-11-15 23:12:43 +000023033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023034$as_echo "$ac_cv_func_memcmp_working" >&6; }
23035test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23036 *" memcmp.$ac_objext "* ) ;;
23037 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23038 ;;
23039esac
23040
23041
cristy3ed852e2009-09-05 21:47:34 +000023042for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023043do :
23044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23045ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000023046eval as_val=\$$as_ac_Header
23047 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023048 cat >>confdefs.h <<_ACEOF
23049#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23050_ACEOF
23051
23052fi
23053
23054done
23055
cristy8b350f62009-11-15 23:12:43 +000023056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023057$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023058if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023059 $as_echo_n "(cached) " >&6
23060else
23061 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23062 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23063 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023065/* end confdefs.h. */
23066$ac_includes_default
23067#ifdef HAVE_SYS_SELECT_H
23068# include <sys/select.h>
23069#endif
23070#ifdef HAVE_SYS_SOCKET_H
23071# include <sys/socket.h>
23072#endif
23073
23074int
23075main ()
23076{
23077extern int select ($ac_arg1,
23078 $ac_arg234, $ac_arg234, $ac_arg234,
23079 $ac_arg5);
23080 ;
23081 return 0;
23082}
23083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023085 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023086fi
cristy3ed852e2009-09-05 21:47:34 +000023087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 done
23089 done
23090done
23091# Provide a safe default value.
23092: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23093
23094fi
cristy8b350f62009-11-15 23:12:43 +000023095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023096$as_echo "$ac_cv_func_select_args" >&6; }
23097ac_save_IFS=$IFS; IFS=','
23098set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23099IFS=$ac_save_IFS
23100shift
23101
23102cat >>confdefs.h <<_ACEOF
23103#define SELECT_TYPE_ARG1 $1
23104_ACEOF
23105
23106
23107cat >>confdefs.h <<_ACEOF
23108#define SELECT_TYPE_ARG234 ($2)
23109_ACEOF
23110
23111
23112cat >>confdefs.h <<_ACEOF
23113#define SELECT_TYPE_ARG5 ($3)
23114_ACEOF
23115
23116rm -f conftest*
23117
cristy8b350f62009-11-15 23:12:43 +000023118if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023119 $as_echo_n "(cached) " >&6
23120else
23121 ac_cv_func_setvbuf_reversed=no
23122fi
23123
23124
cristy8b350f62009-11-15 23:12:43 +000023125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023126$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023127if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023128 $as_echo_n "(cached) " >&6
23129else
cristy8b350f62009-11-15 23:12:43 +000023130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023131/* end confdefs.h. */
23132#include <sys/types.h>
23133#include <signal.h>
23134
23135int
23136main ()
23137{
23138return *(signal (0, 0)) (0) == 1;
23139 ;
23140 return 0;
23141}
23142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023143if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023144 ac_cv_type_signal=int
23145else
cristy8b350f62009-11-15 23:12:43 +000023146 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023147fi
cristy3ed852e2009-09-05 21:47:34 +000023148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149fi
cristy8b350f62009-11-15 23:12:43 +000023150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023151$as_echo "$ac_cv_type_signal" >&6; }
23152
23153cat >>confdefs.h <<_ACEOF
23154#define RETSIGTYPE $ac_cv_type_signal
23155_ACEOF
23156
23157
cristy8b350f62009-11-15 23:12:43 +000023158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023159$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023160if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023161 $as_echo_n "(cached) " >&6
23162else
cristy8b350f62009-11-15 23:12:43 +000023163 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023164 ac_cv_func_strtod=no
23165else
cristy8b350f62009-11-15 23:12:43 +000023166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023167/* end confdefs.h. */
23168
23169$ac_includes_default
23170#ifndef strtod
23171double strtod ();
23172#endif
23173int
23174main()
23175{
23176 {
23177 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23178 char *string = " +69";
23179 char *term;
23180 double value;
23181 value = strtod (string, &term);
23182 if (value != 69 || term != (string + 4))
23183 return 1;
23184 }
23185
23186 {
23187 /* Under Solaris 2.4, strtod returns the wrong value for the
23188 terminating character under some conditions. */
23189 char *string = "NaN";
23190 char *term;
23191 strtod (string, &term);
23192 if (term != string && *(term - 1) == 0)
23193 return 1;
23194 }
23195 return 0;
23196}
23197
23198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023199if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023200 ac_cv_func_strtod=yes
23201else
cristy8b350f62009-11-15 23:12:43 +000023202 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023203fi
cristy8b350f62009-11-15 23:12:43 +000023204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23205 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023206fi
23207
cristy3ed852e2009-09-05 21:47:34 +000023208fi
cristy8b350f62009-11-15 23:12:43 +000023209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023210$as_echo "$ac_cv_func_strtod" >&6; }
23211if test $ac_cv_func_strtod = no; then
23212 case " $LIBOBJS " in
23213 *" strtod.$ac_objext "* ) ;;
23214 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23215 ;;
23216esac
23217
cristy8b350f62009-11-15 23:12:43 +000023218ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23219if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023220
cristy3ed852e2009-09-05 21:47:34 +000023221fi
23222
cristy3ed852e2009-09-05 21:47:34 +000023223if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023225$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023226if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023227 $as_echo_n "(cached) " >&6
23228else
23229 ac_check_lib_save_LIBS=$LIBS
23230LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023232/* end confdefs.h. */
23233
23234/* Override any GCC internal prototype to avoid an error.
23235 Use char because int might match the return type of a GCC
23236 builtin and then its argument prototype would still apply. */
23237#ifdef __cplusplus
23238extern "C"
23239#endif
23240char pow ();
23241int
23242main ()
23243{
23244return pow ();
23245 ;
23246 return 0;
23247}
23248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 ac_cv_lib_m_pow=yes
23251else
cristy8b350f62009-11-15 23:12:43 +000023252 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023253fi
cristy8b350f62009-11-15 23:12:43 +000023254rm -f core conftest.err conftest.$ac_objext \
23255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023256LIBS=$ac_check_lib_save_LIBS
23257fi
cristy8b350f62009-11-15 23:12:43 +000023258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023259$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023260if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023261 POW_LIB=-lm
23262else
cristy8b350f62009-11-15 23:12:43 +000023263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023264$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23265fi
23266
23267fi
23268
23269fi
23270
cristy3ed852e2009-09-05 21:47:34 +000023271for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023272do :
23273 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23274if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023275 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023276#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023277_ACEOF
23278
cristy8b350f62009-11-15 23:12:43 +000023279ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23280if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023281
cristy8b350f62009-11-15 23:12:43 +000023282$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023283
23284fi
23285
23286fi
23287done
23288
23289
23290
cristy161b9262010-03-20 19:34:32 +000023291#
23292# Find math library
23293#
23294MATH_LIBS=''
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23296$as_echo_n "checking for sqrt in -lm... " >&6; }
23297if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23299else
23300 ac_check_lib_save_LIBS=$LIBS
23301LIBS="-lm $LIBS"
23302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23303/* end confdefs.h. */
23304
23305/* Override any GCC internal prototype to avoid an error.
23306 Use char because int might match the return type of a GCC
23307 builtin and then its argument prototype would still apply. */
23308#ifdef __cplusplus
23309extern "C"
23310#endif
23311char sqrt ();
23312int
23313main ()
23314{
23315return sqrt ();
23316 ;
23317 return 0;
23318}
23319_ACEOF
23320if ac_fn_c_try_link "$LINENO"; then :
23321 ac_cv_lib_m_sqrt=yes
23322else
23323 ac_cv_lib_m_sqrt=no
23324fi
23325rm -f core conftest.err conftest.$ac_objext \
23326 conftest$ac_exeext conftest.$ac_ext
23327LIBS=$ac_check_lib_save_LIBS
23328fi
23329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23330$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23331if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23332 MATH_LIBS="-lm"
23333fi
23334
23335LIBS="$MATH_LIBS $LIBS"
23336
23337
cristyf1897e32010-08-29 19:59:09 +000023338for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023339do :
23340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23341ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023342eval as_val=\$$as_ac_var
23343 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023344 cat >>confdefs.h <<_ACEOF
23345#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23346_ACEOF
23347
23348fi
23349done
23350
23351
cristye43a45e2009-09-28 14:49:00 +000023352#
23353# Check for clock_gettime().
23354#
cristy8b350f62009-11-15 23:12:43 +000023355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023356$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023357if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023358 $as_echo_n "(cached) " >&6
23359else
23360 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023362/* end confdefs.h. */
23363
23364/* Override any GCC internal prototype to avoid an error.
23365 Use char because int might match the return type of a GCC
23366 builtin and then its argument prototype would still apply. */
23367#ifdef __cplusplus
23368extern "C"
23369#endif
23370char clock_gettime ();
23371int
23372main ()
23373{
23374return clock_gettime ();
23375 ;
23376 return 0;
23377}
23378_ACEOF
23379for ac_lib in '' rt; do
23380 if test -z "$ac_lib"; then
23381 ac_res="none required"
23382 else
23383 ac_res=-l$ac_lib
23384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23385 fi
cristy8b350f62009-11-15 23:12:43 +000023386 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023387 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023388fi
cristy8b350f62009-11-15 23:12:43 +000023389rm -f core conftest.err conftest.$ac_objext \
23390 conftest$ac_exeext
23391 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023392 break
23393fi
23394done
cristy8b350f62009-11-15 23:12:43 +000023395if test "${ac_cv_search_clock_gettime+set}" = set; then :
23396
cristye43a45e2009-09-28 14:49:00 +000023397else
23398 ac_cv_search_clock_gettime=no
23399fi
23400rm conftest.$ac_ext
23401LIBS=$ac_func_search_save_LIBS
23402fi
cristy8b350f62009-11-15 23:12:43 +000023403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023404$as_echo "$ac_cv_search_clock_gettime" >&6; }
23405ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023406if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23408
23409
cristy8b350f62009-11-15 23:12:43 +000023410$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023411
cristy8b350f62009-11-15 23:12:43 +000023412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023413$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023415/* end confdefs.h. */
23416#include <time.h>
23417int
23418main ()
23419{
23420clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023421 ;
23422 return 0;
23423}
23424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023425if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023426
cristy8b350f62009-11-15 23:12:43 +000023427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023428$as_echo "yes" >&6; }
23429
cristy8b350f62009-11-15 23:12:43 +000023430$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023431
23432
23433else
cristy8b350f62009-11-15 23:12:43 +000023434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023435$as_echo "no" >&6; }
23436
23437fi
cristye43a45e2009-09-28 14:49:00 +000023438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439
23440else
23441
cristy8b350f62009-11-15 23:12:43 +000023442 for ac_func in gettimeofday ftime
23443do :
23444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23445ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023446eval as_val=\$$as_ac_var
23447 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023448 cat >>confdefs.h <<_ACEOF
23449#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23450_ACEOF
23451 break
23452fi
23453done
23454
23455
23456
23457fi
23458
23459
cristy3ed852e2009-09-05 21:47:34 +000023460########
23461#
23462# Check for function prototypes
23463#
23464########
23465
cristy8b350f62009-11-15 23:12:43 +000023466ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023467#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023468"
23469if test "x$ac_cv_have_decl_pread" = x""yes; then :
23470 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023471else
cristy8b350f62009-11-15 23:12:43 +000023472 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023473fi
23474
cristy3ed852e2009-09-05 21:47:34 +000023475cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023476#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023478ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023479#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023480"
23481if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23482 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023483else
cristy8b350f62009-11-15 23:12:43 +000023484 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023485fi
23486
cristy3ed852e2009-09-05 21:47:34 +000023487cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023488#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023489_ACEOF
23490
23491
cristy8b350f62009-11-15 23:12:43 +000023492ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023493#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023494"
23495if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23496 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023497else
cristy8b350f62009-11-15 23:12:43 +000023498 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023499fi
23500
cristy3ed852e2009-09-05 21:47:34 +000023501cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023502#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023503_ACEOF
23504
23505
cristy8b350f62009-11-15 23:12:43 +000023506ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023507#include <stdio.h>
23508#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023509"
23510if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23511 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023512else
cristy8b350f62009-11-15 23:12:43 +000023513 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023514fi
23515
cristy3ed852e2009-09-05 21:47:34 +000023516cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023517#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023518_ACEOF
23519
23520
cristy3ed852e2009-09-05 21:47:34 +000023521########
23522#
23523# C++ Support Tests (For Magick++)
23524#
23525########
23526have_magick_plus_plus='no'
23527if test "$with_magick_plus_plus" = 'yes'; then
23528 OLIBS="$LIBS"
23529 LIBS=''
23530 ac_ext=cpp
23531ac_cpp='$CXXCPP $CPPFLAGS'
23532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23535
23536
23537 # Full set of headers used...
23538 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23539 # functional iomanip iosfwd iostream iterator list string strstream utility
23540 ac_ext=cpp
23541ac_cpp='$CXXCPP $CPPFLAGS'
23542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23545
23546 ac_ext=cpp
23547ac_cpp='$CXXCPP $CPPFLAGS'
23548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23551if test -z "$CXX"; then
23552 if test -n "$CCC"; then
23553 CXX=$CCC
23554 else
23555 if test -n "$ac_tool_prefix"; then
23556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23557 do
23558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023562if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023563 $as_echo_n "(cached) " >&6
23564else
23565 if test -n "$CXX"; then
23566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23567else
23568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23569for as_dir in $PATH
23570do
23571 IFS=$as_save_IFS
23572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023577 break 2
23578 fi
23579done
cristy8b350f62009-11-15 23:12:43 +000023580 done
cristy3ed852e2009-09-05 21:47:34 +000023581IFS=$as_save_IFS
23582
23583fi
23584fi
23585CXX=$ac_cv_prog_CXX
23586if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$CXX" >&6; }
23589else
cristy8b350f62009-11-15 23:12:43 +000023590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023591$as_echo "no" >&6; }
23592fi
23593
23594
23595 test -n "$CXX" && break
23596 done
23597fi
23598if test -z "$CXX"; then
23599 ac_ct_CXX=$CXX
23600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23601do
23602 # Extract the first word of "$ac_prog", so it can be a program name with args.
23603set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023605$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023606if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023607 $as_echo_n "(cached) " >&6
23608else
23609 if test -n "$ac_ct_CXX"; then
23610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23611else
23612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23613for as_dir in $PATH
23614do
23615 IFS=$as_save_IFS
23616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23619 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023621 break 2
23622 fi
23623done
cristy8b350f62009-11-15 23:12:43 +000023624 done
cristy3ed852e2009-09-05 21:47:34 +000023625IFS=$as_save_IFS
23626
23627fi
23628fi
23629ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23630if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023632$as_echo "$ac_ct_CXX" >&6; }
23633else
cristy8b350f62009-11-15 23:12:43 +000023634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635$as_echo "no" >&6; }
23636fi
23637
23638
23639 test -n "$ac_ct_CXX" && break
23640done
23641
23642 if test "x$ac_ct_CXX" = x; then
23643 CXX="g++"
23644 else
23645 case $cross_compiling:$ac_tool_warned in
23646yes:)
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23649ac_tool_warned=yes ;;
23650esac
23651 CXX=$ac_ct_CXX
23652 fi
23653fi
23654
23655 fi
23656fi
23657# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023658$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659set X $ac_compile
23660ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023661for ac_option in --version -v -V -qversion; do
23662 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023663case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23666esac
cristy8b350f62009-11-15 23:12:43 +000023667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23668$as_echo "$ac_try_echo"; } >&5
23669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023670 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023671 if test -s conftest.err; then
23672 sed '10a\
23673... rest of stderr output deleted ...
23674 10q' conftest.err >conftest.er1
23675 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023676 fi
cristycd4c5312009-11-22 01:19:08 +000023677 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }
23680done
cristy3ed852e2009-09-05 21:47:34 +000023681
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023684if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023685 $as_echo_n "(cached) " >&6
23686else
cristy8b350f62009-11-15 23:12:43 +000023687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023688/* end confdefs.h. */
23689
23690int
23691main ()
23692{
23693#ifndef __GNUC__
23694 choke me
23695#endif
23696
23697 ;
23698 return 0;
23699}
23700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023701if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023702 ac_compiler_gnu=yes
23703else
cristy8b350f62009-11-15 23:12:43 +000023704 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023705fi
cristy3ed852e2009-09-05 21:47:34 +000023706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23708
23709fi
cristy8b350f62009-11-15 23:12:43 +000023710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023711$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23712if test $ac_compiler_gnu = yes; then
23713 GXX=yes
23714else
23715 GXX=
23716fi
23717ac_test_CXXFLAGS=${CXXFLAGS+set}
23718ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023720$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023721if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023722 $as_echo_n "(cached) " >&6
23723else
23724 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23725 ac_cxx_werror_flag=yes
23726 ac_cv_prog_cxx_g=no
23727 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023729/* end confdefs.h. */
23730
23731int
23732main ()
23733{
23734
23735 ;
23736 return 0;
23737}
23738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023739if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023740 ac_cv_prog_cxx_g=yes
23741else
cristy8b350f62009-11-15 23:12:43 +000023742 CXXFLAGS=""
23743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023744/* end confdefs.h. */
23745
23746int
23747main ()
23748{
23749
23750 ;
23751 return 0;
23752}
23753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023754if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023755
cristy8b350f62009-11-15 23:12:43 +000023756else
23757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023758 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023760/* end confdefs.h. */
23761
23762int
23763main ()
23764{
23765
23766 ;
23767 return 0;
23768}
23769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023770if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023771 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023772fi
cristy3ed852e2009-09-05 21:47:34 +000023773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774fi
cristy3ed852e2009-09-05 21:47:34 +000023775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776fi
cristy3ed852e2009-09-05 21:47:34 +000023777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23779fi
cristy8b350f62009-11-15 23:12:43 +000023780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023781$as_echo "$ac_cv_prog_cxx_g" >&6; }
23782if test "$ac_test_CXXFLAGS" = set; then
23783 CXXFLAGS=$ac_save_CXXFLAGS
23784elif test $ac_cv_prog_cxx_g = yes; then
23785 if test "$GXX" = yes; then
23786 CXXFLAGS="-g -O2"
23787 else
23788 CXXFLAGS="-g"
23789 fi
23790else
23791 if test "$GXX" = yes; then
23792 CXXFLAGS="-O2"
23793 else
23794 CXXFLAGS=
23795 fi
23796fi
23797ac_ext=cpp
23798ac_cpp='$CXXCPP $CPPFLAGS'
23799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23802
cristy73bd4a52010-10-05 11:24:23 +000023803depcc="$CXX" am_compiler_list=
23804
23805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23806$as_echo_n "checking dependency style of $depcc... " >&6; }
23807if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23808 $as_echo_n "(cached) " >&6
23809else
23810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23811 # We make a subdir and do the tests there. Otherwise we can end up
23812 # making bogus files that we don't know about and never remove. For
23813 # instance it was reported that on HP-UX the gcc test will end up
23814 # making a dummy file named `D' -- because `-MD' means `put the output
23815 # in D'.
23816 mkdir conftest.dir
23817 # Copy depcomp to subdir because otherwise we won't find it if we're
23818 # using a relative directory.
23819 cp "$am_depcomp" conftest.dir
23820 cd conftest.dir
23821 # We will build objects and dependencies in a subdirectory because
23822 # it helps to detect inapplicable dependency modes. For instance
23823 # both Tru64's cc and ICC support -MD to output dependencies as a
23824 # side effect of compilation, but ICC will put the dependencies in
23825 # the current directory while Tru64 will put them in the object
23826 # directory.
23827 mkdir sub
23828
23829 am_cv_CXX_dependencies_compiler_type=none
23830 if test "$am_compiler_list" = ""; then
23831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23832 fi
23833 am__universal=false
23834 case " $depcc " in #(
23835 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23836 esac
23837
23838 for depmode in $am_compiler_list; do
23839 # Setup a source with many dependencies, because some compilers
23840 # like to wrap large dependency lists on column 80 (with \), and
23841 # we should not choose a depcomp mode which is confused by this.
23842 #
23843 # We need to recreate these files for each test, as the compiler may
23844 # overwrite some of them when testing with obscure command lines.
23845 # This happens at least with the AIX C compiler.
23846 : > sub/conftest.c
23847 for i in 1 2 3 4 5 6; do
23848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23849 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23850 # Solaris 8's {/usr,}/bin/sh.
23851 touch sub/conftst$i.h
23852 done
23853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23854
23855 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23856 # mode. It turns out that the SunPro C++ compiler does not properly
23857 # handle `-M -o', and we need to detect this. Also, some Intel
23858 # versions had trouble with output in subdirs
23859 am__obj=sub/conftest.${OBJEXT-o}
23860 am__minus_obj="-o $am__obj"
23861 case $depmode in
23862 gcc)
23863 # This depmode causes a compiler race in universal mode.
23864 test "$am__universal" = false || continue
23865 ;;
23866 nosideeffect)
23867 # after this tag, mechanisms are not by side-effect, so they'll
23868 # only be used when explicitly requested
23869 if test "x$enable_dependency_tracking" = xyes; then
23870 continue
23871 else
23872 break
23873 fi
23874 ;;
23875 msvisualcpp | msvcmsys)
23876 # This compiler won't grok `-c -o', but also, the minuso test has
23877 # not run yet. These depmodes are late enough in the game, and
23878 # so weak that their functioning should not be impacted.
23879 am__obj=conftest.${OBJEXT-o}
23880 am__minus_obj=
23881 ;;
23882 none) break ;;
23883 esac
23884 if depmode=$depmode \
23885 source=sub/conftest.c object=$am__obj \
23886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23888 >/dev/null 2>conftest.err &&
23889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23893 # icc doesn't choke on unknown options, it will just issue warnings
23894 # or remarks (even with -Werror). So we grep stderr for any message
23895 # that says an option was ignored or not supported.
23896 # When given -MP, icc 7.0 and 7.1 complain thusly:
23897 # icc: Command line warning: ignoring option '-M'; no argument required
23898 # The diagnosis changed in icc 8.0:
23899 # icc: Command line remark: option '-MP' not supported
23900 if (grep 'ignoring option' conftest.err ||
23901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23902 am_cv_CXX_dependencies_compiler_type=$depmode
23903 break
23904 fi
23905 fi
23906 done
23907
23908 cd ..
23909 rm -rf conftest.dir
23910else
23911 am_cv_CXX_dependencies_compiler_type=none
23912fi
23913
23914fi
23915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23916$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23917CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23918
23919 if
23920 test "x$enable_dependency_tracking" != xno \
23921 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23922 am__fastdepCXX_TRUE=
23923 am__fastdepCXX_FALSE='#'
23924else
23925 am__fastdepCXX_TRUE='#'
23926 am__fastdepCXX_FALSE=
23927fi
23928
23929
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23931$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23932if test "${ax_cv_cxx_bool+set}" = set; then :
23933 $as_echo_n "(cached) " >&6
23934else
23935
23936 ac_ext=cpp
23937ac_cpp='$CXXCPP $CPPFLAGS'
23938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23941
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943/* end confdefs.h. */
23944
23945int f(int x){return 1;}
23946int f(char x){return 1;}
23947int f(bool x){return 1;}
23948
23949int
23950main ()
23951{
23952bool b = true; return f(b);
23953 ;
23954 return 0;
23955}
23956_ACEOF
23957if ac_fn_cxx_try_compile "$LINENO"; then :
23958 ax_cv_cxx_bool=yes
23959else
23960 ax_cv_cxx_bool=no
23961fi
23962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23963 ac_ext=cpp
23964ac_cpp='$CXXCPP $CPPFLAGS'
23965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23968
23969
23970fi
23971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23972$as_echo "$ax_cv_cxx_bool" >&6; }
23973if test "$ax_cv_cxx_bool" = yes; then
23974
23975$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23976
23977fi
23978
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23980$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23981if test "${ax_cv_cxx_namespaces+set}" = set; then :
23982 $as_echo_n "(cached) " >&6
23983else
23984
23985 ac_ext=cpp
23986ac_cpp='$CXXCPP $CPPFLAGS'
23987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23990
23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23992/* end confdefs.h. */
23993namespace Outer { namespace Inner { int i = 0; }}
23994int
23995main ()
23996{
23997using namespace Outer::Inner; return i;
23998 ;
23999 return 0;
24000}
24001_ACEOF
24002if ac_fn_cxx_try_compile "$LINENO"; then :
24003 ax_cv_cxx_namespaces=yes
24004else
24005 ax_cv_cxx_namespaces=no
24006fi
24007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 ac_ext=cpp
24009ac_cpp='$CXXCPP $CPPFLAGS'
24010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24013
24014
24015fi
24016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24017$as_echo "$ax_cv_cxx_namespaces" >&6; }
24018if test "$ax_cv_cxx_namespaces" = yes; then
24019
24020$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24021
24022fi
24023
24024
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24026$as_echo_n "checking if g++ supports namespace std... " >&6; }
24027if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24028 $as_echo_n "(cached) " >&6
24029else
24030
24031 ac_ext=cpp
24032ac_cpp='$CXXCPP $CPPFLAGS'
24033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24036
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038/* end confdefs.h. */
24039#include <iostream>
24040 std::istream& is = std::cin;
24041int
24042main ()
24043{
24044
24045 ;
24046 return 0;
24047}
24048_ACEOF
24049if ac_fn_cxx_try_compile "$LINENO"; then :
24050 ax_cv_cxx_have_std_namespace=yes
24051else
24052 ax_cv_cxx_have_std_namespace=no
24053fi
24054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 ac_ext=cpp
24056ac_cpp='$CXXCPP $CPPFLAGS'
24057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24060
24061
24062fi
24063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24064$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24065 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24066
24067$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24068
24069 fi
24070
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24072$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24073if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24074 $as_echo_n "(cached) " >&6
24075else
24076
24077
24078 ac_ext=cpp
24079ac_cpp='$CXXCPP $CPPFLAGS'
24080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24083
24084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24085/* end confdefs.h. */
24086#include <iostream>
24087#include <map>
24088#include <iomanip>
24089#include <cmath>
24090#ifdef HAVE_NAMESPACES
24091using namespace std;
24092#endif
24093int
24094main ()
24095{
24096return 0;
24097 ;
24098 return 0;
24099}
24100_ACEOF
24101if ac_fn_cxx_try_compile "$LINENO"; then :
24102 ac_cv_cxx_have_std_libs=yes
24103else
24104 ac_cv_cxx_have_std_libs=no
24105fi
24106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107 ac_ext=cpp
24108ac_cpp='$CXXCPP $CPPFLAGS'
24109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24112
24113
24114fi
24115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24116$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24117if test "$ac_cv_cxx_have_std_libs" = yes; then
24118
24119$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24120
24121fi
24122
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24124$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24125if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24126 $as_echo_n "(cached) " >&6
24127else
24128
24129 ac_ext=cpp
24130ac_cpp='$CXXCPP $CPPFLAGS'
24131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24134
24135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24136/* end confdefs.h. */
24137const wchar_t* s=L"wide string";
24138_ACEOF
24139if ac_fn_cxx_try_compile "$LINENO"; then :
24140 ac_cv_cxx_have_lstring=yes
24141else
24142 ac_cv_cxx_have_lstring=no
24143fi
24144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145 ac_ext=cpp
24146ac_cpp='$CXXCPP $CPPFLAGS'
24147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24150
24151
24152fi
24153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24154$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24155if test "$ac_cv_cxx_have_lstring" = yes; then
24156
24157$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24158
24159fi
cristy3ed852e2009-09-05 21:47:34 +000024160
24161
24162 OPENMP_CXXFLAGS=
24163 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024164if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 enableval=$enable_openmp;
24166fi
24167
24168 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24170$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024171if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024172 $as_echo_n "(cached) " >&6
24173else
cristy8b350f62009-11-15 23:12:43 +000024174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24175/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024176
24177#ifndef _OPENMP
24178 choke me
24179#endif
24180#include <omp.h>
24181int main () { return omp_get_num_threads (); }
24182
24183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024184if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 ac_cv_prog_cxx_openmp='none needed'
24186else
cristy8b350f62009-11-15 23:12:43 +000024187 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024188 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24189 ac_save_CXXFLAGS=$CXXFLAGS
24190 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24192/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024193
24194#ifndef _OPENMP
24195 choke me
24196#endif
24197#include <omp.h>
24198int main () { return omp_get_num_threads (); }
24199
24200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024201if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024202 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024203fi
cristy8b350f62009-11-15 23:12:43 +000024204rm -f core conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024206 CXXFLAGS=$ac_save_CXXFLAGS
24207 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24208 break
24209 fi
24210 done
24211fi
cristy8b350f62009-11-15 23:12:43 +000024212rm -f core conftest.err conftest.$ac_objext \
24213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024214fi
cristy8b350f62009-11-15 23:12:43 +000024215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24217 case $ac_cv_prog_cxx_openmp in #(
24218 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024219 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024220 *)
cristy8b350f62009-11-15 23:12:43 +000024221 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024222 esac
24223 fi
24224
24225
24226 ac_ext=c
24227ac_cpp='$CPP $CPPFLAGS'
24228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24230ac_compiler_gnu=$ac_cv_c_compiler_gnu
24231
24232
cristy8b350f62009-11-15 23:12:43 +000024233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24235 if \
cristy964cb7f2010-04-25 23:18:00 +000024236 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024237 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024238 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024239 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024240 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024241 have_magick_plus_plus='yes'
24242 else
24243 have_magick_plus_plus='no (failed tests)'
24244 fi
cristy8b350f62009-11-15 23:12:43 +000024245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024246$as_echo "$have_magick_plus_plus" >&6; }
24247 LIBS="$OLIBS"
24248fi
cristy73bd4a52010-10-05 11:24:23 +000024249 if test "$have_magick_plus_plus" = 'yes'; then
24250 WITH_MAGICK_PLUS_PLUS_TRUE=
24251 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24252else
24253 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24254 WITH_MAGICK_PLUS_PLUS_FALSE=
24255fi
24256
cristy3ed852e2009-09-05 21:47:34 +000024257
24258# Only check for delegate libraries in subdirectories if requested.
24259if test "$enable_delegate_build" != 'no'; then
24260 # Check for delegate sub-directories and add -I & -L options as required.
24261 # This presumes that delegates are installed as detailed in the ImageMagick
24262 # README. If delegates are installed in a standard location where the
24263 # compiler will automatically find them then these options should not be
24264 # required.
24265
24266 #
24267 # Most delegates have includes in the same directory as the library, but not all...
24268 #
24269 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024270 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024271 if test -d "$builddir/$dir"; then
24272 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24273 else
24274 if test -d "$srcdirfull/$dir"; then
24275 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24276 fi
24277 fi
24278 done
24279
24280 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024281 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024282 if test -d "$builddir/$dir/.libs"; then
24283 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24284 else
24285 if test -d "$srcdirfull/$dir/.libs"; then
24286 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24287 fi
24288 fi
24289 if test -d "$builddir/$dir"; then
24290 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24291 else
24292 if test -d "$srcdirfull/$dir"; then
24293 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24294 fi
24295 fi
24296 done
24297fi
24298
24299# Assume that delegate headers reside under same directory as ImageMagick
24300# installation prefix.
24301MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24302
24303#
24304# Find the X11 RGB database
24305#
cristy8b350f62009-11-15 23:12:43 +000024306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024307$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024308if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024309 $as_echo_n "(cached) " >&6
24310else
24311 # Look for the header file in a standard set of common directories.
24312# Check X11 before X11Rn because it is often a symlink to the current release.
24313 for ac_dir in \
24314 /lib/usr/lib/X11 \
24315 /usr/X11/lib \
24316 /usr/X11R4/lib \
24317 /usr/X11R5/lib \
24318 /usr/X11R6/lib \
24319 /usr/X11R7/lib \
24320 /usr/X386/lib \
24321 /usr/XFree86/lib/X11 \
24322 /usr/athena/lib \
24323 /usr/lib \
24324 /usr/lib/X11 \
24325 /usr/lib/X11R4 \
24326 /usr/lib/X11R5 \
24327 /usr/lib/X11R6 \
24328 /usr/lib/X11R7 \
24329 /usr/local/X11/lib \
24330 /usr/local/X11R4/lib \
24331 /usr/local/X11R5/lib \
24332 /usr/local/X11R6/lib \
24333 /usr/local/lib \
24334 /usr/local/lib/X11 \
24335 /usr/local/lib/X11R4 \
24336 /usr/local/lib/X11R5 \
24337 /usr/local/lib/X11R6 \
24338 /usr/local/lib/X11R7 \
24339 /usr/local/x11r5/lib \
24340 /usr/lpp/Xamples/lib \
24341 /usr/openwin/lib \
24342 /usr/openwin/share/lib \
24343 /usr/unsupported/lib \
24344 /usr/x386/lib \
24345 ; do
24346 if test -f "$ac_dir/X11/rgb.txt"; then
24347 im_cv_x_configure="$ac_dir/X11/"
24348 break
24349 elif test -f "$ac_dir/rgb.txt"; then
24350 im_cv_x_configure="$ac_dir/"
24351 break
24352 fi
24353
24354 done
24355fi
cristy8b350f62009-11-15 23:12:43 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo "$im_cv_x_configure" >&6; }
24358X11_CONFIGURE_PATH="$im_cv_x_configure"
24359case "${build_os}" in
24360 mingw* )
24361 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24362 ;;
24363esac
24364
24365cat >>confdefs.h <<_ACEOF
24366#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24367_ACEOF
24368
24369
24370#
24371# Find OpenMP library
24372#
24373GOMP_LIBS=''
24374if test "$enable_openmp" != 'no'; then
24375 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024377$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024378if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024379 $as_echo_n "(cached) " >&6
24380else
24381 ac_check_lib_save_LIBS=$LIBS
24382LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024384/* end confdefs.h. */
24385
24386/* Override any GCC internal prototype to avoid an error.
24387 Use char because int might match the return type of a GCC
24388 builtin and then its argument prototype would still apply. */
24389#ifdef __cplusplus
24390extern "C"
24391#endif
24392char GOMP_parallel_start ();
24393int
24394main ()
24395{
24396return GOMP_parallel_start ();
24397 ;
24398 return 0;
24399}
24400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024402 ac_cv_lib_gomp_GOMP_parallel_start=yes
24403else
cristy8b350f62009-11-15 23:12:43 +000024404 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024405fi
cristy8b350f62009-11-15 23:12:43 +000024406rm -f core conftest.err conftest.$ac_objext \
24407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024408LIBS=$ac_check_lib_save_LIBS
24409fi
cristy8b350f62009-11-15 23:12:43 +000024410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024411$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024412if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 GOMP_LIBS="-lgomp"
24414fi
24415 # gcc
24416 else
cristy8b350f62009-11-15 23:12:43 +000024417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024418$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024419if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024420 $as_echo_n "(cached) " >&6
24421else
24422 ac_check_lib_save_LIBS=$LIBS
24423LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024425/* end confdefs.h. */
24426
24427/* Override any GCC internal prototype to avoid an error.
24428 Use char because int might match the return type of a GCC
24429 builtin and then its argument prototype would still apply. */
24430#ifdef __cplusplus
24431extern "C"
24432#endif
24433char sunw_mp_register_warn ();
24434int
24435main ()
24436{
24437return sunw_mp_register_warn ();
24438 ;
24439 return 0;
24440}
24441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024442if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024443 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24444else
cristy8b350f62009-11-15 23:12:43 +000024445 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024446fi
cristy8b350f62009-11-15 23:12:43 +000024447rm -f core conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024449LIBS=$ac_check_lib_save_LIBS
24450fi
cristy8b350f62009-11-15 23:12:43 +000024451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024452$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024453if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024454 GOMP_LIBS="-lmtsk"
24455fi
24456 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024458$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024459if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024460 $as_echo_n "(cached) " >&6
24461else
24462 ac_check_lib_save_LIBS=$LIBS
24463LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024465/* end confdefs.h. */
24466
24467/* Override any GCC internal prototype to avoid an error.
24468 Use char because int might match the return type of a GCC
24469 builtin and then its argument prototype would still apply. */
24470#ifdef __cplusplus
24471extern "C"
24472#endif
24473char _xlsmpFlush ();
24474int
24475main ()
24476{
24477return _xlsmpFlush ();
24478 ;
24479 return 0;
24480}
24481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024483 ac_cv_lib_xlsmp__xlsmpFlush=yes
24484else
cristy8b350f62009-11-15 23:12:43 +000024485 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024486fi
cristy8b350f62009-11-15 23:12:43 +000024487rm -f core conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024489LIBS=$ac_check_lib_save_LIBS
24490fi
cristy8b350f62009-11-15 23:12:43 +000024491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024492$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024493if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024494 GOMP_LIBS="-lxlsmp"
24495fi
24496 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024498$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024499if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024500 $as_echo_n "(cached) " >&6
24501else
24502 ac_check_lib_save_LIBS=$LIBS
24503LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024505/* end confdefs.h. */
24506
24507/* Override any GCC internal prototype to avoid an error.
24508 Use char because int might match the return type of a GCC
24509 builtin and then its argument prototype would still apply. */
24510#ifdef __cplusplus
24511extern "C"
24512#endif
24513char mp_destroy ();
24514int
24515main ()
24516{
24517return mp_destroy ();
24518 ;
24519 return 0;
24520}
24521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024523 ac_cv_lib_mp_mp_destroy=yes
24524else
cristy8b350f62009-11-15 23:12:43 +000024525 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024526fi
cristy8b350f62009-11-15 23:12:43 +000024527rm -f core conftest.err conftest.$ac_objext \
24528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024529LIBS=$ac_check_lib_save_LIBS
24530fi
cristy8b350f62009-11-15 23:12:43 +000024531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024532$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024533if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024534 GOMP_LIBS="-lmp"
24535fi
24536 # SGI IRIX 6.5 MIPSpro C/C++
24537 fi
24538 LIBS="$GOMP_LIBS $LIBS"
24539fi
24540
24541
24542#
24543# Find Posix threads library
24544#
24545THREAD_LIBS=''
24546if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24547
24548 if test "x$PTHREAD_LIBS" = "x"; then
24549 case "${host_cpu}-${host_os}" in
24550 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000024551
24552
24553
24554ac_ext=c
24555ac_cpp='$CPP $CPPFLAGS'
24556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24558ac_compiler_gnu=$ac_cv_c_compiler_gnu
24559
24560magick_pthread_lib_ok=no
24561
24562LIB=-lc_r
24563save_LIBS="$LIBS"
24564LIBS="$LIBS $LIB"
24565
24566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24567$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569/* end confdefs.h. */
24570#include <pthread.h>
24571int
24572main ()
24573{
24574 pthread_t th;
24575 pthread_join(th, 0);
24576 pthread_attr_init(0);
24577 pthread_cleanup_push(0, 0);
24578 pthread_create(0,0,0,0);
24579 pthread_cleanup_pop(0);
24580 ;
24581 return 0;
24582}
24583_ACEOF
24584if ac_fn_c_try_link "$LINENO"; then :
24585 magick_pthread_lib_ok=yes
24586fi
24587rm -f core conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
24589
24590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24591$as_echo "${magick_pthread_lib_ok}" >&6; }
24592if test "$magick_pthread_lib_ok" = yes
24593then
24594 PTHREAD_LIBS=-lc_r
24595 :
24596else
24597
24598 :
24599fi
24600
24601LIBS="$save_LIBS"
24602
24603ac_ext=c
24604ac_cpp='$CPP $CPPFLAGS'
24605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24607ac_compiler_gnu=$ac_cv_c_compiler_gnu
24608
24609 ;;
cristy3ed852e2009-09-05 21:47:34 +000024610 esac
24611 fi
24612
24613 for lib in pthread pthreads; do
24614 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000024615
24616
24617
24618ac_ext=c
24619ac_cpp='$CPP $CPPFLAGS'
24620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24622ac_compiler_gnu=$ac_cv_c_compiler_gnu
24623
24624magick_pthread_lib_ok=no
24625
24626LIB=-l$lib
24627save_LIBS="$LIBS"
24628LIBS="$LIBS $LIB"
24629
24630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24631$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633/* end confdefs.h. */
24634#include <pthread.h>
24635int
24636main ()
24637{
24638 pthread_t th;
24639 pthread_join(th, 0);
24640 pthread_attr_init(0);
24641 pthread_cleanup_push(0, 0);
24642 pthread_create(0,0,0,0);
24643 pthread_cleanup_pop(0);
24644 ;
24645 return 0;
24646}
24647_ACEOF
24648if ac_fn_c_try_link "$LINENO"; then :
24649 magick_pthread_lib_ok=yes
24650fi
24651rm -f core conftest.err conftest.$ac_objext \
24652 conftest$ac_exeext conftest.$ac_ext
24653
24654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24655$as_echo "${magick_pthread_lib_ok}" >&6; }
24656if test "$magick_pthread_lib_ok" = yes
24657then
24658 PTHREAD_LIBS=-l$lib
24659 :
24660else
24661
24662 :
24663fi
24664
24665LIBS="$save_LIBS"
24666
24667ac_ext=c
24668ac_cpp='$CPP $CPPFLAGS'
24669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24671ac_compiler_gnu=$ac_cv_c_compiler_gnu
24672
24673
cristy3ed852e2009-09-05 21:47:34 +000024674 fi
24675 done
24676
24677 THREAD_LIBS="$PTHREAD_LIBS"
24678 LIBS="$LIBS $THREAD_LIBS"
24679fi
24680
24681
24682#
24683# Check for umem.
24684#
24685have_umem='no'
24686UMEM_LIBS=''
24687if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024691$as_echo "" >&6; }
24692 failed=0
24693 passed=0
cristy8b350f62009-11-15 23:12:43 +000024694 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24695if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024696 passed=`expr $passed + 1`
24697else
24698 failed=`expr $failed + 1`
24699fi
24700
24701
cristy8b350f62009-11-15 23:12:43 +000024702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024703$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024704if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 $as_echo_n "(cached) " >&6
24706else
24707 ac_check_lib_save_LIBS=$LIBS
24708LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024710/* end confdefs.h. */
24711
24712/* Override any GCC internal prototype to avoid an error.
24713 Use char because int might match the return type of a GCC
24714 builtin and then its argument prototype would still apply. */
24715#ifdef __cplusplus
24716extern "C"
24717#endif
24718char umem_alloc ();
24719int
24720main ()
24721{
24722return umem_alloc ();
24723 ;
24724 return 0;
24725}
24726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024728 ac_cv_lib_umem_umem_alloc=yes
24729else
cristy8b350f62009-11-15 23:12:43 +000024730 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024731fi
cristy8b350f62009-11-15 23:12:43 +000024732rm -f core conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024734LIBS=$ac_check_lib_save_LIBS
24735fi
cristy8b350f62009-11-15 23:12:43 +000024736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024737$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024738if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024739 passed=`expr $passed + 1`
24740else
24741 failed=`expr $failed + 1`
24742fi
24743
cristy8b350f62009-11-15 23:12:43 +000024744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024745$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024746if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 $as_echo_n "(cached) " >&6
24748else
24749 ac_check_lib_save_LIBS=$LIBS
24750LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024752/* end confdefs.h. */
24753
24754/* Override any GCC internal prototype to avoid an error.
24755 Use char because int might match the return type of a GCC
24756 builtin and then its argument prototype would still apply. */
24757#ifdef __cplusplus
24758extern "C"
24759#endif
24760char umem_free ();
24761int
24762main ()
24763{
24764return umem_free ();
24765 ;
24766 return 0;
24767}
24768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024770 ac_cv_lib_umem_umem_free=yes
24771else
cristy8b350f62009-11-15 23:12:43 +000024772 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024773fi
cristy8b350f62009-11-15 23:12:43 +000024774rm -f core conftest.err conftest.$ac_objext \
24775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024776LIBS=$ac_check_lib_save_LIBS
24777fi
cristy8b350f62009-11-15 23:12:43 +000024778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024780if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024781 passed=`expr $passed + 1`
24782else
24783 failed=`expr $failed + 1`
24784fi
24785
cristy8b350f62009-11-15 23:12:43 +000024786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024787$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24788 if test $passed -gt 0; then
24789 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024791$as_echo "no -- some components failed test" >&6; }
24792 have_umem='no (failed tests)'
24793 else
24794 UMEM_LIBS='-lumem'
24795 LIBS="$UMEM_LIBS $LIBS"
24796
cristy8b350f62009-11-15 23:12:43 +000024797$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024798
cristy8b350f62009-11-15 23:12:43 +000024799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo "yes" >&6; }
24801 have_umem='yes'
24802 fi
24803 else
cristy8b350f62009-11-15 23:12:43 +000024804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024805$as_echo "no" >&6; }
24806 fi
24807fi
cristy73bd4a52010-10-05 11:24:23 +000024808 if test "$have_umem" = 'yes'; then
24809 HasUMEM_TRUE=
24810 HasUMEM_FALSE='#'
24811else
24812 HasUMEM_TRUE='#'
24813 HasUMEM_FALSE=
24814fi
24815
cristy3ed852e2009-09-05 21:47:34 +000024816
24817
24818#
24819# Add support for ccmalloc memory debugging library if requested
24820#
24821have_ccmalloc='no'
24822CCMALLOC_LIBS=''
24823if test "$enable_ccmalloc" = 'yes'; then
24824 # Extract the first word of "ccmalloc", so it can be a program name with args.
24825set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024827$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024828if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024829 $as_echo_n "(cached) " >&6
24830else
24831 case $CCMALLOCDelegate in
24832 [\\/]* | ?:[\\/]*)
24833 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24834 ;;
24835 *)
24836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24837for as_dir in $PATH
24838do
24839 IFS=$as_save_IFS
24840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24843 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024845 break 2
24846 fi
24847done
cristy8b350f62009-11-15 23:12:43 +000024848 done
cristy3ed852e2009-09-05 21:47:34 +000024849IFS=$as_save_IFS
24850
24851 ;;
24852esac
24853fi
24854CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24855if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024857$as_echo "$CCMALLOCDelegate" >&6; }
24858else
cristy8b350f62009-11-15 23:12:43 +000024859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024860$as_echo "no" >&6; }
24861fi
24862
24863
24864 if test -n "$CCMALLOCDelegate"; then
24865 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24866 OLIBS="$LIBS"
24867 # Assume that gcc is used with ccmalloc.
24868 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024870$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024871if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024872 $as_echo_n "(cached) " >&6
24873else
24874 ac_check_lib_save_LIBS=$LIBS
24875LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024877/* end confdefs.h. */
24878
24879/* Override any GCC internal prototype to avoid an error.
24880 Use char because int might match the return type of a GCC
24881 builtin and then its argument prototype would still apply. */
24882#ifdef __cplusplus
24883extern "C"
24884#endif
24885char ccmalloc_malloc ();
24886int
24887main ()
24888{
24889return ccmalloc_malloc ();
24890 ;
24891 return 0;
24892}
24893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024895 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24896else
cristy8b350f62009-11-15 23:12:43 +000024897 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024898fi
cristy8b350f62009-11-15 23:12:43 +000024899rm -f core conftest.err conftest.$ac_objext \
24900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024901LIBS=$ac_check_lib_save_LIBS
24902fi
cristy8b350f62009-11-15 23:12:43 +000024903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024904$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024905if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024906 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24907fi
24908
24909 if test -n "$CCMALLOC_LIBS"; then
24910 LIBS="$OLIBS"
24911 LIBS="$LIBS $CCMALLOC_LIBS"
24912 have_ccmalloc='yes'
24913 else
24914 LIBS="$OLIBS"
24915 fi
24916 fi
24917fi
24918
24919#
24920# Add support for efence memory debugging library if requested
24921#
24922if test "$enable_efence" = 'yes'; then
24923 EFENCE_LIBS='-lefence'
24924 LIBS="$EFENCE_LIBS $LIBS"
24925fi
24926
cristy3ed852e2009-09-05 21:47:34 +000024927
24928#
24929# Check for BZLIB
24930#
24931
24932
24933# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024934if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024935 withval=$with_bzlib; with_bzlib=$withval
24936else
24937 with_bzlib='yes'
24938fi
24939
24940
24941if test "$with_bzlib" != 'yes'; then
24942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24943fi
24944
24945have_bzlib='no'
24946if test "$with_bzlib" != 'no'; then
24947 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024951$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024953$as_echo "" >&6; }
24954 failed=0
24955 passed=0
24956 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024957 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24958if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024959 passed=`expr $passed + 1`
24960else
24961 failed=`expr $failed + 1`
24962fi
24963
24964
cristy8b350f62009-11-15 23:12:43 +000024965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024966$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024967if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 $as_echo_n "(cached) " >&6
24969else
24970 ac_check_lib_save_LIBS=$LIBS
24971LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024973/* end confdefs.h. */
24974
24975/* Override any GCC internal prototype to avoid an error.
24976 Use char because int might match the return type of a GCC
24977 builtin and then its argument prototype would still apply. */
24978#ifdef __cplusplus
24979extern "C"
24980#endif
24981char BZ2_bzDecompress ();
24982int
24983main ()
24984{
24985return BZ2_bzDecompress ();
24986 ;
24987 return 0;
24988}
24989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024991 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24992else
cristy8b350f62009-11-15 23:12:43 +000024993 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024994fi
cristy8b350f62009-11-15 23:12:43 +000024995rm -f core conftest.err conftest.$ac_objext \
24996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024997LIBS=$ac_check_lib_save_LIBS
24998fi
cristy8b350f62009-11-15 23:12:43 +000024999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025001if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025002 found_libbz=`expr $found_libbz + 1`
25003fi
25004
25005 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025008if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 $as_echo_n "(cached) " >&6
25010else
25011 ac_check_lib_save_LIBS=$LIBS
25012LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025014/* end confdefs.h. */
25015
25016/* Override any GCC internal prototype to avoid an error.
25017 Use char because int might match the return type of a GCC
25018 builtin and then its argument prototype would still apply. */
25019#ifdef __cplusplus
25020extern "C"
25021#endif
25022char _imp__BZ2_decompress ();
25023int
25024main ()
25025{
25026return _imp__BZ2_decompress ();
25027 ;
25028 return 0;
25029}
25030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025031if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025032 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25033else
cristy8b350f62009-11-15 23:12:43 +000025034 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025035fi
cristy8b350f62009-11-15 23:12:43 +000025036rm -f core conftest.err conftest.$ac_objext \
25037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025038LIBS=$ac_check_lib_save_LIBS
25039fi
cristy8b350f62009-11-15 23:12:43 +000025040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025041$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025042if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025043 found_libbz=`expr $found_libbz + 1`
25044fi
25045
25046 fi
25047 if test $found_libbz -gt 0; then
25048 passed=`expr $passed + 1`
25049 else
25050 failed=`expr $failed + 1`
25051 fi
cristy8b350f62009-11-15 23:12:43 +000025052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025053$as_echo_n "checking if BZLIB package is complete... " >&6; }
25054 if test $passed -gt 0; then
25055 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo "no -- some components failed test" >&6; }
25058 have_bzlib='no (failed tests)'
25059 else
25060 BZLIB_LIBS='-lbz2'
25061 LIBS="$BZLIB_LIBS $LIBS"
25062
cristy8b350f62009-11-15 23:12:43 +000025063$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025064
cristy8b350f62009-11-15 23:12:43 +000025065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025066$as_echo "yes" >&6; }
25067 have_bzlib='yes'
25068 fi
25069 else
cristy8b350f62009-11-15 23:12:43 +000025070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo "no" >&6; }
25072 fi
25073fi
cristy73bd4a52010-10-05 11:24:23 +000025074 if test "$have_bzlib" = 'yes'; then
25075 BZLIB_DELEGATE_TRUE=
25076 BZLIB_DELEGATE_FALSE='#'
25077else
25078 BZLIB_DELEGATE_TRUE='#'
25079 BZLIB_DELEGATE_FALSE=
25080fi
25081
cristy3ed852e2009-09-05 21:47:34 +000025082
25083
25084#
25085# Find the X11 include and library directories.
25086#
25087IPC_LIBS=''
25088X11_LIBS=''
25089XEXT_LIBS=''
25090XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025092$as_echo_n "checking for X... " >&6; }
25093
25094
25095# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025096if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025097 withval=$with_x;
25098fi
25099
25100# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25101if test "x$with_x" = xno; then
25102 # The user explicitly disabled X.
25103 have_x=disabled
25104else
25105 case $x_includes,$x_libraries in #(
cristyf6fcb5d2010-09-24 01:19:13 +000025106 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000025107 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025108 $as_echo_n "(cached) " >&6
25109else
25110 # One or both of the vars are not set, and there is no cached value.
25111ac_x_includes=no ac_x_libraries=no
25112rm -f -r conftest.dir
25113if mkdir conftest.dir; then
25114 cd conftest.dir
25115 cat >Imakefile <<'_ACEOF'
25116incroot:
25117 @echo incroot='${INCROOT}'
25118usrlibdir:
25119 @echo usrlibdir='${USRLIBDIR}'
25120libdir:
25121 @echo libdir='${LIBDIR}'
25122_ACEOF
25123 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyf6fcb5d2010-09-24 01:19:13 +000025124 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025125 for ac_var in incroot usrlibdir libdir; do
25126 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25127 done
25128 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25129 for ac_extension in a so sl dylib la dll; do
25130 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25131 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25132 ac_im_usrlibdir=$ac_im_libdir; break
25133 fi
25134 done
25135 # Screen out bogus values from the imake configuration. They are
25136 # bogus both because they are the default anyway, and because
25137 # using them would break gcc on systems where it needs fixed includes.
25138 case $ac_im_incroot in
25139 /usr/include) ac_x_includes= ;;
25140 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25141 esac
25142 case $ac_im_usrlibdir in
25143 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25144 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25145 esac
25146 fi
25147 cd ..
25148 rm -f -r conftest.dir
25149fi
25150
25151# Standard set of common directories for X headers.
25152# Check X11 before X11Rn because it is often a symlink to the current release.
25153ac_x_header_dirs='
25154/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025155/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025156/usr/X11R6/include
25157/usr/X11R5/include
25158/usr/X11R4/include
25159
25160/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025161/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025162/usr/include/X11R6
25163/usr/include/X11R5
25164/usr/include/X11R4
25165
25166/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025167/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025168/usr/local/X11R6/include
25169/usr/local/X11R5/include
25170/usr/local/X11R4/include
25171
25172/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025173/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025174/usr/local/include/X11R6
25175/usr/local/include/X11R5
25176/usr/local/include/X11R4
25177
25178/usr/X386/include
25179/usr/x386/include
25180/usr/XFree86/include/X11
25181
25182/usr/include
25183/usr/local/include
25184/usr/unsupported/include
25185/usr/athena/include
25186/usr/local/x11r5/include
25187/usr/lpp/Xamples/include
25188
25189/usr/openwin/include
25190/usr/openwin/share/include'
25191
25192if test "$ac_x_includes" = no; then
25193 # Guess where to find include files, by looking for Xlib.h.
25194 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025196/* end confdefs.h. */
25197#include <X11/Xlib.h>
25198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025199if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025200 # We can compile using X headers with no special include directory.
25201ac_x_includes=
25202else
cristyc7083c12009-10-14 03:16:55 +000025203 for ac_dir in $ac_x_header_dirs; do
25204 if test -r "$ac_dir/X11/Xlib.h"; then
25205 ac_x_includes=$ac_dir
25206 break
25207 fi
25208done
25209fi
cristyc7083c12009-10-14 03:16:55 +000025210rm -f conftest.err conftest.$ac_ext
25211fi # $ac_x_includes = no
25212
25213if test "$ac_x_libraries" = no; then
25214 # Check for the libraries.
25215 # See if we find them without any special options.
25216 # Don't add to $LIBS permanently.
25217 ac_save_LIBS=$LIBS
25218 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025220/* end confdefs.h. */
25221#include <X11/Xlib.h>
25222int
25223main ()
25224{
25225XrmInitialize ()
25226 ;
25227 return 0;
25228}
25229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025230if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025231 LIBS=$ac_save_LIBS
25232# We can link X programs with no special library path.
25233ac_x_libraries=
25234else
cristy8b350f62009-11-15 23:12:43 +000025235 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025236for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25237do
25238 # Don't even attempt the hair of trying to link an X program!
25239 for ac_extension in a so sl dylib la dll; do
25240 if test -r "$ac_dir/libX11.$ac_extension"; then
25241 ac_x_libraries=$ac_dir
25242 break 2
25243 fi
25244 done
25245done
25246fi
cristy8b350f62009-11-15 23:12:43 +000025247rm -f core conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025249fi # $ac_x_libraries = no
25250
25251case $ac_x_includes,$ac_x_libraries in #(
25252 no,* | *,no | *\'*)
25253 # Didn't find X, or a directory has "'" in its name.
25254 ac_cv_have_x="have_x=no";; #(
25255 *)
25256 # Record where we found X for the cache.
25257 ac_cv_have_x="have_x=yes\
25258 ac_x_includes='$ac_x_includes'\
25259 ac_x_libraries='$ac_x_libraries'"
25260esac
25261fi
25262;; #(
25263 *) have_x=yes;;
25264 esac
25265 eval "$ac_cv_have_x"
25266fi # $with_x != no
25267
25268if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025270$as_echo "$have_x" >&6; }
25271 no_x=yes
25272else
25273 # If each of the values was on the command line, it overrides each guess.
25274 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25275 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25276 # Update the cache value to reflect the command line values.
25277 ac_cv_have_x="have_x=yes\
25278 ac_x_includes='$x_includes'\
25279 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025281$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25282fi
25283
cristy3ed852e2009-09-05 21:47:34 +000025284if test "$no_x" = yes; then
25285 # Not all programs may use this symbol, but it does not hurt to define it.
25286
cristy8b350f62009-11-15 23:12:43 +000025287$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025288
25289 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25290else
25291 if test -n "$x_includes"; then
25292 X_CFLAGS="$X_CFLAGS -I$x_includes"
25293 fi
25294
25295 # It would also be nice to do this for all -L options, not just this one.
25296 if test -n "$x_libraries"; then
25297 X_LIBS="$X_LIBS -L$x_libraries"
25298 # For Solaris; some versions of Sun CC require a space after -R and
25299 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025301$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25302 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25303 ac_xsave_c_werror_flag=$ac_c_werror_flag
25304 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025306/* end confdefs.h. */
25307
25308int
25309main ()
25310{
25311
25312 ;
25313 return 0;
25314}
25315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025316if ac_fn_c_try_link "$LINENO"; then :
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo "no" >&6; }
25319 X_LIBS="$X_LIBS -R$x_libraries"
25320else
cristy8b350f62009-11-15 23:12:43 +000025321 LIBS="$ac_xsave_LIBS -R $x_libraries"
25322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025323/* end confdefs.h. */
25324
25325int
25326main ()
25327{
25328
25329 ;
25330 return 0;
25331}
25332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025333if ac_fn_c_try_link "$LINENO"; then :
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo "yes" >&6; }
25336 X_LIBS="$X_LIBS -R $x_libraries"
25337else
cristy8b350f62009-11-15 23:12:43 +000025338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo "neither works" >&6; }
25340fi
cristy8b350f62009-11-15 23:12:43 +000025341rm -f core conftest.err conftest.$ac_objext \
25342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025343fi
cristy8b350f62009-11-15 23:12:43 +000025344rm -f core conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025346 ac_c_werror_flag=$ac_xsave_c_werror_flag
25347 LIBS=$ac_xsave_LIBS
25348 fi
25349
25350 # Check for system-dependent libraries X programs must link with.
25351 # Do this before checking for the system-independent R6 libraries
25352 # (-lICE), since we may need -lsocket or whatever for X linking.
25353
25354 if test "$ISC" = yes; then
25355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25356 else
25357 # Martyn Johnson says this is needed for Ultrix, if the X
25358 # libraries were built with DECnet support. And Karl Berry says
25359 # the Alpha needs dnet_stub (dnet does not exist).
25360 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025362/* end confdefs.h. */
25363
25364/* Override any GCC internal prototype to avoid an error.
25365 Use char because int might match the return type of a GCC
25366 builtin and then its argument prototype would still apply. */
25367#ifdef __cplusplus
25368extern "C"
25369#endif
25370char XOpenDisplay ();
25371int
25372main ()
25373{
25374return XOpenDisplay ();
25375 ;
25376 return 0;
25377}
25378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025379if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025380
cristy8b350f62009-11-15 23:12:43 +000025381else
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025383$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025384if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025385 $as_echo_n "(cached) " >&6
25386else
25387 ac_check_lib_save_LIBS=$LIBS
25388LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025390/* end confdefs.h. */
25391
25392/* Override any GCC internal prototype to avoid an error.
25393 Use char because int might match the return type of a GCC
25394 builtin and then its argument prototype would still apply. */
25395#ifdef __cplusplus
25396extern "C"
25397#endif
25398char dnet_ntoa ();
25399int
25400main ()
25401{
25402return dnet_ntoa ();
25403 ;
25404 return 0;
25405}
25406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025408 ac_cv_lib_dnet_dnet_ntoa=yes
25409else
cristy8b350f62009-11-15 23:12:43 +000025410 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025411fi
cristy8b350f62009-11-15 23:12:43 +000025412rm -f core conftest.err conftest.$ac_objext \
25413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025414LIBS=$ac_check_lib_save_LIBS
25415fi
cristy8b350f62009-11-15 23:12:43 +000025416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025417$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025418if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025419 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25420fi
25421
25422 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025424$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025425if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025426 $as_echo_n "(cached) " >&6
25427else
25428 ac_check_lib_save_LIBS=$LIBS
25429LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025431/* end confdefs.h. */
25432
25433/* Override any GCC internal prototype to avoid an error.
25434 Use char because int might match the return type of a GCC
25435 builtin and then its argument prototype would still apply. */
25436#ifdef __cplusplus
25437extern "C"
25438#endif
25439char dnet_ntoa ();
25440int
25441main ()
25442{
25443return dnet_ntoa ();
25444 ;
25445 return 0;
25446}
25447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025448if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025449 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25450else
cristy8b350f62009-11-15 23:12:43 +000025451 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025452fi
cristy8b350f62009-11-15 23:12:43 +000025453rm -f core conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025455LIBS=$ac_check_lib_save_LIBS
25456fi
cristy8b350f62009-11-15 23:12:43 +000025457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025459if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25461fi
25462
25463 fi
25464fi
cristy8b350f62009-11-15 23:12:43 +000025465rm -f core conftest.err conftest.$ac_objext \
25466 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467 LIBS="$ac_xsave_LIBS"
25468
25469 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25470 # to get the SysV transport functions.
25471 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25472 # needs -lnsl.
25473 # The nsl library prevents programs from opening the X display
25474 # on Irix 5.2, according to T.E. Dickey.
25475 # The functions gethostbyname, getservbyname, and inet_addr are
25476 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025477 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25478if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025479
cristy3ed852e2009-09-05 21:47:34 +000025480fi
25481
cristy3ed852e2009-09-05 21:47:34 +000025482 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025484$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025485if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 $as_echo_n "(cached) " >&6
25487else
25488 ac_check_lib_save_LIBS=$LIBS
25489LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491/* end confdefs.h. */
25492
25493/* Override any GCC internal prototype to avoid an error.
25494 Use char because int might match the return type of a GCC
25495 builtin and then its argument prototype would still apply. */
25496#ifdef __cplusplus
25497extern "C"
25498#endif
25499char gethostbyname ();
25500int
25501main ()
25502{
25503return gethostbyname ();
25504 ;
25505 return 0;
25506}
25507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025508if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025509 ac_cv_lib_nsl_gethostbyname=yes
25510else
cristy8b350f62009-11-15 23:12:43 +000025511 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025512fi
cristy8b350f62009-11-15 23:12:43 +000025513rm -f core conftest.err conftest.$ac_objext \
25514 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025515LIBS=$ac_check_lib_save_LIBS
25516fi
cristy8b350f62009-11-15 23:12:43 +000025517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025518$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025519if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25521fi
25522
25523 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025525$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025526if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 $as_echo_n "(cached) " >&6
25528else
25529 ac_check_lib_save_LIBS=$LIBS
25530LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025532/* end confdefs.h. */
25533
25534/* Override any GCC internal prototype to avoid an error.
25535 Use char because int might match the return type of a GCC
25536 builtin and then its argument prototype would still apply. */
25537#ifdef __cplusplus
25538extern "C"
25539#endif
25540char gethostbyname ();
25541int
25542main ()
25543{
25544return gethostbyname ();
25545 ;
25546 return 0;
25547}
25548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025550 ac_cv_lib_bsd_gethostbyname=yes
25551else
cristy8b350f62009-11-15 23:12:43 +000025552 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025553fi
cristy8b350f62009-11-15 23:12:43 +000025554rm -f core conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025556LIBS=$ac_check_lib_save_LIBS
25557fi
cristy8b350f62009-11-15 23:12:43 +000025558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025559$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025560if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025561 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25562fi
25563
25564 fi
25565 fi
25566
25567 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25568 # socket/setsockopt and other routines are undefined under SCO ODT
25569 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25570 # on later versions), says Simon Leinen: it contains gethostby*
25571 # variants that don't use the name server (or something). -lsocket
25572 # must be given before -lnsl if both are needed. We assume that
25573 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025574 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25575if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025576
cristy3ed852e2009-09-05 21:47:34 +000025577fi
25578
cristy3ed852e2009-09-05 21:47:34 +000025579 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025581$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025582if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025583 $as_echo_n "(cached) " >&6
25584else
25585 ac_check_lib_save_LIBS=$LIBS
25586LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025588/* end confdefs.h. */
25589
25590/* Override any GCC internal prototype to avoid an error.
25591 Use char because int might match the return type of a GCC
25592 builtin and then its argument prototype would still apply. */
25593#ifdef __cplusplus
25594extern "C"
25595#endif
25596char connect ();
25597int
25598main ()
25599{
25600return connect ();
25601 ;
25602 return 0;
25603}
25604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025606 ac_cv_lib_socket_connect=yes
25607else
cristy8b350f62009-11-15 23:12:43 +000025608 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025609fi
cristy8b350f62009-11-15 23:12:43 +000025610rm -f core conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025612LIBS=$ac_check_lib_save_LIBS
25613fi
cristy8b350f62009-11-15 23:12:43 +000025614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025615$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025616if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025617 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25618fi
25619
25620 fi
25621
25622 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025623 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25624if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025625
cristy3ed852e2009-09-05 21:47:34 +000025626fi
25627
cristy3ed852e2009-09-05 21:47:34 +000025628 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025630$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025631if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025632 $as_echo_n "(cached) " >&6
25633else
25634 ac_check_lib_save_LIBS=$LIBS
25635LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025637/* end confdefs.h. */
25638
25639/* Override any GCC internal prototype to avoid an error.
25640 Use char because int might match the return type of a GCC
25641 builtin and then its argument prototype would still apply. */
25642#ifdef __cplusplus
25643extern "C"
25644#endif
25645char remove ();
25646int
25647main ()
25648{
25649return remove ();
25650 ;
25651 return 0;
25652}
25653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025654if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025655 ac_cv_lib_posix_remove=yes
25656else
cristy8b350f62009-11-15 23:12:43 +000025657 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025658fi
cristy8b350f62009-11-15 23:12:43 +000025659rm -f core conftest.err conftest.$ac_objext \
25660 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025661LIBS=$ac_check_lib_save_LIBS
25662fi
cristy8b350f62009-11-15 23:12:43 +000025663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025664$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025665if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025666 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25667fi
25668
25669 fi
25670
25671 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025672 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25673if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025674
cristy3ed852e2009-09-05 21:47:34 +000025675fi
25676
cristy3ed852e2009-09-05 21:47:34 +000025677 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025679$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025680if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025681 $as_echo_n "(cached) " >&6
25682else
25683 ac_check_lib_save_LIBS=$LIBS
25684LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025686/* end confdefs.h. */
25687
25688/* Override any GCC internal prototype to avoid an error.
25689 Use char because int might match the return type of a GCC
25690 builtin and then its argument prototype would still apply. */
25691#ifdef __cplusplus
25692extern "C"
25693#endif
25694char shmat ();
25695int
25696main ()
25697{
25698return shmat ();
25699 ;
25700 return 0;
25701}
25702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025704 ac_cv_lib_ipc_shmat=yes
25705else
cristy8b350f62009-11-15 23:12:43 +000025706 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025707fi
cristy8b350f62009-11-15 23:12:43 +000025708rm -f core conftest.err conftest.$ac_objext \
25709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025710LIBS=$ac_check_lib_save_LIBS
25711fi
cristy8b350f62009-11-15 23:12:43 +000025712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025714if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25716fi
25717
25718 fi
25719 fi
25720
25721 # Check for libraries that X11R6 Xt/Xaw programs need.
25722 ac_save_LDFLAGS=$LDFLAGS
25723 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25724 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25725 # check for ICE first), but we must link in the order -lSM -lICE or
25726 # we get undefined symbols. So assume we have SM if we have ICE.
25727 # These have to be linked with before -lX11, unlike the other
25728 # libraries we check for below, so use a different variable.
25729 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025731$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025732if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025733 $as_echo_n "(cached) " >&6
25734else
25735 ac_check_lib_save_LIBS=$LIBS
25736LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025738/* end confdefs.h. */
25739
25740/* Override any GCC internal prototype to avoid an error.
25741 Use char because int might match the return type of a GCC
25742 builtin and then its argument prototype would still apply. */
25743#ifdef __cplusplus
25744extern "C"
25745#endif
25746char IceConnectionNumber ();
25747int
25748main ()
25749{
25750return IceConnectionNumber ();
25751 ;
25752 return 0;
25753}
25754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025756 ac_cv_lib_ICE_IceConnectionNumber=yes
25757else
cristy8b350f62009-11-15 23:12:43 +000025758 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025759fi
cristy8b350f62009-11-15 23:12:43 +000025760rm -f core conftest.err conftest.$ac_objext \
25761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025762LIBS=$ac_check_lib_save_LIBS
25763fi
cristy8b350f62009-11-15 23:12:43 +000025764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025765$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025766if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25768fi
25769
25770 LDFLAGS=$ac_save_LDFLAGS
25771
25772fi
25773
25774if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025776$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025778$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025780$as_echo "" >&6; }
25781 LDFLAGS="$LDFLAGS $X_LIBS"
25782 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25783 LIBS="$X11_LIBS $LIBS"
25784 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25785
25786
cristy8b350f62009-11-15 23:12:43 +000025787$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025788
25789 #
25790 # Check for X11 shared memory extension
25791 #
25792 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025793 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25794if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025795 have_shmctl='yes'
25796fi
25797
25798 if test "$have_shmctl" != 'yes'; then
25799 PERSIST_LIBS=$LIBS
25800 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025802/* end confdefs.h. */
25803
25804/* Override any GCC internal prototype to avoid an error.
25805 Use char because int might match the return type of a GCC
25806 builtin and then its argument prototype would still apply. */
25807#ifdef __cplusplus
25808extern "C"
25809#endif
25810char shmctl ();
25811int
25812main ()
25813{
25814return shmctl ();
25815 ;
25816 return 0;
25817}
25818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025820 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025821fi
cristy8b350f62009-11-15 23:12:43 +000025822rm -f core conftest.err conftest.$ac_objext \
25823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025824 LIBS=$PERSIST_LIBS
25825 fi
25826
25827 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025829$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025830if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 $as_echo_n "(cached) " >&6
25832else
25833 ac_check_lib_save_LIBS=$LIBS
25834LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025836/* end confdefs.h. */
25837
25838/* Override any GCC internal prototype to avoid an error.
25839 Use char because int might match the return type of a GCC
25840 builtin and then its argument prototype would still apply. */
25841#ifdef __cplusplus
25842extern "C"
25843#endif
25844char XShmAttach ();
25845int
25846main ()
25847{
25848return XShmAttach ();
25849 ;
25850 return 0;
25851}
25852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025854 ac_cv_lib_Xext_XShmAttach=yes
25855else
cristy8b350f62009-11-15 23:12:43 +000025856 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025857fi
cristy8b350f62009-11-15 23:12:43 +000025858rm -f core conftest.err conftest.$ac_objext \
25859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025860LIBS=$ac_check_lib_save_LIBS
25861fi
cristy8b350f62009-11-15 23:12:43 +000025862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025863$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025864if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025865 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025866$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025867
25868fi
25869
25870 fi
25871
25872 #
25873 # Check for X11 shape extension
25874 #
cristy8b350f62009-11-15 23:12:43 +000025875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025877if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025878 $as_echo_n "(cached) " >&6
25879else
25880 ac_check_lib_save_LIBS=$LIBS
25881LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025883/* end confdefs.h. */
25884
25885/* Override any GCC internal prototype to avoid an error.
25886 Use char because int might match the return type of a GCC
25887 builtin and then its argument prototype would still apply. */
25888#ifdef __cplusplus
25889extern "C"
25890#endif
25891char XShapeCombineMask ();
25892int
25893main ()
25894{
25895return XShapeCombineMask ();
25896 ;
25897 return 0;
25898}
25899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025900if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025901 ac_cv_lib_Xext_XShapeCombineMask=yes
25902else
cristy8b350f62009-11-15 23:12:43 +000025903 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025904fi
cristy8b350f62009-11-15 23:12:43 +000025905rm -f core conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025907LIBS=$ac_check_lib_save_LIBS
25908fi
cristy8b350f62009-11-15 23:12:43 +000025909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025910$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025911if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025912 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025913$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025914
25915fi
25916
cristy8b350f62009-11-15 23:12:43 +000025917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025918$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025919if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025920 $as_echo_n "(cached) " >&6
25921else
25922 ac_check_lib_save_LIBS=$LIBS
25923LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025925/* end confdefs.h. */
25926
25927/* Override any GCC internal prototype to avoid an error.
25928 Use char because int might match the return type of a GCC
25929 builtin and then its argument prototype would still apply. */
25930#ifdef __cplusplus
25931extern "C"
25932#endif
25933char XtSetEventDispatcher ();
25934int
25935main ()
25936{
25937return XtSetEventDispatcher ();
25938 ;
25939 return 0;
25940}
25941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025943 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25944else
cristy8b350f62009-11-15 23:12:43 +000025945 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025946fi
cristy8b350f62009-11-15 23:12:43 +000025947rm -f core conftest.err conftest.$ac_objext \
25948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025949LIBS=$ac_check_lib_save_LIBS
25950fi
cristy8b350f62009-11-15 23:12:43 +000025951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025952$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025953if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025954 XT_LIBS='-lXt'
25955fi
25956
25957 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25958fi
25959if test "$no_x" != 'yes'; then
25960 have_x='yes'
25961else
25962 have_x='no'
25963fi
cristy73bd4a52010-10-05 11:24:23 +000025964 if test "$have_x" = 'yes'; then
25965 X11_DELEGATE_TRUE=
25966 X11_DELEGATE_FALSE='#'
25967else
25968 X11_DELEGATE_TRUE='#'
25969 X11_DELEGATE_FALSE=
25970fi
25971
cristy3ed852e2009-09-05 21:47:34 +000025972
25973
25974
25975
25976#
25977# Check for ZLIB
25978#
25979
25980# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025981if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025982 withval=$with_zlib; with_zlib=$withval
25983else
25984 with_zlib='yes'
25985fi
25986
25987
25988if test "$with_zlib" != 'yes'; then
25989 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25990fi
25991
25992have_zlib='no'
25993ZLIB_LIBS=''
25994if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025996$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026000$as_echo "" >&6; }
26001 ZLIB_LIBS=''
26002 failed=0
26003 passed=0
cristy8b350f62009-11-15 23:12:43 +000026004 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26005if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 passed=`expr $passed + 1`
26007else
26008 failed=`expr $failed + 1`
26009fi
26010
26011
cristy8b350f62009-11-15 23:12:43 +000026012 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26013if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026014 passed=`expr $passed + 1`
26015else
26016 failed=`expr $failed + 1`
26017fi
26018
26019
cristy8b350f62009-11-15 23:12:43 +000026020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026021$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026022if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026023 $as_echo_n "(cached) " >&6
26024else
26025 ac_check_lib_save_LIBS=$LIBS
26026LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026028/* end confdefs.h. */
26029
26030/* Override any GCC internal prototype to avoid an error.
26031 Use char because int might match the return type of a GCC
26032 builtin and then its argument prototype would still apply. */
26033#ifdef __cplusplus
26034extern "C"
26035#endif
26036char compress ();
26037int
26038main ()
26039{
26040return compress ();
26041 ;
26042 return 0;
26043}
26044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026045if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026046 ac_cv_lib_z_compress=yes
26047else
cristy8b350f62009-11-15 23:12:43 +000026048 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026049fi
cristy8b350f62009-11-15 23:12:43 +000026050rm -f core conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026052LIBS=$ac_check_lib_save_LIBS
26053fi
cristy8b350f62009-11-15 23:12:43 +000026054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026055$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026056if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026057 passed=`expr $passed + 1`
26058else
26059 failed=`expr $failed + 1`
26060fi
26061
cristy8b350f62009-11-15 23:12:43 +000026062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026063$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026064if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026065 $as_echo_n "(cached) " >&6
26066else
26067 ac_check_lib_save_LIBS=$LIBS
26068LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026070/* end confdefs.h. */
26071
26072/* Override any GCC internal prototype to avoid an error.
26073 Use char because int might match the return type of a GCC
26074 builtin and then its argument prototype would still apply. */
26075#ifdef __cplusplus
26076extern "C"
26077#endif
26078char uncompress ();
26079int
26080main ()
26081{
26082return uncompress ();
26083 ;
26084 return 0;
26085}
26086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026087if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026088 ac_cv_lib_z_uncompress=yes
26089else
cristy8b350f62009-11-15 23:12:43 +000026090 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026091fi
cristy8b350f62009-11-15 23:12:43 +000026092rm -f core conftest.err conftest.$ac_objext \
26093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026094LIBS=$ac_check_lib_save_LIBS
26095fi
cristy8b350f62009-11-15 23:12:43 +000026096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026097$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026098if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026099 passed=`expr $passed + 1`
26100else
26101 failed=`expr $failed + 1`
26102fi
26103
cristy8b350f62009-11-15 23:12:43 +000026104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026105$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026106if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026107 $as_echo_n "(cached) " >&6
26108else
26109 ac_check_lib_save_LIBS=$LIBS
26110LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026112/* end confdefs.h. */
26113
26114/* Override any GCC internal prototype to avoid an error.
26115 Use char because int might match the return type of a GCC
26116 builtin and then its argument prototype would still apply. */
26117#ifdef __cplusplus
26118extern "C"
26119#endif
26120char deflate ();
26121int
26122main ()
26123{
26124return deflate ();
26125 ;
26126 return 0;
26127}
26128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026130 ac_cv_lib_z_deflate=yes
26131else
cristy8b350f62009-11-15 23:12:43 +000026132 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026133fi
cristy8b350f62009-11-15 23:12:43 +000026134rm -f core conftest.err conftest.$ac_objext \
26135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026136LIBS=$ac_check_lib_save_LIBS
26137fi
cristy8b350f62009-11-15 23:12:43 +000026138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026139$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026140if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026141 passed=`expr $passed + 1`
26142else
26143 failed=`expr $failed + 1`
26144fi
26145
cristy8b350f62009-11-15 23:12:43 +000026146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026147$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026148if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026149 $as_echo_n "(cached) " >&6
26150else
26151 ac_check_lib_save_LIBS=$LIBS
26152LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154/* end confdefs.h. */
26155
26156/* Override any GCC internal prototype to avoid an error.
26157 Use char because int might match the return type of a GCC
26158 builtin and then its argument prototype would still apply. */
26159#ifdef __cplusplus
26160extern "C"
26161#endif
26162char inflate ();
26163int
26164main ()
26165{
26166return inflate ();
26167 ;
26168 return 0;
26169}
26170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026171if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026172 ac_cv_lib_z_inflate=yes
26173else
cristy8b350f62009-11-15 23:12:43 +000026174 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026175fi
cristy8b350f62009-11-15 23:12:43 +000026176rm -f core conftest.err conftest.$ac_objext \
26177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026178LIBS=$ac_check_lib_save_LIBS
26179fi
cristy8b350f62009-11-15 23:12:43 +000026180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026181$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026182if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026183 passed=`expr $passed + 1`
26184else
26185 failed=`expr $failed + 1`
26186fi
26187
cristy8b350f62009-11-15 23:12:43 +000026188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026189$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026190if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026191 $as_echo_n "(cached) " >&6
26192else
26193 ac_check_lib_save_LIBS=$LIBS
26194LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026196/* end confdefs.h. */
26197
26198/* Override any GCC internal prototype to avoid an error.
26199 Use char because int might match the return type of a GCC
26200 builtin and then its argument prototype would still apply. */
26201#ifdef __cplusplus
26202extern "C"
26203#endif
26204char gzseek ();
26205int
26206main ()
26207{
26208return gzseek ();
26209 ;
26210 return 0;
26211}
26212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026213if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026214 ac_cv_lib_z_gzseek=yes
26215else
cristy8b350f62009-11-15 23:12:43 +000026216 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026217fi
cristy8b350f62009-11-15 23:12:43 +000026218rm -f core conftest.err conftest.$ac_objext \
26219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026220LIBS=$ac_check_lib_save_LIBS
26221fi
cristy8b350f62009-11-15 23:12:43 +000026222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026223$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026224if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026225 passed=`expr $passed + 1`
26226else
26227 failed=`expr $failed + 1`
26228fi
26229
cristy8b350f62009-11-15 23:12:43 +000026230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026231$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026232if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026233 $as_echo_n "(cached) " >&6
26234else
26235 ac_check_lib_save_LIBS=$LIBS
26236LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026238/* end confdefs.h. */
26239
26240/* Override any GCC internal prototype to avoid an error.
26241 Use char because int might match the return type of a GCC
26242 builtin and then its argument prototype would still apply. */
26243#ifdef __cplusplus
26244extern "C"
26245#endif
26246char gztell ();
26247int
26248main ()
26249{
26250return gztell ();
26251 ;
26252 return 0;
26253}
26254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026256 ac_cv_lib_z_gztell=yes
26257else
cristy8b350f62009-11-15 23:12:43 +000026258 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026259fi
cristy8b350f62009-11-15 23:12:43 +000026260rm -f core conftest.err conftest.$ac_objext \
26261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026262LIBS=$ac_check_lib_save_LIBS
26263fi
cristy8b350f62009-11-15 23:12:43 +000026264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026266if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026267 passed=`expr $passed + 1`
26268else
26269 failed=`expr $failed + 1`
26270fi
26271
cristy8b350f62009-11-15 23:12:43 +000026272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026273$as_echo_n "checking if ZLIB package is complete... " >&6; }
26274 if test $passed -gt 0; then
26275 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo "no -- some components failed test" >&6; }
26278 have_zlib='no (failed tests)'
26279 else
26280 ZLIB_LIBS='-lz'
26281 LIBS="$ZLIB_LIBS $LIBS"
26282
cristy8b350f62009-11-15 23:12:43 +000026283$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026284
cristy8b350f62009-11-15 23:12:43 +000026285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026286$as_echo "yes" >&6; }
26287 have_zlib='yes'
26288 fi
26289 else
cristy8b350f62009-11-15 23:12:43 +000026290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026291$as_echo "no" >&6; }
26292 fi
26293fi
cristy73bd4a52010-10-05 11:24:23 +000026294 if test "$have_zlib" = 'yes'; then
26295 ZLIB_DELEGATE_TRUE=
26296 ZLIB_DELEGATE_FALSE='#'
26297else
26298 ZLIB_DELEGATE_TRUE='#'
26299 ZLIB_DELEGATE_FALSE=
26300fi
26301
cristy3ed852e2009-09-05 21:47:34 +000026302
26303
26304#
26305# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26306#
26307LIB_DL=''
26308if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026310$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026311if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026312 $as_echo_n "(cached) " >&6
26313else
26314 ac_check_lib_save_LIBS=$LIBS
26315LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026317/* end confdefs.h. */
26318
26319/* Override any GCC internal prototype to avoid an error.
26320 Use char because int might match the return type of a GCC
26321 builtin and then its argument prototype would still apply. */
26322#ifdef __cplusplus
26323extern "C"
26324#endif
26325char dlopen ();
26326int
26327main ()
26328{
26329return dlopen ();
26330 ;
26331 return 0;
26332}
26333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026335 ac_cv_lib_dl_dlopen=yes
26336else
cristy8b350f62009-11-15 23:12:43 +000026337 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026338fi
cristy8b350f62009-11-15 23:12:43 +000026339rm -f core conftest.err conftest.$ac_objext \
26340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026341LIBS=$ac_check_lib_save_LIBS
26342fi
cristy8b350f62009-11-15 23:12:43 +000026343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026344$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026345if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026346 LIB_DL='-ldl'
26347fi
26348
26349 LIBS="$LIB_DL $LIBS"
26350fi
26351
26352
26353
26354#
26355# Check for Autotrace delegate library.
26356#
26357
26358# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026359if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026360 withval=$with_autotrace; with_autotrace=$withval
26361else
26362 with_autotrace='no'
26363fi
26364
26365
26366if test "$with_autotrace" != 'yes'; then
26367 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26368fi
26369
26370have_autotrace='no'
26371AUTOTRACE_CFLAGS=""
26372AUTOTRACE_LIBS=""
26373AUTOTRACE_PKG=""
26374if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026376$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026377
26378pkg_failed=no
26379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26380$as_echo_n "checking for AUTOTRACE... " >&6; }
26381
26382if test -n "$AUTOTRACE_CFLAGS"; then
26383 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26384 elif test -n "$PKG_CONFIG"; then
26385 if test -n "$PKG_CONFIG" && \
26386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26387 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; then
26391 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26392else
26393 pkg_failed=yes
26394fi
26395 else
26396 pkg_failed=untried
26397fi
26398if test -n "$AUTOTRACE_LIBS"; then
26399 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26400 elif test -n "$PKG_CONFIG"; then
26401 if test -n "$PKG_CONFIG" && \
26402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26403 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26404 ac_status=$?
26405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26406 test $ac_status = 0; }; then
26407 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26408else
26409 pkg_failed=yes
26410fi
26411 else
26412 pkg_failed=untried
26413fi
26414
26415
26416
26417if test $pkg_failed = yes; then
26418
26419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26420 _pkg_short_errors_supported=yes
26421else
26422 _pkg_short_errors_supported=no
26423fi
26424 if test $_pkg_short_errors_supported = yes; then
26425 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26426 else
26427 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26428 fi
26429 # Put the nasty error message in config.log where it belongs
26430 echo "$AUTOTRACE_PKG_ERRORS" >&5
26431
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26433$as_echo "no" >&6; }
26434 have_autotrace=no
26435elif test $pkg_failed = untried; then
26436 have_autotrace=no
26437else
26438 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26439 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26441$as_echo "yes" >&6; }
26442 have_autotrace=yes
26443fi
cristy8b350f62009-11-15 23:12:43 +000026444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo "" >&6; }
26446fi
26447
26448if test "$have_autotrace" = 'yes'; then
26449 failed=0
26450
cristy8b350f62009-11-15 23:12:43 +000026451$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026452
26453 if test "$with_modules" = 'no'; then
26454 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26455 fi
26456fi
26457
cristy73bd4a52010-10-05 11:24:23 +000026458 if test "$have_autotrace" = 'yes'; then
26459 AUTOTRACE_DELEGATE_TRUE=
26460 AUTOTRACE_DELEGATE_FALSE='#'
26461else
26462 AUTOTRACE_DELEGATE_TRUE='#'
26463 AUTOTRACE_DELEGATE_FALSE=
26464fi
26465
cristy3ed852e2009-09-05 21:47:34 +000026466
26467
26468
26469
26470#
26471# Check for Display Postscript delegate library.
26472#
26473
26474# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026475if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026476 withval=$with_dps; with_dps=$withval
26477else
26478 with_dps='yes'
26479fi
26480
26481
26482if test "$with_dps" != 'yes'; then
26483 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26484fi
26485
26486have_dps='no'
26487DPS_LIBS=''
26488if test "$with_dps" != 'no' && test "$with_x" != 'no'; 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; }
cristy8b350f62009-11-15 23:12:43 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo "" >&6; }
26495 failed=0
26496 passed=0
26497 PERSIST_CPPFLAGS="$CPPFLAGS"
26498 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026499 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26500if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026501 passed=`expr $passed + 1`
26502else
26503 failed=`expr $failed + 1`
26504fi
26505
26506
26507 # DPS issues:
26508 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26509 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26510 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26511 # ImageMagick itself doesn't use -lXt.
26512 have_libdps='no'
26513 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026515$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026516if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026517 $as_echo_n "(cached) " >&6
26518else
26519 ac_check_lib_save_LIBS=$LIBS
26520LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026522/* end confdefs.h. */
26523
26524/* Override any GCC internal prototype to avoid an error.
26525 Use char because int might match the return type of a GCC
26526 builtin and then its argument prototype would still apply. */
26527#ifdef __cplusplus
26528extern "C"
26529#endif
26530char DPSInitialize ();
26531int
26532main ()
26533{
26534return DPSInitialize ();
26535 ;
26536 return 0;
26537}
26538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 ac_cv_lib_dps_DPSInitialize=yes
26541else
cristy8b350f62009-11-15 23:12:43 +000026542 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026543fi
cristy8b350f62009-11-15 23:12:43 +000026544rm -f core conftest.err conftest.$ac_objext \
26545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026546LIBS=$ac_check_lib_save_LIBS
26547fi
cristy8b350f62009-11-15 23:12:43 +000026548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026549$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026550if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026551 have_libdps='yes'
26552else
26553 have_libdps='no'
26554fi
26555
26556 if test "$have_libdps" != 'yes'; then
26557 # Unset cache variable so we can try again.
26558 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026561if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 $as_echo_n "(cached) " >&6
26563else
26564 ac_check_lib_save_LIBS=$LIBS
26565LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026567/* end confdefs.h. */
26568
26569/* Override any GCC internal prototype to avoid an error.
26570 Use char because int might match the return type of a GCC
26571 builtin and then its argument prototype would still apply. */
26572#ifdef __cplusplus
26573extern "C"
26574#endif
26575char DPSInitialize ();
26576int
26577main ()
26578{
26579return DPSInitialize ();
26580 ;
26581 return 0;
26582}
26583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026584if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026585 ac_cv_lib_dps_DPSInitialize=yes
26586else
cristy8b350f62009-11-15 23:12:43 +000026587 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026588fi
cristy8b350f62009-11-15 23:12:43 +000026589rm -f core conftest.err conftest.$ac_objext \
26590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026591LIBS=$ac_check_lib_save_LIBS
26592fi
cristy8b350f62009-11-15 23:12:43 +000026593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026594$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026595if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 have_libdps='yes'
26597else
26598 have_libdps='no'
26599fi
26600
26601 if test "$have_libdps" = 'yes'; then
26602 LIBDPS_XT='-lXt'
26603 fi
26604 fi
26605 if test "$have_libdps" = 'yes'; then
26606 passed=`expr $passed + 1`
26607 else
26608 failed=`expr $failed + 1`
26609 fi
cristy8b350f62009-11-15 23:12:43 +000026610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026612if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 $as_echo_n "(cached) " >&6
26614else
26615 ac_check_lib_save_LIBS=$LIBS
26616LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026618/* end confdefs.h. */
26619
26620/* Override any GCC internal prototype to avoid an error.
26621 Use char because int might match the return type of a GCC
26622 builtin and then its argument prototype would still apply. */
26623#ifdef __cplusplus
26624extern "C"
26625#endif
26626char XDPSPixelsPerPoint ();
26627int
26628main ()
26629{
26630return XDPSPixelsPerPoint ();
26631 ;
26632 return 0;
26633}
26634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26637else
cristy8b350f62009-11-15 23:12:43 +000026638 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026639fi
cristy8b350f62009-11-15 23:12:43 +000026640rm -f core conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026642LIBS=$ac_check_lib_save_LIBS
26643fi
cristy8b350f62009-11-15 23:12:43 +000026644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026646if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026647 passed=`expr $passed + 1`
26648else
26649 failed=`expr $failed + 1`
26650fi
26651
cristy8b350f62009-11-15 23:12:43 +000026652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026653$as_echo_n "checking if DPS package is complete... " >&6; }
26654 if test $passed -gt 0; then
26655 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo "no -- some components failed test" >&6; }
26658 have_dps='no (failed tests)'
26659 CPPFLAGS="$PERSIST_CPPFLAGS"
26660 else
26661 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26662 LIBS="$DPS_LIBS $LIBS"
26663
cristy8b350f62009-11-15 23:12:43 +000026664$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026665
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "yes" >&6; }
26668 have_dps='yes'
26669 fi
26670 else
cristy8b350f62009-11-15 23:12:43 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo "no" >&6; }
26673 CPPFLAGS=$PERSIST_CPPFLAGS
26674 fi
26675fi
cristy73bd4a52010-10-05 11:24:23 +000026676 if test "$have_dps" = 'yes'; then
26677 DPS_DELEGATE_TRUE=
26678 DPS_DELEGATE_FALSE='#'
26679else
26680 DPS_DELEGATE_TRUE='#'
26681 DPS_DELEGATE_FALSE=
26682fi
26683
cristy3ed852e2009-09-05 21:47:34 +000026684
26685
26686
26687#
26688# Check for DJVU delegate library.
26689#
26690
26691# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026692if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026693 withval=$with_djvu; with_djvu=$withval
26694else
26695 with_djvu='yes'
26696fi
26697
26698
26699if test "$with_djvu" != 'yes'; then
26700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26701fi
26702
26703have_djvu='no'
26704DJVU_LIBS=''
26705if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026707$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo "" >&6; }
26712 failed=0
26713 passed=0
cristy8b350f62009-11-15 23:12:43 +000026714 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26715if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026716 passed=`expr $passed + 1`
26717else
26718 failed=`expr $failed + 1`
26719fi
26720
26721
cristy8b350f62009-11-15 23:12:43 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026724if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026725 $as_echo_n "(cached) " >&6
26726else
26727 ac_check_lib_save_LIBS=$LIBS
26728LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730/* end confdefs.h. */
26731
26732/* Override any GCC internal prototype to avoid an error.
26733 Use char because int might match the return type of a GCC
26734 builtin and then its argument prototype would still apply. */
26735#ifdef __cplusplus
26736extern "C"
26737#endif
26738char ddjvu_context_create ();
26739int
26740main ()
26741{
26742return ddjvu_context_create ();
26743 ;
26744 return 0;
26745}
26746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026748 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26749else
cristy8b350f62009-11-15 23:12:43 +000026750 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026751fi
cristy8b350f62009-11-15 23:12:43 +000026752rm -f core conftest.err conftest.$ac_objext \
26753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026754LIBS=$ac_check_lib_save_LIBS
26755fi
cristy8b350f62009-11-15 23:12:43 +000026756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026757$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026758if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026759 passed=`expr $passed + 1`
26760else
26761 failed=`expr $failed + 1`
26762fi
26763
cristy8b350f62009-11-15 23:12:43 +000026764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo_n "checking if DJVU package is complete... " >&6; }
26766 if test $passed -gt 0; then
26767 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo "no -- some components failed test" >&6; }
26770 have_djvu='no (failed tests)'
26771 else
26772 DJVU_LIBS='-ldjvulibre'
26773 LIBS="$DJVU_LIBS $LIBS"
26774
cristy8b350f62009-11-15 23:12:43 +000026775$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026776
cristy8b350f62009-11-15 23:12:43 +000026777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "yes" >&6; }
26779 have_djvu='yes'
26780 fi
26781 else
cristy8b350f62009-11-15 23:12:43 +000026782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo "no" >&6; }
26784 fi
26785fi
cristy73bd4a52010-10-05 11:24:23 +000026786 if test "$have_djvu" = 'yes'; then
26787 DJVU_DELEGATE_TRUE=
26788 DJVU_DELEGATE_FALSE='#'
26789else
26790 DJVU_DELEGATE_TRUE='#'
26791 DJVU_DELEGATE_FALSE=
26792fi
26793
cristy3ed852e2009-09-05 21:47:34 +000026794
26795
26796
26797#
cristy430a7312010-01-21 20:44:04 +000026798# Set DejaVu font directory.
26799#
26800
26801# Check whether --with-dejavu-font-dir was given.
26802if test "${with_dejavu_font_dir+set}" = set; then :
26803 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26804else
26805 with_dejavu_font_dir='default'
26806fi
26807
26808
26809if test "$with_dejavu_font_dir" != 'default'; then
26810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26811fi
26812
26813
26814#
cristy3ed852e2009-09-05 21:47:34 +000026815# Check for FFTW delegate library.
26816#
26817
26818# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026819if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026820 withval=$with_fftw; with_fftw=$withval
26821else
26822 with_fftw='yes'
26823fi
26824
26825
26826if test "$with_fftw" != 'yes'; then
26827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26828fi
26829
26830have_fftw='no'
26831FFTW_LIBS=''
26832if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026834$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026836$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026838$as_echo "" >&6; }
26839 failed=0
26840 passed=0
cristy8b350f62009-11-15 23:12:43 +000026841 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26842if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 passed=`expr $passed + 1`
26844else
26845 failed=`expr $failed + 1`
26846fi
26847
26848
cristy8b350f62009-11-15 23:12:43 +000026849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026850$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026851if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026852 $as_echo_n "(cached) " >&6
26853else
26854 ac_check_lib_save_LIBS=$LIBS
26855LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026857/* end confdefs.h. */
26858
26859/* Override any GCC internal prototype to avoid an error.
26860 Use char because int might match the return type of a GCC
26861 builtin and then its argument prototype would still apply. */
26862#ifdef __cplusplus
26863extern "C"
26864#endif
26865char fftw_execute ();
26866int
26867main ()
26868{
26869return fftw_execute ();
26870 ;
26871 return 0;
26872}
26873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026874if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026875 ac_cv_lib_fftw3_fftw_execute=yes
26876else
cristy8b350f62009-11-15 23:12:43 +000026877 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026878fi
cristy8b350f62009-11-15 23:12:43 +000026879rm -f core conftest.err conftest.$ac_objext \
26880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026881LIBS=$ac_check_lib_save_LIBS
26882fi
cristy8b350f62009-11-15 23:12:43 +000026883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026885if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026886 passed=`expr $passed + 1`
26887else
26888 failed=`expr $failed + 1`
26889fi
26890
cristy8b350f62009-11-15 23:12:43 +000026891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026892$as_echo_n "checking if FFTW package is complete... " >&6; }
26893 if test $passed -gt 0; then
26894 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026896$as_echo "no -- some components failed test" >&6; }
26897 have_fftw='no (failed tests)'
26898 else
26899 FFTW_LIBS='-lfftw3'
26900 LIBS="$FFTW_LIBS $LIBS"
26901
cristy8b350f62009-11-15 23:12:43 +000026902$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026903
cristy8b350f62009-11-15 23:12:43 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "yes" >&6; }
26906 have_fftw='yes'
26907 fi
26908 else
cristy8b350f62009-11-15 23:12:43 +000026909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026910$as_echo "no" >&6; }
26911 fi
26912fi
cristy73bd4a52010-10-05 11:24:23 +000026913 if test "$have_fftw" = 'yes'; then
26914 FFTW_DELEGATE_TRUE=
26915 FFTW_DELEGATE_FALSE='#'
26916else
26917 FFTW_DELEGATE_TRUE='#'
26918 FFTW_DELEGATE_FALSE=
26919fi
26920
cristy3ed852e2009-09-05 21:47:34 +000026921
26922
26923
26924#
26925# Check for FlashPIX delegate library.
26926#
26927
26928# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026929if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 withval=$with_fpx; with_fpx=$withval
26931else
26932 with_fpx='yes'
26933fi
26934
26935
26936if test "$with_fpx" != 'yes'; then
26937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26938fi
26939
26940have_fpx='no'
26941FPX_LIBS=''
26942if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026946$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026948$as_echo "" >&6; }
26949 failed=0
26950 passed=0
26951 ac_ext=cpp
26952ac_cpp='$CXXCPP $CPPFLAGS'
26953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26956
26957
cristy8b350f62009-11-15 23:12:43 +000026958ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26959if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026960 passed=`expr $passed + 1`
26961else
26962 failed=`expr $failed + 1`
26963fi
26964
26965
cristy8b350f62009-11-15 23:12:43 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026968if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026969 $as_echo_n "(cached) " >&6
26970else
26971 ac_check_lib_save_LIBS=$LIBS
26972LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026974/* end confdefs.h. */
26975
26976/* Override any GCC internal prototype to avoid an error.
26977 Use char because int might match the return type of a GCC
26978 builtin and then its argument prototype would still apply. */
26979#ifdef __cplusplus
26980extern "C"
26981#endif
26982char FPX_OpenImageByFilename ();
26983int
26984main ()
26985{
26986return FPX_OpenImageByFilename ();
26987 ;
26988 return 0;
26989}
26990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026991if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026992 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26993else
cristy8b350f62009-11-15 23:12:43 +000026994 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026995fi
cristy8b350f62009-11-15 23:12:43 +000026996rm -f core conftest.err conftest.$ac_objext \
26997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026998LIBS=$ac_check_lib_save_LIBS
26999fi
cristy8b350f62009-11-15 23:12:43 +000027000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027001$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027002if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 passed=`expr $passed + 1`
27004else
27005 failed=`expr $failed + 1`
27006fi
27007
27008 ac_ext=c
27009ac_cpp='$CPP $CPPFLAGS'
27010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27012ac_compiler_gnu=$ac_cv_c_compiler_gnu
27013
cristy8b350f62009-11-15 23:12:43 +000027014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027015$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27016 if test $passed -gt 0; then
27017 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027019$as_echo "no -- some components failed test" >&6; }
27020 have_fpx='no (failed tests)'
27021 else
27022 FPX_LIBS='-lfpx'
27023
cristy8b350f62009-11-15 23:12:43 +000027024$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027025
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo "yes" >&6; }
27028 have_fpx='yes'
27029 PERLMAINCC="$CXX"
27030 fi
27031 else
cristy8b350f62009-11-15 23:12:43 +000027032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027033$as_echo "no" >&6; }
27034 fi
27035fi
cristy73bd4a52010-10-05 11:24:23 +000027036 if test "$have_fpx" = 'yes'; then
27037 FPX_DELEGATE_TRUE=
27038 FPX_DELEGATE_FALSE='#'
27039else
27040 FPX_DELEGATE_TRUE='#'
27041 FPX_DELEGATE_FALSE=
27042fi
27043
cristy3ed852e2009-09-05 21:47:34 +000027044
27045
27046
27047#
27048# Check for fontconfig delegate library.
27049#
27050
27051# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027052if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 withval=$with_fontconfig; with_fontconfig=$withval
27054else
27055 with_fontconfig=$have_x
27056fi
27057
27058
27059if test "$with_fontconfig" != 'yes'; then
27060 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27061fi
27062
27063have_fontconfig='no'
27064FONTCONFIG_CFLAGS=""
27065FONTCONFIG_LIBS=""
27066FONTCONFIG_PKG=""
27067if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027070
27071pkg_failed=no
27072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27073$as_echo_n "checking for FONTCONFIG... " >&6; }
27074
27075if test -n "$FONTCONFIG_CFLAGS"; then
27076 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27077 elif test -n "$PKG_CONFIG"; then
27078 if test -n "$PKG_CONFIG" && \
27079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27080 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27081 ac_status=$?
27082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27083 test $ac_status = 0; }; then
27084 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27085else
27086 pkg_failed=yes
27087fi
27088 else
27089 pkg_failed=untried
27090fi
27091if test -n "$FONTCONFIG_LIBS"; then
27092 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27093 elif test -n "$PKG_CONFIG"; then
27094 if test -n "$PKG_CONFIG" && \
27095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27096 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27097 ac_status=$?
27098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27099 test $ac_status = 0; }; then
27100 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27101else
27102 pkg_failed=yes
27103fi
27104 else
27105 pkg_failed=untried
27106fi
27107
27108
27109
27110if test $pkg_failed = yes; then
27111
27112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27113 _pkg_short_errors_supported=yes
27114else
27115 _pkg_short_errors_supported=no
27116fi
27117 if test $_pkg_short_errors_supported = yes; then
27118 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27119 else
27120 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27121 fi
27122 # Put the nasty error message in config.log where it belongs
27123 echo "$FONTCONFIG_PKG_ERRORS" >&5
27124
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27126$as_echo "no" >&6; }
27127 have_fontconfig=no
27128elif test $pkg_failed = untried; then
27129 have_fontconfig=no
27130else
27131 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27132 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27134$as_echo "yes" >&6; }
27135 have_fontconfig=yes
27136fi
cristy8b350f62009-11-15 23:12:43 +000027137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027138$as_echo "" >&6; }
27139fi
27140
27141if test "$have_fontconfig" = 'yes'; then
27142
cristy8b350f62009-11-15 23:12:43 +000027143$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027144
cristyd09bcf92010-03-25 03:04:45 +000027145 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027146 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027147 fi
cristy3ed852e2009-09-05 21:47:34 +000027148fi
27149
cristy73bd4a52010-10-05 11:24:23 +000027150 if test "$have_fontconfig" = 'yes'; then
27151 FONTCONFIG_DELEGATE_TRUE=
27152 FONTCONFIG_DELEGATE_FALSE='#'
27153else
27154 FONTCONFIG_DELEGATE_TRUE='#'
27155 FONTCONFIG_DELEGATE_FALSE=
27156fi
27157
cristy3ed852e2009-09-05 21:47:34 +000027158
27159
27160
27161
27162#
27163# Check for freetype delegate library.
27164#
27165
27166# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027167if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 withval=$with_freetype; with_freetype=$withval
27169else
27170 with_freetype='yes'
27171fi
27172
27173
27174
27175if test "$with_freetype" != 'yes'; then
27176 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27177fi
27178
27179have_freetype='no'
27180FREETYPE_LIBS=''
27181if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027183$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027185$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027187$as_echo "" >&6; }
27188 failed=0
27189 passed=0
cristy66291112009-10-03 22:44:36 +000027190 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027191 PERSIST_CPPFLAGS="$CPPFLAGS"
27192 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27193 :
27194 else
27195 freetype_config=''
27196 for ac_prog in freetype-config
27197do
27198 # Extract the first word of "$ac_prog", so it can be a program name with args.
27199set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027202if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 $as_echo_n "(cached) " >&6
27204else
27205 if test -n "$freetype_config"; then
27206 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27207else
27208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27209for as_dir in $PATH
27210do
27211 IFS=$as_save_IFS
27212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27215 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027217 break 2
27218 fi
27219done
cristy8b350f62009-11-15 23:12:43 +000027220 done
cristy3ed852e2009-09-05 21:47:34 +000027221IFS=$as_save_IFS
27222
27223fi
27224fi
27225freetype_config=$ac_cv_prog_freetype_config
27226if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027228$as_echo "$freetype_config" >&6; }
27229else
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo "no" >&6; }
27232fi
27233
27234
27235 test -n "$freetype_config" && break
27236done
27237 if test -n "$freetype_config"; then
27238 freetype_cflags=`$freetype_config --cflags`
27239 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027240 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027241 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27242 fi
27243 fi
27244
27245 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027247$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027248if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027249 $as_echo_n "(cached) " >&6
27250else
27251 ac_check_lib_save_LIBS=$LIBS
27252LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027254/* end confdefs.h. */
27255
27256/* Override any GCC internal prototype to avoid an error.
27257 Use char because int might match the return type of a GCC
27258 builtin and then its argument prototype would still apply. */
27259#ifdef __cplusplus
27260extern "C"
27261#endif
27262char FT_Init_FreeType ();
27263int
27264main ()
27265{
27266return FT_Init_FreeType ();
27267 ;
27268 return 0;
27269}
27270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027271if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 ac_cv_lib_freetype_FT_Init_FreeType=yes
27273else
cristy8b350f62009-11-15 23:12:43 +000027274 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027275fi
cristy8b350f62009-11-15 23:12:43 +000027276rm -f core conftest.err conftest.$ac_objext \
27277 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027278LIBS=$ac_check_lib_save_LIBS
27279fi
cristy8b350f62009-11-15 23:12:43 +000027280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027281$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027282if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027283 FREETYPE_LIBS='-lfreetype'
27284fi
27285
27286 if test "$FREETYPE_LIBS" != ''; then
27287 passed=`expr $passed + 1`
27288 else
27289 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027290 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027291 fi
27292 fi
27293
cristy8b350f62009-11-15 23:12:43 +000027294 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27295if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 FT2BUILD_H='#include <ft2build.h>'
27297else
27298 ft2build=''
27299fi
27300
27301
cristy8b350f62009-11-15 23:12:43 +000027302 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27303"
27304if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027305 have_freetype_h='yes'
27306else
27307 have_freetype_h='no'
27308fi
27309
27310
27311 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27312 passed=`expr $passed + 1`
27313 else
27314 failed=`expr $failed + 1`
27315 CPPFLAGS="$PERSIST_CPPFLAGS"
27316 fi
27317
cristy8b350f62009-11-15 23:12:43 +000027318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo_n "checking if FreeType package is complete... " >&6; }
27320 if test $passed -gt 0; then
27321 if test $failed -gt 0; then
27322 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027324$as_echo "no -- some components failed test" >&6; }
27325 have_freetype='no (failed tests)'
27326 else
27327 LIBS="$FREETYPE_LIBS $LIBS"
27328
cristy8b350f62009-11-15 23:12:43 +000027329$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027330
27331 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27332
cristy8b350f62009-11-15 23:12:43 +000027333$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027334
27335 fi
cristy8b350f62009-11-15 23:12:43 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo "yes" >&6; }
27338 have_freetype='yes'
27339 fi
27340 else
cristy8b350f62009-11-15 23:12:43 +000027341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027342$as_echo "no" >&6; }
27343 fi
27344fi
cristy73bd4a52010-10-05 11:24:23 +000027345 if test "$have_freetype" = 'yes'; then
27346 FREETYPE_DELEGATE_TRUE=
27347 FREETYPE_DELEGATE_FALSE='#'
27348else
27349 FREETYPE_DELEGATE_TRUE='#'
27350 FREETYPE_DELEGATE_FALSE=
27351fi
27352
cristy3ed852e2009-09-05 21:47:34 +000027353
27354
27355
27356
27357#
27358# Check for Ghostscript library or framework.
27359#
27360# Test for iapi.h & test for gsapi_new_instance in -lgs
27361# or -framework Ghostscript
27362
27363
27364# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027365if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027366 withval=$with_gslib; with_gslib=$withval
27367else
27368 with_gslib='no'
27369fi
27370
27371
cristyb7931f12009-09-25 10:22:21 +000027372gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027373if test "$with_gslib" != 'yes'; then
27374 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27375fi
27376
27377have_gslib='no'
27378GS_LIBS=''
27379if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027385$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027386 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027387 failed=0
27388 passed=0
cristy8b350f62009-11-15 23:12:43 +000027389 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27390if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027391 passed=`expr $passed + 1`
27392else
27393 failed=`expr $failed + 1`
27394fi
27395
27396
cristy8b350f62009-11-15 23:12:43 +000027397 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27398if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 passed=`expr $passed + 1`
27400else
27401 failed=`expr $failed + 1`
27402fi
27403
27404
cristy73bd4a52010-10-05 11:24:23 +000027405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27406$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27407if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27408 $as_echo_n "(cached) " >&6
27409else
27410 ac_check_framework_save_LIBS=$LIBS
27411LIBS="-framework Ghostscript $LIBS"
27412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27413/* end confdefs.h. */
27414
27415/* Override any GCC internal prototype to avoid an error.
27416 Use char because int might match the return type of a GCC
27417 builtin and then its argument prototype would still apply. */
27418#ifdef __cplusplus
27419extern "C"
27420#endif
27421char gsapi_new_instance ();
27422int
27423main ()
27424{
27425return gsapi_new_instance ();
27426 ;
27427 return 0;
27428}
27429_ACEOF
27430if ac_fn_c_try_link "$LINENO"; then :
27431 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27432else
27433 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27434fi
27435rm -f core conftest.err conftest.$ac_objext \
27436 conftest$ac_exeext conftest.$ac_ext
27437LIBS=$ac_check_framework_save_LIBS
27438fi
27439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27440$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27441if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27442 framework=`expr $framework + 1`
27443else
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027445$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027446if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 $as_echo_n "(cached) " >&6
27448else
27449 ac_check_lib_save_LIBS=$LIBS
27450LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027452/* end confdefs.h. */
27453
27454/* Override any GCC internal prototype to avoid an error.
27455 Use char because int might match the return type of a GCC
27456 builtin and then its argument prototype would still apply. */
27457#ifdef __cplusplus
27458extern "C"
27459#endif
27460char gsapi_new_instance ();
27461int
27462main ()
27463{
27464return gsapi_new_instance ();
27465 ;
27466 return 0;
27467}
27468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027469if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027470 ac_cv_lib_gs_gsapi_new_instance=yes
27471else
cristy8b350f62009-11-15 23:12:43 +000027472 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027473fi
cristy8b350f62009-11-15 23:12:43 +000027474rm -f core conftest.err conftest.$ac_objext \
27475 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027476LIBS=$ac_check_lib_save_LIBS
27477fi
cristy8b350f62009-11-15 23:12:43 +000027478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027479$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027480if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 passed=`expr $passed + 1`
27482else
27483 failed=`expr $failed + 1`
27484fi
cristy73bd4a52010-10-05 11:24:23 +000027485
27486fi
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27489 if test $passed -gt 0; then
27490 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo "no -- some components failed test" >&6; }
27493 have_gslib='no (failed tests)'
27494 else
27495 if test $framework -gt 0; then
27496 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027497 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027499$as_echo "yes, using framework." >&6; }
27500 else
cristy8b350f62009-11-15 23:12:43 +000027501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027502$as_echo "yes, using library." >&6; }
27503 GS_LIBS='-lgs'
27504 fi
27505 LIBS="$GS_LIBS $LIBS"
27506
cristy8b350f62009-11-15 23:12:43 +000027507$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027508
27509 have_gslib='yes'
27510 fi
27511 else
cristy8b350f62009-11-15 23:12:43 +000027512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027513$as_echo "no" >&6; }
27514 fi
27515fi
cristy73bd4a52010-10-05 11:24:23 +000027516 if test "$have_gslib" = 'yes'; then
27517 GS_DELEGATE_TRUE=
27518 GS_DELEGATE_FALSE='#'
27519else
27520 GS_DELEGATE_TRUE='#'
27521 GS_DELEGATE_FALSE=
27522fi
27523
cristy3ed852e2009-09-05 21:47:34 +000027524
27525
27526# Set default font search path
27527
27528# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027529if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 withval=$with_fontpath; with_fontpath=$withval
27531else
27532 with_fontpath=''
27533fi
27534
27535
27536if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27537 with_fontpath=''
27538else
27539
27540cat >>confdefs.h <<_ACEOF
27541#define MAGICK_FONT_PATH "$with_fontpath"
27542_ACEOF
27543
27544fi
27545if test "$with_fontpath=" != ''; then
27546 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27547fi
27548
27549# Set Ghostscript font directory
27550
27551# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027552if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27554else
27555 with_gs_font_dir='default'
27556fi
27557
27558
27559if test "$with_gs_font_dir" != 'default'; then
27560 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27561fi
27562
27563
27564#
27565# Check for GVC delegate library.
27566#
27567
27568# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027569if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 withval=$with_gvc; with_gvc=$withval
27571else
27572 with_gvc='yes'
27573fi
27574
27575
27576if test "$with_gvc" != 'yes'; then
27577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27578fi
27579
27580GVC_PKG=""
27581if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027584
27585pkg_failed=no
27586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27587$as_echo_n "checking for GVC... " >&6; }
27588
27589if test -n "$GVC_CFLAGS"; then
27590 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27591 elif test -n "$PKG_CONFIG"; then
27592 if test -n "$PKG_CONFIG" && \
27593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27594 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27595 ac_status=$?
27596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27597 test $ac_status = 0; }; then
27598 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27599else
27600 pkg_failed=yes
27601fi
27602 else
27603 pkg_failed=untried
27604fi
27605if test -n "$GVC_LIBS"; then
27606 pkg_cv_GVC_LIBS="$GVC_LIBS"
27607 elif test -n "$PKG_CONFIG"; then
27608 if test -n "$PKG_CONFIG" && \
27609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27610 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27611 ac_status=$?
27612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27613 test $ac_status = 0; }; then
27614 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27615else
27616 pkg_failed=yes
27617fi
27618 else
27619 pkg_failed=untried
27620fi
27621
27622
27623
27624if test $pkg_failed = yes; then
27625
27626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27627 _pkg_short_errors_supported=yes
27628else
27629 _pkg_short_errors_supported=no
27630fi
27631 if test $_pkg_short_errors_supported = yes; then
27632 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27633 else
27634 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27635 fi
27636 # Put the nasty error message in config.log where it belongs
27637 echo "$GVC_PKG_ERRORS" >&5
27638
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27640$as_echo "no" >&6; }
27641 have_gvc=no
27642elif test $pkg_failed = untried; then
27643 have_gvc=no
27644else
27645 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27646 GVC_LIBS=$pkg_cv_GVC_LIBS
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27648$as_echo "yes" >&6; }
27649 have_gvc=yes
27650fi
cristy8b350f62009-11-15 23:12:43 +000027651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027652$as_echo "" >&6; }
27653fi
27654
27655if test "$have_gvc" = 'yes'; then
27656
cristy8b350f62009-11-15 23:12:43 +000027657$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027658
27659 if test "$with_modules" = 'no'; then
27660 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27661 fi
27662fi
27663
cristy73bd4a52010-10-05 11:24:23 +000027664 if test "$have_gvc" = 'yes'; then
27665 GVC_DELEGATE_TRUE=
27666 GVC_DELEGATE_FALSE='#'
27667else
27668 GVC_DELEGATE_TRUE='#'
27669 GVC_DELEGATE_FALSE=
27670fi
27671
cristy3ed852e2009-09-05 21:47:34 +000027672
27673
27674
27675
27676#
27677# Check for JBIG delegate library.
27678#
27679
27680
27681# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027682if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027683 withval=$with_jbig; with_jbig=$withval
27684else
27685 with_jbig='yes'
27686fi
27687
27688
27689have_jbig='no'
27690JBIG_LIBS=''
27691if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027695$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo "" >&6; }
27698 failed=0
27699 passed=0
cristy8b350f62009-11-15 23:12:43 +000027700 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27701if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027702 passed=`expr $passed + 1`
27703else
27704 failed=`expr $failed + 1`
27705fi
27706
27707
cristy8b350f62009-11-15 23:12:43 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027710if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 $as_echo_n "(cached) " >&6
27712else
27713 ac_check_lib_save_LIBS=$LIBS
27714LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027716/* end confdefs.h. */
27717
27718/* Override any GCC internal prototype to avoid an error.
27719 Use char because int might match the return type of a GCC
27720 builtin and then its argument prototype would still apply. */
27721#ifdef __cplusplus
27722extern "C"
27723#endif
27724char jbg_dec_init ();
27725int
27726main ()
27727{
27728return jbg_dec_init ();
27729 ;
27730 return 0;
27731}
27732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027733if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 ac_cv_lib_jbig_jbg_dec_init=yes
27735else
cristy8b350f62009-11-15 23:12:43 +000027736 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027737fi
cristy8b350f62009-11-15 23:12:43 +000027738rm -f core conftest.err conftest.$ac_objext \
27739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027740LIBS=$ac_check_lib_save_LIBS
27741fi
cristy8b350f62009-11-15 23:12:43 +000027742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027743$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027744if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027745 passed=`expr $passed + 1`
27746else
27747 failed=`expr $failed + 1`
27748fi
27749
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo_n "checking if JBIG package is complete... " >&6; }
27752 if test $passed -gt 0; then
27753 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo "no -- some components failed test" >&6; }
27756 have_jbig='no (failed tests)'
27757 else
27758 JBIG_LIBS='-ljbig'
27759 LIBS="$JBIG_LIBS $LIBS"
27760
cristy8b350f62009-11-15 23:12:43 +000027761$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027762
cristy8b350f62009-11-15 23:12:43 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo "yes" >&6; }
27765 have_jbig='yes'
27766 fi
27767 else
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo "no" >&6; }
27770 fi
27771fi
cristy73bd4a52010-10-05 11:24:23 +000027772 if test "$have_jbig" = 'yes'; then
27773 JBIG_DELEGATE_TRUE=
27774 JBIG_DELEGATE_FALSE='#'
27775else
27776 JBIG_DELEGATE_TRUE='#'
27777 JBIG_DELEGATE_FALSE=
27778fi
27779
cristy3ed852e2009-09-05 21:47:34 +000027780
27781
27782
27783#
27784# Check for JPEG delegate library.
27785#
27786
27787# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027788if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 withval=$with_jpeg; with_jpeg=$withval
27790else
27791 with_jpeg='yes'
27792fi
27793
27794
27795if test "$with_jpeg" != 'yes'; then
27796 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27797fi
27798
27799have_jpeg='no'
27800JPEG_LIBS=''
27801if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027807$as_echo "" >&6; }
27808 failed=0
27809 passed=0
cristy8b350f62009-11-15 23:12:43 +000027810 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27811if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 passed=`expr $passed + 1`
27813else
27814 failed=`expr $failed + 1`
27815fi
27816
27817
cristy8b350f62009-11-15 23:12:43 +000027818 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27819if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 passed=`expr $passed + 1`
27821else
27822 failed=`expr $failed + 1`
27823fi
27824
27825
cristy8b350f62009-11-15 23:12:43 +000027826 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27827if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 passed=`expr $passed + 1`
27829else
27830 failed=`expr $failed + 1`
27831fi
27832
27833
cristy8b350f62009-11-15 23:12:43 +000027834 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27835if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 passed=`expr $passed + 1`
27837else
27838 failed=`expr $failed + 1`
27839fi
27840
27841
cristy8b350f62009-11-15 23:12:43 +000027842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027844if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 $as_echo_n "(cached) " >&6
27846else
27847 ac_check_lib_save_LIBS=$LIBS
27848LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027850/* end confdefs.h. */
27851
27852/* Override any GCC internal prototype to avoid an error.
27853 Use char because int might match the return type of a GCC
27854 builtin and then its argument prototype would still apply. */
27855#ifdef __cplusplus
27856extern "C"
27857#endif
27858char jpeg_read_header ();
27859int
27860main ()
27861{
27862return jpeg_read_header ();
27863 ;
27864 return 0;
27865}
27866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027868 ac_cv_lib_jpeg_jpeg_read_header=yes
27869else
cristy8b350f62009-11-15 23:12:43 +000027870 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027871fi
cristy8b350f62009-11-15 23:12:43 +000027872rm -f core conftest.err conftest.$ac_objext \
27873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027874LIBS=$ac_check_lib_save_LIBS
27875fi
cristy8b350f62009-11-15 23:12:43 +000027876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027878if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027879 passed=`expr $passed + 1`
27880else
27881 failed=`expr $failed + 1`
27882fi
27883
27884
27885# Test for compatible JPEG library
27886if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027888$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027889if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027890 $as_echo_n "(cached) " >&6
27891else
cristy8b350f62009-11-15 23:12:43 +000027892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027893/* end confdefs.h. */
27894#include <stdio.h>
27895#include <stdlib.h>
27896#include <jpeglib.h>
27897
27898int
27899main ()
27900{
27901
27902#if JPEG_LIB_VERSION < 62
27903#error IJG JPEG library must be version 6b or newer!
27904#endif
27905return 0;
27906
27907 ;
27908 return 0;
27909}
27910_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027911if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027912 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27913else
cristy8b350f62009-11-15 23:12:43 +000027914 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027915fi
cristy3ed852e2009-09-05 21:47:34 +000027916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27917fi
cristy8b350f62009-11-15 23:12:43 +000027918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27920fi
cristy8b350f62009-11-15 23:12:43 +000027921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo_n "checking if JPEG package is complete... " >&6; }
27923 if test $passed -gt 0; then
27924 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027926$as_echo "no -- some components failed test" >&6; }
27927 have_jpeg='no (failed tests)'
27928 else
27929 JPEG_LIBS='-ljpeg'
27930 LIBS="$JPEG_LIBS $LIBS"
27931
cristy8b350f62009-11-15 23:12:43 +000027932$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027933
cristy8b350f62009-11-15 23:12:43 +000027934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027935$as_echo "yes" >&6; }
27936 have_jpeg='yes'
27937 fi
27938 else
cristy8b350f62009-11-15 23:12:43 +000027939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo "no" >&6; }
27941 fi
27942fi
cristy73bd4a52010-10-05 11:24:23 +000027943 if test "$have_jpeg" = 'yes'; then
27944 JPEG_DELEGATE_TRUE=
27945 JPEG_DELEGATE_FALSE='#'
27946else
27947 JPEG_DELEGATE_TRUE='#'
27948 JPEG_DELEGATE_FALSE=
27949fi
27950
cristy3ed852e2009-09-05 21:47:34 +000027951
27952
27953
27954#
27955# Check for JPEG Version 2 delegate library.
27956#
27957
27958# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027959if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 withval=$with_jp2; with_jp2=$withval
27961else
27962 with_jp2='yes'
27963fi
27964
27965
27966if test "$with_jp2" != 'yes'; then
27967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27968fi
27969
27970have_jp2='no'
27971JP2_LIBS=''
27972if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027976$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027978$as_echo "" >&6; }
27979 failed=0
27980 passed=0
cristy8b350f62009-11-15 23:12:43 +000027981 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27982if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 passed=`expr $passed + 1`
27984else
27985 failed=`expr $failed + 1`
27986fi
27987
27988
cristy8b350f62009-11-15 23:12:43 +000027989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027990$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027991if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027992 $as_echo_n "(cached) " >&6
27993else
27994 ac_check_lib_save_LIBS=$LIBS
27995LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027997/* end confdefs.h. */
27998
27999/* Override any GCC internal prototype to avoid an error.
28000 Use char because int might match the return type of a GCC
28001 builtin and then its argument prototype would still apply. */
28002#ifdef __cplusplus
28003extern "C"
28004#endif
28005char jas_stream_fopen ();
28006int
28007main ()
28008{
28009return jas_stream_fopen ();
28010 ;
28011 return 0;
28012}
28013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028014if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028015 ac_cv_lib_jasper_jas_stream_fopen=yes
28016else
cristy8b350f62009-11-15 23:12:43 +000028017 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028018fi
cristy8b350f62009-11-15 23:12:43 +000028019rm -f core conftest.err conftest.$ac_objext \
28020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028021LIBS=$ac_check_lib_save_LIBS
28022fi
cristy8b350f62009-11-15 23:12:43 +000028023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028025if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028026 passed=`expr $passed + 1`
28027else
28028 failed=`expr $failed + 1`
28029fi
28030
cristy8b350f62009-11-15 23:12:43 +000028031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28033 if test $passed -gt 0; then
28034 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028036$as_echo "no -- some components failed test" >&6; }
28037 have_jp2='no (failed tests)'
28038 else
28039 JP2_LIBS='-ljasper'
28040 LIBS="$JP2_LIBS $LIBS"
28041
cristy8b350f62009-11-15 23:12:43 +000028042$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028043
cristy8b350f62009-11-15 23:12:43 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028045$as_echo "yes" >&6; }
28046 have_jp2='yes'
28047 fi
28048 else
cristy8b350f62009-11-15 23:12:43 +000028049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028050$as_echo "no" >&6; }
28051 fi
28052fi
cristy73bd4a52010-10-05 11:24:23 +000028053 if test "$have_jp2" = 'yes'; then
28054 JP2_DELEGATE_TRUE=
28055 JP2_DELEGATE_FALSE='#'
28056else
28057 JP2_DELEGATE_TRUE='#'
28058 JP2_DELEGATE_FALSE=
28059fi
28060
cristy3ed852e2009-09-05 21:47:34 +000028061
28062
28063
28064#
28065# Check for LCMS delegate library.
28066#
cristy71203402010-06-18 13:12:03 +000028067# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028068
28069# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028070if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028071 withval=$with_lcms; with_lcms=$withval
28072else
28073 with_lcms='yes'
28074fi
28075
cristy71203402010-06-18 13:12:03 +000028076if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028077 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28078fi
28079
cristy71203402010-06-18 13:12:03 +000028080# Disable LCMS2.
28081
28082# Check whether --with-lcms2 was given.
28083if test "${with_lcms2+set}" = set; then :
28084 withval=$with_lcms2; with_lcms2=$withval
28085else
28086 with_lcms2='yes'
28087fi
28088
28089if test "$with_lcms2" != 'yes' ; then
28090 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28091fi
28092
28093have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028094LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028095if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28099$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028101$as_echo "" >&6; }
28102 failed=0
28103 passed=0
28104 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028105
28106 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028107 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28108if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28109 have_lcms_header='yes'
28110fi
28111
28112
28113 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028114
28115$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28116
cristy71203402010-06-18 13:12:03 +000028117 passed=`expr $passed + 1`
28118 fi
28119
28120 # Check for <lcms2/lcms2.h)
28121 if test "$have_lcms_header" != 'yes'; then
28122 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28123if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028124 have_lcms_header='yes'
28125fi
28126
28127
cristy71203402010-06-18 13:12:03 +000028128 if test "$have_lcms_header" = 'yes'; then
28129 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028130
cristy71203402010-06-18 13:12:03 +000028131$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028132
cristy71203402010-06-18 13:12:03 +000028133 fi
cristyd09bcf92010-03-25 03:04:45 +000028134 fi
cristy71203402010-06-18 13:12:03 +000028135
28136 # Failed to find lcms header?
28137 if test "$have_lcms_header" != 'yes'; then
28138 failed=`expr $failed + 1`
28139 fi
28140
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28142$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28143if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000028144 $as_echo_n "(cached) " >&6
28145else
28146 ac_check_lib_save_LIBS=$LIBS
28147LIBS="-llcms2 $LIBS"
28148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28149/* end confdefs.h. */
28150
28151/* Override any GCC internal prototype to avoid an error.
28152 Use char because int might match the return type of a GCC
28153 builtin and then its argument prototype would still apply. */
28154#ifdef __cplusplus
28155extern "C"
28156#endif
cristy71203402010-06-18 13:12:03 +000028157char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028158int
28159main ()
28160{
cristy71203402010-06-18 13:12:03 +000028161return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028162 ;
28163 return 0;
28164}
28165_ACEOF
28166if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028167 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028168else
cristy71203402010-06-18 13:12:03 +000028169 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028170fi
28171rm -f core conftest.err conftest.$ac_objext \
28172 conftest$ac_exeext conftest.$ac_ext
28173LIBS=$ac_check_lib_save_LIBS
28174fi
cristy71203402010-06-18 13:12:03 +000028175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28176$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28177if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028178 passed=`expr $passed + 1`
28179else
28180 failed=`expr $failed + 1`
28181fi
28182
cristy71203402010-06-18 13:12:03 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28184$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028185 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028186 if test $failed -gt 0; then
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028188$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028189 have_lcms2='no (failed tests)'
28190 else
28191 LCMS_LIBS='-llcms2'
28192 LIBS="$LCMS_LIBS $LIBS"
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028194$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028195 have_lcms2='yes'
28196 fi
cristyd09bcf92010-03-25 03:04:45 +000028197 else
cristy71203402010-06-18 13:12:03 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028199$as_echo "no" >&6; }
28200 fi
28201fi
28202
cristy71203402010-06-18 13:12:03 +000028203#
28204# Check for LCMS v1 (1.11 or later)
28205#
28206if test $have_lcms2 = 'yes'; then
28207 with_lcms='no'
28208fi
28209
28210have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028211if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28213$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28215$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28217$as_echo "" >&6; }
28218 failed=0
28219 passed=0
28220 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028221
28222 # Check for <lcms.h>
28223 if test "$have_lcms_header" != 'yes'; then
28224 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028225if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028226 have_lcms_header='yes'
28227fi
28228
28229
cristy71203402010-06-18 13:12:03 +000028230 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028231 passed=`expr $passed + 1`
28232
cristy8b350f62009-11-15 23:12:43 +000028233$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028234
cristy71203402010-06-18 13:12:03 +000028235 fi
28236 fi
28237
28238 # Check for <lcms/lcms.h>
28239 if test "$have_lcms_header" != 'yes'; then
28240 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028241if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 have_lcms_header='yes'
28243fi
28244
28245
cristy71203402010-06-18 13:12:03 +000028246 if test "$have_lcms_header" = 'yes'; then
28247 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028248
cristy8b350f62009-11-15 23:12:43 +000028249$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028250
cristy71203402010-06-18 13:12:03 +000028251 fi
cristy3ed852e2009-09-05 21:47:34 +000028252 fi
cristy71203402010-06-18 13:12:03 +000028253
28254 # Failed to find lcms header?
28255 if test "$have_lcms_header" != 'yes'; then
28256 failed=`expr $failed + 1`
28257 fi
28258
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28260$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28261if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 $as_echo_n "(cached) " >&6
28263else
28264 ac_check_lib_save_LIBS=$LIBS
28265LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028267/* end confdefs.h. */
28268
28269/* Override any GCC internal prototype to avoid an error.
28270 Use char because int might match the return type of a GCC
28271 builtin and then its argument prototype would still apply. */
28272#ifdef __cplusplus
28273extern "C"
28274#endif
cristy71203402010-06-18 13:12:03 +000028275char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028276int
28277main ()
28278{
cristy71203402010-06-18 13:12:03 +000028279return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028280 ;
28281 return 0;
28282}
28283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028284if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028285 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028286else
cristy71203402010-06-18 13:12:03 +000028287 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028288fi
cristy8b350f62009-11-15 23:12:43 +000028289rm -f core conftest.err conftest.$ac_objext \
28290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028291LIBS=$ac_check_lib_save_LIBS
28292fi
cristy71203402010-06-18 13:12:03 +000028293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28294$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28295if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028296 passed=`expr $passed + 1`
28297else
28298 failed=`expr $failed + 1`
28299fi
28300
cristy8b350f62009-11-15 23:12:43 +000028301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo_n "checking if LCMS package is complete... " >&6; }
28303 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028304 if test $failed -gt 0; then
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028307 have_lcms='no (failed tests)'
28308 else
28309 LCMS_LIBS='-llcms'
28310 LIBS="$LCMS_LIBS $LIBS"
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028313 have_lcms='yes'
28314 fi
cristy3ed852e2009-09-05 21:47:34 +000028315 else
cristy71203402010-06-18 13:12:03 +000028316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028317$as_echo "no" >&6; }
28318 fi
28319fi
cristy71203402010-06-18 13:12:03 +000028320
cristy73bd4a52010-10-05 11:24:23 +000028321 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28322 LCMS_DELEGATE_TRUE=
28323 LCMS_DELEGATE_FALSE='#'
28324else
28325 LCMS_DELEGATE_TRUE='#'
28326 LCMS_DELEGATE_FALSE=
28327fi
28328
cristy71203402010-06-18 13:12:03 +000028329if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28330
28331$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28332
28333fi
28334
cristy3ed852e2009-09-05 21:47:34 +000028335
28336
28337
28338#
28339# Check for the LQR (Liquid Rescale) delegate library.
28340#
28341
28342# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028343if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028344 withval=$with_lqr; with_lqr=$withval
28345else
28346 with_lqr='yes'
28347fi
28348
28349
28350if test "$with_lqr" != 'yes'; then
28351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28352fi
28353
28354have_lqr='no'
28355LQR_CFLAGS=""
28356LQR_LIBS=""
28357LQR_PKG=""
28358if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028361
28362pkg_failed=no
28363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28364$as_echo_n "checking for LQR... " >&6; }
28365
28366if test -n "$LQR_CFLAGS"; then
28367 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28368 elif test -n "$PKG_CONFIG"; then
28369 if test -n "$PKG_CONFIG" && \
28370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28371 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28372 ac_status=$?
28373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28374 test $ac_status = 0; }; then
28375 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28376else
28377 pkg_failed=yes
28378fi
28379 else
28380 pkg_failed=untried
28381fi
28382if test -n "$LQR_LIBS"; then
28383 pkg_cv_LQR_LIBS="$LQR_LIBS"
28384 elif test -n "$PKG_CONFIG"; then
28385 if test -n "$PKG_CONFIG" && \
28386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28387 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28388 ac_status=$?
28389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28390 test $ac_status = 0; }; then
28391 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28392else
28393 pkg_failed=yes
28394fi
28395 else
28396 pkg_failed=untried
28397fi
28398
28399
28400
28401if test $pkg_failed = yes; then
28402
28403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28404 _pkg_short_errors_supported=yes
28405else
28406 _pkg_short_errors_supported=no
28407fi
28408 if test $_pkg_short_errors_supported = yes; then
28409 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28410 else
28411 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28412 fi
28413 # Put the nasty error message in config.log where it belongs
28414 echo "$LQR_PKG_ERRORS" >&5
28415
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28417$as_echo "no" >&6; }
28418 have_lqr=no
28419elif test $pkg_failed = untried; then
28420 have_lqr=no
28421else
28422 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28423 LQR_LIBS=$pkg_cv_LQR_LIBS
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28425$as_echo "yes" >&6; }
28426 have_lqr=yes
28427fi
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo "" >&6; }
28430fi
28431
28432if test "$have_lqr" = 'yes'; then
28433
cristy8b350f62009-11-15 23:12:43 +000028434$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028435
28436 CFLAGS="$LQR_CFLAGS $CFLAGS"
28437fi
28438
cristy73bd4a52010-10-05 11:24:23 +000028439 if test "$have_lqr" = 'yes'; then
28440 LQR_DELEGATE_TRUE=
28441 LQR_DELEGATE_FALSE='#'
28442else
28443 LQR_DELEGATE_TRUE='#'
28444 LQR_DELEGATE_FALSE=
28445fi
28446
cristy3ed852e2009-09-05 21:47:34 +000028447
28448
28449
28450
28451#
28452# Check for the OpenEXR delegate library.
28453#
28454
28455# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028456if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 withval=$with_openexr; with_openexr=$withval
28458else
28459 with_openexr='yes'
28460fi
28461
28462
28463if test "$with_openexr" != 'yes'; then
28464 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28465fi
28466
28467have_openexr='no'
28468OPENEXR_CFLAGS=""
28469OPENEXR_LIBS=""
28470OPENEXR_PKG=""
28471if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028474
28475pkg_failed=no
28476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28477$as_echo_n "checking for OPENEXR... " >&6; }
28478
28479if test -n "$OPENEXR_CFLAGS"; then
28480 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28481 elif test -n "$PKG_CONFIG"; then
28482 if test -n "$PKG_CONFIG" && \
28483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28484 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28485 ac_status=$?
28486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28487 test $ac_status = 0; }; then
28488 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28489else
28490 pkg_failed=yes
28491fi
28492 else
28493 pkg_failed=untried
28494fi
28495if test -n "$OPENEXR_LIBS"; then
28496 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28497 elif test -n "$PKG_CONFIG"; then
28498 if test -n "$PKG_CONFIG" && \
28499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28500 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28501 ac_status=$?
28502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28503 test $ac_status = 0; }; then
28504 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28505else
28506 pkg_failed=yes
28507fi
28508 else
28509 pkg_failed=untried
28510fi
28511
28512
28513
28514if test $pkg_failed = yes; then
28515
28516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28517 _pkg_short_errors_supported=yes
28518else
28519 _pkg_short_errors_supported=no
28520fi
28521 if test $_pkg_short_errors_supported = yes; then
28522 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28523 else
28524 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28525 fi
28526 # Put the nasty error message in config.log where it belongs
28527 echo "$OPENEXR_PKG_ERRORS" >&5
28528
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28530$as_echo "no" >&6; }
28531 have_openexr=no
28532elif test $pkg_failed = untried; then
28533 have_openexr=no
28534else
28535 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28536 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28538$as_echo "yes" >&6; }
28539 have_openexr=yes
28540fi
cristy8b350f62009-11-15 23:12:43 +000028541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028542$as_echo "" >&6; }
28543fi
28544
28545if test "$have_openexr" = 'yes'; then
28546
cristy8b350f62009-11-15 23:12:43 +000028547$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028548
28549 if test "$with_modules" = 'no'; then
28550 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28551 fi
28552fi
28553
cristy73bd4a52010-10-05 11:24:23 +000028554 if test "$have_openexr" = 'yes'; then
28555 OPENEXR_DELEGATE_TRUE=
28556 OPENEXR_DELEGATE_FALSE='#'
28557else
28558 OPENEXR_DELEGATE_TRUE='#'
28559 OPENEXR_DELEGATE_FALSE=
28560fi
28561
cristy3ed852e2009-09-05 21:47:34 +000028562
28563
28564
28565
28566#
28567# Check for PNG delegate library.
28568#
28569
28570# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028571if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028572 withval=$with_png; with_png=$withval
28573else
28574 with_png='yes'
28575fi
28576
28577
28578if test "$with_png" != 'yes'; then
28579 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28580fi
28581
28582have_png='no'
28583PNG_LIBS=''
28584if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028588$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028590$as_echo "" >&6; }
28591 failed=0
28592 passed=0
cristy8b350f62009-11-15 23:12:43 +000028593 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28594if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028595 passed=`expr $passed + 1`
28596else
28597 failed=`expr $failed + 1`
28598fi
28599
28600
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028603if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028604 $as_echo_n "(cached) " >&6
28605else
28606 ac_check_lib_save_LIBS=$LIBS
28607LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028609/* end confdefs.h. */
28610
28611/* Override any GCC internal prototype to avoid an error.
28612 Use char because int might match the return type of a GCC
28613 builtin and then its argument prototype would still apply. */
28614#ifdef __cplusplus
28615extern "C"
28616#endif
28617char png_get_io_ptr ();
28618int
28619main ()
28620{
28621return png_get_io_ptr ();
28622 ;
28623 return 0;
28624}
28625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028627 ac_cv_lib_png_png_get_io_ptr=yes
28628else
cristy8b350f62009-11-15 23:12:43 +000028629 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028630fi
cristy8b350f62009-11-15 23:12:43 +000028631rm -f core conftest.err conftest.$ac_objext \
28632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028633LIBS=$ac_check_lib_save_LIBS
28634fi
cristy8b350f62009-11-15 23:12:43 +000028635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028636$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028637if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028638 passed=`expr $passed + 1`
28639else
28640 failed=`expr $failed + 1`
28641fi
28642
cristy8b350f62009-11-15 23:12:43 +000028643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028644$as_echo_n "checking if PNG package is complete... " >&6; }
28645 if test $passed -gt 0; then
28646 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028648$as_echo "no -- some components failed test" >&6; }
28649 have_png='no (failed tests)'
28650 else
28651 PNG_LIBS='-lpng'
28652 LIBS="$PNG_LIBS $LIBS"
28653
cristy8b350f62009-11-15 23:12:43 +000028654$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028655
cristy8b350f62009-11-15 23:12:43 +000028656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028657$as_echo "yes" >&6; }
28658 have_png='yes'
28659 fi
28660 else
cristy8b350f62009-11-15 23:12:43 +000028661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028662$as_echo "no" >&6; }
28663 fi
28664fi
cristy73bd4a52010-10-05 11:24:23 +000028665 if test "$have_png" = 'yes'; then
28666 PNG_DELEGATE_TRUE=
28667 PNG_DELEGATE_FALSE='#'
28668else
28669 PNG_DELEGATE_TRUE='#'
28670 PNG_DELEGATE_FALSE=
28671fi
28672
cristy3ed852e2009-09-05 21:47:34 +000028673
28674
28675
28676#
28677# Check for RSVG delegate library.
28678#
28679
28680# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028681if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028682 withval=$with_rsvg; with_rsvg=$withval
28683else
28684 with_rsvg=$have_x
28685fi
28686
28687
28688if test "$with_rsvg" != 'yes'; then
28689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28690fi
28691
28692have_rsvg='no'
28693have_cairo='no'
28694RSVG_CFLAGS=""
28695RSVG_LIBS=""
28696RSVG_PKG=""
28697if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028699$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028700
28701pkg_failed=no
28702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28703$as_echo_n "checking for RSVG... " >&6; }
28704
28705if test -n "$RSVG_CFLAGS"; then
28706 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28707 elif test -n "$PKG_CONFIG"; then
28708 if test -n "$PKG_CONFIG" && \
28709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28710 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28711 ac_status=$?
28712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28713 test $ac_status = 0; }; then
28714 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28715else
28716 pkg_failed=yes
28717fi
28718 else
28719 pkg_failed=untried
28720fi
28721if test -n "$RSVG_LIBS"; then
28722 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28723 elif test -n "$PKG_CONFIG"; then
28724 if test -n "$PKG_CONFIG" && \
28725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28726 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28727 ac_status=$?
28728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28729 test $ac_status = 0; }; then
28730 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28731else
28732 pkg_failed=yes
28733fi
28734 else
28735 pkg_failed=untried
28736fi
28737
28738
28739
28740if test $pkg_failed = yes; then
28741
28742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28743 _pkg_short_errors_supported=yes
28744else
28745 _pkg_short_errors_supported=no
28746fi
28747 if test $_pkg_short_errors_supported = yes; then
28748 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28749 else
28750 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28751 fi
28752 # Put the nasty error message in config.log where it belongs
28753 echo "$RSVG_PKG_ERRORS" >&5
28754
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28756$as_echo "no" >&6; }
28757 have_rsvg=no
28758elif test $pkg_failed = untried; then
28759 have_rsvg=no
28760else
28761 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28762 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28764$as_echo "yes" >&6; }
28765 have_rsvg=yes
28766fi
cristy8b350f62009-11-15 23:12:43 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028768$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028769
28770pkg_failed=no
28771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28772$as_echo_n "checking for CAIRO_SVG... " >&6; }
28773
28774if test -n "$CAIRO_SVG_CFLAGS"; then
28775 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28776 elif test -n "$PKG_CONFIG"; then
28777 if test -n "$PKG_CONFIG" && \
28778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28779 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28780 ac_status=$?
28781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28782 test $ac_status = 0; }; then
28783 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28784else
28785 pkg_failed=yes
28786fi
28787 else
28788 pkg_failed=untried
28789fi
28790if test -n "$CAIRO_SVG_LIBS"; then
28791 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28792 elif test -n "$PKG_CONFIG"; then
28793 if test -n "$PKG_CONFIG" && \
28794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28795 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28796 ac_status=$?
28797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798 test $ac_status = 0; }; then
28799 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28800else
28801 pkg_failed=yes
28802fi
28803 else
28804 pkg_failed=untried
28805fi
28806
28807
28808
28809if test $pkg_failed = yes; then
28810
28811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28812 _pkg_short_errors_supported=yes
28813else
28814 _pkg_short_errors_supported=no
28815fi
28816 if test $_pkg_short_errors_supported = yes; then
28817 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28818 else
28819 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28820 fi
28821 # Put the nasty error message in config.log where it belongs
28822 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28823
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28825$as_echo "no" >&6; }
28826 have_cairo=no
28827elif test $pkg_failed = untried; then
28828 have_cairo=no
28829else
28830 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28831 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28833$as_echo "yes" >&6; }
28834 have_cairo=yes
28835fi
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo "" >&6; }
28838fi
28839
28840if test "$have_rsvg" = 'yes'; then
28841
cristy8b350f62009-11-15 23:12:43 +000028842$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028843
28844 if test "$with_modules" = 'no'; then
28845 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28846 fi
28847fi
28848
28849if test "$have_cairo" = 'yes'; then
28850
cristy8b350f62009-11-15 23:12:43 +000028851$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028852
28853 if test "$with_modules" = 'no'; then
28854 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28855 fi
28856fi
28857
cristy73bd4a52010-10-05 11:24:23 +000028858 if test "$have_rsvg" = 'yes'; then
28859 RSVG_DELEGATE_TRUE=
28860 RSVG_DELEGATE_FALSE='#'
28861else
28862 RSVG_DELEGATE_TRUE='#'
28863 RSVG_DELEGATE_FALSE=
28864fi
28865
28866 if test "$have_cairo" = 'yes'; then
28867 CAIRO_DELEGATE_TRUE=
28868 CAIRO_DELEGATE_FALSE='#'
28869else
28870 CAIRO_DELEGATE_TRUE='#'
28871 CAIRO_DELEGATE_FALSE=
28872fi
28873
cristy3ed852e2009-09-05 21:47:34 +000028874
28875
28876
28877
28878#
28879# Check for TIFF delegate library.
28880#
28881
28882# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028883if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 withval=$with_tiff; with_tiff=$withval
28885else
28886 with_tiff='yes'
28887fi
28888
28889
28890if test "$with_tiff" != 'yes'; then
28891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28892fi
28893
28894have_tiff='no'
28895TIFF_LIBS=''
28896if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028898$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028902$as_echo "" >&6; }
28903 failed=0
28904 passed=0
cristy8b350f62009-11-15 23:12:43 +000028905 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28906if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028907 passed=`expr $passed + 1`
28908else
28909 failed=`expr $failed + 1`
28910fi
28911
28912
cristy8b350f62009-11-15 23:12:43 +000028913 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28914if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
28920
cristy8b350f62009-11-15 23:12:43 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028922$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028923if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028924 $as_echo_n "(cached) " >&6
28925else
28926 ac_check_lib_save_LIBS=$LIBS
28927LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028929/* end confdefs.h. */
28930
28931/* Override any GCC internal prototype to avoid an error.
28932 Use char because int might match the return type of a GCC
28933 builtin and then its argument prototype would still apply. */
28934#ifdef __cplusplus
28935extern "C"
28936#endif
28937char TIFFOpen ();
28938int
28939main ()
28940{
28941return TIFFOpen ();
28942 ;
28943 return 0;
28944}
28945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028947 ac_cv_lib_tiff_TIFFOpen=yes
28948else
cristy8b350f62009-11-15 23:12:43 +000028949 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028950fi
cristy8b350f62009-11-15 23:12:43 +000028951rm -f core conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028953LIBS=$ac_check_lib_save_LIBS
28954fi
cristy8b350f62009-11-15 23:12:43 +000028955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028957if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028958 passed=`expr $passed + 1`
28959else
28960 failed=`expr $failed + 1`
28961fi
28962
cristy8b350f62009-11-15 23:12:43 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028964$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028965if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028966 $as_echo_n "(cached) " >&6
28967else
28968 ac_check_lib_save_LIBS=$LIBS
28969LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028971/* end confdefs.h. */
28972
28973/* Override any GCC internal prototype to avoid an error.
28974 Use char because int might match the return type of a GCC
28975 builtin and then its argument prototype would still apply. */
28976#ifdef __cplusplus
28977extern "C"
28978#endif
28979char TIFFClientOpen ();
28980int
28981main ()
28982{
28983return TIFFClientOpen ();
28984 ;
28985 return 0;
28986}
28987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028989 ac_cv_lib_tiff_TIFFClientOpen=yes
28990else
cristy8b350f62009-11-15 23:12:43 +000028991 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028992fi
cristy8b350f62009-11-15 23:12:43 +000028993rm -f core conftest.err conftest.$ac_objext \
28994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028995LIBS=$ac_check_lib_save_LIBS
28996fi
cristy8b350f62009-11-15 23:12:43 +000028997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028999if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029000 passed=`expr $passed + 1`
29001else
29002 failed=`expr $failed + 1`
29003fi
29004
cristyb97f1002010-07-26 14:02:57 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29006$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29007if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
29008 $as_echo_n "(cached) " >&6
29009else
29010 ac_check_lib_save_LIBS=$LIBS
29011LIBS="-ltiff $LIBS"
29012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29013/* end confdefs.h. */
29014
29015/* Override any GCC internal prototype to avoid an error.
29016 Use char because int might match the return type of a GCC
29017 builtin and then its argument prototype would still apply. */
29018#ifdef __cplusplus
29019extern "C"
29020#endif
29021char TIFFIsBigEndian ();
29022int
29023main ()
29024{
29025return TIFFIsBigEndian ();
29026 ;
29027 return 0;
29028}
29029_ACEOF
29030if ac_fn_c_try_link "$LINENO"; then :
29031 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29032else
29033 ac_cv_lib_tiff_TIFFIsBigEndian=no
29034fi
29035rm -f core conftest.err conftest.$ac_objext \
29036 conftest$ac_exeext conftest.$ac_ext
29037LIBS=$ac_check_lib_save_LIBS
29038fi
29039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29040$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29041if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29042 passed=`expr $passed + 1`
29043else
29044 failed=`expr $failed + 1`
29045fi
29046
cristy8b350f62009-11-15 23:12:43 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029048$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029049if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 $as_echo_n "(cached) " >&6
29051else
29052 ac_check_lib_save_LIBS=$LIBS
29053LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029055/* end confdefs.h. */
29056
29057/* Override any GCC internal prototype to avoid an error.
29058 Use char because int might match the return type of a GCC
29059 builtin and then its argument prototype would still apply. */
29060#ifdef __cplusplus
29061extern "C"
29062#endif
29063char TIFFIsByteSwapped ();
29064int
29065main ()
29066{
29067return TIFFIsByteSwapped ();
29068 ;
29069 return 0;
29070}
29071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029073 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29074else
cristy8b350f62009-11-15 23:12:43 +000029075 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029076fi
cristy8b350f62009-11-15 23:12:43 +000029077rm -f core conftest.err conftest.$ac_objext \
29078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029079LIBS=$ac_check_lib_save_LIBS
29080fi
cristy8b350f62009-11-15 23:12:43 +000029081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029082$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029083if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029084 passed=`expr $passed + 1`
29085else
29086 failed=`expr $failed + 1`
29087fi
29088
cristy8b350f62009-11-15 23:12:43 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029090$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029091if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 $as_echo_n "(cached) " >&6
29093else
29094 ac_check_lib_save_LIBS=$LIBS
29095LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029097/* end confdefs.h. */
29098
29099/* Override any GCC internal prototype to avoid an error.
29100 Use char because int might match the return type of a GCC
29101 builtin and then its argument prototype would still apply. */
29102#ifdef __cplusplus
29103extern "C"
29104#endif
29105char TIFFReadRGBATile ();
29106int
29107main ()
29108{
29109return TIFFReadRGBATile ();
29110 ;
29111 return 0;
29112}
29113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029115 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29116else
cristy8b350f62009-11-15 23:12:43 +000029117 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029118fi
cristy8b350f62009-11-15 23:12:43 +000029119rm -f core conftest.err conftest.$ac_objext \
29120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029121LIBS=$ac_check_lib_save_LIBS
29122fi
cristy8b350f62009-11-15 23:12:43 +000029123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029125if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029126 passed=`expr $passed + 1`
29127else
29128 failed=`expr $failed + 1`
29129fi
29130
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029133if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029134 $as_echo_n "(cached) " >&6
29135else
29136 ac_check_lib_save_LIBS=$LIBS
29137LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029139/* end confdefs.h. */
29140
29141/* Override any GCC internal prototype to avoid an error.
29142 Use char because int might match the return type of a GCC
29143 builtin and then its argument prototype would still apply. */
29144#ifdef __cplusplus
29145extern "C"
29146#endif
29147char TIFFReadRGBAStrip ();
29148int
29149main ()
29150{
29151return TIFFReadRGBAStrip ();
29152 ;
29153 return 0;
29154}
29155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029157 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29158else
cristy8b350f62009-11-15 23:12:43 +000029159 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029160fi
cristy8b350f62009-11-15 23:12:43 +000029161rm -f core conftest.err conftest.$ac_objext \
29162 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029163LIBS=$ac_check_lib_save_LIBS
29164fi
cristy8b350f62009-11-15 23:12:43 +000029165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029166$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029167if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029168 passed=`expr $passed + 1`
29169else
29170 failed=`expr $failed + 1`
29171fi
29172
cristy8b350f62009-11-15 23:12:43 +000029173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029174$as_echo_n "checking if TIFF package is complete... " >&6; }
29175 if test $passed -gt 0; then
29176 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029178$as_echo "no -- some components failed test" >&6; }
29179 have_tiff='no (failed tests)'
29180 else
29181 TIFF_LIBS='-ltiff'
29182 LIBS="$TIFF_LIBS $LIBS"
29183
cristy8b350f62009-11-15 23:12:43 +000029184$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029185
cristy8b350f62009-11-15 23:12:43 +000029186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029187$as_echo "yes" >&6; }
29188 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029189 for ac_header in tiffconf.h
29190do :
29191 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29192if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029193 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029194#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029195_ACEOF
29196
29197fi
29198
29199done
29200
cristy8b350f62009-11-15 23:12:43 +000029201 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029202 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29203 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029204do :
29205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29206ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000029207eval as_val=\$$as_ac_var
29208 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029209 cat >>confdefs.h <<_ACEOF
29210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29211_ACEOF
29212
29213fi
29214done
29215
29216 fi
29217 else
cristy8b350f62009-11-15 23:12:43 +000029218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029219$as_echo "no" >&6; }
29220 fi
29221fi
cristy73bd4a52010-10-05 11:24:23 +000029222 if test "$have_tiff" = 'yes'; then
29223 TIFF_DELEGATE_TRUE=
29224 TIFF_DELEGATE_FALSE='#'
29225else
29226 TIFF_DELEGATE_TRUE='#'
29227 TIFF_DELEGATE_FALSE=
29228fi
29229
cristy3ed852e2009-09-05 21:47:34 +000029230
29231
29232
29233#
29234# Set Windows font directory.
29235#
29236
29237# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029238if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29240else
29241 with_windows_font_dir=''
29242fi
29243
29244if test "$with_windows_font_dir" != '' ; then
29245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29246fi
29247
29248
29249#
29250# Check for WMF delegate library.
29251#
29252
29253# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029254if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029255 withval=$with_wmf; with_wmf=$withval
29256else
cristy8d63d1d2010-01-06 20:38:37 +000029257 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029258fi
29259
29260
29261if test "$with_wmf" != 'yes'; then
29262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29263fi
29264
29265have_wmf='no'
29266WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029267if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029273$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029274 failed=0
29275 passed=0
29276 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29277if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29278 passed=`expr $passed + 1`
29279else
29280 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029281fi
29282
29283
cristy735e8942010-04-02 20:32:57 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29285$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29286if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 $as_echo_n "(cached) " >&6
29288else
29289 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029290LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029292/* end confdefs.h. */
29293
29294/* Override any GCC internal prototype to avoid an error.
29295 Use char because int might match the return type of a GCC
29296 builtin and then its argument prototype would still apply. */
29297#ifdef __cplusplus
29298extern "C"
29299#endif
cristy735e8942010-04-02 20:32:57 +000029300char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029301int
29302main ()
29303{
cristy735e8942010-04-02 20:32:57 +000029304return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029305 ;
29306 return 0;
29307}
29308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029309if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029310 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029311else
cristy735e8942010-04-02 20:32:57 +000029312 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029313fi
cristy8b350f62009-11-15 23:12:43 +000029314rm -f core conftest.err conftest.$ac_objext \
29315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029316LIBS=$ac_check_lib_save_LIBS
29317fi
cristy735e8942010-04-02 20:32:57 +000029318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29319$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29320if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29321 passed=`expr $passed + 1`
29322else
29323 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029324fi
29325
cristy735e8942010-04-02 20:32:57 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29327$as_echo_n "checking if WMF package is complete... " >&6; }
29328 if test $passed -gt 0; then
29329 if test $failed -gt 0; then
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29331$as_echo "no -- some components failed test" >&6; }
29332 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029333 else
cristy735e8942010-04-02 20:32:57 +000029334 WMF_LIBS='-lwmf -lwmflite'
29335 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029336
cristy8b350f62009-11-15 23:12:43 +000029337$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029338
cristy735e8942010-04-02 20:32:57 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029341 have_wmf='yes'
29342 fi
cristy3ed852e2009-09-05 21:47:34 +000029343 else
cristy8b350f62009-11-15 23:12:43 +000029344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029345$as_echo "no" >&6; }
29346 fi
29347fi
cristy73bd4a52010-10-05 11:24:23 +000029348 if test "$have_wmf" = 'yes'; then
29349 WMF_DELEGATE_TRUE=
29350 WMF_DELEGATE_FALSE='#'
29351else
29352 WMF_DELEGATE_TRUE='#'
29353 WMF_DELEGATE_FALSE=
29354fi
29355
cristy3ed852e2009-09-05 21:47:34 +000029356
29357
29358
29359
cristy735e8942010-04-02 20:32:57 +000029360
cristy3ed852e2009-09-05 21:47:34 +000029361#
29362# Check for XML delegate library.
29363#
29364
29365# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029366if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029367 withval=$with_xml; with_xml=$withval
29368else
29369 with_xml=$have_x
29370fi
29371
29372
29373if test "$with_xml" != 'yes' ; then
29374 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29375fi
29376
29377have_xml='no'
29378XML_LIBS=''
29379if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo "" >&6; }
29386 PERSIST_LDFLAGS=$LDFLAGS
29387 PERSIST_CPPFLAGS=$CPPFLAGS
29388 xml2_config=''
29389 for ac_prog in xml2-config
29390do
29391 # Extract the first word of "$ac_prog", so it can be a program name with args.
29392set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029395if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029396 $as_echo_n "(cached) " >&6
29397else
29398 if test -n "$xml2_config"; then
29399 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29400else
29401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29402for as_dir in $PATH
29403do
29404 IFS=$as_save_IFS
29405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29408 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029410 break 2
29411 fi
29412done
cristy8b350f62009-11-15 23:12:43 +000029413 done
cristy3ed852e2009-09-05 21:47:34 +000029414IFS=$as_save_IFS
29415
29416fi
29417fi
29418xml2_config=$ac_cv_prog_xml2_config
29419if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029421$as_echo "$xml2_config" >&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 test -n "$xml2_config" && break
29429done
29430 if test -n "$xml2_config"; then
29431 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29432 # the shared library installed under /usr/lib, whereas the package
29433 # installs itself under $prefix/libxml and $prefix/lib.
29434 xml2_prefix=`xml2-config --prefix`
29435 if test -d "${xml2_prefix}/include/libxml2"; then
29436 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29437 fi
29438 if test "${xml2_prefix}" != '/usr'; then
29439 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29440 fi
29441 fi
29442 failed=0
29443 passed=0
cristy8b350f62009-11-15 23:12:43 +000029444 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29445if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029446 passed=`expr $passed + 1`
29447else
29448 failed=`expr $failed + 1`
29449fi
29450
29451
cristy8b350f62009-11-15 23:12:43 +000029452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029453$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029454if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029455 $as_echo_n "(cached) " >&6
29456else
29457 ac_check_lib_save_LIBS=$LIBS
29458LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029460/* end confdefs.h. */
29461
29462/* Override any GCC internal prototype to avoid an error.
29463 Use char because int might match the return type of a GCC
29464 builtin and then its argument prototype would still apply. */
29465#ifdef __cplusplus
29466extern "C"
29467#endif
29468char xmlParseExternalEntity ();
29469int
29470main ()
29471{
29472return xmlParseExternalEntity ();
29473 ;
29474 return 0;
29475}
29476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029478 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29479else
cristy8b350f62009-11-15 23:12:43 +000029480 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029481fi
cristy8b350f62009-11-15 23:12:43 +000029482rm -f core conftest.err conftest.$ac_objext \
29483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029484LIBS=$ac_check_lib_save_LIBS
29485fi
cristy8b350f62009-11-15 23:12:43 +000029486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029487$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029488if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029489 passed=`expr $passed + 1`
29490else
29491 failed=`expr $failed + 1`
29492fi
29493
cristy8b350f62009-11-15 23:12:43 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029495$as_echo_n "checking if XML package is complete... " >&6; }
29496 if test $passed -gt 0; then
29497 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029499$as_echo "no -- some components failed test" >&6; }
29500 have_xml='no (failed tests)'
29501 LDFLAGS="$PERSIST_LDFLAGS"
29502 CPPFLAGS="$PERSIST_CPPFLAGS"
29503 else
29504 XML_LIBS='-lxml2'
29505 LIBS="$XML_LIBS $LIBS"
29506
cristy8b350f62009-11-15 23:12:43 +000029507$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029508
cristy8b350f62009-11-15 23:12:43 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029510$as_echo "yes" >&6; }
29511 have_xml='yes'
29512 fi
29513 else
cristy8b350f62009-11-15 23:12:43 +000029514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029515$as_echo "no" >&6; }
29516 fi
29517fi
cristy73bd4a52010-10-05 11:24:23 +000029518 if test "$have_xml" = 'yes'; then
29519 XML_DELEGATE_TRUE=
29520 XML_DELEGATE_FALSE='#'
29521else
29522 XML_DELEGATE_TRUE='#'
29523 XML_DELEGATE_FALSE=
29524fi
29525
cristy3ed852e2009-09-05 21:47:34 +000029526
29527
29528
29529# Substitute compiler name to build/link PerlMagick
29530#
29531
29532
29533#
29534# Configure install Paths
29535#
29536
29537# Subdirectory under lib to place ImageMagick lib files
29538LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29539
29540cat >>confdefs.h <<_ACEOF
29541#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29542_ACEOF
29543
29544
29545# Path to ImageMagick bin directory
29546EXECUTABLE_PATH="${BIN_DIR}"
29547DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29548case "${build_os}" in
29549 mingw* )
29550 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29551 ;;
29552esac
29553
29554cat >>confdefs.h <<_ACEOF
29555#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29556_ACEOF
29557
29558
29559
29560# Path to ImageMagick lib
29561LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29562DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29563case "${build_os}" in
29564 mingw* )
29565 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29566 ;;
29567esac
29568
29569cat >>confdefs.h <<_ACEOF
29570#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29571_ACEOF
29572
29573
29574
29575# Subdirectory under lib to place ImageMagick configuration files
29576CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29577
29578cat >>confdefs.h <<_ACEOF
29579#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29580_ACEOF
29581
29582CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29583DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29584case "${build_os}" in
29585 mingw* )
29586 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29587 ;;
29588esac
29589
29590cat >>confdefs.h <<_ACEOF
29591#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29592_ACEOF
29593
29594
29595
29596#
29597# Subdirectory under lib to place ImageMagick coder module files
29598CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29599
29600cat >>confdefs.h <<_ACEOF
29601#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29602_ACEOF
29603
29604CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29605DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29606case "${build_os}" in
29607 mingw* )
29608 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29609 ;;
29610esac
29611
29612cat >>confdefs.h <<_ACEOF
29613#define CODER_PATH "$DEFINE_CODER_PATH"
29614_ACEOF
29615
29616
29617
29618#
29619# Subdirectory under lib to place ImageMagick filter module files
29620FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29621
29622cat >>confdefs.h <<_ACEOF
29623#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29624_ACEOF
29625
29626FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29627DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29628case "${build_os}" in
29629 mingw* )
29630 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29631 ;;
29632esac
29633
29634cat >>confdefs.h <<_ACEOF
29635#define FILTER_PATH "$DEFINE_FILTER_PATH"
29636_ACEOF
29637
29638
29639
29640#
29641# Path to ImageMagick documentation files
29642DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29643DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29644DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29645case "${build_os}" in
29646 mingw* )
29647 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29648 ;;
29649esac
29650
29651cat >>confdefs.h <<_ACEOF
29652#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29653_ACEOF
29654
29655
29656
29657#
29658# Path to ImageMagick share files
29659SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29660SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29661DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29662case "${build_os}" in
29663 mingw* )
29664 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29665 ;;
29666esac
29667
29668cat >>confdefs.h <<_ACEOF
29669#define SHARE_PATH "$DEFINE_SHARE_PATH"
29670_ACEOF
29671
29672
29673
29674# Subdirectory under share to place ImageMagick configuration files
29675SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29676
29677cat >>confdefs.h <<_ACEOF
29678#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29679_ACEOF
29680
29681SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29682DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29683case "${build_os}" in
29684 mingw* )
29685 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29686 ;;
29687esac
29688
29689cat >>confdefs.h <<_ACEOF
29690#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29691_ACEOF
29692
29693
29694
29695#
29696# program_transform_name is formed for use in a Makefile, so create a
29697# modified version for use in a shell script.
29698configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29699
29700# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029702$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029706$as_echo "" >&6; }
29707AutotraceDecodeDelegateDefault='autotrace'
29708AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029709BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029710BZIPDelegateDefault='bzip2'
29711BrowseDelegateDefault='xdg-open'
29712CGMDecodeDelegateDefault='ralcgm'
29713CatDelegateDefault='cat'
29714DNGDecodeDelegateDefault='ufraw-batch'
29715GVCDecodeDelegateDefault='dot'
29716DVIDecodeDelegateDefault='dvips'
29717EchoDelegateDefault='echo'
29718EditorDelegateDefault='xterm'
29719FIGDecodeDelegateDefault='fig2dev'
29720ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29721DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29722MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29723GnuplotDecodeDelegateDefault='gnuplot'
29724HDRDecodeDelegateDefault='ra_pfm'
29725HPGLDecodeDelegateDefault='hp2xx'
29726HTMLDecodeDelegateDefault='html2ps'
29727ILBMDecodeDelegateDefault='ilbmtoppm'
29728ILBMEncodeDelegateDefault='ppmtoilbm'
29729LPDelegateDefault='lp'
29730LPRDelegateDefault='lpr'
29731LZWDecodeDelegateDefault='uncompress'
29732LZWEncodeDelegateDefault='compress'
29733LaunchDelegateDefault='gimp'
29734MANDelegateDefault='groff'
29735MPEGDecodeDelegateDefault='ffmpeg'
29736MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029737MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029738MVDelegateDefault='mv'
29739PCLDelegateDefault='pcl6'
29740PGPDecodeDelegateDefault='pgpv'
29741POVDelegateDefault='povray'
29742if test "$native_win32_build" = 'yes'; then
29743 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029744elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029745 PSDelegateDefault='gsc'
29746else
29747 PSDelegateDefault='gs'
29748fi
29749RLEEncodeDelegateDefault='rawtorle'
29750RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029751RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029752SCANDecodeDelegateDefault='scanimage'
29753TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029754UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000029755WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000029756WMFDecodeDelegateDefault='wmf2eps'
29757WWWDecodeDelegateDefault='curl'
29758XPSDelegateDefault='gxps'
29759ZipDelegateDefault='gzip'
29760
29761# Search for delegates
29762# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29763set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029765$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029766if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029767 $as_echo_n "(cached) " >&6
29768else
29769 case $AutotraceDecodeDelegate in
29770 [\\/]* | ?:[\\/]*)
29771 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29772 ;;
29773 *)
29774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29775for as_dir in $PATH
29776do
29777 IFS=$as_save_IFS
29778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29781 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783 break 2
29784 fi
29785done
cristy8b350f62009-11-15 23:12:43 +000029786 done
cristy3ed852e2009-09-05 21:47:34 +000029787IFS=$as_save_IFS
29788
29789 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29790 ;;
29791esac
29792fi
29793AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29794if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029796$as_echo "$AutotraceDecodeDelegate" >&6; }
29797else
cristy8b350f62009-11-15 23:12:43 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799$as_echo "no" >&6; }
29800fi
29801
29802
29803# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29804set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029807if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029808 $as_echo_n "(cached) " >&6
29809else
29810 case $AVIDecodeDelegate in
29811 [\\/]* | ?:[\\/]*)
29812 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29813 ;;
29814 *)
29815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29816for as_dir in $PATH
29817do
29818 IFS=$as_save_IFS
29819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29822 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824 break 2
29825 fi
29826done
cristy8b350f62009-11-15 23:12:43 +000029827 done
cristy3ed852e2009-09-05 21:47:34 +000029828IFS=$as_save_IFS
29829
29830 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29831 ;;
29832esac
29833fi
29834AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29835if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029837$as_echo "$AVIDecodeDelegate" >&6; }
29838else
cristy8b350f62009-11-15 23:12:43 +000029839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029840$as_echo "no" >&6; }
29841fi
29842
29843
29844# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29845set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029847$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029848if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029849 $as_echo_n "(cached) " >&6
29850else
29851 case $BlenderDecodeDelegate in
29852 [\\/]* | ?:[\\/]*)
29853 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29854 ;;
29855 *)
29856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29857for as_dir in $PATH
29858do
29859 IFS=$as_save_IFS
29860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29863 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029865 break 2
29866 fi
29867done
cristy8b350f62009-11-15 23:12:43 +000029868 done
cristy3ed852e2009-09-05 21:47:34 +000029869IFS=$as_save_IFS
29870
29871 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29872 ;;
29873esac
29874fi
29875BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29876if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878$as_echo "$BlenderDecodeDelegate" >&6; }
29879else
cristy8b350f62009-11-15 23:12:43 +000029880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881$as_echo "no" >&6; }
29882fi
29883
29884
29885# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29886set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029888$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029889if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029890 $as_echo_n "(cached) " >&6
29891else
29892 case $BZIPDelegate in
29893 [\\/]* | ?:[\\/]*)
29894 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29895 ;;
29896 *)
29897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29898for as_dir in $PATH
29899do
29900 IFS=$as_save_IFS
29901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29904 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029906 break 2
29907 fi
29908done
cristy8b350f62009-11-15 23:12:43 +000029909 done
cristy3ed852e2009-09-05 21:47:34 +000029910IFS=$as_save_IFS
29911
29912 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29913 ;;
29914esac
29915fi
29916BZIPDelegate=$ac_cv_path_BZIPDelegate
29917if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029919$as_echo "$BZIPDelegate" >&6; }
29920else
cristy8b350f62009-11-15 23:12:43 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922$as_echo "no" >&6; }
29923fi
29924
29925
29926# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29927set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029930if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029931 $as_echo_n "(cached) " >&6
29932else
29933 case $BrowseDelegate in
29934 [\\/]* | ?:[\\/]*)
29935 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29936 ;;
29937 *)
29938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29939for as_dir in $PATH
29940do
29941 IFS=$as_save_IFS
29942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29945 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029947 break 2
29948 fi
29949done
cristy8b350f62009-11-15 23:12:43 +000029950 done
cristy3ed852e2009-09-05 21:47:34 +000029951IFS=$as_save_IFS
29952
29953 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29954 ;;
29955esac
29956fi
29957BrowseDelegate=$ac_cv_path_BrowseDelegate
29958if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029960$as_echo "$BrowseDelegate" >&6; }
29961else
cristy8b350f62009-11-15 23:12:43 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029963$as_echo "no" >&6; }
29964fi
29965
29966
29967# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29968set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029970$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029971if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029972 $as_echo_n "(cached) " >&6
29973else
29974 case $CGMDecodeDelegate in
29975 [\\/]* | ?:[\\/]*)
29976 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29977 ;;
29978 *)
29979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29980for as_dir in $PATH
29981do
29982 IFS=$as_save_IFS
29983 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29986 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029988 break 2
29989 fi
29990done
cristy8b350f62009-11-15 23:12:43 +000029991 done
cristy3ed852e2009-09-05 21:47:34 +000029992IFS=$as_save_IFS
29993
29994 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29995 ;;
29996esac
29997fi
29998CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29999if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030001$as_echo "$CGMDecodeDelegate" >&6; }
30002else
cristy8b350f62009-11-15 23:12:43 +000030003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004$as_echo "no" >&6; }
30005fi
30006
30007
30008# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30009set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030011$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030012if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030013 $as_echo_n "(cached) " >&6
30014else
30015 case $CatDelegate in
30016 [\\/]* | ?:[\\/]*)
30017 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30018 ;;
30019 *)
30020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30021for as_dir in $PATH
30022do
30023 IFS=$as_save_IFS
30024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30027 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030029 break 2
30030 fi
30031done
cristy8b350f62009-11-15 23:12:43 +000030032 done
cristy3ed852e2009-09-05 21:47:34 +000030033IFS=$as_save_IFS
30034
30035 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30036 ;;
30037esac
30038fi
30039CatDelegate=$ac_cv_path_CatDelegate
30040if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030042$as_echo "$CatDelegate" >&6; }
30043else
cristy8b350f62009-11-15 23:12:43 +000030044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045$as_echo "no" >&6; }
30046fi
30047
30048
30049# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30050set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030052$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030053if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030054 $as_echo_n "(cached) " >&6
30055else
30056 case $DNGDecodeDelegate in
30057 [\\/]* | ?:[\\/]*)
30058 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30059 ;;
30060 *)
30061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30062for as_dir in $PATH
30063do
30064 IFS=$as_save_IFS
30065 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30068 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030070 break 2
30071 fi
30072done
cristy8b350f62009-11-15 23:12:43 +000030073 done
cristy3ed852e2009-09-05 21:47:34 +000030074IFS=$as_save_IFS
30075
30076 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30077 ;;
30078esac
30079fi
30080DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30081if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030083$as_echo "$DNGDecodeDelegate" >&6; }
30084else
cristy8b350f62009-11-15 23:12:43 +000030085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030086$as_echo "no" >&6; }
30087fi
30088
30089
30090# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30091set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030093$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030094if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030095 $as_echo_n "(cached) " >&6
30096else
30097 case $GVCDecodeDelegate in
30098 [\\/]* | ?:[\\/]*)
30099 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30100 ;;
30101 *)
30102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30103for as_dir in $PATH
30104do
30105 IFS=$as_save_IFS
30106 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30109 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030111 break 2
30112 fi
30113done
cristy8b350f62009-11-15 23:12:43 +000030114 done
cristy3ed852e2009-09-05 21:47:34 +000030115IFS=$as_save_IFS
30116
30117 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30118 ;;
30119esac
30120fi
30121GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30122if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030124$as_echo "$GVCDecodeDelegate" >&6; }
30125else
cristy8b350f62009-11-15 23:12:43 +000030126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127$as_echo "no" >&6; }
30128fi
30129
30130
30131# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30132set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030134$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030135if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 $as_echo_n "(cached) " >&6
30137else
30138 case $DVIDecodeDelegate in
30139 [\\/]* | ?:[\\/]*)
30140 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30141 ;;
30142 *)
30143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30144for as_dir in $PATH
30145do
30146 IFS=$as_save_IFS
30147 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030148 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30150 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152 break 2
30153 fi
30154done
cristy8b350f62009-11-15 23:12:43 +000030155 done
cristy3ed852e2009-09-05 21:47:34 +000030156IFS=$as_save_IFS
30157
30158 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30159 ;;
30160esac
30161fi
30162DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30163if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030165$as_echo "$DVIDecodeDelegate" >&6; }
30166else
cristy8b350f62009-11-15 23:12:43 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168$as_echo "no" >&6; }
30169fi
30170
30171
30172# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30173set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030175$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030176if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030177 $as_echo_n "(cached) " >&6
30178else
30179 case $EchoDelegate in
30180 [\\/]* | ?:[\\/]*)
30181 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30182 ;;
30183 *)
30184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30185for as_dir in $PATH
30186do
30187 IFS=$as_save_IFS
30188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30191 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030193 break 2
30194 fi
30195done
cristy8b350f62009-11-15 23:12:43 +000030196 done
cristy3ed852e2009-09-05 21:47:34 +000030197IFS=$as_save_IFS
30198
30199 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30200 ;;
30201esac
30202fi
30203EchoDelegate=$ac_cv_path_EchoDelegate
30204if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030206$as_echo "$EchoDelegate" >&6; }
30207else
cristy8b350f62009-11-15 23:12:43 +000030208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209$as_echo "no" >&6; }
30210fi
30211
30212
30213# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30214set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030217if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030218 $as_echo_n "(cached) " >&6
30219else
30220 case $EditorDelegate in
30221 [\\/]* | ?:[\\/]*)
30222 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30223 ;;
30224 *)
30225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30226for as_dir in $PATH
30227do
30228 IFS=$as_save_IFS
30229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30232 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234 break 2
30235 fi
30236done
cristy8b350f62009-11-15 23:12:43 +000030237 done
cristy3ed852e2009-09-05 21:47:34 +000030238IFS=$as_save_IFS
30239
30240 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30241 ;;
30242esac
30243fi
30244EditorDelegate=$ac_cv_path_EditorDelegate
30245if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030247$as_echo "$EditorDelegate" >&6; }
30248else
cristy8b350f62009-11-15 23:12:43 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030250$as_echo "no" >&6; }
30251fi
30252
30253
30254# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30255set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030257$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030258if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030259 $as_echo_n "(cached) " >&6
30260else
30261 case $FIGDecodeDelegate in
30262 [\\/]* | ?:[\\/]*)
30263 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30264 ;;
30265 *)
30266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30267for as_dir in $PATH
30268do
30269 IFS=$as_save_IFS
30270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30273 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030275 break 2
30276 fi
30277done
cristy8b350f62009-11-15 23:12:43 +000030278 done
cristy3ed852e2009-09-05 21:47:34 +000030279IFS=$as_save_IFS
30280
30281 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30282 ;;
30283esac
30284fi
30285FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30286if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030288$as_echo "$FIGDecodeDelegate" >&6; }
30289else
cristy8b350f62009-11-15 23:12:43 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030291$as_echo "no" >&6; }
30292fi
30293
30294
30295# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30296set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030299if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030300 $as_echo_n "(cached) " >&6
30301else
30302 case $ConvertDelegate in
30303 [\\/]* | ?:[\\/]*)
30304 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30305 ;;
30306 *)
30307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30308for as_dir in $PATH
30309do
30310 IFS=$as_save_IFS
30311 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030312 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30314 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030316 break 2
30317 fi
30318done
cristy8b350f62009-11-15 23:12:43 +000030319 done
cristy3ed852e2009-09-05 21:47:34 +000030320IFS=$as_save_IFS
30321
30322 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30323 ;;
30324esac
30325fi
30326ConvertDelegate=$ac_cv_path_ConvertDelegate
30327if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030329$as_echo "$ConvertDelegate" >&6; }
30330else
cristy8b350f62009-11-15 23:12:43 +000030331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332$as_echo "no" >&6; }
30333fi
30334
30335
30336# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30337set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030339$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030340if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030341 $as_echo_n "(cached) " >&6
30342else
30343 case $DisplayDelegate in
30344 [\\/]* | ?:[\\/]*)
30345 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30346 ;;
30347 *)
30348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30349for as_dir in $PATH
30350do
30351 IFS=$as_save_IFS
30352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30355 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030357 break 2
30358 fi
30359done
cristy8b350f62009-11-15 23:12:43 +000030360 done
cristy3ed852e2009-09-05 21:47:34 +000030361IFS=$as_save_IFS
30362
30363 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30364 ;;
30365esac
30366fi
30367DisplayDelegate=$ac_cv_path_DisplayDelegate
30368if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030370$as_echo "$DisplayDelegate" >&6; }
30371else
cristy8b350f62009-11-15 23:12:43 +000030372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373$as_echo "no" >&6; }
30374fi
30375
30376
30377# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30378set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030381if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030382 $as_echo_n "(cached) " >&6
30383else
30384 case $MogrifyDelegate in
30385 [\\/]* | ?:[\\/]*)
30386 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30387 ;;
30388 *)
30389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30390for as_dir in $PATH
30391do
30392 IFS=$as_save_IFS
30393 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30396 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030398 break 2
30399 fi
30400done
cristy8b350f62009-11-15 23:12:43 +000030401 done
cristy3ed852e2009-09-05 21:47:34 +000030402IFS=$as_save_IFS
30403
30404 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30405 ;;
30406esac
30407fi
30408MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30409if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030411$as_echo "$MogrifyDelegate" >&6; }
30412else
cristy8b350f62009-11-15 23:12:43 +000030413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414$as_echo "no" >&6; }
30415fi
30416
30417
30418# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30419set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030421$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030422if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030423 $as_echo_n "(cached) " >&6
30424else
30425 case $GnuplotDecodeDelegate in
30426 [\\/]* | ?:[\\/]*)
30427 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30428 ;;
30429 *)
30430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30431for as_dir in $PATH
30432do
30433 IFS=$as_save_IFS
30434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30437 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030439 break 2
30440 fi
30441done
cristy8b350f62009-11-15 23:12:43 +000030442 done
cristy3ed852e2009-09-05 21:47:34 +000030443IFS=$as_save_IFS
30444
30445 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30446 ;;
30447esac
30448fi
30449GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30450if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030452$as_echo "$GnuplotDecodeDelegate" >&6; }
30453else
cristy8b350f62009-11-15 23:12:43 +000030454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455$as_echo "no" >&6; }
30456fi
30457
30458
30459# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30460set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030462$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030463if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030464 $as_echo_n "(cached) " >&6
30465else
30466 case $HDRDecodeDelegate in
30467 [\\/]* | ?:[\\/]*)
30468 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30469 ;;
30470 *)
30471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30472for as_dir in $PATH
30473do
30474 IFS=$as_save_IFS
30475 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30478 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030480 break 2
30481 fi
30482done
cristy8b350f62009-11-15 23:12:43 +000030483 done
cristy3ed852e2009-09-05 21:47:34 +000030484IFS=$as_save_IFS
30485
30486 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30487 ;;
30488esac
30489fi
30490HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30491if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030493$as_echo "$HDRDecodeDelegate" >&6; }
30494else
cristy8b350f62009-11-15 23:12:43 +000030495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496$as_echo "no" >&6; }
30497fi
30498
30499
30500# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30501set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030503$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030504if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030505 $as_echo_n "(cached) " >&6
30506else
30507 case $HPGLDecodeDelegate in
30508 [\\/]* | ?:[\\/]*)
30509 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30510 ;;
30511 *)
30512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30513for as_dir in $PATH
30514do
30515 IFS=$as_save_IFS
30516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30519 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030521 break 2
30522 fi
30523done
cristy8b350f62009-11-15 23:12:43 +000030524 done
cristy3ed852e2009-09-05 21:47:34 +000030525IFS=$as_save_IFS
30526
30527 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30528 ;;
30529esac
30530fi
30531HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30532if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534$as_echo "$HPGLDecodeDelegate" >&6; }
30535else
cristy8b350f62009-11-15 23:12:43 +000030536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030537$as_echo "no" >&6; }
30538fi
30539
30540
30541# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30542set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030544$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030545if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030546 $as_echo_n "(cached) " >&6
30547else
30548 case $HTMLDecodeDelegate in
30549 [\\/]* | ?:[\\/]*)
30550 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30551 ;;
30552 *)
30553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30554for as_dir in $PATH
30555do
30556 IFS=$as_save_IFS
30557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30560 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030562 break 2
30563 fi
30564done
cristy8b350f62009-11-15 23:12:43 +000030565 done
cristy3ed852e2009-09-05 21:47:34 +000030566IFS=$as_save_IFS
30567
30568 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30569 ;;
30570esac
30571fi
30572HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30573if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030575$as_echo "$HTMLDecodeDelegate" >&6; }
30576else
cristy8b350f62009-11-15 23:12:43 +000030577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578$as_echo "no" >&6; }
30579fi
30580
30581
30582# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30583set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030585$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030586if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030587 $as_echo_n "(cached) " >&6
30588else
30589 case $ILBMDecodeDelegate in
30590 [\\/]* | ?:[\\/]*)
30591 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30592 ;;
30593 *)
30594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30595for as_dir in $PATH
30596do
30597 IFS=$as_save_IFS
30598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30601 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030603 break 2
30604 fi
30605done
cristy8b350f62009-11-15 23:12:43 +000030606 done
cristy3ed852e2009-09-05 21:47:34 +000030607IFS=$as_save_IFS
30608
30609 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30610 ;;
30611esac
30612fi
30613ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30614if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030616$as_echo "$ILBMDecodeDelegate" >&6; }
30617else
cristy8b350f62009-11-15 23:12:43 +000030618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619$as_echo "no" >&6; }
30620fi
30621
30622
30623# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30624set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030626$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030627if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030628 $as_echo_n "(cached) " >&6
30629else
30630 case $ILBMEncodeDelegate in
30631 [\\/]* | ?:[\\/]*)
30632 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30633 ;;
30634 *)
30635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30636for as_dir in $PATH
30637do
30638 IFS=$as_save_IFS
30639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30642 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030644 break 2
30645 fi
30646done
cristy8b350f62009-11-15 23:12:43 +000030647 done
cristy3ed852e2009-09-05 21:47:34 +000030648IFS=$as_save_IFS
30649
30650 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30651 ;;
30652esac
30653fi
30654ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30655if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030657$as_echo "$ILBMEncodeDelegate" >&6; }
30658else
cristy8b350f62009-11-15 23:12:43 +000030659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660$as_echo "no" >&6; }
30661fi
30662
30663
30664# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30665set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030668if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030669 $as_echo_n "(cached) " >&6
30670else
30671 case $LPDelegate in
30672 [\\/]* | ?:[\\/]*)
30673 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30674 ;;
30675 *)
30676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30677for as_dir in $PATH
30678do
30679 IFS=$as_save_IFS
30680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30683 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030685 break 2
30686 fi
30687done
cristy8b350f62009-11-15 23:12:43 +000030688 done
cristy3ed852e2009-09-05 21:47:34 +000030689IFS=$as_save_IFS
30690
30691 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30692 ;;
30693esac
30694fi
30695LPDelegate=$ac_cv_path_LPDelegate
30696if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030698$as_echo "$LPDelegate" >&6; }
30699else
cristy8b350f62009-11-15 23:12:43 +000030700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701$as_echo "no" >&6; }
30702fi
30703
30704
30705# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30706set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030708$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030709if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030710 $as_echo_n "(cached) " >&6
30711else
30712 case $LPRDelegate in
30713 [\\/]* | ?:[\\/]*)
30714 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30715 ;;
30716 *)
30717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30718for as_dir in $PATH
30719do
30720 IFS=$as_save_IFS
30721 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30724 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030726 break 2
30727 fi
30728done
cristy8b350f62009-11-15 23:12:43 +000030729 done
cristy3ed852e2009-09-05 21:47:34 +000030730IFS=$as_save_IFS
30731
30732 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30733 ;;
30734esac
30735fi
30736LPRDelegate=$ac_cv_path_LPRDelegate
30737if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030739$as_echo "$LPRDelegate" >&6; }
30740else
cristy8b350f62009-11-15 23:12:43 +000030741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030742$as_echo "no" >&6; }
30743fi
30744
30745
30746# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30747set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030749$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030750if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030751 $as_echo_n "(cached) " >&6
30752else
30753 case $LZWDecodeDelegate in
30754 [\\/]* | ?:[\\/]*)
30755 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30756 ;;
30757 *)
30758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30759for as_dir in $PATH
30760do
30761 IFS=$as_save_IFS
30762 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30765 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030767 break 2
30768 fi
30769done
cristy8b350f62009-11-15 23:12:43 +000030770 done
cristy3ed852e2009-09-05 21:47:34 +000030771IFS=$as_save_IFS
30772
30773 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30774 ;;
30775esac
30776fi
30777LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30778if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030780$as_echo "$LZWDecodeDelegate" >&6; }
30781else
cristy8b350f62009-11-15 23:12:43 +000030782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783$as_echo "no" >&6; }
30784fi
30785
30786
30787# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30788set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030790$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030791if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030792 $as_echo_n "(cached) " >&6
30793else
30794 case $LZWEncodeDelegate in
30795 [\\/]* | ?:[\\/]*)
30796 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30797 ;;
30798 *)
30799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30800for as_dir in $PATH
30801do
30802 IFS=$as_save_IFS
30803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30806 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030808 break 2
30809 fi
30810done
cristy8b350f62009-11-15 23:12:43 +000030811 done
cristy3ed852e2009-09-05 21:47:34 +000030812IFS=$as_save_IFS
30813
30814 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30815 ;;
30816esac
30817fi
30818LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30819if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030821$as_echo "$LZWEncodeDelegate" >&6; }
30822else
cristy8b350f62009-11-15 23:12:43 +000030823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030824$as_echo "no" >&6; }
30825fi
30826
30827
30828# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30829set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030831$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030832if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030833 $as_echo_n "(cached) " >&6
30834else
30835 case $LaunchDelegate in
30836 [\\/]* | ?:[\\/]*)
30837 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30838 ;;
30839 *)
30840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30841for as_dir in $PATH
30842do
30843 IFS=$as_save_IFS
30844 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30847 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030849 break 2
30850 fi
30851done
cristy8b350f62009-11-15 23:12:43 +000030852 done
cristy3ed852e2009-09-05 21:47:34 +000030853IFS=$as_save_IFS
30854
30855 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30856 ;;
30857esac
30858fi
30859LaunchDelegate=$ac_cv_path_LaunchDelegate
30860if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030862$as_echo "$LaunchDelegate" >&6; }
30863else
cristy8b350f62009-11-15 23:12:43 +000030864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865$as_echo "no" >&6; }
30866fi
30867
30868
30869# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30870set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030872$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030873if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030874 $as_echo_n "(cached) " >&6
30875else
30876 case $MANDelegate in
30877 [\\/]* | ?:[\\/]*)
30878 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30879 ;;
30880 *)
30881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30882for as_dir in $PATH
30883do
30884 IFS=$as_save_IFS
30885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30888 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030890 break 2
30891 fi
30892done
cristy8b350f62009-11-15 23:12:43 +000030893 done
cristy3ed852e2009-09-05 21:47:34 +000030894IFS=$as_save_IFS
30895
30896 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30897 ;;
30898esac
30899fi
30900MANDelegate=$ac_cv_path_MANDelegate
30901if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030903$as_echo "$MANDelegate" >&6; }
30904else
cristy8b350f62009-11-15 23:12:43 +000030905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906$as_echo "no" >&6; }
30907fi
30908
30909
30910# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30911set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030913$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030914if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030915 $as_echo_n "(cached) " >&6
30916else
30917 case $MPEGDecodeDelegate in
30918 [\\/]* | ?:[\\/]*)
30919 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30920 ;;
30921 *)
30922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30923for as_dir in $PATH
30924do
30925 IFS=$as_save_IFS
30926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30929 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030931 break 2
30932 fi
30933done
cristy8b350f62009-11-15 23:12:43 +000030934 done
cristy3ed852e2009-09-05 21:47:34 +000030935IFS=$as_save_IFS
30936
30937 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30938 ;;
30939esac
30940fi
30941MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30942if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030944$as_echo "$MPEGDecodeDelegate" >&6; }
30945else
cristy8b350f62009-11-15 23:12:43 +000030946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030947$as_echo "no" >&6; }
30948fi
30949
30950
30951# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30952set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030954$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030955if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030956 $as_echo_n "(cached) " >&6
30957else
30958 case $MPEGEncodeDelegate in
30959 [\\/]* | ?:[\\/]*)
30960 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30961 ;;
30962 *)
30963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30964for as_dir in $PATH
30965do
30966 IFS=$as_save_IFS
30967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30970 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030972 break 2
30973 fi
30974done
cristy8b350f62009-11-15 23:12:43 +000030975 done
cristy3ed852e2009-09-05 21:47:34 +000030976IFS=$as_save_IFS
30977
30978 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30979 ;;
30980esac
30981fi
30982MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30983if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030985$as_echo "$MPEGEncodeDelegate" >&6; }
30986else
cristy8b350f62009-11-15 23:12:43 +000030987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030988$as_echo "no" >&6; }
30989fi
30990
30991
cristy935c86e2010-06-05 23:50:07 +000030992# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30993set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30995$as_echo_n "checking for $ac_word... " >&6; }
30996if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30997 $as_echo_n "(cached) " >&6
30998else
30999 case $MrSIDDecodeDelegate in
31000 [\\/]* | ?:[\\/]*)
31001 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31002 ;;
31003 *)
31004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31005for as_dir in $PATH
31006do
31007 IFS=$as_save_IFS
31008 test -z "$as_dir" && as_dir=.
31009 for ac_exec_ext in '' $ac_executable_extensions; do
31010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31011 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31013 break 2
31014 fi
31015done
31016 done
31017IFS=$as_save_IFS
31018
31019 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31020 ;;
31021esac
31022fi
31023MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31024if test -n "$MrSIDDecodeDelegate"; then
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31026$as_echo "$MrSIDDecodeDelegate" >&6; }
31027else
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31029$as_echo "no" >&6; }
31030fi
31031
31032
cristy3ed852e2009-09-05 21:47:34 +000031033# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31034set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031036$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031037if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031038 $as_echo_n "(cached) " >&6
31039else
31040 case $MVDelegate in
31041 [\\/]* | ?:[\\/]*)
31042 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31043 ;;
31044 *)
31045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31046for as_dir in $PATH
31047do
31048 IFS=$as_save_IFS
31049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31052 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031054 break 2
31055 fi
31056done
cristy8b350f62009-11-15 23:12:43 +000031057 done
cristy3ed852e2009-09-05 21:47:34 +000031058IFS=$as_save_IFS
31059
31060 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31061 ;;
31062esac
31063fi
31064MVDelegate=$ac_cv_path_MVDelegate
31065if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo "$MVDelegate" >&6; }
31068else
cristy8b350f62009-11-15 23:12:43 +000031069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031070$as_echo "no" >&6; }
31071fi
31072
31073
31074# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31075set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031077$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031078if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031079 $as_echo_n "(cached) " >&6
31080else
31081 case $PCLDelegate in
31082 [\\/]* | ?:[\\/]*)
31083 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31084 ;;
31085 *)
31086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31087for as_dir in $PATH
31088do
31089 IFS=$as_save_IFS
31090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31093 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031095 break 2
31096 fi
31097done
cristy8b350f62009-11-15 23:12:43 +000031098 done
cristy3ed852e2009-09-05 21:47:34 +000031099IFS=$as_save_IFS
31100
31101 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31102 ;;
31103esac
31104fi
31105PCLDelegate=$ac_cv_path_PCLDelegate
31106if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108$as_echo "$PCLDelegate" >&6; }
31109else
cristy8b350f62009-11-15 23:12:43 +000031110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111$as_echo "no" >&6; }
31112fi
31113
31114
31115# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31116set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031118$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031119if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031120 $as_echo_n "(cached) " >&6
31121else
31122 case $PGPDecodeDelegate in
31123 [\\/]* | ?:[\\/]*)
31124 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31125 ;;
31126 *)
31127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31128for as_dir in $PATH
31129do
31130 IFS=$as_save_IFS
31131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31134 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031136 break 2
31137 fi
31138done
cristy8b350f62009-11-15 23:12:43 +000031139 done
cristy3ed852e2009-09-05 21:47:34 +000031140IFS=$as_save_IFS
31141
31142 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31143 ;;
31144esac
31145fi
31146PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31147if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031149$as_echo "$PGPDecodeDelegate" >&6; }
31150else
cristy8b350f62009-11-15 23:12:43 +000031151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031152$as_echo "no" >&6; }
31153fi
31154
31155
31156# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31157set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031159$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031160if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031161 $as_echo_n "(cached) " >&6
31162else
31163 case $POVDelegate in
31164 [\\/]* | ?:[\\/]*)
31165 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31166 ;;
31167 *)
31168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31169for as_dir in $PATH
31170do
31171 IFS=$as_save_IFS
31172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31175 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031177 break 2
31178 fi
31179done
cristy8b350f62009-11-15 23:12:43 +000031180 done
cristy3ed852e2009-09-05 21:47:34 +000031181IFS=$as_save_IFS
31182
31183 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31184 ;;
31185esac
31186fi
31187POVDelegate=$ac_cv_path_POVDelegate
31188if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo "$POVDelegate" >&6; }
31191else
cristy8b350f62009-11-15 23:12:43 +000031192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031193$as_echo "no" >&6; }
31194fi
31195
31196
31197for ac_prog in gsx gsc "$PSDelegateDefault"
31198do
31199 # Extract the first word of "$ac_prog", so it can be a program name with args.
31200set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031203if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031204 $as_echo_n "(cached) " >&6
31205else
31206 case $PSDelegate in
31207 [\\/]* | ?:[\\/]*)
31208 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31209 ;;
31210 *)
31211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31212for as_dir in $PATH
31213do
31214 IFS=$as_save_IFS
31215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31218 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031220 break 2
31221 fi
31222done
cristy8b350f62009-11-15 23:12:43 +000031223 done
cristy3ed852e2009-09-05 21:47:34 +000031224IFS=$as_save_IFS
31225
31226 ;;
31227esac
31228fi
31229PSDelegate=$ac_cv_path_PSDelegate
31230if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031232$as_echo "$PSDelegate" >&6; }
31233else
cristy8b350f62009-11-15 23:12:43 +000031234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031235$as_echo "no" >&6; }
31236fi
31237
31238
31239 test -n "$PSDelegate" && break
31240done
31241test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31242
31243# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31244set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031246$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031247if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031248 $as_echo_n "(cached) " >&6
31249else
31250 case $RLEEncodeDelegate in
31251 [\\/]* | ?:[\\/]*)
31252 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31253 ;;
31254 *)
31255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31256for as_dir in $PATH
31257do
31258 IFS=$as_save_IFS
31259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31262 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031264 break 2
31265 fi
31266done
cristy8b350f62009-11-15 23:12:43 +000031267 done
cristy3ed852e2009-09-05 21:47:34 +000031268IFS=$as_save_IFS
31269
31270 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31271 ;;
31272esac
31273fi
31274RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31275if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031277$as_echo "$RLEEncodeDelegate" >&6; }
31278else
cristy8b350f62009-11-15 23:12:43 +000031279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031280$as_echo "no" >&6; }
31281fi
31282
31283
31284# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31285set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031287$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031288if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031289 $as_echo_n "(cached) " >&6
31290else
31291 case $RMDelegate in
31292 [\\/]* | ?:[\\/]*)
31293 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31294 ;;
31295 *)
31296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31297for as_dir in $PATH
31298do
31299 IFS=$as_save_IFS
31300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31303 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305 break 2
31306 fi
31307done
cristy8b350f62009-11-15 23:12:43 +000031308 done
cristy3ed852e2009-09-05 21:47:34 +000031309IFS=$as_save_IFS
31310
31311 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31312 ;;
31313esac
31314fi
31315RMDelegate=$ac_cv_path_RMDelegate
31316if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031318$as_echo "$RMDelegate" >&6; }
31319else
cristy8b350f62009-11-15 23:12:43 +000031320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031321$as_echo "no" >&6; }
31322fi
31323
31324
cristy4689cf02010-02-17 21:15:45 +000031325# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31326set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31328$as_echo_n "checking for $ac_word... " >&6; }
31329if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31330 $as_echo_n "(cached) " >&6
31331else
31332 case $RSVGDecodeDelegate in
31333 [\\/]* | ?:[\\/]*)
31334 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31335 ;;
31336 *)
31337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31338for as_dir in $PATH
31339do
31340 IFS=$as_save_IFS
31341 test -z "$as_dir" && as_dir=.
31342 for ac_exec_ext in '' $ac_executable_extensions; do
31343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31344 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31346 break 2
31347 fi
31348done
31349 done
31350IFS=$as_save_IFS
31351
31352 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31353 ;;
31354esac
31355fi
31356RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31357if test -n "$RSVGDecodeDelegate"; then
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31359$as_echo "$RSVGDecodeDelegate" >&6; }
31360else
31361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31362$as_echo "no" >&6; }
31363fi
31364
31365
cristy3ed852e2009-09-05 21:47:34 +000031366# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31367set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031369$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031370if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031371 $as_echo_n "(cached) " >&6
31372else
31373 case $SCANDecodeDelegate in
31374 [\\/]* | ?:[\\/]*)
31375 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31376 ;;
31377 *)
31378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31379for as_dir in $PATH
31380do
31381 IFS=$as_save_IFS
31382 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031383 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31385 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031387 break 2
31388 fi
31389done
cristy8b350f62009-11-15 23:12:43 +000031390 done
cristy3ed852e2009-09-05 21:47:34 +000031391IFS=$as_save_IFS
31392
31393 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31394 ;;
31395esac
31396fi
31397SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31398if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031400$as_echo "$SCANDecodeDelegate" >&6; }
31401else
cristy8b350f62009-11-15 23:12:43 +000031402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403$as_echo "no" >&6; }
31404fi
31405
31406
31407# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31408set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031410$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031411if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031412 $as_echo_n "(cached) " >&6
31413else
31414 case $TXTDelegate in
31415 [\\/]* | ?:[\\/]*)
31416 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31417 ;;
31418 *)
31419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31420for as_dir in $PATH
31421do
31422 IFS=$as_save_IFS
31423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31426 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031428 break 2
31429 fi
31430done
cristy8b350f62009-11-15 23:12:43 +000031431 done
cristy3ed852e2009-09-05 21:47:34 +000031432IFS=$as_save_IFS
31433
31434 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31435 ;;
31436esac
31437fi
31438TXTDelegate=$ac_cv_path_TXTDelegate
31439if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031441$as_echo "$TXTDelegate" >&6; }
31442else
cristy8b350f62009-11-15 23:12:43 +000031443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031444$as_echo "no" >&6; }
31445fi
31446
31447
cristy5ac9ac82010-07-29 13:24:24 +000031448# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31449set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31451$as_echo_n "checking for $ac_word... " >&6; }
31452if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31453 $as_echo_n "(cached) " >&6
31454else
31455 case $UniconvertorDelegate in
31456 [\\/]* | ?:[\\/]*)
31457 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31458 ;;
31459 *)
31460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31461for as_dir in $PATH
31462do
31463 IFS=$as_save_IFS
31464 test -z "$as_dir" && as_dir=.
31465 for ac_exec_ext in '' $ac_executable_extensions; do
31466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31467 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31469 break 2
31470 fi
31471done
31472 done
31473IFS=$as_save_IFS
31474
31475 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31476 ;;
31477esac
31478fi
31479UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31480if test -n "$UniconvertorDelegate"; then
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31482$as_echo "$UniconvertorDelegate" >&6; }
31483else
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485$as_echo "no" >&6; }
31486fi
31487
31488
cristy23f7a922010-10-11 00:27:48 +000031489# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31490set dummy "$WEBPDelegateDefault"; ac_word=$2
31491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31492$as_echo_n "checking for $ac_word... " >&6; }
31493if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31494 $as_echo_n "(cached) " >&6
31495else
31496 case $WEBPDelegate in
31497 [\\/]* | ?:[\\/]*)
31498 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31499 ;;
31500 *)
31501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31502for as_dir in $PATH
31503do
31504 IFS=$as_save_IFS
31505 test -z "$as_dir" && as_dir=.
31506 for ac_exec_ext in '' $ac_executable_extensions; do
31507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31508 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31510 break 2
31511 fi
31512done
31513 done
31514IFS=$as_save_IFS
31515
31516 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31517 ;;
31518esac
31519fi
31520WEBPDelegate=$ac_cv_path_WEBPDelegate
31521if test -n "$WEBPDelegate"; then
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31523$as_echo "$WEBPDelegate" >&6; }
31524else
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31526$as_echo "no" >&6; }
31527fi
31528
31529
cristy3ed852e2009-09-05 21:47:34 +000031530# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31531set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031533$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031534if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031535 $as_echo_n "(cached) " >&6
31536else
31537 case $WMFDecodeDelegate in
31538 [\\/]* | ?:[\\/]*)
31539 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31540 ;;
31541 *)
31542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31543for as_dir in $PATH
31544do
31545 IFS=$as_save_IFS
31546 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31549 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031551 break 2
31552 fi
31553done
cristy8b350f62009-11-15 23:12:43 +000031554 done
cristy3ed852e2009-09-05 21:47:34 +000031555IFS=$as_save_IFS
31556
31557 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31558 ;;
31559esac
31560fi
31561WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31562if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031564$as_echo "$WMFDecodeDelegate" >&6; }
31565else
cristy8b350f62009-11-15 23:12:43 +000031566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031567$as_echo "no" >&6; }
31568fi
31569
31570
31571# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31572set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031574$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031575if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031576 $as_echo_n "(cached) " >&6
31577else
31578 case $WWWDecodeDelegate in
31579 [\\/]* | ?:[\\/]*)
31580 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31581 ;;
31582 *)
31583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31584for as_dir in $PATH
31585do
31586 IFS=$as_save_IFS
31587 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31590 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031592 break 2
31593 fi
31594done
cristy8b350f62009-11-15 23:12:43 +000031595 done
cristy3ed852e2009-09-05 21:47:34 +000031596IFS=$as_save_IFS
31597
31598 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31599 ;;
31600esac
31601fi
31602WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31603if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031605$as_echo "$WWWDecodeDelegate" >&6; }
31606else
cristy8b350f62009-11-15 23:12:43 +000031607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031608$as_echo "no" >&6; }
31609fi
31610
31611
31612# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31613set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031615$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031616if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031617 $as_echo_n "(cached) " >&6
31618else
31619 case $XPSDelegate in
31620 [\\/]* | ?:[\\/]*)
31621 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31622 ;;
31623 *)
31624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31625for as_dir in $PATH
31626do
31627 IFS=$as_save_IFS
31628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31631 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031633 break 2
31634 fi
31635done
cristy8b350f62009-11-15 23:12:43 +000031636 done
cristy3ed852e2009-09-05 21:47:34 +000031637IFS=$as_save_IFS
31638
31639 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31640 ;;
31641esac
31642fi
31643XPSDelegate=$ac_cv_path_XPSDelegate
31644if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031646$as_echo "$XPSDelegate" >&6; }
31647else
cristy8b350f62009-11-15 23:12:43 +000031648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031649$as_echo "no" >&6; }
31650fi
31651
31652
31653# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31654set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031656$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031657if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031658 $as_echo_n "(cached) " >&6
31659else
31660 case $ZipDelegate in
31661 [\\/]* | ?:[\\/]*)
31662 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31663 ;;
31664 *)
31665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31666for as_dir in $PATH
31667do
31668 IFS=$as_save_IFS
31669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31672 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031674 break 2
31675 fi
31676done
cristy8b350f62009-11-15 23:12:43 +000031677 done
cristy3ed852e2009-09-05 21:47:34 +000031678IFS=$as_save_IFS
31679
31680 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31681 ;;
31682esac
31683fi
31684ZipDelegate=$ac_cv_path_ZipDelegate
31685if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031687$as_echo "$ZipDelegate" >&6; }
31688else
cristy8b350f62009-11-15 23:12:43 +000031689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031690$as_echo "no" >&6; }
31691fi
31692
31693
31694
31695# Prefer lpr to lp; lp needs options tacked on.
31696if test "$LPRDelegate" != no; then
31697 PrintDelegate="$LPRDelegate"
31698else
31699 PrintDelegate="$LPDelegate -c -s"
31700fi
31701
31702
31703# Installed ImageMagick utiltity paths
31704ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31705DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31706MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31707
31708# Set delegate booleans
31709have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31710have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31711have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31712have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31713have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31714have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031715have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031716have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31717have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31718have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31719have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31720have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31721
31722#
31723# Test for font directories
31724#
31725type_include_files=''
31726
cristy430a7312010-01-21 20:44:04 +000031727# Dejavu fonts.
31728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31729$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31730dejavu_font_dir=''
31731if test "${with_dejavu_font_dir}" != 'default'; then
31732 dejavu_font_dir="${with_dejavu_font_dir}/"
31733else
31734 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31735 if test -f "${font_dir}DejaVuSerif.ttf"; then
31736 dejavu_font_dir="${font_dir}"
31737 break 1
31738 fi
31739 done
31740fi
31741if test "${dejavu_font_dir}x" != 'x'; then
31742 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31744$as_echo "$dejavu_font_dir" >&6; }
31745else
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31747$as_echo "not found!" >&6; };
31748fi
31749
31750
cristy3ed852e2009-09-05 21:47:34 +000031751# Windows
31752windows_font_dir=''
31753if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31754 windows_font_dir="${with_windows_font_dir}/"
31755fi
cristy430a7312010-01-21 20:44:04 +000031756if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031757 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31758 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31759 fi
31760 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31761 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31762 fi
31763 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31764 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31765 fi
31766fi
cristy430a7312010-01-21 20:44:04 +000031767if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031768 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31769fi
31770
31771
31772# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31775ghostscript_font_dir=''
31776if test "${with_gs_font_dir}" != 'default'; then
31777 ghostscript_font_dir="${with_gs_font_dir}/"
31778else
31779 if test "${native_win32_build}" = 'yes'; then
31780 # Native Windows Build
31781 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31782 if test -f "${font_dir}a010013l.pfb"; then
31783 ghostscript_font_dir="$font_dir"
31784 break 1
31785 fi
31786 done
31787 if test "${PSDelegate}" != 'gswin32c'; then
31788 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31789 fi
31790 else
31791 # Linux / Mac OS X / Unix Build
31792 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
31793 if test -f "${font_dir}a010013l.pfb"; then
31794 ghostscript_font_dir="${font_dir}"
31795 break 1
31796 fi
31797 done
31798 if test "${ghostscript_font_dir}x" = 'x'; then
31799 if test "$PSDelegate" != 'gs'; then
31800 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31801 fi
31802 fi
31803 fi
31804fi
31805if test "${ghostscript_font_dir}x" != 'x'; then
31806 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031808$as_echo "$ghostscript_font_dir" >&6; }
31809else
cristy8b350f62009-11-15 23:12:43 +000031810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031811$as_echo "not found!" >&6; };
31812fi
31813
31814case "${build_os}" in
31815 mingw* )
31816 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31817 ;;
31818esac
31819
31820
31821
31822#
31823# Handle case where user doesn't want frozen paths
31824#
31825if test "$with_frozenpaths" != 'yes'; then
31826 # Re-set delegate definitions to default (no paths)
31827 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31828 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31829 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31830 BZIPDelegate="$BZIPDelegateDefault"
31831 BrowseDelegate="$BrowseDelegateDefault"
31832 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31833 CatDelegate="$CatDelegateDefault"
31834 ConvertDelegate="$ConvertDelegateDefault"
31835 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31836 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31837 EchoDelegate="$EchoDelegateDefault"
31838 EditorDelegate="$EditorDelegateDefault"
31839 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31840 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31841 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31842 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31843 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31844 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31845 LPDelegate="$LPDelegateDefault"
31846 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31847 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31848 LaunchDelegate="$LaunchDelegateDefault"
31849 MANDelegate="$MANDelegateDefault"
31850 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31851 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031852 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031853 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31854 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031855 PCLDelegate="$PCLDelegateDefault"
31856 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31857 POVDelegate="$POVDelegateDefault"
31858 PSDelegate="$PSDelegateDefault"
31859 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31860 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31861 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031862 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031863 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31864 ShowImageDelegate="$ShowImageDelegateDefault"
31865 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031866 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000031867 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031868 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31869 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31870 XPSDelegate="$XPSDelegateDefault"
31871 ZipDelegate="$ZipDelegateDefault"
31872fi
31873
31874# Delegate substitutions
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
cristy935c86e2010-06-05 23:50:07 +000031917
cristy5ac9ac82010-07-29 13:24:24 +000031918
cristy23f7a922010-10-11 00:27:48 +000031919
cristy3ed852e2009-09-05 21:47:34 +000031920#
31921# RPM support.
31922#
31923RPM=''
31924for ac_prog in gnutar gtar tar
31925do
31926 # Extract the first word of "$ac_prog", so it can be a program name with args.
31927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031930if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031931 $as_echo_n "(cached) " >&6
31932else
31933 if test -n "$TAR"; then
31934 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31935else
31936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31937for as_dir in $PATH
31938do
31939 IFS=$as_save_IFS
31940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31943 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031945 break 2
31946 fi
31947done
cristy8b350f62009-11-15 23:12:43 +000031948 done
cristy3ed852e2009-09-05 21:47:34 +000031949IFS=$as_save_IFS
31950
31951fi
31952fi
31953TAR=$ac_cv_prog_TAR
31954if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo "$TAR" >&6; }
31957else
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "no" >&6; }
31960fi
31961
31962
31963 test -n "$TAR" && break
31964done
31965
31966for ac_prog in perl
31967do
31968 # Extract the first word of "$ac_prog", so it can be a program name with args.
31969set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031971$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031972if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031973 $as_echo_n "(cached) " >&6
31974else
31975 if test -n "$PERL"; then
31976 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31977else
31978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31979for as_dir in $PATH
31980do
31981 IFS=$as_save_IFS
31982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31985 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987 break 2
31988 fi
31989done
cristy8b350f62009-11-15 23:12:43 +000031990 done
cristy3ed852e2009-09-05 21:47:34 +000031991IFS=$as_save_IFS
31992
31993fi
31994fi
31995PERL=$ac_cv_prog_PERL
31996if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "$PERL" >&6; }
31999else
cristy8b350f62009-11-15 23:12:43 +000032000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032001$as_echo "no" >&6; }
32002fi
32003
32004
32005 test -n "$PERL" && break
32006done
32007
32008for ac_prog in rpmbuild rpm
32009do
32010 # Extract the first word of "$ac_prog", so it can be a program name with args.
32011set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032014if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032015 $as_echo_n "(cached) " >&6
32016else
32017 if test -n "$RPM"; then
32018 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32019else
32020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32021for as_dir in $PATH
32022do
32023 IFS=$as_save_IFS
32024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32027 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032029 break 2
32030 fi
32031done
cristy8b350f62009-11-15 23:12:43 +000032032 done
cristy3ed852e2009-09-05 21:47:34 +000032033IFS=$as_save_IFS
32034
32035fi
32036fi
32037RPM=$ac_cv_prog_RPM
32038if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo "$RPM" >&6; }
32041else
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "no" >&6; }
32044fi
32045
32046
32047 test -n "$RPM" && break
32048done
32049
32050
cristy73bd4a52010-10-05 11:24:23 +000032051ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32052
32053
32054AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32055
32056
32057AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32058
32059
32060AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32061
32062
32063 if test "x$RPM" != "x" ; then
32064 RPM_DELEGATE_TRUE=
32065 RPM_DELEGATE_FALSE='#'
32066else
32067 RPM_DELEGATE_TRUE='#'
32068 RPM_DELEGATE_FALSE=
32069fi
32070
cristy3ed852e2009-09-05 21:47:34 +000032071
32072#
32073# 7ZIP support (http://p7zip.sourceforge.net/)
32074#
32075P7ZIP=''
32076for ac_prog in 7za
32077do
32078 # Extract the first word of "$ac_prog", so it can be a program name with args.
32079set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032081$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032082if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032083 $as_echo_n "(cached) " >&6
32084else
32085 if test -n "$P7ZIP"; then
32086 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32087else
32088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32089for as_dir in $PATH
32090do
32091 IFS=$as_save_IFS
32092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32095 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097 break 2
32098 fi
32099done
cristy8b350f62009-11-15 23:12:43 +000032100 done
cristy3ed852e2009-09-05 21:47:34 +000032101IFS=$as_save_IFS
32102
32103fi
32104fi
32105P7ZIP=$ac_cv_prog_P7ZIP
32106if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo "$P7ZIP" >&6; }
32109else
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo "no" >&6; }
32112fi
32113
32114
32115 test -n "$P7ZIP" && break
32116done
32117
32118
cristy73bd4a52010-10-05 11:24:23 +000032119 if test "x$P7ZIP" != "x" ; then
32120 P7ZIP_DELEGATE_TRUE=
32121 P7ZIP_DELEGATE_FALSE='#'
32122else
32123 P7ZIP_DELEGATE_TRUE='#'
32124 P7ZIP_DELEGATE_FALSE=
32125fi
32126
cristy3ed852e2009-09-05 21:47:34 +000032127
32128#
32129# ZIP support (http://www.info-zip.org/Zip.html)
32130#
32131ZIP=''
32132for ac_prog in zip
32133do
32134 # Extract the first word of "$ac_prog", so it can be a program name with args.
32135set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032138if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032139 $as_echo_n "(cached) " >&6
32140else
32141 if test -n "$ZIP"; then
32142 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32143else
32144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32145for as_dir in $PATH
32146do
32147 IFS=$as_save_IFS
32148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32151 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153 break 2
32154 fi
32155done
cristy8b350f62009-11-15 23:12:43 +000032156 done
cristy3ed852e2009-09-05 21:47:34 +000032157IFS=$as_save_IFS
32158
32159fi
32160fi
32161ZIP=$ac_cv_prog_ZIP
32162if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "$ZIP" >&6; }
32165else
cristy8b350f62009-11-15 23:12:43 +000032166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032167$as_echo "no" >&6; }
32168fi
32169
32170
32171 test -n "$ZIP" && break
32172done
32173
32174
cristy73bd4a52010-10-05 11:24:23 +000032175 if test "x$ZIP" != "x" ; then
32176 ZIP_DELEGATE_TRUE=
32177 ZIP_DELEGATE_FALSE='#'
32178else
32179 ZIP_DELEGATE_TRUE='#'
32180 ZIP_DELEGATE_FALSE=
32181fi
32182
cristy3ed852e2009-09-05 21:47:34 +000032183
32184#
32185# GhostPCL related configuration.
32186#
32187PCLColorDevice=ppmraw
32188PCLCMYKDevice=bmpsep8
32189PCLMonoDevice=pbmraw
32190if test -z "$PCLVersion"; then
32191 PCLVersion='unknown'
32192fi
32193if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032197$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032199$as_echo "" >&6; }
32200 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo_n "checking for pcl color device... " >&6; }
32203 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32204 :
32205 else
32206 PCLColorDevice=ppmraw
32207 fi
cristy8b350f62009-11-15 23:12:43 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo "$PCLColorDevice" >&6; }
32210
32211 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032213$as_echo_n "checking for pcl CMYK device... " >&6; }
32214 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32215 :
32216 else
32217 PCLCMYKDevice=$PCLColorDevice
32218 fi
cristy8b350f62009-11-15 23:12:43 +000032219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220$as_echo "$PCLCMYKDevice" >&6; }
32221
32222 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032224$as_echo_n "checking for pcl mono device... " >&6; }
32225 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32226 :
32227 else
32228 PCLMonoDevice=$PCLColorDevice
32229 fi
cristy8b350f62009-11-15 23:12:43 +000032230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032231$as_echo "$PCLMonoDevice" >&6; }
32232fi
32233
32234
32235
32236
32237
32238
32239#
32240# GhostXPS related configuration.
32241#
32242XPSColorDevice=ppmraw
32243XPSCMYKDevice=bmpsep8
32244XPSMonoDevice=pbmraw
32245if test -z "$XPSVersion"; then
32246 XPSVersion='unknown'
32247fi
32248if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032250$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032252$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032254$as_echo "" >&6; }
32255 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032257$as_echo_n "checking for xps color device... " >&6; }
32258 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32259 :
32260 else
32261 XPSColorDevice=ppmraw
32262 fi
cristy8b350f62009-11-15 23:12:43 +000032263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032264$as_echo "$XPSColorDevice" >&6; }
32265
32266 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032268$as_echo_n "checking for xps CMYK device... " >&6; }
32269 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32270 :
32271 else
32272 XPSCMYKDevice=$XPSColorDevice
32273 fi
cristy8b350f62009-11-15 23:12:43 +000032274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032275$as_echo "$XPSCMYKDevice" >&6; }
32276
32277 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032279$as_echo_n "checking for xps mono device... " >&6; }
32280 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32281 :
32282 else
32283 XPSMonoDevice=$XPSColorDevice
32284 fi
cristy8b350f62009-11-15 23:12:43 +000032285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032286$as_echo "$XPSMonoDevice" >&6; }
32287fi
32288
32289
32290
32291
32292
32293
32294#
32295# Ghostscript related configuration.
32296#
32297if test "$have_png" = 'yes'; then
32298 GSAlphaDevice=pngalpha
32299else
32300 GSAlphaDevice=pnmraw
32301fi
32302GSColorDevice=pnmraw
32303GSCMYKDevice=pam
32304GSMonoDevice=pbmraw
32305GSPDFDevice=pdfwrite
32306GSPSDevice=pswrite
32307GSEPSDevice=epswrite
32308GSVersion='unknown'
32309if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032311$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032313$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032317$as_echo_n "checking for Ghostscript version... " >&6; }
32318 if GSVersion=`$PSDelegate --version`; then
32319 :
32320 else
32321 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32322 fi
cristy8b350f62009-11-15 23:12:43 +000032323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032324$as_echo "$GSVersion" >&6; }
32325
32326 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032328$as_echo_n "checking for gs alpha device... " >&6; }
32329 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32330 :
32331 else
32332 GSAlphaDevice=pnmraw
32333 fi
cristy8b350f62009-11-15 23:12:43 +000032334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo "$GSAlphaDevice" >&6; }
32336
32337 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032339$as_echo_n "checking for gs color device... " >&6; }
32340 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32341 :
32342 else
32343 GSColorDevice=pnmraw
32344 fi
cristy8b350f62009-11-15 23:12:43 +000032345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032346$as_echo "$GSColorDevice" >&6; }
32347
32348 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032350$as_echo_n "checking for gs CMYK device... " >&6; }
32351 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32352 :
32353 else
32354 GSCMYKDevice=bmpsep8
32355 fi
cristy8b350f62009-11-15 23:12:43 +000032356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032357$as_echo "$GSCMYKDevice" >&6; }
32358
32359 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032361$as_echo_n "checking for gs mono device... " >&6; }
32362 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32363 :
32364 else
32365 GSMonoDevice=$GSColorDevice
32366 fi
cristy8b350f62009-11-15 23:12:43 +000032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032368$as_echo "$GSMonoDevice" >&6; }
32369
32370 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032372$as_echo_n "checking for gs PDF writing device... " >&6; }
32373 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32374 :
32375 else
32376 GSPDFDevice=nodevice
32377 fi
cristy8b350f62009-11-15 23:12:43 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032379$as_echo "$GSPDFDevice" >&6; }
32380
32381 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032383$as_echo_n "checking for gs PS writing device... " >&6; }
32384 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32385 :
32386 else
32387 GSPSDevice=nodevice
32388 fi
cristy8b350f62009-11-15 23:12:43 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032390$as_echo "$GSPSDevice" >&6; }
32391
32392 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032394$as_echo_n "checking for gs EPS writing device... " >&6; }
32395 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32396 :
32397 else
32398 GSEPSDevice=nodevice
32399 fi
cristy8b350f62009-11-15 23:12:43 +000032400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032401$as_echo "$GSEPSDevice" >&6; }
32402fi
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413#
32414# PerlMagick-related configuration
32415#
32416
32417# Look for PERL if PerlMagick requested
32418# If name/path of desired PERL interpreter is specified, look for that one first
32419have_perl='no'
32420if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032422$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032424$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032426$as_echo "" >&6; }
32427 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032429$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032430if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032431 $as_echo_n "(cached) " >&6
32432else
32433 ac_cv_path_PERL="$with_perl"
32434fi
cristy8b350f62009-11-15 23:12:43 +000032435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032436$as_echo "$ac_cv_path_PERL" >&6; };
32437 PERL=$ac_cv_path_PERL
32438 have_perl="$ac_cv_path_PERL"
32439 else
32440 for ac_prog in perl perl5
32441do
32442 # Extract the first word of "$ac_prog", so it can be a program name with args.
32443set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032445$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032446if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032447 $as_echo_n "(cached) " >&6
32448else
32449 case $PERL in
32450 [\\/]* | ?:[\\/]*)
32451 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32452 ;;
32453 *)
32454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32455for as_dir in $PATH
32456do
32457 IFS=$as_save_IFS
32458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32461 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032463 break 2
32464 fi
32465done
cristy8b350f62009-11-15 23:12:43 +000032466 done
cristy3ed852e2009-09-05 21:47:34 +000032467IFS=$as_save_IFS
32468
32469 ;;
32470esac
32471fi
32472PERL=$ac_cv_path_PERL
32473if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032475$as_echo "$PERL" >&6; }
32476else
cristy8b350f62009-11-15 23:12:43 +000032477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478$as_echo "no" >&6; }
32479fi
32480
32481
32482 test -n "$PERL" && break
32483done
32484 if test "$ac_cv_path_PERL"; then
32485 have_perl="$ac_cv_path_PERL"
32486 fi
32487 fi
32488fi
32489
cristy949301e2010-01-06 01:38:40 +000032490if test "$with_perl" != 'yes' ; then
32491 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32492fi
32493
32494PERL_SUPPORTS_DESTDIR='no'
32495
cristy3ed852e2009-09-05 21:47:34 +000032496with_perl_static='no'
32497with_perl_dynamic='no'
32498if test "$have_perl" != 'no'; then
32499 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32500 with_perl_static='yes'
32501 fi
32502 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32503 with_perl_dynamic='yes'
32504 fi
32505 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000032506
32507
32508
32509
32510 if test -n "$PERL"; then :
32511
32512 ax_perl_version="5.8.1"
32513
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32515$as_echo_n "checking for perl version... " >&6; }
32516
32517 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32518
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32520$as_echo "$perl_version" >&6; }
32521
32522 PERL_VERSION=$perl_version
32523
32524
32525
32526
32527
32528 # Used to indicate true or false condition
32529 ax_compare_version=false
32530
32531 # Convert the two version strings to be compared into a format that
32532 # allows a simple string comparison. The end result is that a version
32533 # string of the form 1.12.5-r617 will be converted to the form
32534 # 0001001200050617. In other words, each number is zero padded to four
32535 # digits, and non digits are removed.
32536
32537 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32538 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32539 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32540 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32541 -e 's/[^0-9]//g'`
32542
32543
32544 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32545 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32546 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32547 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32548 -e 's/[^0-9]//g'`
32549
32550
32551 ax_compare_version=`echo "x$ax_compare_version_A
32552x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32553
32554
32555
32556 if test "$ax_compare_version" = "true" ; then
32557
32558 :
32559 PERL_SUPPORTS_DESTDIR='yes'
32560
32561 else
32562 :
32563 PERL_SUPPORTS_DESTDIR='no'
32564
32565 fi
32566
32567
32568else
32569
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32571$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32572 PERL_SUPPORTS_DESTDIR='no'
32573
cristy3ed852e2009-09-05 21:47:34 +000032574fi
cristy73bd4a52010-10-05 11:24:23 +000032575
32576fi
32577 if test "$have_perl" != 'no'; then
32578 WITH_PERL_TRUE=
32579 WITH_PERL_FALSE='#'
32580else
32581 WITH_PERL_TRUE='#'
32582 WITH_PERL_FALSE=
32583fi
32584
32585 if test $with_perl_static = 'yes'; then
32586 WITH_PERL_STATIC_TRUE=
32587 WITH_PERL_STATIC_FALSE='#'
32588else
32589 WITH_PERL_STATIC_TRUE='#'
32590 WITH_PERL_STATIC_FALSE=
32591fi
32592
32593 if test $with_perl_dynamic = 'yes'; then
32594 WITH_PERL_DYNAMIC_TRUE=
32595 WITH_PERL_DYNAMIC_FALSE='#'
32596else
32597 WITH_PERL_DYNAMIC_TRUE='#'
32598 WITH_PERL_DYNAMIC_FALSE=
32599fi
32600
cristy3ed852e2009-09-05 21:47:34 +000032601
32602
32603# Determine path to pick up MagickCore library from for use with building PerlMagick
32604MAGICKCORE_PATH="${LIB_DIR}"
32605if test $with_perl_static = 'yes'; then
32606 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32607 libtool_objdir=$objdir
32608
32609 # Linker search path to library, followed by -lMagickCore
32610 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32611fi
32612
32613
32614# Create a simple string containing format names for all delegate libraries
32615DELEGATES=''
32616if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32617if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32618if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32619if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32620if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32621if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32622if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32623if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32624if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32625if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32626if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32627if test "$have_jpeg" = 'yes'; then
32628 DELEGATES="$DELEGATES jpeg";
32629 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32630fi
32631if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032632if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032633if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32634if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32635if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32636if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32637if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32638if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32639if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32640if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32641if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32642if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32643if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32644
32645
32646
32647#
32648# Handle special compiler flags
32649#
32650
32651# Add '-p' if prof source profiling support enabled
32652if test "$enable_prof" = 'yes'; then
32653 CFLAGS="-p $CFLAGS"
32654 CXXFLAGS="-p $CXXFLAGS"
32655 LDFLAGS="-p $LDFLAGS"
32656fi
32657
32658# Add '-pg' if gprof source profiling support enabled
32659if test "$enable_gprof" = 'yes'; then
32660 CFLAGS="-pg $CFLAGS"
32661 CXXFLAGS="-pg $CXXFLAGS"
32662 LDFLAGS="-pg $LDFLAGS"
32663fi
32664
32665# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32666# This is a gcc-specific feature
32667if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032669$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032670if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032671 $as_echo_n "(cached) " >&6
32672else
32673 ac_check_lib_save_LIBS=$LIBS
32674LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032676/* end confdefs.h. */
32677
32678/* Override any GCC internal prototype to avoid an error.
32679 Use char because int might match the return type of a GCC
32680 builtin and then its argument prototype would still apply. */
32681#ifdef __cplusplus
32682extern "C"
32683#endif
32684char _gcov_init ();
32685int
32686main ()
32687{
32688return _gcov_init ();
32689 ;
32690 return 0;
32691}
32692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032693if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032694 ac_cv_lib_gcov__gcov_init=yes
32695else
cristy8b350f62009-11-15 23:12:43 +000032696 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032697fi
cristy8b350f62009-11-15 23:12:43 +000032698rm -f core conftest.err conftest.$ac_objext \
32699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032700LIBS=$ac_check_lib_save_LIBS
32701fi
cristy8b350f62009-11-15 23:12:43 +000032702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032703$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032704if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032705 cat >>confdefs.h <<_ACEOF
32706#define HAVE_LIBGCOV 1
32707_ACEOF
32708
32709 LIBS="-lgcov $LIBS"
32710
32711fi
32712
cristy8b350f62009-11-15 23:12:43 +000032713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032714$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032715if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032716 $as_echo_n "(cached) " >&6
32717else
32718 ac_check_lib_save_LIBS=$LIBS
32719LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032721/* end confdefs.h. */
32722
32723/* Override any GCC internal prototype to avoid an error.
32724 Use char because int might match the return type of a GCC
32725 builtin and then its argument prototype would still apply. */
32726#ifdef __cplusplus
32727extern "C"
32728#endif
32729char __gcov_init ();
32730int
32731main ()
32732{
32733return __gcov_init ();
32734 ;
32735 return 0;
32736}
32737_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032738if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032739 ac_cv_lib_gcov___gcov_init=yes
32740else
cristy8b350f62009-11-15 23:12:43 +000032741 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032742fi
cristy8b350f62009-11-15 23:12:43 +000032743rm -f core conftest.err conftest.$ac_objext \
32744 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032745LIBS=$ac_check_lib_save_LIBS
32746fi
cristy8b350f62009-11-15 23:12:43 +000032747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032748$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032749if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032750 cat >>confdefs.h <<_ACEOF
32751#define HAVE_LIBGCOV 1
32752_ACEOF
32753
32754 LIBS="-lgcov $LIBS"
32755
32756fi
32757
32758 case "$target_os" in
32759 darwin*)
32760 OSX_GCOV_LDFLAG="-Wl,-single_module"
32761 ;;
32762 *)
32763 OSX_GCOV_LDFLAG=""
32764 ;;
32765 esac
32766
32767 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32768 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32769 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32770fi
32771
32772#
32773# Build library dependency list for libMagickCore
32774#
32775
32776MAGICK_LIBLTDL='' # Libltdl for build
32777MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32778MAGICK_LTDLDEPS='' # extra libltdl dependencies
32779if test "$with_ltdl" != 'no'
32780then
32781 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32782 MAGICK_API_LIBLTDL='-lltdl'
32783 fi
32784 MAGICK_LIBLTDL=${LIBLTDL}
32785 MAGICK_LTDLDEPS=${LTDLDEPS}
32786fi
32787
32788
32789
32790if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032791 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 +000032792else
cristy2e8b51d2009-10-17 18:26:15 +000032793 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 +000032794fi
32795
32796
32797#
32798# Remove extraneous spaces from output variables (asthetic)
32799#
32800X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32801X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32802X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32803X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32804
32805CC=`echo $CC | sed -e 's/ */ /g'`
32806CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32807CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32808CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32809DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32810DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32811LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32812TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32813MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32814#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32815
32816# Pass only user-provided LIBS as "global" libraries
32817LIBS=$USER_LIBS
32818
32819#AC_SUBST(CPPFLAGS)
32820
32821#AC_SUBST(LDFLAGS)
32822#AC_SUBST(X_PRE_LIBS)
32823#AC_SUBST(X_LIBS)
32824#AC_SUBST(X_EXTRA_LIBS)
32825
32826MAGICK_CFLAGS=$CFLAGS
32827MAGICK_CXXFLAGS="$CXXFLAGS"
32828MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32829MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32830MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32831MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32832
32833
32834
32835
32836
32837
32838
32839
cristyfd9dcd42010-08-08 18:07:02 +000032840
cristy3ed852e2009-09-05 21:47:34 +000032841# Set configured scripts to executable.
32842ac_config_commands="$ac_config_commands default"
32843
32844ac_config_commands="$ac_config_commands MagickCore-config.in"
32845
32846ac_config_commands="$ac_config_commands Magick-config.in"
32847
32848ac_config_commands="$ac_config_commands MagickWand-config.in"
32849
32850ac_config_commands="$ac_config_commands Wand-config.in"
32851
32852ac_config_commands="$ac_config_commands Magick++-config.in"
32853
32854ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32855
32856
cristy8b350f62009-11-15 23:12:43 +000032857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860$as_echo "Update ImageMagick configuration" >&6; }
32861cat >confcache <<\_ACEOF
32862# This file is a shell script that caches the results of configure
32863# tests run on this system so they can be shared between configure
32864# scripts and configure runs, see configure's option --config-cache.
32865# It is not useful on other systems. If it contains results you don't
32866# want to keep, you may remove or edit it.
32867#
32868# config.status only pays attention to the cache file if you give it
32869# the --recheck option to rerun configure.
32870#
32871# `ac_cv_env_foo' variables (set or unset) will be overridden when
32872# loading this file, other *unset* `ac_cv_foo' will be assigned the
32873# following values.
32874
32875_ACEOF
32876
32877# The following way of writing the cache mishandles newlines in values,
32878# but we know of no workaround that is simple, portable, and efficient.
32879# So, we kill variables containing newlines.
32880# Ultrix sh set writes to stderr and can't be redirected directly,
32881# and sets the high bit in the cache file unless we assign to the vars.
32882(
32883 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32884 eval ac_val=\$$ac_var
32885 case $ac_val in #(
32886 *${as_nl}*)
32887 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32890 esac
32891 case $ac_var in #(
32892 _ | IFS | as_nl) ;; #(
32893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032894 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032895 esac ;;
32896 esac
32897 done
32898
32899 (set) 2>&1 |
32900 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32901 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032902 # `set' does not quote correctly, so add quotes: double-quote
32903 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032904 sed -n \
32905 "s/'/'\\\\''/g;
32906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32907 ;; #(
32908 *)
32909 # `set' quotes correctly as required by POSIX, so do not add quotes.
32910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32911 ;;
32912 esac |
32913 sort
32914) |
32915 sed '
32916 /^ac_cv_env_/b end
32917 t clear
32918 :clear
32919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32920 t end
32921 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32922 :end' >>confcache
32923if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32924 if test -w "$cache_file"; then
32925 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "$as_me: updating cache $cache_file" >&6;}
32928 cat confcache >$cache_file
32929 else
cristy8b350f62009-11-15 23:12:43 +000032930 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32932 fi
32933fi
32934rm -f confcache
32935
32936test "x$prefix" = xNONE && prefix=$ac_default_prefix
32937# Let make expand exec_prefix.
32938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32939
32940DEFS=-DHAVE_CONFIG_H
32941
32942ac_libobjs=
32943ac_ltlibobjs=
32944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32945 # 1. Remove the extension, and $U if already installed.
32946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32947 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32949 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032952done
32953LIBOBJS=$ac_libobjs
32954
32955LTLIBOBJS=$ac_ltlibobjs
32956
32957
cristy73bd4a52010-10-05 11:24:23 +000032958 if test -n "$EXEEXT"; then
32959 am__EXEEXT_TRUE=
32960 am__EXEEXT_FALSE='#'
32961else
32962 am__EXEEXT_TRUE='#'
32963 am__EXEEXT_FALSE=
32964fi
cristy3ed852e2009-09-05 21:47:34 +000032965
cristy73bd4a52010-10-05 11:24:23 +000032966if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32967 as_fn_error "conditional \"AMDEP\" was never defined.
32968Usually this means the macro was only invoked conditionally." "$LINENO" 5
32969fi
32970if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32971 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32972Usually this means the macro was only invoked conditionally." "$LINENO" 5
32973fi
32974if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32975 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32976Usually this means the macro was only invoked conditionally." "$LINENO" 5
32977fi
32978if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32979 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32980Usually this means the macro was only invoked conditionally." "$LINENO" 5
32981fi
32982if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32983 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32984Usually this means the macro was only invoked conditionally." "$LINENO" 5
32985fi
32986if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32987 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32988Usually this means the macro was only invoked conditionally." "$LINENO" 5
32989fi
32990if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32991 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32992Usually this means the macro was only invoked conditionally." "$LINENO" 5
32993fi
32994if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32995 as_fn_error "conditional \"USING_CL\" was never defined.
32996Usually this means the macro was only invoked conditionally." "$LINENO" 5
32997fi
32998if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32999 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
33000Usually this means the macro was only invoked conditionally." "$LINENO" 5
33001fi
33002if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33003 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
33004Usually this means the macro was only invoked conditionally." "$LINENO" 5
33005fi
33006if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33007 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
33008Usually this means the macro was only invoked conditionally." "$LINENO" 5
33009fi
33010LT_CONFIG_H=config/config.h
33011
33012 _ltdl_libobjs=
33013 _ltdl_ltlibobjs=
33014 if test -n "$_LT_LIBOBJS"; then
33015 # Remove the extension.
33016 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33017 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33018 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33019 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33020 done
33021 fi
33022 ltdl_LIBOBJS=$_ltdl_libobjs
33023
33024 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33025
33026
33027if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
33028 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
33029Usually this means the macro was only invoked conditionally." "$LINENO" 5
33030fi
33031if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
33032 as_fn_error "conditional \"WITH_MODULES\" was never defined.
33033Usually this means the macro was only invoked conditionally." "$LINENO" 5
33034fi
33035if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
33036 as_fn_error "conditional \"WITH_LTDL\" was never defined.
33037Usually this means the macro was only invoked conditionally." "$LINENO" 5
33038fi
33039if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33040 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
33041Usually this means the macro was only invoked conditionally." "$LINENO" 5
33042fi
33043
33044if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33045 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
33046Usually this means the macro was only invoked conditionally." "$LINENO" 5
33047fi
33048if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
33049 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
33050Usually this means the macro was only invoked conditionally." "$LINENO" 5
33051fi
33052if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
33053 as_fn_error "conditional \"HasUMEM\" was never defined.
33054Usually this means the macro was only invoked conditionally." "$LINENO" 5
33055fi
33056if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
33057 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
33058Usually this means the macro was only invoked conditionally." "$LINENO" 5
33059fi
33060if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
33061 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
33062Usually this means the macro was only invoked conditionally." "$LINENO" 5
33063fi
33064if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
33065 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
33066Usually this means the macro was only invoked conditionally." "$LINENO" 5
33067fi
33068if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
33069 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
33070Usually this means the macro was only invoked conditionally." "$LINENO" 5
33071fi
33072if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
33073 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
33074Usually this means the macro was only invoked conditionally." "$LINENO" 5
33075fi
33076if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
33077 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
33078Usually this means the macro was only invoked conditionally." "$LINENO" 5
33079fi
33080if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
33081 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
33082Usually this means the macro was only invoked conditionally." "$LINENO" 5
33083fi
33084if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
33085 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
33086Usually this means the macro was only invoked conditionally." "$LINENO" 5
33087fi
33088if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
33089 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
33090Usually this means the macro was only invoked conditionally." "$LINENO" 5
33091fi
33092if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
33093 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
33094Usually this means the macro was only invoked conditionally." "$LINENO" 5
33095fi
33096if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
33097 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
33098Usually this means the macro was only invoked conditionally." "$LINENO" 5
33099fi
33100if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
33101 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
33102Usually this means the macro was only invoked conditionally." "$LINENO" 5
33103fi
33104if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
33105 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
33106Usually this means the macro was only invoked conditionally." "$LINENO" 5
33107fi
33108if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
33109 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
33110Usually this means the macro was only invoked conditionally." "$LINENO" 5
33111fi
33112if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
33113 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
33114Usually this means the macro was only invoked conditionally." "$LINENO" 5
33115fi
33116if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
33117 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
33118Usually this means the macro was only invoked conditionally." "$LINENO" 5
33119fi
33120if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
33121 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
33122Usually this means the macro was only invoked conditionally." "$LINENO" 5
33123fi
33124if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
33125 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
33126Usually this means the macro was only invoked conditionally." "$LINENO" 5
33127fi
33128if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
33129 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
33130Usually this means the macro was only invoked conditionally." "$LINENO" 5
33131fi
33132if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
33133 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
33134Usually this means the macro was only invoked conditionally." "$LINENO" 5
33135fi
33136if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
33137 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
33138Usually this means the macro was only invoked conditionally." "$LINENO" 5
33139fi
33140if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
33141 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
33142Usually this means the macro was only invoked conditionally." "$LINENO" 5
33143fi
33144if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
33145 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
33146Usually this means the macro was only invoked conditionally." "$LINENO" 5
33147fi
33148if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33149 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
33150Usually this means the macro was only invoked conditionally." "$LINENO" 5
33151fi
33152if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33153 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
33154Usually this means the macro was only invoked conditionally." "$LINENO" 5
33155fi
33156if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33157 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33158Usually this means the macro was only invoked conditionally." "$LINENO" 5
33159fi
33160if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33161 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33162Usually this means the macro was only invoked conditionally." "$LINENO" 5
33163fi
33164if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33165 as_fn_error "conditional \"WITH_PERL\" was never defined.
33166Usually this means the macro was only invoked conditionally." "$LINENO" 5
33167fi
33168if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33169 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33170Usually this means the macro was only invoked conditionally." "$LINENO" 5
33171fi
33172if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33173 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33174Usually this means the macro was only invoked conditionally." "$LINENO" 5
33175fi
cristy3ed852e2009-09-05 21:47:34 +000033176
33177: ${CONFIG_STATUS=./config.status}
33178ac_write_fail=0
33179ac_clean_files_save=$ac_clean_files
33180ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033181{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033183as_write_fail=0
33184cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033185#! $SHELL
33186# Generated by $as_me.
33187# Run this file to recreate the current configuration.
33188# Compiler output produced by configure, useful for debugging
33189# configure, is in config.log if it exists.
33190
33191debug=false
33192ac_cs_recheck=false
33193ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033194
cristy8b350f62009-11-15 23:12:43 +000033195SHELL=\${CONFIG_SHELL-$SHELL}
33196export SHELL
33197_ASEOF
33198cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33199## -------------------- ##
33200## M4sh Initialization. ##
33201## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033202
33203# Be more Bourne compatible
33204DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033205if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033206 emulate sh
33207 NULLCMD=:
33208 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33209 # is contrary to our usage. Disable this feature.
33210 alias -g '${1+"$@"}'='"$@"'
33211 setopt NO_GLOB_SUBST
33212else
cristy8b350f62009-11-15 23:12:43 +000033213 case `(set -o) 2>/dev/null` in #(
33214 *posix*) :
33215 set -o posix ;; #(
33216 *) :
33217 ;;
cristy3ed852e2009-09-05 21:47:34 +000033218esac
cristy3ed852e2009-09-05 21:47:34 +000033219fi
33220
33221
cristy3ed852e2009-09-05 21:47:34 +000033222as_nl='
33223'
33224export as_nl
33225# Printing a long string crashes Solaris 7 /usr/bin/printf.
33226as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33227as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033229# Prefer a ksh shell builtin over an external printf program on Solaris,
33230# but without wasting forks for bash or zsh.
33231if test -z "$BASH_VERSION$ZSH_VERSION" \
33232 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33233 as_echo='print -r --'
33234 as_echo_n='print -rn --'
33235elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033236 as_echo='printf %s\n'
33237 as_echo_n='printf %s'
33238else
33239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33241 as_echo_n='/usr/ucb/echo -n'
33242 else
33243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33244 as_echo_n_body='eval
33245 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033246 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033247 *"$as_nl"*)
33248 expr "X$arg" : "X\\(.*\\)$as_nl";
33249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33250 esac;
33251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33252 '
33253 export as_echo_n_body
33254 as_echo_n='sh -c $as_echo_n_body as_echo'
33255 fi
33256 export as_echo_body
33257 as_echo='sh -c $as_echo_body as_echo'
33258fi
33259
33260# The user is always right.
33261if test "${PATH_SEPARATOR+set}" != set; then
33262 PATH_SEPARATOR=:
33263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33265 PATH_SEPARATOR=';'
33266 }
33267fi
33268
cristy3ed852e2009-09-05 21:47:34 +000033269
33270# IFS
33271# We need space, tab and new line, in precisely that order. Quoting is
33272# there to prevent editors from complaining about space-tab.
33273# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33274# splitting by setting IFS to empty value.)
33275IFS=" "" $as_nl"
33276
33277# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033278case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033279 *[\\/]* ) as_myself=$0 ;;
33280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33281for as_dir in $PATH
33282do
33283 IFS=$as_save_IFS
33284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33286 done
cristy3ed852e2009-09-05 21:47:34 +000033287IFS=$as_save_IFS
33288
33289 ;;
33290esac
33291# We did not find ourselves, most probably we were run as `sh COMMAND'
33292# in which case we are not to be found in the path.
33293if test "x$as_myself" = x; then
33294 as_myself=$0
33295fi
33296if test ! -f "$as_myself"; then
33297 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033298 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033299fi
33300
cristy8b350f62009-11-15 23:12:43 +000033301# Unset variables that we do not need and which cause bugs (e.g. in
33302# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33303# suppresses any "Segmentation fault" message there. '((' could
33304# trigger a bug in pdksh 5.2.14.
33305for as_var in BASH_ENV ENV MAIL MAILPATH
33306do eval test x\${$as_var+set} = xset \
33307 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033308done
33309PS1='$ '
33310PS2='> '
33311PS4='+ '
33312
33313# NLS nuisances.
33314LC_ALL=C
33315export LC_ALL
33316LANGUAGE=C
33317export LANGUAGE
33318
cristy8b350f62009-11-15 23:12:43 +000033319# CDPATH.
33320(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33321
33322
cristyf6fcb5d2010-09-24 01:19:13 +000033323# as_fn_error ERROR [LINENO LOG_FD]
33324# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +000033325# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33326# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +000033327# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033328as_fn_error ()
33329{
cristyf6fcb5d2010-09-24 01:19:13 +000033330 as_status=$?; test $as_status -eq 0 && as_status=1
33331 if test "$3"; then
33332 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33333 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +000033334 fi
cristyf6fcb5d2010-09-24 01:19:13 +000033335 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +000033336 as_fn_exit $as_status
33337} # as_fn_error
33338
33339
33340# as_fn_set_status STATUS
33341# -----------------------
33342# Set $? to STATUS, without forking.
33343as_fn_set_status ()
33344{
33345 return $1
33346} # as_fn_set_status
33347
33348# as_fn_exit STATUS
33349# -----------------
33350# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33351as_fn_exit ()
33352{
33353 set +e
33354 as_fn_set_status $1
33355 exit $1
33356} # as_fn_exit
33357
33358# as_fn_unset VAR
33359# ---------------
33360# Portably unset VAR.
33361as_fn_unset ()
33362{
33363 { eval $1=; unset $1;}
33364}
33365as_unset=as_fn_unset
33366# as_fn_append VAR VALUE
33367# ----------------------
33368# Append the text in VALUE to the end of the definition contained in VAR. Take
33369# advantage of any shell optimizations that allow amortized linear growth over
33370# repeated appends, instead of the typical quadratic growth present in naive
33371# implementations.
33372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33373 eval 'as_fn_append ()
33374 {
33375 eval $1+=\$2
33376 }'
33377else
33378 as_fn_append ()
33379 {
33380 eval $1=\$$1\$2
33381 }
33382fi # as_fn_append
33383
33384# as_fn_arith ARG...
33385# ------------------
33386# Perform arithmetic evaluation on the ARGs, and store the result in the
33387# global $as_val. Take advantage of shells that can avoid forks. The arguments
33388# must be portable across $(()) and expr.
33389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33390 eval 'as_fn_arith ()
33391 {
33392 as_val=$(( $* ))
33393 }'
33394else
33395 as_fn_arith ()
33396 {
33397 as_val=`expr "$@" || test $? -eq 1`
33398 }
33399fi # as_fn_arith
33400
33401
cristy3ed852e2009-09-05 21:47:34 +000033402if expr a : '\(a\)' >/dev/null 2>&1 &&
33403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33404 as_expr=expr
33405else
33406 as_expr=false
33407fi
33408
33409if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33410 as_basename=basename
33411else
33412 as_basename=false
33413fi
33414
cristy8b350f62009-11-15 23:12:43 +000033415if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33416 as_dirname=dirname
33417else
33418 as_dirname=false
33419fi
cristy3ed852e2009-09-05 21:47:34 +000033420
cristy3ed852e2009-09-05 21:47:34 +000033421as_me=`$as_basename -- "$0" ||
33422$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33423 X"$0" : 'X\(//\)$' \| \
33424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33425$as_echo X/"$0" |
33426 sed '/^.*\/\([^/][^/]*\)\/*$/{
33427 s//\1/
33428 q
33429 }
33430 /^X\/\(\/\/\)$/{
33431 s//\1/
33432 q
33433 }
33434 /^X\/\(\/\).*/{
33435 s//\1/
33436 q
33437 }
33438 s/.*/./; q'`
33439
cristy8b350f62009-11-15 23:12:43 +000033440# Avoid depending upon Character Ranges.
33441as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33442as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33443as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33444as_cr_digits='0123456789'
33445as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033446
33447ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033448case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033449-n*)
cristy8b350f62009-11-15 23:12:43 +000033450 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033451 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033452 xy) ECHO_C='\c';;
33453 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33454 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033455 esac;;
33456*)
33457 ECHO_N='-n';;
33458esac
cristy3ed852e2009-09-05 21:47:34 +000033459
33460rm -f conf$$ conf$$.exe conf$$.file
33461if test -d conf$$.dir; then
33462 rm -f conf$$.dir/conf$$.file
33463else
33464 rm -f conf$$.dir
33465 mkdir conf$$.dir 2>/dev/null
33466fi
33467if (echo >conf$$.file) 2>/dev/null; then
33468 if ln -s conf$$.file conf$$ 2>/dev/null; then
33469 as_ln_s='ln -s'
33470 # ... but there are two gotchas:
33471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33473 # In both cases, we have to default to `cp -p'.
33474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33475 as_ln_s='cp -p'
33476 elif ln conf$$.file conf$$ 2>/dev/null; then
33477 as_ln_s=ln
33478 else
33479 as_ln_s='cp -p'
33480 fi
33481else
33482 as_ln_s='cp -p'
33483fi
33484rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33485rmdir conf$$.dir 2>/dev/null
33486
cristy8b350f62009-11-15 23:12:43 +000033487
33488# as_fn_mkdir_p
33489# -------------
33490# Create "$as_dir" as a directory, including parents if necessary.
33491as_fn_mkdir_p ()
33492{
33493
33494 case $as_dir in #(
33495 -*) as_dir=./$as_dir;;
33496 esac
33497 test -d "$as_dir" || eval $as_mkdir_p || {
33498 as_dirs=
33499 while :; do
33500 case $as_dir in #(
33501 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33502 *) as_qdir=$as_dir;;
33503 esac
33504 as_dirs="'$as_qdir' $as_dirs"
33505 as_dir=`$as_dirname -- "$as_dir" ||
33506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33507 X"$as_dir" : 'X\(//\)[^/]' \| \
33508 X"$as_dir" : 'X\(//\)$' \| \
33509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33510$as_echo X"$as_dir" |
33511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33512 s//\1/
33513 q
33514 }
33515 /^X\(\/\/\)[^/].*/{
33516 s//\1/
33517 q
33518 }
33519 /^X\(\/\/\)$/{
33520 s//\1/
33521 q
33522 }
33523 /^X\(\/\).*/{
33524 s//\1/
33525 q
33526 }
33527 s/.*/./; q'`
33528 test -d "$as_dir" && break
33529 done
33530 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +000033531 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033532
33533
33534} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033535if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033536 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033537else
33538 test -d ./-p && rmdir ./-p
33539 as_mkdir_p=false
33540fi
33541
33542if test -x / >/dev/null 2>&1; then
33543 as_test_x='test -x'
33544else
33545 if ls -dL / >/dev/null 2>&1; then
33546 as_ls_L_option=L
33547 else
33548 as_ls_L_option=
33549 fi
33550 as_test_x='
33551 eval sh -c '\''
33552 if test -d "$1"; then
33553 test -d "$1/.";
33554 else
cristy8b350f62009-11-15 23:12:43 +000033555 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033556 -*)set "./$1";;
33557 esac;
cristy8b350f62009-11-15 23:12:43 +000033558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033559 ???[sx]*):;;*)false;;esac;fi
33560 '\'' sh
33561 '
33562fi
33563as_executable_p=$as_test_x
33564
33565# Sed expression to map a string onto a valid CPP name.
33566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33567
33568# Sed expression to map a string onto a valid variable name.
33569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33570
33571
33572exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033573## ----------------------------------- ##
33574## Main body of $CONFIG_STATUS script. ##
33575## ----------------------------------- ##
33576_ASEOF
33577test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033578
cristy8b350f62009-11-15 23:12:43 +000033579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33580# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033581# report actual input values of CONFIG_FILES etc. instead of their
33582# values after options handling.
33583ac_log="
cristy56225732010-09-04 23:44:25 +000033584This file was extended by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +000033585generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033586
33587 CONFIG_FILES = $CONFIG_FILES
33588 CONFIG_HEADERS = $CONFIG_HEADERS
33589 CONFIG_LINKS = $CONFIG_LINKS
33590 CONFIG_COMMANDS = $CONFIG_COMMANDS
33591 $ $0 $@
33592
33593on `(hostname || uname -n) 2>/dev/null | sed 1q`
33594"
33595
33596_ACEOF
33597
33598case $ac_config_files in *"
33599"*) set x $ac_config_files; shift; ac_config_files=$*;;
33600esac
33601
33602case $ac_config_headers in *"
33603"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33604esac
33605
33606
33607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33608# Files that config.status was made for.
33609config_files="$ac_config_files"
33610config_headers="$ac_config_headers"
33611config_commands="$ac_config_commands"
33612
33613_ACEOF
33614
33615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33616ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033617\`$as_me' instantiates files and other configuration actions
33618from templates according to the current configuration. Unless the files
33619and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033620
cristy8b350f62009-11-15 23:12:43 +000033621Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033622
33623 -h, --help print this help, then exit
33624 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033625 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033626 -q, --quiet, --silent
33627 do not print progress messages
33628 -d, --debug don't remove temporary files
33629 --recheck update $as_me by reconfiguring in the same conditions
33630 --file=FILE[:TEMPLATE]
33631 instantiate the configuration file FILE
33632 --header=FILE[:TEMPLATE]
33633 instantiate the configuration header FILE
33634
33635Configuration files:
33636$config_files
33637
33638Configuration headers:
33639$config_headers
33640
33641Configuration commands:
33642$config_commands
33643
cristy8b350f62009-11-15 23:12:43 +000033644Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033645
33646_ACEOF
33647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033648ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033649ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033650ImageMagick config.status 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +000033651configured by $0, generated by GNU Autoconf 2.65,
cristycd4c5312009-11-22 01:19:08 +000033652 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033653
cristyf6fcb5d2010-09-24 01:19:13 +000033654Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033655This config.status script is free software; the Free Software Foundation
33656gives unlimited permission to copy, distribute and modify it."
33657
33658ac_pwd='$ac_pwd'
33659srcdir='$srcdir'
33660INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000033661MKDIR_P='$MKDIR_P'
33662AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000033663test -n "\$AWK" || AWK=awk
33664_ACEOF
33665
33666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33667# The default lists apply if the user does not specify any file.
33668ac_need_defaults=:
33669while test $# != 0
33670do
33671 case $1 in
33672 --*=*)
33673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33675 ac_shift=:
33676 ;;
33677 *)
33678 ac_option=$1
33679 ac_optarg=$2
33680 ac_shift=shift
33681 ;;
33682 esac
33683
33684 case $ac_option in
33685 # Handling of the options.
33686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33687 ac_cs_recheck=: ;;
33688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33689 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033690 --config | --confi | --conf | --con | --co | --c )
33691 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033692 --debug | --debu | --deb | --de | --d | -d )
33693 debug=: ;;
33694 --file | --fil | --fi | --f )
33695 $ac_shift
33696 case $ac_optarg in
33697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33698 esac
cristy8b350f62009-11-15 23:12:43 +000033699 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033700 ac_need_defaults=false;;
33701 --header | --heade | --head | --hea )
33702 $ac_shift
33703 case $ac_optarg in
33704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33705 esac
cristy8b350f62009-11-15 23:12:43 +000033706 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033707 ac_need_defaults=false;;
33708 --he | --h)
33709 # Conflict between --help and --header
cristyf6fcb5d2010-09-24 01:19:13 +000033710 as_fn_error "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033711Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033712 --help | --hel | -h )
33713 $as_echo "$ac_cs_usage"; exit ;;
33714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33716 ac_cs_silent=: ;;
33717
33718 # This is an error.
cristyf6fcb5d2010-09-24 01:19:13 +000033719 -*) as_fn_error "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033720Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033721
cristy8b350f62009-11-15 23:12:43 +000033722 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033723 ac_need_defaults=false ;;
33724
33725 esac
33726 shift
33727done
33728
33729ac_configure_extra_args=
33730
33731if $ac_cs_silent; then
33732 exec 6>/dev/null
33733 ac_configure_extra_args="$ac_configure_extra_args --silent"
33734fi
33735
33736_ACEOF
33737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33738if \$ac_cs_recheck; then
33739 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33740 shift
33741 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33742 CONFIG_SHELL='$SHELL'
33743 export CONFIG_SHELL
33744 exec "\$@"
33745fi
33746
33747_ACEOF
33748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33749exec 5>>config.log
33750{
33751 echo
33752 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33753## Running $as_me. ##
33754_ASBOX
33755 $as_echo "$ac_log"
33756} >&5
33757
33758_ACEOF
33759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000033760#
33761# INIT-COMMANDS
33762#
33763PACKAGE="$PACKAGE"
33764AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33765
33766
33767# The HP-UX ksh and POSIX shell print the target directory to stdout
33768# if CDPATH is set.
33769(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33770
33771sed_quote_subst='$sed_quote_subst'
33772double_quote_subst='$double_quote_subst'
33773delay_variable_subst='$delay_variable_subst'
33774SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33775Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33776GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33777EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33778FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33779LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33780macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33781macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33782AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33783DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33784OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33785enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33786enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33787pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33788enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33789host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33790host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33791host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33792build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33793build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33794build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33795NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33796LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33797max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33798ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33799exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33800lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33801lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33802lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33803reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33804reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33805deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33806file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33807AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33808AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33809STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33810RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33811old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33812old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33813old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33814CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33815CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33816compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33817GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33818lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33819lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33820lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33822objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33823SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33824ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33825MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33826lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33827lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33828lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33829lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33830lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33831need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33832DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33833NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33834LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33835OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33836OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33837libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33838shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33839extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33840archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33841enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33842export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33843whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33844compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33845old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33846old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33847archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33848archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33849module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33850module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33851with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33852allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33853no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33854hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33855hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33856hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33857hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33858hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33859hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33860hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33861hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33862inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33863link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33864fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33865always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33866export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33867exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33868include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33869prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33870file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33871variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33872need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33873need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33874version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33875runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33876shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33877shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33878libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33879library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33880soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33881postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33882postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33883finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33884finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33885hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33886sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33887sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33888hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33889enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33890enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33891enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33892old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33893striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33894compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33895predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33896postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33897predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33898postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33899compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33900LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33901old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33902compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33903GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33904lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33905lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33906lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33907lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33908lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33909archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33910enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33911export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33912whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33913compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33914old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33915old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33916archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33917archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33918module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33919module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33920with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33921allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33922no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33923hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33924hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33925hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33926hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33927hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33928hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33929hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33930hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33931inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33932link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33933fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33934always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33935export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33936exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33937include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33938prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33939file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33940hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33941compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33942predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33943postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33944predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33945postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33946compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33947
33948LTCC='$LTCC'
33949LTCFLAGS='$LTCFLAGS'
33950compiler='$compiler_DEFAULT'
33951
33952# Quote evaled strings.
33953for var in SED \
33954GREP \
33955EGREP \
33956FGREP \
33957LD \
33958NM \
33959LN_S \
33960lt_SP2NL \
33961lt_NL2SP \
33962reload_flag \
33963deplibs_check_method \
33964file_magic_cmd \
33965AR \
33966AR_FLAGS \
33967STRIP \
33968RANLIB \
33969CC \
33970CFLAGS \
33971compiler \
33972lt_cv_sys_global_symbol_pipe \
33973lt_cv_sys_global_symbol_to_cdecl \
33974lt_cv_sys_global_symbol_to_c_name_address \
33975lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33976SHELL \
33977ECHO \
33978lt_prog_compiler_no_builtin_flag \
33979lt_prog_compiler_wl \
33980lt_prog_compiler_pic \
33981lt_prog_compiler_static \
33982lt_cv_prog_compiler_c_o \
33983need_locks \
33984DSYMUTIL \
33985NMEDIT \
33986LIPO \
33987OTOOL \
33988OTOOL64 \
33989shrext_cmds \
33990export_dynamic_flag_spec \
33991whole_archive_flag_spec \
33992compiler_needs_object \
33993with_gnu_ld \
33994allow_undefined_flag \
33995no_undefined_flag \
33996hardcode_libdir_flag_spec \
33997hardcode_libdir_flag_spec_ld \
33998hardcode_libdir_separator \
33999fix_srcfile_path \
34000exclude_expsyms \
34001include_expsyms \
34002file_list_spec \
34003variables_saved_for_relink \
34004libname_spec \
34005library_names_spec \
34006soname_spec \
34007finish_eval \
34008old_striplib \
34009striplib \
34010compiler_lib_search_dirs \
34011predep_objects \
34012postdep_objects \
34013predeps \
34014postdeps \
34015compiler_lib_search_path \
34016LD_CXX \
34017compiler_CXX \
34018lt_prog_compiler_no_builtin_flag_CXX \
34019lt_prog_compiler_wl_CXX \
34020lt_prog_compiler_pic_CXX \
34021lt_prog_compiler_static_CXX \
34022lt_cv_prog_compiler_c_o_CXX \
34023export_dynamic_flag_spec_CXX \
34024whole_archive_flag_spec_CXX \
34025compiler_needs_object_CXX \
34026with_gnu_ld_CXX \
34027allow_undefined_flag_CXX \
34028no_undefined_flag_CXX \
34029hardcode_libdir_flag_spec_CXX \
34030hardcode_libdir_flag_spec_ld_CXX \
34031hardcode_libdir_separator_CXX \
34032fix_srcfile_path_CXX \
34033exclude_expsyms_CXX \
34034include_expsyms_CXX \
34035file_list_spec_CXX \
34036compiler_lib_search_dirs_CXX \
34037predep_objects_CXX \
34038postdep_objects_CXX \
34039predeps_CXX \
34040postdeps_CXX \
34041compiler_lib_search_path_CXX; do
34042 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34043 *[\\\\\\\`\\"\\\$]*)
34044 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34045 ;;
34046 *)
34047 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34048 ;;
34049 esac
34050done
34051
34052# Double-quote double-evaled strings.
34053for var in reload_cmds \
34054old_postinstall_cmds \
34055old_postuninstall_cmds \
34056old_archive_cmds \
34057extract_expsyms_cmds \
34058old_archive_from_new_cmds \
34059old_archive_from_expsyms_cmds \
34060archive_cmds \
34061archive_expsym_cmds \
34062module_cmds \
34063module_expsym_cmds \
34064export_symbols_cmds \
34065prelink_cmds \
34066postinstall_cmds \
34067postuninstall_cmds \
34068finish_cmds \
34069sys_lib_search_path_spec \
34070sys_lib_dlsearch_path_spec \
34071old_archive_cmds_CXX \
34072old_archive_from_new_cmds_CXX \
34073old_archive_from_expsyms_cmds_CXX \
34074archive_cmds_CXX \
34075archive_expsym_cmds_CXX \
34076module_cmds_CXX \
34077module_expsym_cmds_CXX \
34078export_symbols_cmds_CXX \
34079prelink_cmds_CXX; do
34080 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34081 *[\\\\\\\`\\"\\\$]*)
34082 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34083 ;;
34084 *)
34085 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34086 ;;
34087 esac
34088done
34089
34090# Fix-up fallback echo if it was mangled by the above quoting rules.
34091case \$lt_ECHO in
34092*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34093 ;;
34094esac
34095
34096ac_aux_dir='$ac_aux_dir'
34097xsi_shell='$xsi_shell'
34098lt_shell_append='$lt_shell_append'
34099
34100# See if we are running on zsh, and set the options which allow our
34101# commands through without removal of \ escapes INIT.
34102if test -n "\${ZSH_VERSION+set}" ; then
34103 setopt NO_GLOB_SUBST
34104fi
34105
34106
34107 PACKAGE='$PACKAGE'
34108 VERSION='$VERSION'
34109 TIMESTAMP='$TIMESTAMP'
34110 RM='$RM'
34111 ofile='$ofile'
34112
34113
34114
34115
34116
34117
cristy3ed852e2009-09-05 21:47:34 +000034118_ACEOF
34119
34120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34121
34122# Handling of arguments.
34123for ac_config_target in $ac_config_targets
34124do
34125 case $ac_config_target in
34126 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034127 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034128 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34129 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34130 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34131 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34132 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034133 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034134 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34135 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34136 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34137 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34138 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34139 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34140 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34141 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34142 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34143 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34144 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34145 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34147 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34148 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34149 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34150 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34151 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34152 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34153 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34154 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34155 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34156 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34157 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34158 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34159 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34160 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34161 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34162 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34163 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34164 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34165 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34166 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034167 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34168 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034169 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34170 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34171 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34172 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34173 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34174 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34175 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34176
cristyf6fcb5d2010-09-24 01:19:13 +000034177 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034178 esac
34179done
34180
34181
34182# If the user did not use the arguments to specify the items to instantiate,
34183# then the envvar interface is used. Set only those that are not.
34184# We use the long form for the default assignment because of an extremely
34185# bizarre bug on SunOS 4.1.3.
34186if $ac_need_defaults; then
34187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34190fi
34191
34192# Have a temporary directory for convenience. Make it in the build tree
34193# simply because there is no reason against having it here, and in addition,
34194# creating and moving files from /tmp can sometimes cause problems.
34195# Hook for its removal unless debugging.
34196# Note that there is a small window in which the directory will not be cleaned:
34197# after its creation but before its name has been assigned to `$tmp'.
34198$debug ||
34199{
34200 tmp=
34201 trap 'exit_status=$?
34202 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34203' 0
cristy8b350f62009-11-15 23:12:43 +000034204 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034205}
34206# Create a (secure) tmp directory for tmp files.
34207
34208{
34209 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34210 test -n "$tmp" && test -d "$tmp"
34211} ||
34212{
34213 tmp=./conf$$-$RANDOM
34214 (umask 077 && mkdir "$tmp")
cristyf6fcb5d2010-09-24 01:19:13 +000034215} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034216
34217# Set up the scripts for CONFIG_FILES section.
34218# No need to generate them if there are no CONFIG_FILES.
34219# This happens for instance with `./config.status config.h'.
34220if test -n "$CONFIG_FILES"; then
34221
34222
cristy8b350f62009-11-15 23:12:43 +000034223ac_cr=`echo X | tr X '\015'`
34224# On cygwin, bash can eat \r inside `` if the user requested igncr.
34225# But we know of no other shell where ac_cr would be empty at this
34226# point, so we can use a bashism as a fallback.
34227if test "x$ac_cr" = x; then
34228 eval ac_cr=\$\'\\r\'
34229fi
cristy3ed852e2009-09-05 21:47:34 +000034230ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34231if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyf6fcb5d2010-09-24 01:19:13 +000034232 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034233else
34234 ac_cs_awk_cr=$ac_cr
34235fi
34236
34237echo 'BEGIN {' >"$tmp/subs1.awk" &&
34238_ACEOF
34239
34240
34241{
34242 echo "cat >conf$$subs.awk <<_ACEOF" &&
34243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34244 echo "_ACEOF"
34245} >conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034246 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34247ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
cristy3ed852e2009-09-05 21:47:34 +000034248ac_delim='%!_!# '
34249for ac_last_try in false false false false false :; do
34250 . ./conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034251 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034252
34253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34254 if test $ac_delim_n = $ac_delim_num; then
34255 break
34256 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034257 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034258 else
34259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34260 fi
34261done
34262rm -f conf$$subs.sh
34263
34264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34265cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34266_ACEOF
34267sed -n '
34268h
34269s/^/S["/; s/!.*/"]=/
34270p
34271g
34272s/^[^!]*!//
34273:repl
34274t repl
34275s/'"$ac_delim"'$//
34276t delim
34277:nl
34278h
cristycd4c5312009-11-22 01:19:08 +000034279s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034280t more1
34281s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34282p
34283n
34284b repl
34285:more1
34286s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34287p
34288g
34289s/.\{148\}//
34290t nl
34291:delim
34292h
cristycd4c5312009-11-22 01:19:08 +000034293s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034294t more2
34295s/["\\]/\\&/g; s/^/"/; s/$/"/
34296p
34297b
34298:more2
34299s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34300p
34301g
34302s/.\{148\}//
34303t delim
34304' <conf$$subs.awk | sed '
34305/^[^""]/{
34306 N
34307 s/\n//
34308}
34309' >>$CONFIG_STATUS || ac_write_fail=1
34310rm -f conf$$subs.awk
34311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34312_ACAWK
34313cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34314 for (key in S) S_is_set[key] = 1
34315 FS = ""
34316
34317}
34318{
34319 line = $ 0
34320 nfields = split(line, field, "@")
34321 substed = 0
34322 len = length(field[1])
34323 for (i = 2; i < nfields; i++) {
34324 key = field[i]
34325 keylen = length(key)
34326 if (S_is_set[key]) {
34327 value = S[key]
34328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34329 len += length(value) + length(field[++i])
34330 substed = 1
34331 } else
34332 len += 1 + keylen
34333 }
34334
34335 print line
34336}
34337
34338_ACAWK
34339_ACEOF
34340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34341if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34343else
34344 cat
34345fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyf6fcb5d2010-09-24 01:19:13 +000034346 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034347_ACEOF
34348
cristyf6fcb5d2010-09-24 01:19:13 +000034349# VPATH may cause trouble with some makes, so we remove $(srcdir),
34350# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034351# trailing colons and then remove the whole line if VPATH becomes empty
34352# (actually we leave an empty line to preserve line numbers).
34353if test "x$srcdir" = x.; then
cristyf6fcb5d2010-09-24 01:19:13 +000034354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34355s/:*\$(srcdir):*/:/
34356s/:*\${srcdir}:*/:/
34357s/:*@srcdir@:*/:/
34358s/^\([^=]*=[ ]*\):*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034359s/:*$//
34360s/^[^=]*=[ ]*$//
34361}'
34362fi
34363
34364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34365fi # test -n "$CONFIG_FILES"
34366
34367# Set up the scripts for CONFIG_HEADERS section.
34368# No need to generate them if there are no CONFIG_HEADERS.
34369# This happens for instance with `./config.status Makefile'.
34370if test -n "$CONFIG_HEADERS"; then
34371cat >"$tmp/defines.awk" <<\_ACAWK ||
34372BEGIN {
34373_ACEOF
34374
34375# Transform confdefs.h into an awk script `defines.awk', embedded as
34376# here-document in config.status, that substitutes the proper values into
34377# config.h.in to produce config.h.
34378
34379# Create a delimiter string that does not exist in confdefs.h, to ease
34380# handling of long lines.
34381ac_delim='%!_!# '
34382for ac_last_try in false false :; do
34383 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34384 if test -z "$ac_t"; then
34385 break
34386 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034387 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034388 else
34389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34390 fi
34391done
34392
34393# For the awk script, D is an array of macro values keyed by name,
34394# likewise P contains macro parameters if any. Preserve backslash
34395# newline sequences.
34396
34397ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34398sed -n '
34399s/.\{148\}/&'"$ac_delim"'/g
34400t rset
34401:rset
34402s/^[ ]*#[ ]*define[ ][ ]*/ /
34403t def
34404d
34405:def
34406s/\\$//
34407t bsnl
34408s/["\\]/\\&/g
34409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34410D["\1"]=" \3"/p
34411s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34412d
34413:bsnl
34414s/["\\]/\\&/g
34415s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34416D["\1"]=" \3\\\\\\n"\\/p
34417t cont
34418s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34419t cont
34420d
34421:cont
34422n
34423s/.\{148\}/&'"$ac_delim"'/g
34424t clear
34425:clear
34426s/\\$//
34427t bsnlc
34428s/["\\]/\\&/g; s/^/"/; s/$/"/p
34429d
34430:bsnlc
34431s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34432b cont
34433' <confdefs.h | sed '
34434s/'"$ac_delim"'/"\\\
34435"/g' >>$CONFIG_STATUS || ac_write_fail=1
34436
34437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34438 for (key in D) D_is_set[key] = 1
34439 FS = ""
34440}
34441/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34442 line = \$ 0
34443 split(line, arg, " ")
34444 if (arg[1] == "#") {
34445 defundef = arg[2]
34446 mac1 = arg[3]
34447 } else {
34448 defundef = substr(arg[1], 2)
34449 mac1 = arg[2]
34450 }
34451 split(mac1, mac2, "(") #)
34452 macro = mac2[1]
34453 prefix = substr(line, 1, index(line, defundef) - 1)
34454 if (D_is_set[macro]) {
34455 # Preserve the white space surrounding the "#".
34456 print prefix "define", macro P[macro] D[macro]
34457 next
34458 } else {
34459 # Replace #undef with comments. This is necessary, for example,
34460 # in the case of _POSIX_SOURCE, which is predefined and required
34461 # on some systems where configure will not decide to define it.
34462 if (defundef == "undef") {
34463 print "/*", prefix defundef, macro, "*/"
34464 next
34465 }
34466 }
34467}
34468{ print }
34469_ACAWK
34470_ACEOF
34471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyf6fcb5d2010-09-24 01:19:13 +000034472 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034473fi # test -n "$CONFIG_HEADERS"
34474
34475
34476eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34477shift
34478for ac_tag
34479do
34480 case $ac_tag in
34481 :[FHLC]) ac_mode=$ac_tag; continue;;
34482 esac
34483 case $ac_mode$ac_tag in
34484 :[FHL]*:*);;
cristyf6fcb5d2010-09-24 01:19:13 +000034485 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034486 :[FH]-) ac_tag=-:-;;
34487 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34488 esac
34489 ac_save_IFS=$IFS
34490 IFS=:
34491 set x $ac_tag
34492 IFS=$ac_save_IFS
34493 shift
34494 ac_file=$1
34495 shift
34496
34497 case $ac_mode in
34498 :L) ac_source=$1;;
34499 :[FH])
34500 ac_file_inputs=
34501 for ac_f
34502 do
34503 case $ac_f in
34504 -) ac_f="$tmp/stdin";;
34505 *) # Look for the file first in the build tree, then in the source tree
34506 # (if the path is not absolute). The absolute path cannot be DOS-style,
34507 # because $ac_f cannot contain `:'.
34508 test -f "$ac_f" ||
34509 case $ac_f in
34510 [\\/$]*) false;;
34511 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34512 esac ||
cristyf6fcb5d2010-09-24 01:19:13 +000034513 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034514 esac
34515 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034516 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034517 done
34518
34519 # Let's still pretend it is `configure' which instantiates (i.e., don't
34520 # use $as_me), people would be surprised to read:
34521 # /* config.h. Generated by config.status. */
34522 configure_input='Generated from '`
34523 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34524 `' by configure.'
34525 if test x"$ac_file" != x-; then
34526 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034528$as_echo "$as_me: creating $ac_file" >&6;}
34529 fi
34530 # Neutralize special characters interpreted by sed in replacement strings.
34531 case $configure_input in #(
34532 *\&* | *\|* | *\\* )
34533 ac_sed_conf_input=`$as_echo "$configure_input" |
34534 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34535 *) ac_sed_conf_input=$configure_input;;
34536 esac
34537
34538 case $ac_tag in
34539 *:-:* | *:-) cat >"$tmp/stdin" \
cristyf6fcb5d2010-09-24 01:19:13 +000034540 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034541 esac
34542 ;;
34543 esac
34544
34545 ac_dir=`$as_dirname -- "$ac_file" ||
34546$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34547 X"$ac_file" : 'X\(//\)[^/]' \| \
34548 X"$ac_file" : 'X\(//\)$' \| \
34549 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34550$as_echo X"$ac_file" |
34551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34552 s//\1/
34553 q
34554 }
34555 /^X\(\/\/\)[^/].*/{
34556 s//\1/
34557 q
34558 }
34559 /^X\(\/\/\)$/{
34560 s//\1/
34561 q
34562 }
34563 /^X\(\/\).*/{
34564 s//\1/
34565 q
34566 }
34567 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034568 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034569 ac_builddir=.
34570
34571case "$ac_dir" in
34572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34573*)
34574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34575 # A ".." for each directory in $ac_dir_suffix.
34576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34577 case $ac_top_builddir_sub in
34578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34580 esac ;;
34581esac
34582ac_abs_top_builddir=$ac_pwd
34583ac_abs_builddir=$ac_pwd$ac_dir_suffix
34584# for backward compatibility:
34585ac_top_builddir=$ac_top_build_prefix
34586
34587case $srcdir in
34588 .) # We are building in place.
34589 ac_srcdir=.
34590 ac_top_srcdir=$ac_top_builddir_sub
34591 ac_abs_top_srcdir=$ac_pwd ;;
34592 [\\/]* | ?:[\\/]* ) # Absolute name.
34593 ac_srcdir=$srcdir$ac_dir_suffix;
34594 ac_top_srcdir=$srcdir
34595 ac_abs_top_srcdir=$srcdir ;;
34596 *) # Relative name.
34597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34598 ac_top_srcdir=$ac_top_build_prefix$srcdir
34599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34600esac
34601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34602
34603
34604 case $ac_mode in
34605 :F)
34606 #
34607 # CONFIG_FILE
34608 #
34609
34610 case $INSTALL in
34611 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34612 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34613 esac
cristy73bd4a52010-10-05 11:24:23 +000034614 ac_MKDIR_P=$MKDIR_P
34615 case $MKDIR_P in
34616 [\\/$]* | ?:[\\/]* ) ;;
34617 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34618 esac
cristy3ed852e2009-09-05 21:47:34 +000034619_ACEOF
34620
34621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34622# If the template does not know about datarootdir, expand it.
34623# FIXME: This hack should be removed a few years after 2.60.
34624ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034625ac_sed_dataroot='
34626/datarootdir/ {
34627 p
34628 q
34629}
34630/@datadir@/p
34631/@docdir@/p
34632/@infodir@/p
34633/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034634/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034635case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34636*datarootdir*) ac_datarootdir_seen=yes;;
34637*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034639$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34640_ACEOF
34641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34642 ac_datarootdir_hack='
34643 s&@datadir@&$datadir&g
34644 s&@docdir@&$docdir&g
34645 s&@infodir@&$infodir&g
34646 s&@localedir@&$localedir&g
34647 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034648 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034649esac
34650_ACEOF
34651
34652# Neutralize VPATH when `$srcdir' = `.'.
34653# Shell code in configure.ac might set extrasub.
34654# FIXME: do we really want to maintain this feature?
34655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34656ac_sed_extra="$ac_vpsub
34657$extrasub
34658_ACEOF
34659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34660:t
34661/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34662s|@configure_input@|$ac_sed_conf_input|;t t
34663s&@top_builddir@&$ac_top_builddir_sub&;t t
34664s&@top_build_prefix@&$ac_top_build_prefix&;t t
34665s&@srcdir@&$ac_srcdir&;t t
34666s&@abs_srcdir@&$ac_abs_srcdir&;t t
34667s&@top_srcdir@&$ac_top_srcdir&;t t
34668s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34669s&@builddir@&$ac_builddir&;t t
34670s&@abs_builddir@&$ac_abs_builddir&;t t
34671s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34672s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000034673s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000034674$ac_datarootdir_hack
34675"
34676eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyf6fcb5d2010-09-24 01:19:13 +000034677 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034678
34679test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34680 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34681 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034683which seems to be undefined. Please make sure it is defined." >&5
cristy3ed852e2009-09-05 21:47:34 +000034684$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034685which seems to be undefined. Please make sure it is defined." >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034686
34687 rm -f "$tmp/stdin"
34688 case $ac_file in
34689 -) cat "$tmp/out" && rm -f "$tmp/out";;
34690 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34691 esac \
cristyf6fcb5d2010-09-24 01:19:13 +000034692 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034693 ;;
34694 :H)
34695 #
34696 # CONFIG_HEADER
34697 #
34698 if test x"$ac_file" != x-; then
34699 {
34700 $as_echo "/* $configure_input */" \
34701 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34702 } >"$tmp/config.h" \
cristyf6fcb5d2010-09-24 01:19:13 +000034703 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034704 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034705 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034706$as_echo "$as_me: $ac_file is unchanged" >&6;}
34707 else
34708 rm -f "$ac_file"
34709 mv "$tmp/config.h" "$ac_file" \
cristyf6fcb5d2010-09-24 01:19:13 +000034710 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034711 fi
34712 else
34713 $as_echo "/* $configure_input */" \
34714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyf6fcb5d2010-09-24 01:19:13 +000034715 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034716 fi
cristy73bd4a52010-10-05 11:24:23 +000034717# Compute "$ac_file"'s index in $config_headers.
34718_am_arg="$ac_file"
34719_am_stamp_count=1
34720for _am_header in $config_headers :; do
34721 case $_am_header in
34722 $_am_arg | $_am_arg:* )
34723 break ;;
34724 * )
34725 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34726 esac
34727done
34728echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34729$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34730 X"$_am_arg" : 'X\(//\)[^/]' \| \
34731 X"$_am_arg" : 'X\(//\)$' \| \
34732 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34733$as_echo X"$_am_arg" |
34734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34735 s//\1/
34736 q
34737 }
34738 /^X\(\/\/\)[^/].*/{
34739 s//\1/
34740 q
34741 }
34742 /^X\(\/\/\)$/{
34743 s//\1/
34744 q
34745 }
34746 /^X\(\/\).*/{
34747 s//\1/
34748 q
34749 }
34750 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000034751 ;;
34752
cristy8b350f62009-11-15 23:12:43 +000034753 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034754$as_echo "$as_me: executing $ac_file commands" >&6;}
34755 ;;
34756 esac
34757
34758
34759 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000034760 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34761ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34762ac_prefix_conf_PKG=`echo MagickCore`
34763ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34764ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34765ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34766if test ".$ac_prefix_conf_INP" = "."; then
34767 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34768 case "$ac_file" in
34769 *.h) ac_prefix_conf_INP=$ac_file ;;
34770 *)
34771 esac
34772 test ".$ac_prefix_conf_INP" != "." && break
34773 done
34774fi
34775if test ".$ac_prefix_conf_INP" = "."; then
34776 case "$ac_prefix_conf_OUT" in
34777 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34778 ;;
34779 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34780 ;;
34781 *) ac_prefix_conf_INP=config.h
34782 ;;
34783 esac
34784fi
34785if test -z "$ac_prefix_conf_PKG" ; then
34786 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34787else
34788 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34789 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34790 fi fi
34791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34792$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34793 if test -f $ac_prefix_conf_INP ; then
34794 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34795 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34796 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34797 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34798 echo "#endif/" >>conftest.prefix
34799 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34800 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34801 echo "#endif/" >> conftest.prefix
34802 # now executing _script on _DEF input to create _OUT output file
34803 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34804 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34805 echo ' ' >>$tmp/pconfig.h
34806 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34807
34808 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34809 echo ' ' >>$tmp/pconfig.h
34810 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34811 echo "#endif" >>$tmp/pconfig.h
34812 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34813 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34814$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34815 else
34816 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34817$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34818 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34819 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34820 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34821$as_echo X"$ac_prefix_conf_OUT" |
34822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34823 s//\1/
34824 q
34825 }
34826 /^X\(\/\/\)[^/].*/{
34827 s//\1/
34828 q
34829 }
34830 /^X\(\/\/\)$/{
34831 s//\1/
34832 q
34833 }
34834 /^X\(\/\).*/{
34835 s//\1/
34836 q
34837 }
34838 s/.*/./; q'`
34839 as_dir="$ac_dir"; as_fn_mkdir_p
34840 rm -f "$ac_prefix_conf_OUT"
34841 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34842 fi
34843 cp conftest.prefix _configs.sed
34844 else
34845 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34846 fi
34847 rm -f conftest.*
34848fi
34849 ;;
34850 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34851 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34852 # are listed without --file. Let's play safe and only enable the eval
34853 # if we detect the quoting.
34854 case $CONFIG_FILES in
34855 *\'*) eval set x "$CONFIG_FILES" ;;
34856 *) set x $CONFIG_FILES ;;
34857 esac
34858 shift
34859 for mf
34860 do
34861 # Strip MF so we end up with the name of the file.
34862 mf=`echo "$mf" | sed -e 's/:.*$//'`
34863 # Check whether this is an Automake generated Makefile or not.
34864 # We used to match only the files named `Makefile.in', but
34865 # some people rename them; so instead we look at the file content.
34866 # Grep'ing the first line is not enough: some people post-process
34867 # each Makefile.in and add a new line on top of each file to say so.
34868 # Grep'ing the whole file is not good either: AIX grep has a line
34869 # limit of 2048, but all sed's we know have understand at least 4000.
34870 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34871 dirpart=`$as_dirname -- "$mf" ||
34872$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34873 X"$mf" : 'X\(//\)[^/]' \| \
34874 X"$mf" : 'X\(//\)$' \| \
34875 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34876$as_echo X"$mf" |
34877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34878 s//\1/
34879 q
34880 }
34881 /^X\(\/\/\)[^/].*/{
34882 s//\1/
34883 q
34884 }
34885 /^X\(\/\/\)$/{
34886 s//\1/
34887 q
34888 }
34889 /^X\(\/\).*/{
34890 s//\1/
34891 q
34892 }
34893 s/.*/./; q'`
34894 else
34895 continue
34896 fi
34897 # Extract the definition of DEPDIR, am__include, and am__quote
34898 # from the Makefile without running `make'.
34899 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34900 test -z "$DEPDIR" && continue
34901 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34902 test -z "am__include" && continue
34903 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34904 # When using ansi2knr, U may be empty or an underscore; expand it
34905 U=`sed -n 's/^U = //p' < "$mf"`
34906 # Find all dependency output files, they are included files with
34907 # $(DEPDIR) in their names. We invoke sed twice because it is the
34908 # simplest approach to changing $(DEPDIR) to its actual value in the
34909 # expansion.
34910 for file in `sed -n "
34911 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34912 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34913 # Make sure the directory exists.
34914 test -f "$dirpart/$file" && continue
34915 fdir=`$as_dirname -- "$file" ||
34916$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34917 X"$file" : 'X\(//\)[^/]' \| \
34918 X"$file" : 'X\(//\)$' \| \
34919 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34920$as_echo X"$file" |
34921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34922 s//\1/
34923 q
34924 }
34925 /^X\(\/\/\)[^/].*/{
34926 s//\1/
34927 q
34928 }
34929 /^X\(\/\/\)$/{
34930 s//\1/
34931 q
34932 }
34933 /^X\(\/\).*/{
34934 s//\1/
34935 q
34936 }
34937 s/.*/./; q'`
34938 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34939 # echo "creating $dirpart/$file"
34940 echo '# dummy' > "$dirpart/$file"
34941 done
34942 done
34943}
34944 ;;
34945 "libtool":C)
34946
34947 # See if we are running on zsh, and set the options which allow our
34948 # commands through without removal of \ escapes.
34949 if test -n "${ZSH_VERSION+set}" ; then
34950 setopt NO_GLOB_SUBST
34951 fi
34952
34953 cfgfile="${ofile}T"
34954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34955 $RM "$cfgfile"
34956
34957 cat <<_LT_EOF >> "$cfgfile"
34958#! $SHELL
34959
34960# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34961# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34962# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34963# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34964#
34965# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34966# 2006, 2007, 2008 Free Software Foundation, Inc.
34967# Written by Gordon Matzigkeit, 1996
34968#
34969# This file is part of GNU Libtool.
34970#
34971# GNU Libtool is free software; you can redistribute it and/or
34972# modify it under the terms of the GNU General Public License as
34973# published by the Free Software Foundation; either version 2 of
34974# the License, or (at your option) any later version.
34975#
34976# As a special exception to the GNU General Public License,
34977# if you distribute this file as part of a program or library that
34978# is built using GNU Libtool, you may include this file under the
34979# same distribution terms that you use for the rest of that program.
34980#
34981# GNU Libtool is distributed in the hope that it will be useful,
34982# but WITHOUT ANY WARRANTY; without even the implied warranty of
34983# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34984# GNU General Public License for more details.
34985#
34986# You should have received a copy of the GNU General Public License
34987# along with GNU Libtool; see the file COPYING. If not, a copy
34988# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34989# obtained by writing to the Free Software Foundation, Inc.,
34990# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34991
34992
34993# The names of the tagged configurations supported by this script.
34994available_tags="CXX "
34995
34996# ### BEGIN LIBTOOL CONFIG
34997
34998# A sed program that does not truncate output.
34999SED=$lt_SED
35000
35001# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35002Xsed="\$SED -e 1s/^X//"
35003
35004# A grep program that handles long lines.
35005GREP=$lt_GREP
35006
35007# An ERE matcher.
35008EGREP=$lt_EGREP
35009
35010# A literal string matcher.
35011FGREP=$lt_FGREP
35012
35013# Which release of libtool.m4 was used?
35014macro_version=$macro_version
35015macro_revision=$macro_revision
35016
35017# Assembler program.
35018AS=$AS
35019
35020# DLL creation program.
35021DLLTOOL=$DLLTOOL
35022
35023# Object dumper program.
35024OBJDUMP=$OBJDUMP
35025
35026# Whether or not to build shared libraries.
35027build_libtool_libs=$enable_shared
35028
35029# Whether or not to build static libraries.
35030build_old_libs=$enable_static
35031
35032# What type of objects to build.
35033pic_mode=$pic_mode
35034
35035# Whether or not to optimize for fast installation.
35036fast_install=$enable_fast_install
35037
35038# The host system.
35039host_alias=$host_alias
35040host=$host
35041host_os=$host_os
35042
35043# The build system.
35044build_alias=$build_alias
35045build=$build
35046build_os=$build_os
35047
35048# A BSD- or MS-compatible name lister.
35049NM=$lt_NM
35050
35051# Whether we need soft or hard links.
35052LN_S=$lt_LN_S
35053
35054# What is the maximum length of a command?
35055max_cmd_len=$max_cmd_len
35056
35057# Object file suffix (normally "o").
35058objext=$ac_objext
35059
35060# Executable file suffix (normally "").
35061exeext=$exeext
35062
35063# whether the shell understands "unset".
35064lt_unset=$lt_unset
35065
35066# turn spaces into newlines.
35067SP2NL=$lt_lt_SP2NL
35068
35069# turn newlines into spaces.
35070NL2SP=$lt_lt_NL2SP
35071
35072# How to create reloadable object files.
35073reload_flag=$lt_reload_flag
35074reload_cmds=$lt_reload_cmds
35075
35076# Method to check whether dependent libraries are shared objects.
35077deplibs_check_method=$lt_deplibs_check_method
35078
35079# Command to use when deplibs_check_method == "file_magic".
35080file_magic_cmd=$lt_file_magic_cmd
35081
35082# The archiver.
35083AR=$lt_AR
35084AR_FLAGS=$lt_AR_FLAGS
35085
35086# A symbol stripping program.
35087STRIP=$lt_STRIP
35088
35089# Commands used to install an old-style archive.
35090RANLIB=$lt_RANLIB
35091old_postinstall_cmds=$lt_old_postinstall_cmds
35092old_postuninstall_cmds=$lt_old_postuninstall_cmds
35093
35094# A C compiler.
35095LTCC=$lt_CC
35096
35097# LTCC compiler flags.
35098LTCFLAGS=$lt_CFLAGS
35099
35100# Take the output of nm and produce a listing of raw symbols and C names.
35101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35102
35103# Transform the output of nm in a proper C declaration.
35104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35105
35106# Transform the output of nm in a C name address pair.
35107global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35108
35109# Transform the output of nm in a C name address pair when lib prefix is needed.
35110global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35111
35112# The name of the directory that contains temporary libtool files.
35113objdir=$objdir
35114
35115# Shell to use when invoking shell scripts.
35116SHELL=$lt_SHELL
35117
35118# An echo program that does not interpret backslashes.
35119ECHO=$lt_ECHO
35120
35121# Used to examine libraries when file_magic_cmd begins with "file".
35122MAGIC_CMD=$MAGIC_CMD
35123
35124# Must we lock files when doing compilation?
35125need_locks=$lt_need_locks
35126
35127# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35128DSYMUTIL=$lt_DSYMUTIL
35129
35130# Tool to change global to local symbols on Mac OS X.
35131NMEDIT=$lt_NMEDIT
35132
35133# Tool to manipulate fat objects and archives on Mac OS X.
35134LIPO=$lt_LIPO
35135
35136# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35137OTOOL=$lt_OTOOL
35138
35139# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35140OTOOL64=$lt_OTOOL64
35141
35142# Old archive suffix (normally "a").
35143libext=$libext
35144
35145# Shared library suffix (normally ".so").
35146shrext_cmds=$lt_shrext_cmds
35147
35148# The commands to extract the exported symbol list from a shared archive.
35149extract_expsyms_cmds=$lt_extract_expsyms_cmds
35150
35151# Variables whose values should be saved in libtool wrapper scripts and
35152# restored at link time.
35153variables_saved_for_relink=$lt_variables_saved_for_relink
35154
35155# Do we need the "lib" prefix for modules?
35156need_lib_prefix=$need_lib_prefix
35157
35158# Do we need a version for libraries?
35159need_version=$need_version
35160
35161# Library versioning type.
35162version_type=$version_type
35163
35164# Shared library runtime path variable.
35165runpath_var=$runpath_var
35166
35167# Shared library path variable.
35168shlibpath_var=$shlibpath_var
35169
35170# Is shlibpath searched before the hard-coded library search path?
35171shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35172
35173# Format of library name prefix.
35174libname_spec=$lt_libname_spec
35175
35176# List of archive names. First name is the real one, the rest are links.
35177# The last name is the one that the linker finds with -lNAME
35178library_names_spec=$lt_library_names_spec
35179
35180# The coded name of the library, if different from the real name.
35181soname_spec=$lt_soname_spec
35182
35183# Command to use after installation of a shared archive.
35184postinstall_cmds=$lt_postinstall_cmds
35185
35186# Command to use after uninstallation of a shared archive.
35187postuninstall_cmds=$lt_postuninstall_cmds
35188
35189# Commands used to finish a libtool library installation in a directory.
35190finish_cmds=$lt_finish_cmds
35191
35192# As "finish_cmds", except a single script fragment to be evaled but
35193# not shown.
35194finish_eval=$lt_finish_eval
35195
35196# Whether we should hardcode library paths into libraries.
35197hardcode_into_libs=$hardcode_into_libs
35198
35199# Compile-time system search path for libraries.
35200sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35201
35202# Run-time system search path for libraries.
35203sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35204
35205# Whether dlopen is supported.
35206dlopen_support=$enable_dlopen
35207
35208# Whether dlopen of programs is supported.
35209dlopen_self=$enable_dlopen_self
35210
35211# Whether dlopen of statically linked programs is supported.
35212dlopen_self_static=$enable_dlopen_self_static
35213
35214# Commands to strip libraries.
35215old_striplib=$lt_old_striplib
35216striplib=$lt_striplib
35217
35218
35219# The linker used to build libraries.
35220LD=$lt_LD
35221
35222# Commands used to build an old-style archive.
35223old_archive_cmds=$lt_old_archive_cmds
35224
35225# A language specific compiler.
35226CC=$lt_compiler
35227
35228# Is the compiler the GNU compiler?
35229with_gcc=$GCC
35230
35231# Compiler flag to turn off builtin functions.
35232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35233
35234# How to pass a linker flag through the compiler.
35235wl=$lt_lt_prog_compiler_wl
35236
35237# Additional compiler flags for building library objects.
35238pic_flag=$lt_lt_prog_compiler_pic
35239
35240# Compiler flag to prevent dynamic linking.
35241link_static_flag=$lt_lt_prog_compiler_static
35242
35243# Does compiler simultaneously support -c and -o options?
35244compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35245
35246# Whether or not to add -lc for building shared libraries.
35247build_libtool_need_lc=$archive_cmds_need_lc
35248
35249# Whether or not to disallow shared libs when runtime libs are static.
35250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35251
35252# Compiler flag to allow reflexive dlopens.
35253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35254
35255# Compiler flag to generate shared objects directly from archives.
35256whole_archive_flag_spec=$lt_whole_archive_flag_spec
35257
35258# Whether the compiler copes with passing no objects directly.
35259compiler_needs_object=$lt_compiler_needs_object
35260
35261# Create an old-style archive from a shared archive.
35262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35263
35264# Create a temporary old-style archive to link instead of a shared archive.
35265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35266
35267# Commands used to build a shared archive.
35268archive_cmds=$lt_archive_cmds
35269archive_expsym_cmds=$lt_archive_expsym_cmds
35270
35271# Commands used to build a loadable module if different from building
35272# a shared archive.
35273module_cmds=$lt_module_cmds
35274module_expsym_cmds=$lt_module_expsym_cmds
35275
35276# Whether we are building with GNU ld or not.
35277with_gnu_ld=$lt_with_gnu_ld
35278
35279# Flag that allows shared libraries with undefined symbols to be built.
35280allow_undefined_flag=$lt_allow_undefined_flag
35281
35282# Flag that enforces no undefined symbols.
35283no_undefined_flag=$lt_no_undefined_flag
35284
35285# Flag to hardcode \$libdir into a binary during linking.
35286# This must work even if \$libdir does not exist
35287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35288
35289# If ld is used when linking, flag to hardcode \$libdir into a binary
35290# during linking. This must work even if \$libdir does not exist.
35291hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35292
35293# Whether we need a single "-rpath" flag with a separated argument.
35294hardcode_libdir_separator=$lt_hardcode_libdir_separator
35295
35296# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35297# DIR into the resulting binary.
35298hardcode_direct=$hardcode_direct
35299
35300# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35301# DIR into the resulting binary and the resulting library dependency is
35302# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35303# library is relocated.
35304hardcode_direct_absolute=$hardcode_direct_absolute
35305
35306# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35307# into the resulting binary.
35308hardcode_minus_L=$hardcode_minus_L
35309
35310# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35311# into the resulting binary.
35312hardcode_shlibpath_var=$hardcode_shlibpath_var
35313
35314# Set to "yes" if building a shared library automatically hardcodes DIR
35315# into the library and all subsequent libraries and executables linked
35316# against it.
35317hardcode_automatic=$hardcode_automatic
35318
35319# Set to yes if linker adds runtime paths of dependent libraries
35320# to runtime path list.
35321inherit_rpath=$inherit_rpath
35322
35323# Whether libtool must link a program against all its dependency libraries.
35324link_all_deplibs=$link_all_deplibs
35325
35326# Fix the shell variable \$srcfile for the compiler.
35327fix_srcfile_path=$lt_fix_srcfile_path
35328
35329# Set to "yes" if exported symbols are required.
35330always_export_symbols=$always_export_symbols
35331
35332# The commands to list exported symbols.
35333export_symbols_cmds=$lt_export_symbols_cmds
35334
35335# Symbols that should not be listed in the preloaded symbols.
35336exclude_expsyms=$lt_exclude_expsyms
35337
35338# Symbols that must always be exported.
35339include_expsyms=$lt_include_expsyms
35340
35341# Commands necessary for linking programs (against libraries) with templates.
35342prelink_cmds=$lt_prelink_cmds
35343
35344# Specify filename containing input files.
35345file_list_spec=$lt_file_list_spec
35346
35347# How to hardcode a shared library path into an executable.
35348hardcode_action=$hardcode_action
35349
35350# The directories searched by this compiler when creating a shared library.
35351compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35352
35353# Dependencies to place before and after the objects being linked to
35354# create a shared library.
35355predep_objects=$lt_predep_objects
35356postdep_objects=$lt_postdep_objects
35357predeps=$lt_predeps
35358postdeps=$lt_postdeps
35359
35360# The library search path used internally by the compiler when linking
35361# a shared library.
35362compiler_lib_search_path=$lt_compiler_lib_search_path
35363
35364# ### END LIBTOOL CONFIG
35365
35366_LT_EOF
35367
35368 case $host_os in
35369 aix3*)
35370 cat <<\_LT_EOF >> "$cfgfile"
35371# AIX sometimes has problems with the GCC collect2 program. For some
35372# reason, if we set the COLLECT_NAMES environment variable, the problems
35373# vanish in a puff of smoke.
35374if test "X${COLLECT_NAMES+set}" != Xset; then
35375 COLLECT_NAMES=
35376 export COLLECT_NAMES
35377fi
35378_LT_EOF
35379 ;;
35380 esac
35381
35382
35383ltmain="$ac_aux_dir/ltmain.sh"
35384
35385
35386 # We use sed instead of cat because bash on DJGPP gets confused if
35387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35388 # text mode, it properly converts lines to CR/LF. This bash problem
35389 # is reportedly fixed, but why not run on old versions too?
35390 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35391 || (rm -f "$cfgfile"; exit 1)
35392
35393 case $xsi_shell in
35394 yes)
35395 cat << \_LT_EOF >> "$cfgfile"
35396
35397# func_dirname file append nondir_replacement
35398# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35399# otherwise set result to NONDIR_REPLACEMENT.
35400func_dirname ()
35401{
35402 case ${1} in
35403 */*) func_dirname_result="${1%/*}${2}" ;;
35404 * ) func_dirname_result="${3}" ;;
35405 esac
35406}
35407
35408# func_basename file
35409func_basename ()
35410{
35411 func_basename_result="${1##*/}"
35412}
35413
35414# func_dirname_and_basename file append nondir_replacement
35415# perform func_basename and func_dirname in a single function
35416# call:
35417# dirname: Compute the dirname of FILE. If nonempty,
35418# add APPEND to the result, otherwise set result
35419# to NONDIR_REPLACEMENT.
35420# value returned in "$func_dirname_result"
35421# basename: Compute filename of FILE.
35422# value retuned in "$func_basename_result"
35423# Implementation must be kept synchronized with func_dirname
35424# and func_basename. For efficiency, we do not delegate to
35425# those functions but instead duplicate the functionality here.
35426func_dirname_and_basename ()
35427{
35428 case ${1} in
35429 */*) func_dirname_result="${1%/*}${2}" ;;
35430 * ) func_dirname_result="${3}" ;;
35431 esac
35432 func_basename_result="${1##*/}"
35433}
35434
35435# func_stripname prefix suffix name
35436# strip PREFIX and SUFFIX off of NAME.
35437# PREFIX and SUFFIX must not contain globbing or regex special
35438# characters, hashes, percent signs, but SUFFIX may contain a leading
35439# dot (in which case that matches only a dot).
35440func_stripname ()
35441{
35442 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35443 # positional parameters, so assign one to ordinary parameter first.
35444 func_stripname_result=${3}
35445 func_stripname_result=${func_stripname_result#"${1}"}
35446 func_stripname_result=${func_stripname_result%"${2}"}
35447}
35448
35449# func_opt_split
35450func_opt_split ()
35451{
35452 func_opt_split_opt=${1%%=*}
35453 func_opt_split_arg=${1#*=}
35454}
35455
35456# func_lo2o object
35457func_lo2o ()
35458{
35459 case ${1} in
35460 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35461 *) func_lo2o_result=${1} ;;
35462 esac
35463}
35464
35465# func_xform libobj-or-source
35466func_xform ()
35467{
35468 func_xform_result=${1%.*}.lo
35469}
35470
35471# func_arith arithmetic-term...
35472func_arith ()
35473{
35474 func_arith_result=$(( $* ))
35475}
35476
35477# func_len string
35478# STRING may not start with a hyphen.
35479func_len ()
35480{
35481 func_len_result=${#1}
35482}
35483
35484_LT_EOF
35485 ;;
35486 *) # Bourne compatible functions.
35487 cat << \_LT_EOF >> "$cfgfile"
35488
35489# func_dirname file append nondir_replacement
35490# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35491# otherwise set result to NONDIR_REPLACEMENT.
35492func_dirname ()
35493{
35494 # Extract subdirectory from the argument.
35495 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35496 if test "X$func_dirname_result" = "X${1}"; then
35497 func_dirname_result="${3}"
35498 else
35499 func_dirname_result="$func_dirname_result${2}"
35500 fi
35501}
35502
35503# func_basename file
35504func_basename ()
35505{
35506 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35507}
35508
35509
35510# func_stripname prefix suffix name
35511# strip PREFIX and SUFFIX off of NAME.
35512# PREFIX and SUFFIX must not contain globbing or regex special
35513# characters, hashes, percent signs, but SUFFIX may contain a leading
35514# dot (in which case that matches only a dot).
35515# func_strip_suffix prefix name
35516func_stripname ()
35517{
35518 case ${2} in
35519 .*) func_stripname_result=`$ECHO "X${3}" \
35520 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35521 *) func_stripname_result=`$ECHO "X${3}" \
35522 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35523 esac
35524}
35525
35526# sed scripts:
35527my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35528my_sed_long_arg='1s/^-[^=]*=//'
35529
35530# func_opt_split
35531func_opt_split ()
35532{
35533 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35534 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35535}
35536
35537# func_lo2o object
35538func_lo2o ()
35539{
35540 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35541}
35542
35543# func_xform libobj-or-source
35544func_xform ()
35545{
35546 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35547}
35548
35549# func_arith arithmetic-term...
35550func_arith ()
35551{
35552 func_arith_result=`expr "$@"`
35553}
35554
35555# func_len string
35556# STRING may not start with a hyphen.
35557func_len ()
35558{
35559 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35560}
35561
35562_LT_EOF
35563esac
35564
35565case $lt_shell_append in
35566 yes)
35567 cat << \_LT_EOF >> "$cfgfile"
35568
35569# func_append var value
35570# Append VALUE to the end of shell variable VAR.
35571func_append ()
35572{
35573 eval "$1+=\$2"
35574}
35575_LT_EOF
35576 ;;
35577 *)
35578 cat << \_LT_EOF >> "$cfgfile"
35579
35580# func_append var value
35581# Append VALUE to the end of shell variable VAR.
35582func_append ()
35583{
35584 eval "$1=\$$1\$2"
35585}
35586
35587_LT_EOF
35588 ;;
35589 esac
35590
35591
35592 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35593 || (rm -f "$cfgfile"; exit 1)
35594
35595 mv -f "$cfgfile" "$ofile" ||
35596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35597 chmod +x "$ofile"
35598
35599
35600 cat <<_LT_EOF >> "$ofile"
35601
35602# ### BEGIN LIBTOOL TAG CONFIG: CXX
35603
35604# The linker used to build libraries.
35605LD=$lt_LD_CXX
35606
35607# Commands used to build an old-style archive.
35608old_archive_cmds=$lt_old_archive_cmds_CXX
35609
35610# A language specific compiler.
35611CC=$lt_compiler_CXX
35612
35613# Is the compiler the GNU compiler?
35614with_gcc=$GCC_CXX
35615
35616# Compiler flag to turn off builtin functions.
35617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35618
35619# How to pass a linker flag through the compiler.
35620wl=$lt_lt_prog_compiler_wl_CXX
35621
35622# Additional compiler flags for building library objects.
35623pic_flag=$lt_lt_prog_compiler_pic_CXX
35624
35625# Compiler flag to prevent dynamic linking.
35626link_static_flag=$lt_lt_prog_compiler_static_CXX
35627
35628# Does compiler simultaneously support -c and -o options?
35629compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35630
35631# Whether or not to add -lc for building shared libraries.
35632build_libtool_need_lc=$archive_cmds_need_lc_CXX
35633
35634# Whether or not to disallow shared libs when runtime libs are static.
35635allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35636
35637# Compiler flag to allow reflexive dlopens.
35638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35639
35640# Compiler flag to generate shared objects directly from archives.
35641whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35642
35643# Whether the compiler copes with passing no objects directly.
35644compiler_needs_object=$lt_compiler_needs_object_CXX
35645
35646# Create an old-style archive from a shared archive.
35647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35648
35649# Create a temporary old-style archive to link instead of a shared archive.
35650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35651
35652# Commands used to build a shared archive.
35653archive_cmds=$lt_archive_cmds_CXX
35654archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35655
35656# Commands used to build a loadable module if different from building
35657# a shared archive.
35658module_cmds=$lt_module_cmds_CXX
35659module_expsym_cmds=$lt_module_expsym_cmds_CXX
35660
35661# Whether we are building with GNU ld or not.
35662with_gnu_ld=$lt_with_gnu_ld_CXX
35663
35664# Flag that allows shared libraries with undefined symbols to be built.
35665allow_undefined_flag=$lt_allow_undefined_flag_CXX
35666
35667# Flag that enforces no undefined symbols.
35668no_undefined_flag=$lt_no_undefined_flag_CXX
35669
35670# Flag to hardcode \$libdir into a binary during linking.
35671# This must work even if \$libdir does not exist
35672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35673
35674# If ld is used when linking, flag to hardcode \$libdir into a binary
35675# during linking. This must work even if \$libdir does not exist.
35676hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35677
35678# Whether we need a single "-rpath" flag with a separated argument.
35679hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35680
35681# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35682# DIR into the resulting binary.
35683hardcode_direct=$hardcode_direct_CXX
35684
35685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35686# DIR into the resulting binary and the resulting library dependency is
35687# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35688# library is relocated.
35689hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35690
35691# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35692# into the resulting binary.
35693hardcode_minus_L=$hardcode_minus_L_CXX
35694
35695# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35696# into the resulting binary.
35697hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35698
35699# Set to "yes" if building a shared library automatically hardcodes DIR
35700# into the library and all subsequent libraries and executables linked
35701# against it.
35702hardcode_automatic=$hardcode_automatic_CXX
35703
35704# Set to yes if linker adds runtime paths of dependent libraries
35705# to runtime path list.
35706inherit_rpath=$inherit_rpath_CXX
35707
35708# Whether libtool must link a program against all its dependency libraries.
35709link_all_deplibs=$link_all_deplibs_CXX
35710
35711# Fix the shell variable \$srcfile for the compiler.
35712fix_srcfile_path=$lt_fix_srcfile_path_CXX
35713
35714# Set to "yes" if exported symbols are required.
35715always_export_symbols=$always_export_symbols_CXX
35716
35717# The commands to list exported symbols.
35718export_symbols_cmds=$lt_export_symbols_cmds_CXX
35719
35720# Symbols that should not be listed in the preloaded symbols.
35721exclude_expsyms=$lt_exclude_expsyms_CXX
35722
35723# Symbols that must always be exported.
35724include_expsyms=$lt_include_expsyms_CXX
35725
35726# Commands necessary for linking programs (against libraries) with templates.
35727prelink_cmds=$lt_prelink_cmds_CXX
35728
35729# Specify filename containing input files.
35730file_list_spec=$lt_file_list_spec_CXX
35731
35732# How to hardcode a shared library path into an executable.
35733hardcode_action=$hardcode_action_CXX
35734
35735# The directories searched by this compiler when creating a shared library.
35736compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35737
35738# Dependencies to place before and after the objects being linked to
35739# create a shared library.
35740predep_objects=$lt_predep_objects_CXX
35741postdep_objects=$lt_postdep_objects_CXX
35742predeps=$lt_predeps_CXX
35743postdeps=$lt_postdeps_CXX
35744
35745# The library search path used internally by the compiler when linking
35746# a shared library.
35747compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35748
35749# ### END LIBTOOL TAG CONFIG: CXX
35750_LT_EOF
35751
35752 ;;
cristy3ed852e2009-09-05 21:47:34 +000035753 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35754 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35755 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35756 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35757 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35758 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35759
35760 esac
35761done # for ac_tag
35762
35763
cristy8b350f62009-11-15 23:12:43 +000035764as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035765_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035766ac_clean_files=$ac_clean_files_save
35767
35768test $ac_write_fail = 0 ||
cristyf6fcb5d2010-09-24 01:19:13 +000035769 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035770
35771
35772# configure is writing to config.log, and then calls config.status.
35773# config.status does its own redirection, appending to config.log.
35774# Unfortunately, on DOS this fails, as config.log is still kept open
35775# by configure, so config.status won't be able to write to it; its
35776# output is simply discarded. So we exec the FD to /dev/null,
35777# effectively closing config.log, so it can be properly (re)opened and
35778# appended to by config.status. When coming back to configure, we
35779# need to make the FD available again.
35780if test "$no_create" != yes; then
35781 ac_cs_success=:
35782 ac_config_status_args=
35783 test "$silent" = yes &&
35784 ac_config_status_args="$ac_config_status_args --quiet"
35785 exec 5>/dev/null
35786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35787 exec 5>>config.log
35788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35789 # would make configure fail if this is the last instruction.
cristyf6fcb5d2010-09-24 01:19:13 +000035790 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035791fi
35792if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035794$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35795fi
35796
35797
35798rm -f magick-version
35799
cristy430a7312010-01-21 20:44:04 +000035800result_dejavu_font_dir='none'
35801if test "${dejavu_font_dir}x" != 'x'; then
35802 result_dejavu_font_dir=$dejavu_font_dir
35803fi
35804
cristy3ed852e2009-09-05 21:47:34 +000035805result_ghostscript_font_dir='none'
35806if test "${ghostscript_font_dir}x" != 'x'; then
35807 result_ghostscript_font_dir=$ghostscript_font_dir
35808fi
35809
35810result_windows_font_dir='none'
35811if test "${windows_font_dir}x" != 'x'; then
35812 result_windows_font_dir=${windows_font_dir}
35813fi
35814
cristy8b350f62009-11-15 23:12:43 +000035815{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035816ImageMagick is configured as follows. Please verify that this configuration
35817matches your expectations.
35818
35819Host system type: $host
35820Build system type: $build
35821
35822 Option Value
35823-------------------------------------------------------------------------------
35824Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35825Static libraries --enable-static=$enable_static $libtool_build_static_libs
35826Module support --with-modules=$with_modules $with_modules
35827GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35828Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35829High Dynamic Range Imagery
35830 --enable-hdri=$enable_hdri $enable_hdri
35831
35832Delegate Configuration:
35833BZLIB --with-bzlib=$with_bzlib $have_bzlib
35834Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035835Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035836DJVU --with-djvu=$with_djvu $have_djvu
35837DPS --with-dps=$with_dps $have_dps
35838FFTW --with-fftw=$with_fftw $have_fftw
35839FlashPIX --with-fpx=$with_fpx $have_fpx
35840FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35841FreeType --with-freetype=$with_freetype $have_freetype
35842GhostPCL None $PCLDelegate ($PCLVersion)
35843GhostXPS None $XPSDelegate ($XPSVersion)
35844Ghostscript None $PSDelegate ($GSVersion)
35845Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35846Ghostscript lib --with-gslib=$with_gslib $have_gslib
35847Graphviz --with-gvc=$with_gvc $have_gvc
35848JBIG --with-jbig=$with_jbig $have_jbig
35849JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35850JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035851LCMS v1 --with-lcms=$with_lcms $have_lcms
35852LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035853LQR --with-lqr=$with_lqr $have_lqr
35854Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35855OpenEXR --with-openexr=$with_openexr $have_openexr
35856PERL --with-perl=$with_perl $have_perl
35857PNG --with-png=$with_png $have_png
35858RSVG --with-rsvg=$with_rsvg $have_rsvg
35859TIFF --with-tiff=$with_tiff $have_tiff
35860Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35861WMF --with-wmf=$with_wmf $have_wmf
35862X11 --with-x=$with_x $have_x
35863XML --with-xml=$with_xml $have_xml
35864ZLIB --with-zlib=$with_zlib $have_zlib
35865
35866X11 Configuration:
35867 X_CFLAGS = $X_CFLAGS
35868 X_PRE_LIBS = $X_PRE_LIBS
35869 X_LIBS = $X_LIBS
35870 X_EXTRA_LIBS = $X_EXTRA_LIBS
35871
35872Options used to compile and link:
35873 PREFIX = $PREFIX_DIR
35874 EXEC-PREFIX = $EXEC_PREFIX_DIR
35875 VERSION = $PACKAGE_VERSION
35876 CC = $CC
35877 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035878 CPPFLAGS = $MAGICK_CPPFLAGS
35879 PCFLAGS = $MAGICK_PCFLAGS
35880 DEFS = $DEFS
35881 LDFLAGS = $LDFLAGS
35882 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35883 LIBS = $MAGICK_LIBS
35884 CXX = $CXX
35885 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035886 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035887" >&5
35888$as_echo "
35889ImageMagick is configured as follows. Please verify that this configuration
35890matches your expectations.
35891
35892Host system type: $host
35893Build system type: $build
35894
35895 Option Value
35896-------------------------------------------------------------------------------
35897Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35898Static libraries --enable-static=$enable_static $libtool_build_static_libs
35899Module support --with-modules=$with_modules $with_modules
35900GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35901Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35902High Dynamic Range Imagery
35903 --enable-hdri=$enable_hdri $enable_hdri
35904
35905Delegate Configuration:
35906BZLIB --with-bzlib=$with_bzlib $have_bzlib
35907Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035908Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035909DJVU --with-djvu=$with_djvu $have_djvu
35910DPS --with-dps=$with_dps $have_dps
35911FFTW --with-fftw=$with_fftw $have_fftw
35912FlashPIX --with-fpx=$with_fpx $have_fpx
35913FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35914FreeType --with-freetype=$with_freetype $have_freetype
35915GhostPCL None $PCLDelegate ($PCLVersion)
35916GhostXPS None $XPSDelegate ($XPSVersion)
35917Ghostscript None $PSDelegate ($GSVersion)
35918Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35919Ghostscript lib --with-gslib=$with_gslib $have_gslib
35920Graphviz --with-gvc=$with_gvc $have_gvc
35921JBIG --with-jbig=$with_jbig $have_jbig
35922JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35923JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035924LCMS v1 --with-lcms=$with_lcms $have_lcms
35925LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035926LQR --with-lqr=$with_lqr $have_lqr
35927Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35928OpenEXR --with-openexr=$with_openexr $have_openexr
35929PERL --with-perl=$with_perl $have_perl
35930PNG --with-png=$with_png $have_png
35931RSVG --with-rsvg=$with_rsvg $have_rsvg
35932TIFF --with-tiff=$with_tiff $have_tiff
35933Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35934WMF --with-wmf=$with_wmf $have_wmf
35935X11 --with-x=$with_x $have_x
35936XML --with-xml=$with_xml $have_xml
35937ZLIB --with-zlib=$with_zlib $have_zlib
35938
35939X11 Configuration:
35940 X_CFLAGS = $X_CFLAGS
35941 X_PRE_LIBS = $X_PRE_LIBS
35942 X_LIBS = $X_LIBS
35943 X_EXTRA_LIBS = $X_EXTRA_LIBS
35944
35945Options used to compile and link:
35946 PREFIX = $PREFIX_DIR
35947 EXEC-PREFIX = $EXEC_PREFIX_DIR
35948 VERSION = $PACKAGE_VERSION
35949 CC = $CC
35950 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035951 CPPFLAGS = $MAGICK_CPPFLAGS
35952 PCFLAGS = $MAGICK_PCFLAGS
35953 DEFS = $DEFS
35954 LDFLAGS = $LDFLAGS
35955 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35956 LIBS = $MAGICK_LIBS
35957 CXX = $CXX
35958 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035959 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035960" >&6; }