blob: 0d4f08dbd1be346e15bf86b817e1daf5dbd5e80b [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy98dddb52010-11-04 00:30:15 +00003# Generated by GNU Autoconf 2.66 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,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
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"
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +0000362# as_fn_error STATUS 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
cristy98dddb52010-11-04 00:30:15 +0000366# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000367as_fn_error ()
368{
cristy98dddb52010-11-04 00:30:15 +0000369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000373 fi
cristy98dddb52010-11-04 00:30:15 +0000374 $as_echo "$as_me: error: $2" >&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.
cristy98dddb52010-11-04 00:30:15 +0000689# hostname on some systems (SVR3.2, old GNU/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 &&
cristy98dddb52010-11-04 00:30:15 +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 &&
cristy98dddb52010-11-04 00:30:15 +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 &&
cristy98dddb52010-11-04 00:30:15 +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 &&
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +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]* )
cristy98dddb52010-11-04 00:30:15 +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'`
cristy98dddb52010-11-04 00:30:15 +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) ;;
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +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 .` ||
cristy98dddb52010-11-04 00:30:15 +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" ||
cristy98dddb52010-11-04 00:30:15 +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 .."
cristy98dddb52010-11-04 00:30:15 +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=`(
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +00002115generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00002116
cristy98dddb52010-11-04 00:30:15 +00002117Copyright (C) 2010 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
cristy98dddb52010-11-04 00:30:15 +00002211 if eval "test \"\${$3+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; }
cristy98dddb52010-11-04 00:30:15 +00002214if eval "test \"\${$3+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;}
cristy98dddb52010-11-04 00:30:15 +00002273( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002274## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002275## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002276 ) | sed "s/^/$as_me: WARNING: /" >&2
2277 ;;
2278esac
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002281if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002282 $as_echo_n "(cached) " >&6
2283else
2284 eval "$3=\$ac_header_compiler"
2285fi
2286eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288$as_echo "$ac_res" >&6; }
2289fi
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291
2292} # ac_fn_c_check_header_mongrel
2293
2294# ac_fn_c_try_run LINENO
2295# ----------------------
2296# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2297# that executables *can* be run.
2298ac_fn_c_try_run ()
2299{
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if { { ac_try="$ac_link"
2302case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>&5
2309 ac_status=$?
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2312 { { case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315esac
2316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317$as_echo "$ac_try_echo"; } >&5
2318 (eval "$ac_try") 2>&5
2319 ac_status=$?
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; }; }; then :
2322 ac_retval=0
2323else
2324 $as_echo "$as_me: program exited with status $ac_status" >&5
2325 $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_retval=$ac_status
2329fi
2330 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002332 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002333
2334} # ac_fn_c_try_run
2335
2336# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2337# -------------------------------------------------------
2338# Tests whether HEADER exists and can be compiled using the include files in
2339# INCLUDES, setting the cache variable VAR accordingly.
2340ac_fn_c_check_header_compile ()
2341{
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002345if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002346 $as_echo_n "(cached) " >&6
2347else
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349/* end confdefs.h. */
2350$4
2351#include <$2>
2352_ACEOF
2353if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=yes"
2355else
2356 eval "$3=no"
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364
2365} # ac_fn_c_check_header_compile
2366
cristya0b81c32010-01-22 02:54:33 +00002367# ac_fn_cxx_try_compile LINENO
2368# ----------------------------
2369# Try to compile conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_cxx_try_compile ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 rm -f conftest.$ac_objext
2374 if { { ac_try="$ac_compile"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380$as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_compile") 2>conftest.err
2382 ac_status=$?
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2387 fi
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } && {
2390 test -z "$ac_cxx_werror_flag" ||
2391 test ! -s conftest.err
2392 } && test -s conftest.$ac_objext; then :
2393 ac_retval=0
2394else
2395 $as_echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 ac_retval=1
2399fi
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 as_fn_set_status $ac_retval
2402
2403} # ac_fn_cxx_try_compile
2404
cristy8b350f62009-11-15 23:12:43 +00002405# ac_fn_c_try_link LINENO
2406# -----------------------
2407# Try to link conftest.$ac_ext, and return whether this succeeded.
2408ac_fn_c_try_link ()
2409{
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 rm -f conftest.$ac_objext conftest$ac_exeext
2412 if { { ac_try="$ac_link"
2413case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418$as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_link") 2>conftest.err
2420 ac_status=$?
2421 if test -s conftest.err; then
2422 grep -v '^ *+' conftest.err >conftest.er1
2423 cat conftest.er1 >&5
2424 mv -f conftest.er1 conftest.err
2425 fi
2426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427 test $ac_status = 0; } && {
2428 test -z "$ac_c_werror_flag" ||
2429 test ! -s conftest.err
2430 } && test -s conftest$ac_exeext && {
2431 test "$cross_compiling" = yes ||
2432 $as_test_x conftest$ac_exeext
2433 }; then :
2434 ac_retval=0
2435else
2436 $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 ac_retval=1
2440fi
2441 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2442 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2443 # interfere with the next link command; also delete a directory that is
2444 # left behind by Apple's compiler. We do this before executing the actions.
2445 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002447 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002448
2449} # ac_fn_c_try_link
2450
cristy73bd4a52010-10-05 11:24:23 +00002451# ac_fn_c_check_func LINENO FUNC VAR
2452# ----------------------------------
2453# Tests whether FUNC exists, setting the cache variable VAR accordingly
2454ac_fn_c_check_func ()
2455{
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2458$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002459if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002460 $as_echo_n "(cached) " >&6
2461else
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463/* end confdefs.h. */
2464/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2466#define $2 innocuous_$2
2467
2468/* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char $2 (); below.
2470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 <limits.h> exists even on freestanding compilers. */
2472
2473#ifdef __STDC__
2474# include <limits.h>
2475#else
2476# include <assert.h>
2477#endif
2478
2479#undef $2
2480
2481/* Override any GCC internal prototype to avoid an error.
2482 Use char because int might match the return type of a GCC
2483 builtin and then its argument prototype would still apply. */
2484#ifdef __cplusplus
2485extern "C"
2486#endif
2487char $2 ();
2488/* The GNU C library defines this for functions which it implements
2489 to always fail with ENOSYS. Some functions are actually named
2490 something starting with __ and the normal name is an alias. */
2491#if defined __stub_$2 || defined __stub___$2
2492choke me
2493#endif
2494
2495int
2496main ()
2497{
2498return $2 ();
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503if ac_fn_c_try_link "$LINENO"; then :
2504 eval "$3=yes"
2505else
2506 eval "$3=no"
2507fi
2508rm -f core conftest.err conftest.$ac_objext \
2509 conftest$ac_exeext conftest.$ac_ext
2510fi
2511eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513$as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515
2516} # ac_fn_c_check_func
2517
2518# ac_fn_cxx_try_cpp LINENO
2519# ------------------------
2520# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521ac_fn_cxx_try_cpp ()
2522{
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530$as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2537 fi
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 }; then :
2543 ac_retval=0
2544else
2545 $as_echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_retval=1
2549fi
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 as_fn_set_status $ac_retval
2552
2553} # ac_fn_cxx_try_cpp
2554
2555# ac_fn_cxx_try_link LINENO
2556# -------------------------
2557# Try to link conftest.$ac_ext, and return whether this succeeded.
2558ac_fn_cxx_try_link ()
2559{
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568$as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2570 ac_status=$?
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2575 fi
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_cxx_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 $as_test_x conftest$ac_exeext
2583 }; then :
2584 ac_retval=0
2585else
2586 $as_echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_retval=1
2590fi
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597 as_fn_set_status $ac_retval
2598
2599} # ac_fn_cxx_try_link
2600
cristy98dddb52010-11-04 00:30:15 +00002601# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2602# ---------------------------------------------
2603# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2604# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002605ac_fn_c_check_decl ()
2606{
2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002608 as_decl_name=`echo $2|sed 's/ *(.*//'`
2609 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2611$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2612if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002613 $as_echo_n "(cached) " >&6
2614else
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616/* end confdefs.h. */
2617$4
2618int
2619main ()
2620{
cristy98dddb52010-11-04 00:30:15 +00002621#ifndef $as_decl_name
2622#ifdef __cplusplus
2623 (void) $as_decl_use;
2624#else
2625 (void) $as_decl_name;
2626#endif
cristy73bd4a52010-10-05 11:24:23 +00002627#endif
2628
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 eval "$3=yes"
2635else
2636 eval "$3=no"
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642$as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644
2645} # ac_fn_c_check_decl
2646
cristy8b350f62009-11-15 23:12:43 +00002647# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2648# -------------------------------------------
2649# Tests whether TYPE exists after having included INCLUDES, setting cache
2650# variable VAR accordingly.
2651ac_fn_c_check_type ()
2652{
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2655$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002656if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002657 $as_echo_n "(cached) " >&6
2658else
2659 eval "$3=no"
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661/* end confdefs.h. */
2662$4
2663int
2664main ()
2665{
2666if (sizeof ($2))
2667 return 0;
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672if ac_fn_c_try_compile "$LINENO"; then :
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674/* end confdefs.h. */
2675$4
2676int
2677main ()
2678{
2679if (sizeof (($2)))
2680 return 0;
2681 ;
2682 return 0;
2683}
2684_ACEOF
2685if ac_fn_c_try_compile "$LINENO"; then :
2686
2687else
2688 eval "$3=yes"
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691fi
2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693fi
2694eval ac_res=\$$3
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696$as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2698
2699} # ac_fn_c_check_type
2700
cristy92703d82010-04-26 00:18:18 +00002701# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2702# ----------------------------------------------------
2703# Tries to find if the field MEMBER exists in type AGGR, after including
2704# INCLUDES, setting cache variable VAR accordingly.
2705ac_fn_c_check_member ()
2706{
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2709$as_echo_n "checking for $2.$3... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002710if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002711 $as_echo_n "(cached) " >&6
2712else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715$5
2716int
2717main ()
2718{
2719static $2 ac_aggr;
2720if (ac_aggr.$3)
2721return 0;
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726if ac_fn_c_try_compile "$LINENO"; then :
2727 eval "$4=yes"
2728else
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730/* end confdefs.h. */
2731$5
2732int
2733main ()
2734{
2735static $2 ac_aggr;
2736if (sizeof ac_aggr.$3)
2737return 0;
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742if ac_fn_c_try_compile "$LINENO"; then :
2743 eval "$4=yes"
2744else
2745 eval "$4=no"
2746fi
2747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748fi
2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750fi
2751eval ac_res=\$$4
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2753$as_echo "$ac_res" >&6; }
2754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2755
2756} # ac_fn_c_check_member
2757
cristy8b350f62009-11-15 23:12:43 +00002758# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2759# --------------------------------------------
2760# Tries to find the compile-time value of EXPR in a program that includes
2761# INCLUDES, setting VAR accordingly. Returns whether the value could be
2762# computed
2763ac_fn_c_compute_int ()
2764{
2765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2766 if test "$cross_compiling" = yes; then
2767 # Depending upon the size, compute the lo and hi bounds.
2768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$4
2771int
2772main ()
2773{
2774static int test_array [1 - 2 * !(($2) >= 0)];
2775test_array [0] = 0
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782 ac_lo=0 ac_mid=0
2783 while :; do
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$4
2787int
2788main ()
2789{
2790static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2791test_array [0] = 0
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 ac_hi=$ac_mid; break
2799else
2800 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2801 if test $ac_lo -le $ac_mid; then
2802 ac_lo= ac_hi=
2803 break
2804 fi
2805 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 done
2809else
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811/* end confdefs.h. */
2812$4
2813int
2814main ()
2815{
2816static int test_array [1 - 2 * !(($2) < 0)];
2817test_array [0] = 0
2818
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823if ac_fn_c_try_compile "$LINENO"; then :
2824 ac_hi=-1 ac_mid=-1
2825 while :; do
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h. */
2828$4
2829int
2830main ()
2831{
2832static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2833test_array [0] = 0
2834
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839if ac_fn_c_try_compile "$LINENO"; then :
2840 ac_lo=$ac_mid; break
2841else
2842 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2843 if test $ac_mid -le $ac_hi; then
2844 ac_lo= ac_hi=
2845 break
2846 fi
2847 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2848fi
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 done
2851else
2852 ac_lo= ac_hi=
2853fi
2854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855fi
2856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857# Binary search between lo and hi bounds.
2858while test "x$ac_lo" != "x$ac_hi"; do
2859 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2867test_array [0] = 0
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_hi=$ac_mid
2875else
2876 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2877fi
2878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879done
2880case $ac_lo in #((
2881?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2882'') ac_retval=1 ;;
2883esac
2884 else
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887$4
2888static long int longval () { return $2; }
2889static unsigned long int ulongval () { return $2; }
2890#include <stdio.h>
2891#include <stdlib.h>
2892int
2893main ()
2894{
2895
2896 FILE *f = fopen ("conftest.val", "w");
2897 if (! f)
2898 return 1;
2899 if (($2) < 0)
2900 {
2901 long int i = longval ();
2902 if (i != ($2))
2903 return 1;
2904 fprintf (f, "%ld", i);
2905 }
2906 else
2907 {
2908 unsigned long int i = ulongval ();
2909 if (i != ($2))
2910 return 1;
2911 fprintf (f, "%lu", i);
2912 }
2913 /* Do not output a trailing newline, as this causes \r\n confusion
2914 on some platforms. */
2915 return ferror (f) || fclose (f) != 0;
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921if ac_fn_c_try_run "$LINENO"; then :
2922 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2923else
2924 ac_retval=1
2925fi
2926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2927 conftest.$ac_objext conftest.beam conftest.$ac_ext
2928rm -f conftest.val
2929
2930 fi
2931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002932 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002933
2934} # ac_fn_c_compute_int
2935
2936# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2937# ---------------------------------------------------------
2938# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2939# the include files in INCLUDES and setting the cache variable VAR
2940# accordingly.
2941ac_fn_cxx_check_header_mongrel ()
2942{
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002944 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2946$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002947if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002948 $as_echo_n "(cached) " >&6
2949fi
2950eval ac_res=\$$3
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2952$as_echo "$ac_res" >&6; }
2953else
2954 # Is the header compilable?
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2956$as_echo_n "checking $2 usability... " >&6; }
2957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h. */
2959$4
2960#include <$2>
2961_ACEOF
2962if ac_fn_cxx_try_compile "$LINENO"; then :
2963 ac_header_compiler=yes
2964else
2965 ac_header_compiler=no
2966fi
2967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2969$as_echo "$ac_header_compiler" >&6; }
2970
2971# Is the header present?
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2973$as_echo_n "checking $2 presence... " >&6; }
2974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975/* end confdefs.h. */
2976#include <$2>
2977_ACEOF
2978if ac_fn_cxx_try_cpp "$LINENO"; then :
2979 ac_header_preproc=yes
2980else
2981 ac_header_preproc=no
2982fi
2983rm -f conftest.err conftest.$ac_ext
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2985$as_echo "$ac_header_preproc" >&6; }
2986
2987# So? What about this header?
2988case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2989 yes:no: )
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2991$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2994 ;;
2995 no:yes:* )
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2997$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2999$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3001$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3003$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003006( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003007## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003008## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003009 ) | sed "s/^/$as_me: WARNING: /" >&2
3010 ;;
3011esac
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3013$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00003014if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00003015 $as_echo_n "(cached) " >&6
3016else
3017 eval "$3=\$ac_header_compiler"
3018fi
3019eval ac_res=\$$3
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3021$as_echo "$ac_res" >&6; }
3022fi
3023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3024
3025} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003026cat >config.log <<_ACEOF
3027This file contains any messages produced by compilers while
3028running configure, to aid debugging if configure makes a mistake.
3029
cristy56225732010-09-04 23:44:25 +00003030It was created by ImageMagick $as_me 6.6.4, which was
cristy98dddb52010-11-04 00:30:15 +00003031generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003032
3033 $ $0 $@
3034
3035_ACEOF
3036exec 5>>config.log
3037{
3038cat <<_ASUNAME
3039## --------- ##
3040## Platform. ##
3041## --------- ##
3042
3043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3044uname -m = `(uname -m) 2>/dev/null || echo unknown`
3045uname -r = `(uname -r) 2>/dev/null || echo unknown`
3046uname -s = `(uname -s) 2>/dev/null || echo unknown`
3047uname -v = `(uname -v) 2>/dev/null || echo unknown`
3048
3049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3050/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3051
3052/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3053/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3055/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3056/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3057/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3058/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3059
3060_ASUNAME
3061
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003067 $as_echo "PATH: $as_dir"
3068 done
cristy3ed852e2009-09-05 21:47:34 +00003069IFS=$as_save_IFS
3070
3071} >&5
3072
3073cat >&5 <<_ACEOF
3074
3075
3076## ----------- ##
3077## Core tests. ##
3078## ----------- ##
3079
3080_ACEOF
3081
3082
3083# Keep a trace of the command line.
3084# Strip out --no-create and --no-recursion so they do not pile up.
3085# Strip out --silent because we don't want to record it for future runs.
3086# Also quote any args containing shell meta-characters.
3087# Make two passes to allow for proper duplicate-argument suppression.
3088ac_configure_args=
3089ac_configure_args0=
3090ac_configure_args1=
3091ac_must_keep_next=false
3092for ac_pass in 1 2
3093do
3094 for ac_arg
3095 do
3096 case $ac_arg in
3097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3099 | -silent | --silent | --silen | --sile | --sil)
3100 continue ;;
3101 *\'*)
3102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3103 esac
3104 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003106 2)
cristy8b350f62009-11-15 23:12:43 +00003107 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003108 if test $ac_must_keep_next = true; then
3109 ac_must_keep_next=false # Got value, back to normal.
3110 else
3111 case $ac_arg in
3112 *=* | --config-cache | -C | -disable-* | --disable-* \
3113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3115 | -with-* | --with-* | -without-* | --without-* | --x)
3116 case "$ac_configure_args0 " in
3117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3118 esac
3119 ;;
3120 -* ) ac_must_keep_next=true ;;
3121 esac
3122 fi
cristy8b350f62009-11-15 23:12:43 +00003123 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003124 ;;
3125 esac
3126 done
3127done
cristy8b350f62009-11-15 23:12:43 +00003128{ ac_configure_args0=; unset ac_configure_args0;}
3129{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003130
3131# When interrupted or exit'd, cleanup temporary files, and complete
3132# config.log. We remove comments because anyway the quotes in there
3133# would cause problems or look ugly.
3134# WARNING: Use '\'' to represent an apostrophe within the trap.
3135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3136trap 'exit_status=$?
3137 # Save into config.log some information that might help in debugging.
3138 {
3139 echo
3140
cristy98dddb52010-11-04 00:30:15 +00003141 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003142## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003143## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003144 echo
3145 # The following way of writing the cache mishandles newlines in values,
3146(
3147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3148 eval ac_val=\$$ac_var
3149 case $ac_val in #(
3150 *${as_nl}*)
3151 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3154 esac
3155 case $ac_var in #(
3156 _ | IFS | as_nl) ;; #(
3157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003158 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003159 esac ;;
3160 esac
3161 done
3162 (set) 2>&1 |
3163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3164 *${as_nl}ac_space=\ *)
3165 sed -n \
3166 "s/'\''/'\''\\\\'\'''\''/g;
3167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3168 ;; #(
3169 *)
3170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3171 ;;
3172 esac |
3173 sort
3174)
3175 echo
3176
cristy98dddb52010-11-04 00:30:15 +00003177 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003178## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003179## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003180 echo
3181 for ac_var in $ac_subst_vars
3182 do
3183 eval ac_val=\$$ac_var
3184 case $ac_val in
3185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3186 esac
3187 $as_echo "$ac_var='\''$ac_val'\''"
3188 done | sort
3189 echo
3190
3191 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003192 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003193## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003194## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003195 echo
3196 for ac_var in $ac_subst_files
3197 do
3198 eval ac_val=\$$ac_var
3199 case $ac_val in
3200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3201 esac
3202 $as_echo "$ac_var='\''$ac_val'\''"
3203 done | sort
3204 echo
3205 fi
3206
3207 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003208 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003209## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003210## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003211 echo
3212 cat confdefs.h
3213 echo
3214 fi
3215 test "$ac_signal" != 0 &&
3216 $as_echo "$as_me: caught signal $ac_signal"
3217 $as_echo "$as_me: exit $exit_status"
3218 } >&5
3219 rm -f core *.core core.conftest.* &&
3220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3221 exit $exit_status
3222' 0
3223for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003225done
3226ac_signal=0
3227
3228# confdefs.h avoids OS command line length limits that DEFS can exceed.
3229rm -f -r conftest* confdefs.h
3230
cristy8b350f62009-11-15 23:12:43 +00003231$as_echo "/* confdefs.h */" > confdefs.h
3232
cristy3ed852e2009-09-05 21:47:34 +00003233# Predefined preprocessor variables.
3234
3235cat >>confdefs.h <<_ACEOF
3236#define PACKAGE_NAME "$PACKAGE_NAME"
3237_ACEOF
3238
cristy3ed852e2009-09-05 21:47:34 +00003239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3241_ACEOF
3242
cristy3ed852e2009-09-05 21:47:34 +00003243cat >>confdefs.h <<_ACEOF
3244#define PACKAGE_VERSION "$PACKAGE_VERSION"
3245_ACEOF
3246
cristy3ed852e2009-09-05 21:47:34 +00003247cat >>confdefs.h <<_ACEOF
3248#define PACKAGE_STRING "$PACKAGE_STRING"
3249_ACEOF
3250
cristy3ed852e2009-09-05 21:47:34 +00003251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3253_ACEOF
3254
cristy8b350f62009-11-15 23:12:43 +00003255cat >>confdefs.h <<_ACEOF
3256#define PACKAGE_URL "$PACKAGE_URL"
3257_ACEOF
3258
cristy3ed852e2009-09-05 21:47:34 +00003259
3260# Let the site file select an alternate cache file if it wants to.
3261# Prefer an explicitly selected file to automatically selected ones.
3262ac_site_file1=NONE
3263ac_site_file2=NONE
3264if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003265 # We do not want a PATH search for config.site.
3266 case $CONFIG_SITE in #((
3267 -*) ac_site_file1=./$CONFIG_SITE;;
3268 */*) ac_site_file1=$CONFIG_SITE;;
3269 *) ac_site_file1=./$CONFIG_SITE;;
3270 esac
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
cristy98dddb52010-11-04 00:30:15 +00003285 . "$ac_site_file" \
3286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error $? "failed to load site script $ac_site_file
3289See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003290 fi
3291done
3292
3293if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003294 # Some versions of bash will fail to source /dev/null (special files
3295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003298$as_echo "$as_me: loading cache $cache_file" >&6;}
3299 case $cache_file in
3300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3301 *) . "./$cache_file";;
3302 esac
3303 fi
3304else
cristy8b350f62009-11-15 23:12:43 +00003305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003306$as_echo "$as_me: creating cache $cache_file" >&6;}
3307 >$cache_file
3308fi
3309
cristycd4c5312009-11-22 01:19:08 +00003310as_fn_append ac_header_list " stdlib.h"
3311as_fn_append ac_header_list " unistd.h"
3312as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003313# Check that the precious variables saved in the cache have kept the same
3314# value.
3315ac_cache_corrupted=false
3316for ac_var in $ac_precious_vars; do
3317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3318 eval ac_new_set=\$ac_env_${ac_var}_set
3319 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3320 eval ac_new_val=\$ac_env_${ac_var}_value
3321 case $ac_old_set,$ac_new_set in
3322 set,)
cristy8b350f62009-11-15 23:12:43 +00003323 { $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 +00003324$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3325 ac_cache_corrupted=: ;;
3326 ,set)
cristy8b350f62009-11-15 23:12:43 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003328$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3329 ac_cache_corrupted=: ;;
3330 ,);;
3331 *)
3332 if test "x$ac_old_val" != "x$ac_new_val"; then
3333 # differences in whitespace do not lead to failure.
3334 ac_old_val_w=`echo x $ac_old_val`
3335 ac_new_val_w=`echo x $ac_new_val`
3336 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3339 ac_cache_corrupted=:
3340 else
cristy8b350f62009-11-15 23:12:43 +00003341 { $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 +00003342$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3343 eval $ac_var=\$ac_old_val
3344 fi
cristy8b350f62009-11-15 23:12:43 +00003345 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003346$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003347 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003348$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3349 fi;;
3350 esac
3351 # Pass precious variables to config.status.
3352 if test "$ac_new_set" = set; then
3353 case $ac_new_val in
3354 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3355 *) ac_arg=$ac_var=$ac_new_val ;;
3356 esac
3357 case " $ac_configure_args " in
3358 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003359 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003360 esac
3361 fi
3362done
3363if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003367$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003368 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003369fi
cristy8b350f62009-11-15 23:12:43 +00003370## -------------------- ##
3371## Main body of script. ##
3372## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003373
3374ac_ext=c
3375ac_cpp='$CPP $CPPFLAGS'
3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381
3382ac_aux_dir=
3383for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003384 if test -f "$ac_dir/install-sh"; then
3385 ac_aux_dir=$ac_dir
3386 ac_install_sh="$ac_aux_dir/install-sh -c"
3387 break
3388 elif test -f "$ac_dir/install.sh"; then
3389 ac_aux_dir=$ac_dir
3390 ac_install_sh="$ac_aux_dir/install.sh -c"
3391 break
3392 elif test -f "$ac_dir/shtool"; then
3393 ac_aux_dir=$ac_dir
3394 ac_install_sh="$ac_aux_dir/shtool install -c"
3395 break
3396 fi
cristy3ed852e2009-09-05 21:47:34 +00003397done
3398if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003399 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003400fi
3401
3402# These three variables are undocumented and unsupported,
3403# and are intended to be withdrawn in a future Autoconf release.
3404# They can cause serious problems if a builder's source tree is in a directory
3405# whose full name contains unusual characters.
3406ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3407ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3408ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3409
3410
3411
3412
3413ac_config_headers="$ac_config_headers config/config.h"
3414
cristy24fc1fe2010-10-23 21:13:01 +00003415
cristy73bd4a52010-10-05 11:24:23 +00003416ac_config_commands="$ac_config_commands magick/magick-config.h"
3417
cristy430a7312010-01-21 20:44:04 +00003418ac_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 +00003419
3420
3421#
3422# Save initial user-tunable values
3423#
3424USER_LIBS=$LIBS
3425for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3426 eval isset=\${$var+set}
3427 if test "$isset" = 'set'; then
3428 eval val=$`echo $var`
3429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3430 fi
3431done
3432
3433
3434CONFIGURE_ARGS="$0 ${ac_configure_args}"
3435
3436
3437# Source file containing package/library versioning information.
3438. ${srcdir}/version.sh
3439
cristy15a88782010-01-31 23:24:49 +00003440echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003441# Make sure we can run config.sub.
3442$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003443 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444
cristy8b350f62009-11-15 23:12:43 +00003445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003447if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003448 $as_echo_n "(cached) " >&6
3449else
3450 ac_build_alias=$build_alias
3451test "x$ac_build_alias" = x &&
3452 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3453test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003454 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003455ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003457
3458fi
cristy8b350f62009-11-15 23:12:43 +00003459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003460$as_echo "$ac_cv_build" >&6; }
3461case $ac_cv_build in
3462*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003463*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003464esac
3465build=$ac_cv_build
3466ac_save_IFS=$IFS; IFS='-'
3467set x $ac_cv_build
3468shift
3469build_cpu=$1
3470build_vendor=$2
3471shift; shift
3472# Remember, the first character of IFS is used to create $*,
3473# except with old shells:
3474build_os=$*
3475IFS=$ac_save_IFS
3476case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3477
3478
cristy8b350f62009-11-15 23:12:43 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003481if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003482 $as_echo_n "(cached) " >&6
3483else
3484 if test "x$host_alias" = x; then
3485 ac_cv_host=$ac_cv_build
3486else
3487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003489fi
3490
3491fi
cristy8b350f62009-11-15 23:12:43 +00003492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003493$as_echo "$ac_cv_host" >&6; }
3494case $ac_cv_host in
3495*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003496*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003497esac
3498host=$ac_cv_host
3499ac_save_IFS=$IFS; IFS='-'
3500set x $ac_cv_host
3501shift
3502host_cpu=$1
3503host_vendor=$2
3504shift; shift
3505# Remember, the first character of IFS is used to create $*,
3506# except with old shells:
3507host_os=$*
3508IFS=$ac_save_IFS
3509case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3510
3511
cristy8b350f62009-11-15 23:12:43 +00003512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003513$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003514if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003515 $as_echo_n "(cached) " >&6
3516else
3517 if test "x$target_alias" = x; then
3518 ac_cv_target=$ac_cv_host
3519else
3520 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003521 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003522fi
3523
3524fi
cristy8b350f62009-11-15 23:12:43 +00003525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003526$as_echo "$ac_cv_target" >&6; }
3527case $ac_cv_target in
3528*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003529*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003530esac
3531target=$ac_cv_target
3532ac_save_IFS=$IFS; IFS='-'
3533set x $ac_cv_target
3534shift
3535target_cpu=$1
3536target_vendor=$2
3537shift; shift
3538# Remember, the first character of IFS is used to create $*,
3539# except with old shells:
3540target_os=$*
3541IFS=$ac_save_IFS
3542case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3543
3544
3545# The aliases save the names the user supplied, while $host etc.
3546# will get canonicalized.
3547test -n "$target_alias" &&
3548 test "$program_prefix$program_suffix$program_transform_name" = \
3549 NONENONEs,x,x, &&
3550 program_prefix=${target_alias}-
3551
cristy837d6dc2010-02-27 01:16:57 +00003552
3553
3554
3555
cristy3225a072010-04-17 01:47:28 +00003556MAGICK_TARGET_CPU=$target_cpu
3557
3558
3559MAGICK_TARGET_VENDOR=$target_vendor
3560
3561
3562MAGICK_TARGET_OS=$target_os
3563
3564
cristy3ed852e2009-09-05 21:47:34 +00003565# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003566MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3567
3568MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3569
cristy3ed852e2009-09-05 21:47:34 +00003570
3571
3572# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3574$as_echo_n "checking whether build environment is sane... " >&6; }
3575# Just in case
3576sleep 1
3577echo timestamp > conftest.file
3578# Reject unsafe characters in $srcdir or the absolute working directory
3579# name. Accept space and tab only in the latter.
3580am_lf='
3581'
3582case `pwd` in
3583 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003584 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003585esac
3586case $srcdir in
3587 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003589esac
cristy3ed852e2009-09-05 21:47:34 +00003590
cristy73bd4a52010-10-05 11:24:23 +00003591# Do `set' in a subshell so we don't clobber the current shell's
3592# arguments. Must try -L first in case configure is actually a
3593# symlink; some systems play weird games with the mod time of symlinks
3594# (eg FreeBSD returns the mod time of the symlink's containing
3595# directory).
3596if (
3597 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3598 if test "$*" = "X"; then
3599 # -L didn't work.
3600 set X `ls -t "$srcdir/configure" conftest.file`
3601 fi
3602 rm -f conftest.file
3603 if test "$*" != "X $srcdir/configure conftest.file" \
3604 && test "$*" != "X conftest.file $srcdir/configure"; then
3605
3606 # If neither matched, then we have a broken ls. This can happen
3607 # if, for instance, CONFIG_SHELL is bash and it inherits a
3608 # broken ls alias from the environment. This has actually
3609 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003610 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003611alias in your environment" "$LINENO" 5
3612 fi
3613
3614 test "$2" = conftest.file
3615 )
3616then
3617 # Ok.
3618 :
3619else
cristy98dddb52010-11-04 00:30:15 +00003620 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003621Check your system clock" "$LINENO" 5
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3624$as_echo "yes" >&6; }
3625
3626am__api_version='1.11'
3627
3628# Find a good install program. We prefer a C program (faster),
3629# so one script is as good as another. But avoid the broken or
3630# incompatible versions:
3631# SysV /etc/install, /usr/sbin/install
3632# SunOS /usr/etc/install
3633# IRIX /sbin/install
3634# AIX /bin/install
3635# AmigaOS /C/install, which installs bootblocks on floppy discs
3636# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3637# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3638# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3639# OS/2's system install, which has a completely different semantic
3640# ./install, which can be erroneously created by make from ./install.sh.
3641# Reject install programs that cannot install multiple files.
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3643$as_echo_n "checking for a BSD-compatible install... " >&6; }
3644if test -z "$INSTALL"; then
3645if test "${ac_cv_path_install+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 # Account for people who put trailing slashes in PATH elements.
3654case $as_dir/ in #((
3655 ./ | .// | /[cC]/* | \
3656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3658 /usr/ucb/* ) ;;
3659 *)
3660 # OSF1 and SCO ODT 3.0 have their own names for install.
3661 # Don't use installbsd from OSF since it installs stuff as root
3662 # by default.
3663 for ac_prog in ginstall scoinst install; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3666 if test $ac_prog = install &&
3667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3668 # AIX install. It has an incompatible calling convention.
3669 :
3670 elif test $ac_prog = install &&
3671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3672 # program-specific install script used by HP pwplus--don't use.
3673 :
3674 else
3675 rm -rf conftest.one conftest.two conftest.dir
3676 echo one > conftest.one
3677 echo two > conftest.two
3678 mkdir conftest.dir
3679 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3680 test -s conftest.one && test -s conftest.two &&
3681 test -s conftest.dir/conftest.one &&
3682 test -s conftest.dir/conftest.two
3683 then
3684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3685 break 3
3686 fi
3687 fi
3688 fi
3689 done
3690 done
3691 ;;
3692esac
3693
3694 done
3695IFS=$as_save_IFS
3696
3697rm -rf conftest.one conftest.two conftest.dir
3698
3699fi
3700 if test "${ac_cv_path_install+set}" = set; then
3701 INSTALL=$ac_cv_path_install
3702 else
3703 # As a last resort, use the slow shell script. Don't cache a
3704 # value for INSTALL within a source directory, because that will
3705 # break other packages using the cache if that directory is
3706 # removed, or if the value is a relative name.
3707 INSTALL=$ac_install_sh
3708 fi
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3711$as_echo "$INSTALL" >&6; }
3712
3713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3714# It thinks the first close brace ends the variable substitution.
3715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3716
3717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3718
3719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3720
3721test "$program_prefix" != NONE &&
3722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3723# Use a double $ so make ignores it.
3724test "$program_suffix" != NONE &&
3725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3726# Double any \ or $.
3727# By default was `s,x,x', remove it if useless.
3728ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3729program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3730
3731# expand $ac_aux_dir to an absolute path
3732am_aux_dir=`cd $ac_aux_dir && pwd`
3733
3734if test x"${MISSING+set}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3738 *)
3739 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3740 esac
3741fi
3742# Use eval to expand $SHELL
3743if eval "$MISSING --run true"; then
3744 am_missing_run="$MISSING --run "
3745else
3746 am_missing_run=
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3748$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3749fi
3750
3751if test x"${install_sh}" != xset; then
3752 case $am_aux_dir in
3753 *\ * | *\ *)
3754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3755 *)
3756 install_sh="\${SHELL} $am_aux_dir/install-sh"
3757 esac
3758fi
3759
3760# Installed binaries are usually stripped using `strip' when the user
3761# run `make install-strip'. However `strip' might not be the right
3762# tool to use in cross-compilation environments, therefore Automake
3763# will honor the `STRIP' environment variable to overrule this program.
3764if test "$cross_compiling" != no; then
3765 if test -n "$ac_tool_prefix"; then
3766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3767set dummy ${ac_tool_prefix}strip; ac_word=$2
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769$as_echo_n "checking for $ac_word... " >&6; }
3770if test "${ac_cv_prog_STRIP+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 if test -n "$STRIP"; then
3774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787done
3788 done
3789IFS=$as_save_IFS
3790
3791fi
3792fi
3793STRIP=$ac_cv_prog_STRIP
3794if test -n "$STRIP"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3796$as_echo "$STRIP" >&6; }
3797else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800fi
3801
3802
3803fi
3804if test -z "$ac_cv_prog_STRIP"; then
3805 ac_ct_STRIP=$STRIP
3806 # Extract the first word of "strip", so it can be a program name with args.
3807set dummy strip; ac_word=$2
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809$as_echo_n "checking for $ac_word... " >&6; }
3810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812else
3813 if test -n "$ac_ct_STRIP"; then
3814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_ac_ct_STRIP="strip"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827done
3828 done
3829IFS=$as_save_IFS
3830
3831fi
3832fi
3833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3834if test -n "$ac_ct_STRIP"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3836$as_echo "$ac_ct_STRIP" >&6; }
3837else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
3840fi
3841
3842 if test "x$ac_ct_STRIP" = x; then
3843 STRIP=":"
3844 else
3845 case $cross_compiling:$ac_tool_warned in
3846yes:)
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849ac_tool_warned=yes ;;
3850esac
3851 STRIP=$ac_ct_STRIP
3852 fi
3853else
3854 STRIP="$ac_cv_prog_STRIP"
3855fi
3856
3857fi
3858INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3859
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3861$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3862if test -z "$MKDIR_P"; then
3863 if test "${ac_cv_path_mkdir+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in mkdir gmkdir; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3874 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3875 'mkdir (GNU coreutils) '* | \
3876 'mkdir (coreutils) '* | \
3877 'mkdir (fileutils) '4.1*)
3878 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3879 break 3;;
3880 esac
3881 done
3882 done
3883 done
3884IFS=$as_save_IFS
3885
3886fi
3887
3888 test -d ./--version && rmdir ./--version
3889 if test "${ac_cv_path_mkdir+set}" = set; then
3890 MKDIR_P="$ac_cv_path_mkdir -p"
3891 else
3892 # As a last resort, use the slow shell script. Don't cache a
3893 # value for MKDIR_P within a source directory, because that will
3894 # break other packages using the cache if that directory is
3895 # removed, or if the value is a relative name.
3896 MKDIR_P="$ac_install_sh -d"
3897 fi
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3900$as_echo "$MKDIR_P" >&6; }
3901
3902mkdir_p="$MKDIR_P"
3903case $mkdir_p in
3904 [\\/$]* | ?:[\\/]*) ;;
3905 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3906esac
3907
3908for ac_prog in gawk mawk nawk awk
3909do
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911set dummy $ac_prog; ac_word=$2
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
3914if test "${ac_cv_prog_AWK+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916else
3917 if test -n "$AWK"; then
3918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 ac_cv_prog_AWK="$ac_prog"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931done
3932 done
3933IFS=$as_save_IFS
3934
3935fi
3936fi
3937AWK=$ac_cv_prog_AWK
3938if test -n "$AWK"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3940$as_echo "$AWK" >&6; }
3941else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
3944fi
3945
3946
3947 test -n "$AWK" && break
3948done
3949
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3952set x ${MAKE-make}
3953ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00003954if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00003955 $as_echo_n "(cached) " >&6
3956else
3957 cat >conftest.make <<\_ACEOF
3958SHELL = /bin/sh
3959all:
3960 @echo '@@@%%%=$(MAKE)=@@@%%%'
3961_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003962# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003963case `${MAKE-make} -f conftest.make 2>/dev/null` in
3964 *@@@%%%=?*=@@@%%%*)
3965 eval ac_cv_prog_make_${ac_make}_set=yes;;
3966 *)
3967 eval ac_cv_prog_make_${ac_make}_set=no;;
3968esac
3969rm -f conftest.make
3970fi
3971if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973$as_echo "yes" >&6; }
3974 SET_MAKE=
3975else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977$as_echo "no" >&6; }
3978 SET_MAKE="MAKE=${MAKE-make}"
3979fi
3980
3981rm -rf .tst 2>/dev/null
3982mkdir .tst 2>/dev/null
3983if test -d .tst; then
3984 am__leading_dot=.
3985else
3986 am__leading_dot=_
3987fi
3988rmdir .tst 2>/dev/null
3989
3990if test "`cd $srcdir && pwd`" != "`pwd`"; then
3991 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3992 # is not polluted with repeated "-I."
3993 am__isrc=' -I$(srcdir)'
3994 # test to see if srcdir already configured
3995 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003996 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003997 fi
3998fi
3999
4000# test whether we have cygpath
4001if test -z "$CYGPATH_W"; then
4002 if (cygpath --version) >/dev/null 2>/dev/null; then
4003 CYGPATH_W='cygpath -w'
4004 else
4005 CYGPATH_W=echo
4006 fi
4007fi
4008
4009
4010# Define the identity of the package.
4011 PACKAGE=$PACKAGE_NAME
4012 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4013
4014
4015# Some tools Automake needs.
4016
4017ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4018
4019
4020AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4021
4022
4023AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4024
4025
4026AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4027
4028
4029MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4030
4031# We need awk for the "check" target. The system "awk" is bad on
4032# some platforms.
4033# Always define AMTAR for backward compatibility.
4034
4035AMTAR=${AMTAR-"${am_missing_run}tar"}
4036
4037am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4038
4039
4040
4041
4042
cristy3ed852e2009-09-05 21:47:34 +00004043
4044# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004045# Check whether --enable-silent-rules was given.
4046if test "${enable_silent_rules+set}" = set; then :
4047 enableval=$enable_silent_rules;
4048fi
4049
4050case $enable_silent_rules in
4051yes) AM_DEFAULT_VERBOSITY=0;;
4052no) AM_DEFAULT_VERBOSITY=1;;
4053*) AM_DEFAULT_VERBOSITY=0;;
4054esac
4055AM_BACKSLASH='\'
4056
cristy3ed852e2009-09-05 21:47:34 +00004057
4058MAGICK_LIB_VERSION="0x"
4059if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4060 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4061fi
4062MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4063if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4064 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4065fi
4066MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4067if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4068 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4069fi
4070MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4071
4072
4073# Definition used to define MagickLibVersionText in version.h
4074MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4075
4076
4077# Definition used to define MagickLibVersionNumber in version.h
4078MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4079
4080
4081# Regenerate config.status if ChangeLog or version.sh is updated.
4082CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4083
4084
4085PERLMAINCC=$CC
4086
4087MAGICK_CFLAGS=''
4088MAGICK_CPPFLAGS=$CPPFLAGS_USER
4089MAGICK_PCFLAGS=$CPPFLAGS_USER
4090MAGICK_LDFLAGS=''
4091MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004092MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004093
4094#
4095# Evaluate shell variable equivalents to Makefile directory variables
4096#
4097if test "x$prefix" = xNONE; then
4098 prefix=$ac_default_prefix
4099fi
4100# Let make expand exec_prefix.
4101if test "x$exec_prefix" = xNONE; then
4102 exec_prefix='${prefix}'
4103fi
4104
4105#
4106eval "eval PREFIX_DIR=${prefix}"
4107
4108eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4109
4110eval "eval BIN_DIR=$bindir"
4111
4112eval "eval SBIN_DIR=$sbindir"
4113
4114eval "eval LIBEXEC_DIR=$libexecdir"
4115
4116eval "eval DATA_DIR=$datadir"
4117
4118eval "eval SYSCONF_DIR=$sysconfdir"
4119
4120eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4121
4122eval "eval LOCALSTATE_DIR=$localstatedir"
4123
4124eval "eval LIB_DIR=$libdir"
4125
4126eval "eval INCLUDE_DIR=$includedir"
4127
4128eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4129
4130eval "eval INFO_DIR=$infodir"
4131
4132eval "eval MAN_DIR=$mandir"
4133
4134
4135# Get full paths to source and build directories
4136srcdirfull="`cd $srcdir && pwd`"
4137builddir="`pwd`"
4138
4139#
4140# Compute variables useful for running uninstalled software.
4141#
4142MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4143MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4144MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4145MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4146DIRSEP=':'
4147case "${build_os}" in
4148 mingw* )
4149 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4150 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4151 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4152 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4153 DIRSEP=';'
4154 ;;
4155esac
4156case "${host_os}" in
4157 mingw* )
4158 DIRSEP=';'
4159 ;;
4160esac
4161
4162
4163
4164
4165
4166
cristya0b81c32010-01-22 02:54:33 +00004167
4168#
4169# Enable OS features.
4170#
cristy73bd4a52010-10-05 11:24:23 +00004171DEPDIR="${am__leading_dot}deps"
4172
4173ac_config_commands="$ac_config_commands depfiles"
4174
4175
4176am_make=${MAKE-make}
4177cat > confinc << 'END'
4178am__doit:
4179 @echo this is the am__doit target
4180.PHONY: am__doit
4181END
4182# If we don't find an include directive, just comment out the code.
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4184$as_echo_n "checking for style of include used by $am_make... " >&6; }
4185am__include="#"
4186am__quote=
4187_am_result=none
4188# First try GNU make style include.
4189echo "include confinc" > confmf
4190# Ignore all kinds of additional output from `make'.
4191case `$am_make -s -f confmf 2> /dev/null` in #(
4192*the\ am__doit\ target*)
4193 am__include=include
4194 am__quote=
4195 _am_result=GNU
4196 ;;
4197esac
4198# Now try BSD make style include.
4199if test "$am__include" = "#"; then
4200 echo '.include "confinc"' > confmf
4201 case `$am_make -s -f confmf 2> /dev/null` in #(
4202 *the\ am__doit\ target*)
4203 am__include=.include
4204 am__quote="\""
4205 _am_result=BSD
4206 ;;
4207 esac
4208fi
4209
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4212$as_echo "$_am_result" >&6; }
4213rm -f confinc confmf
4214
4215# Check whether --enable-dependency-tracking was given.
4216if test "${enable_dependency_tracking+set}" = set; then :
4217 enableval=$enable_dependency_tracking;
4218fi
4219
4220if test "x$enable_dependency_tracking" != xno; then
4221 am_depcomp="$ac_aux_dir/depcomp"
4222 AMDEPBACKSLASH='\'
4223fi
4224 if test "x$enable_dependency_tracking" != xno; then
4225 AMDEP_TRUE=
4226 AMDEP_FALSE='#'
4227else
4228 AMDEP_TRUE='#'
4229 AMDEP_FALSE=
4230fi
4231
4232
cristy3ed852e2009-09-05 21:47:34 +00004233ac_ext=c
4234ac_cpp='$CPP $CPPFLAGS'
4235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4240set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004242$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004243if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$CC"; then
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004258 break 2
4259 fi
4260done
cristy8b350f62009-11-15 23:12:43 +00004261 done
cristy3ed852e2009-09-05 21:47:34 +00004262IFS=$as_save_IFS
4263
4264fi
4265fi
4266CC=$ac_cv_prog_CC
4267if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004269$as_echo "$CC" >&6; }
4270else
cristy8b350f62009-11-15 23:12:43 +00004271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004272$as_echo "no" >&6; }
4273fi
4274
4275
4276fi
4277if test -z "$ac_cv_prog_CC"; then
4278 ac_ct_CC=$CC
4279 # Extract the first word of "gcc", so it can be a program name with args.
4280set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004282$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004283if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004284 $as_echo_n "(cached) " >&6
4285else
4286 if test -n "$ac_ct_CC"; then
4287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4288else
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004298 break 2
4299 fi
4300done
cristy8b350f62009-11-15 23:12:43 +00004301 done
cristy3ed852e2009-09-05 21:47:34 +00004302IFS=$as_save_IFS
4303
4304fi
4305fi
4306ac_ct_CC=$ac_cv_prog_ac_ct_CC
4307if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004309$as_echo "$ac_ct_CC" >&6; }
4310else
cristy8b350f62009-11-15 23:12:43 +00004311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo "no" >&6; }
4313fi
4314
4315 if test "x$ac_ct_CC" = x; then
4316 CC=""
4317 else
4318 case $cross_compiling:$ac_tool_warned in
4319yes:)
cristy8b350f62009-11-15 23:12:43 +00004320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322ac_tool_warned=yes ;;
4323esac
4324 CC=$ac_ct_CC
4325 fi
4326else
4327 CC="$ac_cv_prog_CC"
4328fi
4329
4330if test -z "$CC"; then
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4333set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004335$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004336if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004337 $as_echo_n "(cached) " >&6
4338else
4339 if test -n "$CC"; then
4340 ac_cv_prog_CC="$CC" # Let the user override the test.
4341else
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351 break 2
4352 fi
4353done
cristy8b350f62009-11-15 23:12:43 +00004354 done
cristy3ed852e2009-09-05 21:47:34 +00004355IFS=$as_save_IFS
4356
4357fi
4358fi
4359CC=$ac_cv_prog_CC
4360if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004362$as_echo "$CC" >&6; }
4363else
cristy8b350f62009-11-15 23:12:43 +00004364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004365$as_echo "no" >&6; }
4366fi
4367
4368
4369 fi
4370fi
4371if test -z "$CC"; then
4372 # Extract the first word of "cc", so it can be a program name with args.
4373set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004376if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004377 $as_echo_n "(cached) " >&6
4378else
4379 if test -n "$CC"; then
4380 ac_cv_prog_CC="$CC" # Let the user override the test.
4381else
4382 ac_prog_rejected=no
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4391 ac_prog_rejected=yes
4392 continue
4393 fi
4394 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396 break 2
4397 fi
4398done
cristy8b350f62009-11-15 23:12:43 +00004399 done
cristy3ed852e2009-09-05 21:47:34 +00004400IFS=$as_save_IFS
4401
4402if test $ac_prog_rejected = yes; then
4403 # We found a bogon in the path, so make sure we never use it.
4404 set dummy $ac_cv_prog_CC
4405 shift
4406 if test $# != 0; then
4407 # We chose a different compiler from the bogus one.
4408 # However, it has the same basename, so the bogon will be chosen
4409 # first if we set CC to just the basename; use the full file name.
4410 shift
4411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4412 fi
4413fi
4414fi
4415fi
4416CC=$ac_cv_prog_CC
4417if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419$as_echo "$CC" >&6; }
4420else
cristy8b350f62009-11-15 23:12:43 +00004421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004422$as_echo "no" >&6; }
4423fi
4424
4425
4426fi
4427if test -z "$CC"; then
4428 if test -n "$ac_tool_prefix"; then
4429 for ac_prog in cl.exe
4430 do
4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004435if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004436 $as_echo_n "(cached) " >&6
4437else
4438 if test -n "$CC"; then
4439 ac_cv_prog_CC="$CC" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450 break 2
4451 fi
4452done
cristy8b350f62009-11-15 23:12:43 +00004453 done
cristy3ed852e2009-09-05 21:47:34 +00004454IFS=$as_save_IFS
4455
4456fi
4457fi
4458CC=$ac_cv_prog_CC
4459if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo "$CC" >&6; }
4462else
cristy8b350f62009-11-15 23:12:43 +00004463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464$as_echo "no" >&6; }
4465fi
4466
4467
4468 test -n "$CC" && break
4469 done
4470fi
4471if test -z "$CC"; then
4472 ac_ct_CC=$CC
4473 for ac_prog in cl.exe
4474do
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004480 $as_echo_n "(cached) " >&6
4481else
4482 if test -n "$ac_ct_CC"; then
4483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004494 break 2
4495 fi
4496done
cristy8b350f62009-11-15 23:12:43 +00004497 done
cristy3ed852e2009-09-05 21:47:34 +00004498IFS=$as_save_IFS
4499
4500fi
4501fi
4502ac_ct_CC=$ac_cv_prog_ac_ct_CC
4503if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$ac_ct_CC" >&6; }
4506else
cristy8b350f62009-11-15 23:12:43 +00004507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004508$as_echo "no" >&6; }
4509fi
4510
4511
4512 test -n "$ac_ct_CC" && break
4513done
4514
4515 if test "x$ac_ct_CC" = x; then
4516 CC=""
4517 else
4518 case $cross_compiling:$ac_tool_warned in
4519yes:)
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4522ac_tool_warned=yes ;;
4523esac
4524 CC=$ac_ct_CC
4525 fi
4526fi
4527
4528fi
4529
4530
cristy8b350f62009-11-15 23:12:43 +00004531test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004533as_fn_error $? "no acceptable C compiler found in \$PATH
4534See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004535
4536# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004537$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004538set X $ac_compile
4539ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004540for ac_option in --version -v -V -qversion; do
4541 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
cristy8b350f62009-11-15 23:12:43 +00004546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547$as_echo "$ac_try_echo"; } >&5
4548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004549 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004550 if test -s conftest.err; then
4551 sed '10a\
4552... rest of stderr output deleted ...
4553 10q' conftest.err >conftest.er1
4554 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004555 fi
cristycd4c5312009-11-22 01:19:08 +00004556 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4558 test $ac_status = 0; }
4559done
cristy3ed852e2009-09-05 21:47:34 +00004560
cristy8b350f62009-11-15 23:12:43 +00004561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004562/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004563
cristy3ed852e2009-09-05 21:47:34 +00004564int
4565main ()
4566{
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004573ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004574# Try to create an executable without -o first, disregard a.out.
4575# It will help us diagnose broken compilers, and finding out an intuition
4576# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4578$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4580
4581# The possible output files:
4582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4583
4584ac_rmfiles=
4585for ac_file in $ac_files
4586do
4587 case $ac_file in
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4590 esac
4591done
4592rm -f $ac_rmfiles
4593
cristy8b350f62009-11-15 23:12:43 +00004594if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004595case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598esac
cristy8b350f62009-11-15 23:12:43 +00004599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004601 (eval "$ac_link_default") 2>&5
4602 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4607# in a Makefile. We should not override ac_cv_exeext if it was cached,
4608# so that the user can short-circuit this test for compilers unknown to
4609# Autoconf.
4610for ac_file in $ac_files ''
4611do
4612 test -f "$ac_file" || continue
4613 case $ac_file in
4614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4615 ;;
4616 [ab].out )
4617 # We found the default executable, but exeext='' is most
4618 # certainly right.
4619 break;;
4620 *.* )
cristy8b350f62009-11-15 23:12:43 +00004621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004622 then :; else
4623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4624 fi
4625 # We set ac_cv_exeext here because the later test for it is not
4626 # safe: cross compilers may not add the suffix if given an `-o'
4627 # argument, so we may need to know it at that point already.
4628 # Even if this section looks crufty: it has the advantage of
4629 # actually working.
4630 break;;
4631 * )
4632 break;;
4633 esac
4634done
4635test "$ac_cv_exeext" = no && ac_cv_exeext=
4636
4637else
4638 ac_file=''
4639fi
cristy8b350f62009-11-15 23:12:43 +00004640if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642$as_echo "no" >&6; }
4643$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644sed 's/^/| /' conftest.$ac_ext >&5
4645
cristy8b350f62009-11-15 23:12:43 +00004646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004648as_fn_error 77 "C compiler cannot create executables
4649See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004650else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4652$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004653fi
cristycd4c5312009-11-22 01:19:08 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4655$as_echo_n "checking for C compiler default output file name... " >&6; }
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4657$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004658ac_exeext=$ac_cv_exeext
4659
cristycd4c5312009-11-22 01:19:08 +00004660rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004661ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004663$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004664if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
cristy8b350f62009-11-15 23:12:43 +00004669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004671 (eval "$ac_link") 2>&5
4672 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4677# work properly (i.e., refer to `conftest.exe'), while it won't with
4678# `rm'.
4679for ac_file in conftest.exe conftest conftest.*; do
4680 test -f "$ac_file" || continue
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4684 break;;
4685 * ) break;;
4686 esac
4687done
4688else
cristy8b350f62009-11-15 23:12:43 +00004689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004691as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4692See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004693fi
cristycd4c5312009-11-22 01:19:08 +00004694rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004696$as_echo "$ac_cv_exeext" >&6; }
4697
4698rm -f conftest.$ac_ext
4699EXEEXT=$ac_cv_exeext
4700ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h. */
4703#include <stdio.h>
4704int
4705main ()
4706{
4707FILE *f = fopen ("conftest.out", "w");
4708 return ferror (f) || fclose (f) != 0;
4709
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714ac_clean_files="$ac_clean_files conftest.out"
4715# Check that the compiler produces executables we can run. If not, either
4716# the compiler is broken, or we cross compile.
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4718$as_echo_n "checking whether we are cross compiling... " >&6; }
4719if test "$cross_compiling" != yes; then
4720 { { ac_try="$ac_link"
4721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
4725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726$as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_link") 2>&5
4728 ac_status=$?
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }
4731 if { ac_try='./conftest$ac_cv_exeext'
4732 { { case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735esac
4736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4737$as_echo "$ac_try_echo"; } >&5
4738 (eval "$ac_try") 2>&5
4739 ac_status=$?
4740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741 test $ac_status = 0; }; }; then
4742 cross_compiling=no
4743 else
4744 if test "$cross_compiling" = maybe; then
4745 cross_compiling=yes
4746 else
4747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004749as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004750If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004751See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004752 fi
4753 fi
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4756$as_echo "$cross_compiling" >&6; }
4757
4758rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4759ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004761$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004762if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004763 $as_echo_n "(cached) " >&6
4764else
cristy8b350f62009-11-15 23:12:43 +00004765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004777if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004778case "(($ac_try" in
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4781esac
cristy8b350f62009-11-15 23:12:43 +00004782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4783$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004784 (eval "$ac_compile") 2>&5
4785 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4787 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004788 for ac_file in conftest.o conftest.obj conftest.*; do
4789 test -f "$ac_file" || continue;
4790 case $ac_file in
4791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4793 break;;
4794 esac
4795done
4796else
4797 $as_echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
4799
cristy8b350f62009-11-15 23:12:43 +00004800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004802as_fn_error $? "cannot compute suffix of object files: cannot compile
4803See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004804fi
cristy3ed852e2009-09-05 21:47:34 +00004805rm -f conftest.$ac_cv_objext conftest.$ac_ext
4806fi
cristy8b350f62009-11-15 23:12:43 +00004807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808$as_echo "$ac_cv_objext" >&6; }
4809OBJEXT=$ac_cv_objext
4810ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004812$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004813if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004814 $as_echo_n "(cached) " >&6
4815else
cristy8b350f62009-11-15 23:12:43 +00004816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004817/* end confdefs.h. */
4818
4819int
4820main ()
4821{
4822#ifndef __GNUC__
4823 choke me
4824#endif
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004830if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004831 ac_compiler_gnu=yes
4832else
cristy8b350f62009-11-15 23:12:43 +00004833 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004834fi
cristy3ed852e2009-09-05 21:47:34 +00004835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836ac_cv_c_compiler_gnu=$ac_compiler_gnu
4837
4838fi
cristy8b350f62009-11-15 23:12:43 +00004839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4841if test $ac_compiler_gnu = yes; then
4842 GCC=yes
4843else
4844 GCC=
4845fi
4846ac_test_CFLAGS=${CFLAGS+set}
4847ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004849$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004850if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 $as_echo_n "(cached) " >&6
4852else
4853 ac_save_c_werror_flag=$ac_c_werror_flag
4854 ac_c_werror_flag=yes
4855 ac_cv_prog_cc_g=no
4856 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004858/* end confdefs.h. */
4859
4860int
4861main ()
4862{
4863
4864 ;
4865 return 0;
4866}
4867_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004868if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 ac_cv_prog_cc_g=yes
4870else
cristy8b350f62009-11-15 23:12:43 +00004871 CFLAGS=""
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004884
cristy8b350f62009-11-15 23:12:43 +00004885else
4886 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004887 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004889/* end confdefs.h. */
4890
4891int
4892main ()
4893{
4894
4895 ;
4896 return 0;
4897}
4898_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004899if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004900 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004901fi
cristy3ed852e2009-09-05 21:47:34 +00004902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903fi
cristy3ed852e2009-09-05 21:47:34 +00004904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905fi
cristy3ed852e2009-09-05 21:47:34 +00004906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 ac_c_werror_flag=$ac_save_c_werror_flag
4908fi
cristy8b350f62009-11-15 23:12:43 +00004909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "$ac_cv_prog_cc_g" >&6; }
4911if test "$ac_test_CFLAGS" = set; then
4912 CFLAGS=$ac_save_CFLAGS
4913elif test $ac_cv_prog_cc_g = yes; then
4914 if test "$GCC" = yes; then
4915 CFLAGS="-g -O2"
4916 else
4917 CFLAGS="-g"
4918 fi
4919else
4920 if test "$GCC" = yes; then
4921 CFLAGS="-O2"
4922 else
4923 CFLAGS=
4924 fi
4925fi
cristy8b350f62009-11-15 23:12:43 +00004926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004927$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004928if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004929 $as_echo_n "(cached) " >&6
4930else
4931 ac_cv_prog_cc_c89=no
4932ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004934/* end confdefs.h. */
4935#include <stdarg.h>
4936#include <stdio.h>
4937#include <sys/types.h>
4938#include <sys/stat.h>
4939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4940struct buf { int x; };
4941FILE * (*rcsopen) (struct buf *, struct stat *, int);
4942static char *e (p, i)
4943 char **p;
4944 int i;
4945{
4946 return p[i];
4947}
4948static char *f (char * (*g) (char **, int), char **p, ...)
4949{
4950 char *s;
4951 va_list v;
4952 va_start (v,p);
4953 s = g (p, va_arg (v,int));
4954 va_end (v);
4955 return s;
4956}
4957
4958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4959 function prototypes and stuff, but not '\xHH' hex character constants.
4960 These don't provoke an error unfortunately, instead are silently treated
4961 as 'x'. The following induces an error, until -std is added to get
4962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4963 array size at least. It's necessary to write '\x00'==0 to get something
4964 that's true only with -std. */
4965int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4966
4967/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4968 inside strings and character constants. */
4969#define FOO(x) 'x'
4970int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4971
4972int test (int i, double x);
4973struct s1 {int (*f) (int a);};
4974struct s2 {int (*f) (double a);};
4975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4976int argc;
4977char **argv;
4978int
4979main ()
4980{
4981return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4982 ;
4983 return 0;
4984}
4985_ACEOF
4986for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4988do
4989 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004990 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004991 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004992fi
cristy3ed852e2009-09-05 21:47:34 +00004993rm -f core conftest.err conftest.$ac_objext
4994 test "x$ac_cv_prog_cc_c89" != "xno" && break
4995done
4996rm -f conftest.$ac_ext
4997CC=$ac_save_CC
4998
4999fi
5000# AC_CACHE_VAL
5001case "x$ac_cv_prog_cc_c89" in
5002 x)
cristy8b350f62009-11-15 23:12:43 +00005003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005004$as_echo "none needed" >&6; } ;;
5005 xno)
cristy8b350f62009-11-15 23:12:43 +00005006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005007$as_echo "unsupported" >&6; } ;;
5008 *)
5009 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005011$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5012esac
cristy8b350f62009-11-15 23:12:43 +00005013if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005014
cristy8b350f62009-11-15 23:12:43 +00005015fi
cristy3ed852e2009-09-05 21:47:34 +00005016
5017ac_ext=c
5018ac_cpp='$CPP $CPPFLAGS'
5019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005022
cristy73bd4a52010-10-05 11:24:23 +00005023depcc="$CC" am_compiler_list=
5024
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5026$as_echo_n "checking dependency style of $depcc... " >&6; }
5027if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029else
5030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5031 # We make a subdir and do the tests there. Otherwise we can end up
5032 # making bogus files that we don't know about and never remove. For
5033 # instance it was reported that on HP-UX the gcc test will end up
5034 # making a dummy file named `D' -- because `-MD' means `put the output
5035 # in D'.
5036 mkdir conftest.dir
5037 # Copy depcomp to subdir because otherwise we won't find it if we're
5038 # using a relative directory.
5039 cp "$am_depcomp" conftest.dir
5040 cd conftest.dir
5041 # We will build objects and dependencies in a subdirectory because
5042 # it helps to detect inapplicable dependency modes. For instance
5043 # both Tru64's cc and ICC support -MD to output dependencies as a
5044 # side effect of compilation, but ICC will put the dependencies in
5045 # the current directory while Tru64 will put them in the object
5046 # directory.
5047 mkdir sub
5048
5049 am_cv_CC_dependencies_compiler_type=none
5050 if test "$am_compiler_list" = ""; then
5051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5052 fi
5053 am__universal=false
5054 case " $depcc " in #(
5055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5056 esac
5057
5058 for depmode in $am_compiler_list; do
5059 # Setup a source with many dependencies, because some compilers
5060 # like to wrap large dependency lists on column 80 (with \), and
5061 # we should not choose a depcomp mode which is confused by this.
5062 #
5063 # We need to recreate these files for each test, as the compiler may
5064 # overwrite some of them when testing with obscure command lines.
5065 # This happens at least with the AIX C compiler.
5066 : > sub/conftest.c
5067 for i in 1 2 3 4 5 6; do
5068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5070 # Solaris 8's {/usr,}/bin/sh.
5071 touch sub/conftst$i.h
5072 done
5073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5074
5075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5076 # mode. It turns out that the SunPro C++ compiler does not properly
5077 # handle `-M -o', and we need to detect this. Also, some Intel
5078 # versions had trouble with output in subdirs
5079 am__obj=sub/conftest.${OBJEXT-o}
5080 am__minus_obj="-o $am__obj"
5081 case $depmode in
5082 gcc)
5083 # This depmode causes a compiler race in universal mode.
5084 test "$am__universal" = false || continue
5085 ;;
5086 nosideeffect)
5087 # after this tag, mechanisms are not by side-effect, so they'll
5088 # only be used when explicitly requested
5089 if test "x$enable_dependency_tracking" = xyes; then
5090 continue
5091 else
5092 break
5093 fi
5094 ;;
5095 msvisualcpp | msvcmsys)
5096 # This compiler won't grok `-c -o', but also, the minuso test has
5097 # not run yet. These depmodes are late enough in the game, and
5098 # so weak that their functioning should not be impacted.
5099 am__obj=conftest.${OBJEXT-o}
5100 am__minus_obj=
5101 ;;
5102 none) break ;;
5103 esac
5104 if depmode=$depmode \
5105 source=sub/conftest.c object=$am__obj \
5106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5108 >/dev/null 2>conftest.err &&
5109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5113 # icc doesn't choke on unknown options, it will just issue warnings
5114 # or remarks (even with -Werror). So we grep stderr for any message
5115 # that says an option was ignored or not supported.
5116 # When given -MP, icc 7.0 and 7.1 complain thusly:
5117 # icc: Command line warning: ignoring option '-M'; no argument required
5118 # The diagnosis changed in icc 8.0:
5119 # icc: Command line remark: option '-MP' not supported
5120 if (grep 'ignoring option' conftest.err ||
5121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5122 am_cv_CC_dependencies_compiler_type=$depmode
5123 break
5124 fi
5125 fi
5126 done
5127
5128 cd ..
5129 rm -rf conftest.dir
5130else
5131 am_cv_CC_dependencies_compiler_type=none
5132fi
5133
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5136$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5138
5139 if
5140 test "x$enable_dependency_tracking" != xno \
5141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5142 am__fastdepCC_TRUE=
5143 am__fastdepCC_FALSE='#'
5144else
5145 am__fastdepCC_TRUE='#'
5146 am__fastdepCC_FALSE=
5147fi
5148
5149
cristy3ed852e2009-09-05 21:47:34 +00005150
cristya0b81c32010-01-22 02:54:33 +00005151ac_ext=c
5152ac_cpp='$CPP $CPPFLAGS'
5153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5157$as_echo_n "checking how to run the C preprocessor... " >&6; }
5158# On Suns, sometimes $CPP names a directory.
5159if test -n "$CPP" && test -d "$CPP"; then
5160 CPP=
5161fi
5162if test -z "$CPP"; then
5163 if test "${ac_cv_prog_CPP+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165else
5166 # Double quotes because CPP needs to be expanded
5167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5168 do
5169 ac_preproc_ok=false
5170for ac_c_preproc_warn_flag in '' yes
5171do
5172 # Use a header file that comes with gcc, so configuring glibc
5173 # with a fresh cross-compiler works.
5174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 # <limits.h> exists even on freestanding compilers.
5176 # On the NeXT, cc -E runs the code through the compiler's parser,
5177 # not just through cpp. "Syntax error" is here to catch this case.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h. */
5180#ifdef __STDC__
5181# include <limits.h>
5182#else
5183# include <assert.h>
5184#endif
5185 Syntax error
5186_ACEOF
5187if ac_fn_c_try_cpp "$LINENO"; then :
5188
5189else
5190 # Broken: fails on valid input.
5191continue
5192fi
5193rm -f conftest.err conftest.$ac_ext
5194
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h. */
5199#include <ac_nonexistent.h>
5200_ACEOF
5201if ac_fn_c_try_cpp "$LINENO"; then :
5202 # Broken: success on invalid input.
5203continue
5204else
5205 # Passes both tests.
5206ac_preproc_ok=:
5207break
5208fi
5209rm -f conftest.err conftest.$ac_ext
5210
5211done
5212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213rm -f conftest.err conftest.$ac_ext
5214if $ac_preproc_ok; then :
5215 break
5216fi
5217
5218 done
5219 ac_cv_prog_CPP=$CPP
5220
5221fi
5222 CPP=$ac_cv_prog_CPP
5223else
5224 ac_cv_prog_CPP=$CPP
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5227$as_echo "$CPP" >&6; }
5228ac_preproc_ok=false
5229for ac_c_preproc_warn_flag in '' yes
5230do
5231 # Use a header file that comes with gcc, so configuring glibc
5232 # with a fresh cross-compiler works.
5233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 # <limits.h> exists even on freestanding compilers.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h. */
5239#ifdef __STDC__
5240# include <limits.h>
5241#else
5242# include <assert.h>
5243#endif
5244 Syntax error
5245_ACEOF
5246if ac_fn_c_try_cpp "$LINENO"; then :
5247
5248else
5249 # Broken: fails on valid input.
5250continue
5251fi
5252rm -f conftest.err conftest.$ac_ext
5253
5254 # OK, works on sane cases. Now check whether nonexistent headers
5255 # can be detected and how.
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h. */
5258#include <ac_nonexistent.h>
5259_ACEOF
5260if ac_fn_c_try_cpp "$LINENO"; then :
5261 # Broken: success on invalid input.
5262continue
5263else
5264 # Passes both tests.
5265ac_preproc_ok=:
5266break
5267fi
5268rm -f conftest.err conftest.$ac_ext
5269
5270done
5271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272rm -f conftest.err conftest.$ac_ext
5273if $ac_preproc_ok; then :
5274
5275else
5276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005278as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5279See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005280fi
5281
5282ac_ext=c
5283ac_cpp='$CPP $CPPFLAGS'
5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5290$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5291if test "${ac_cv_path_GREP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293else
5294 if test -z "$GREP"; then
5295 ac_path_GREP_found=false
5296 # Loop through the user's path and test for each of PROGNAME-LIST
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_prog in grep ggrep; do
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5305 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5306# Check for GNU ac_path_GREP and select it if it is found.
5307 # Check for GNU $ac_path_GREP
5308case `"$ac_path_GREP" --version 2>&1` in
5309*GNU*)
5310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5311*)
5312 ac_count=0
5313 $as_echo_n 0123456789 >"conftest.in"
5314 while :
5315 do
5316 cat "conftest.in" "conftest.in" >"conftest.tmp"
5317 mv "conftest.tmp" "conftest.in"
5318 cp "conftest.in" "conftest.nl"
5319 $as_echo 'GREP' >> "conftest.nl"
5320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5322 as_fn_arith $ac_count + 1 && ac_count=$as_val
5323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5324 # Best one so far, save it but keep looking for a better one
5325 ac_cv_path_GREP="$ac_path_GREP"
5326 ac_path_GREP_max=$ac_count
5327 fi
5328 # 10*(2^10) chars as input seems more than enough
5329 test $ac_count -gt 10 && break
5330 done
5331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5332esac
5333
5334 $ac_path_GREP_found && break 3
5335 done
5336 done
5337 done
5338IFS=$as_save_IFS
5339 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005340 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005341 fi
5342else
5343 ac_cv_path_GREP=$GREP
5344fi
5345
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5348$as_echo "$ac_cv_path_GREP" >&6; }
5349 GREP="$ac_cv_path_GREP"
5350
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5353$as_echo_n "checking for egrep... " >&6; }
5354if test "${ac_cv_path_EGREP+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5358 then ac_cv_path_EGREP="$GREP -E"
5359 else
5360 if test -z "$EGREP"; then
5361 ac_path_EGREP_found=false
5362 # Loop through the user's path and test for each of PROGNAME-LIST
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_prog in egrep; do
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5371 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5372# Check for GNU ac_path_EGREP and select it if it is found.
5373 # Check for GNU $ac_path_EGREP
5374case `"$ac_path_EGREP" --version 2>&1` in
5375*GNU*)
5376 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5377*)
5378 ac_count=0
5379 $as_echo_n 0123456789 >"conftest.in"
5380 while :
5381 do
5382 cat "conftest.in" "conftest.in" >"conftest.tmp"
5383 mv "conftest.tmp" "conftest.in"
5384 cp "conftest.in" "conftest.nl"
5385 $as_echo 'EGREP' >> "conftest.nl"
5386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5388 as_fn_arith $ac_count + 1 && ac_count=$as_val
5389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5390 # Best one so far, save it but keep looking for a better one
5391 ac_cv_path_EGREP="$ac_path_EGREP"
5392 ac_path_EGREP_max=$ac_count
5393 fi
5394 # 10*(2^10) chars as input seems more than enough
5395 test $ac_count -gt 10 && break
5396 done
5397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5398esac
5399
5400 $ac_path_EGREP_found && break 3
5401 done
5402 done
5403 done
5404IFS=$as_save_IFS
5405 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005406 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005407 fi
5408else
5409 ac_cv_path_EGREP=$EGREP
5410fi
5411
5412 fi
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5415$as_echo "$ac_cv_path_EGREP" >&6; }
5416 EGREP="$ac_cv_path_EGREP"
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5420$as_echo_n "checking for ANSI C header files... " >&6; }
5421if test "${ac_cv_header_stdc+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h. */
5426#include <stdlib.h>
5427#include <stdarg.h>
5428#include <string.h>
5429#include <float.h>
5430
5431int
5432main ()
5433{
5434
5435 ;
5436 return 0;
5437}
5438_ACEOF
5439if ac_fn_c_try_compile "$LINENO"; then :
5440 ac_cv_header_stdc=yes
5441else
5442 ac_cv_header_stdc=no
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445
5446if test $ac_cv_header_stdc = yes; then
5447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
5450#include <string.h>
5451
5452_ACEOF
5453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "memchr" >/dev/null 2>&1; then :
5455
5456else
5457 ac_cv_header_stdc=no
5458fi
5459rm -f conftest*
5460
5461fi
5462
5463if test $ac_cv_header_stdc = yes; then
5464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h. */
5467#include <stdlib.h>
5468
5469_ACEOF
5470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471 $EGREP "free" >/dev/null 2>&1; then :
5472
5473else
5474 ac_cv_header_stdc=no
5475fi
5476rm -f conftest*
5477
5478fi
5479
5480if test $ac_cv_header_stdc = yes; then
5481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5482 if test "$cross_compiling" = yes; then :
5483 :
5484else
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487#include <ctype.h>
5488#include <stdlib.h>
5489#if ((' ' & 0x0FF) == 0x020)
5490# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5491# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5492#else
5493# define ISLOWER(c) \
5494 (('a' <= (c) && (c) <= 'i') \
5495 || ('j' <= (c) && (c) <= 'r') \
5496 || ('s' <= (c) && (c) <= 'z'))
5497# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5498#endif
5499
5500#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5501int
5502main ()
5503{
5504 int i;
5505 for (i = 0; i < 256; i++)
5506 if (XOR (islower (i), ISLOWER (i))
5507 || toupper (i) != TOUPPER (i))
5508 return 2;
5509 return 0;
5510}
5511_ACEOF
5512if ac_fn_c_try_run "$LINENO"; then :
5513
5514else
5515 ac_cv_header_stdc=no
5516fi
5517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5518 conftest.$ac_objext conftest.beam conftest.$ac_ext
5519fi
5520
5521fi
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5524$as_echo "$ac_cv_header_stdc" >&6; }
5525if test $ac_cv_header_stdc = yes; then
5526
5527$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5528
5529fi
5530
5531# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5532for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5533 inttypes.h stdint.h unistd.h
5534do :
5535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5537"
cristy98dddb52010-11-04 00:30:15 +00005538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005539 cat >>confdefs.h <<_ACEOF
5540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541_ACEOF
5542
5543fi
5544
5545done
5546
5547
5548
5549 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5550if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5551 MINIX=yes
5552else
5553 MINIX=
5554fi
5555
5556
5557 if test "$MINIX" = yes; then
5558
5559$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5560
5561
5562$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5563
5564
5565$as_echo "#define _MINIX 1" >>confdefs.h
5566
5567 fi
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5571$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5572if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h. */
5577
5578# define __EXTENSIONS__ 1
5579 $ac_includes_default
5580int
5581main ()
5582{
5583
5584 ;
5585 return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_compile "$LINENO"; then :
5589 ac_cv_safe_to_define___extensions__=yes
5590else
5591 ac_cv_safe_to_define___extensions__=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594fi
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5596$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5597 test $ac_cv_safe_to_define___extensions__ = yes &&
5598 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5599
5600 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5601
5602 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5603
5604 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5605
5606 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5607
5608
5609
5610# Check for programs
5611ac_ext=c
5612ac_cpp='$CPP $CPPFLAGS'
5613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5618set dummy ${ac_tool_prefix}gcc; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if test "${ac_cv_prog_CC+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 if test -n "$CC"; then
5625 ac_cv_prog_CC="$CC" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638done
5639 done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644CC=$ac_cv_prog_CC
5645if test -n "$CC"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5647$as_echo "$CC" >&6; }
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
5654fi
5655if test -z "$ac_cv_prog_CC"; then
5656 ac_ct_CC=$CC
5657 # Extract the first word of "gcc", so it can be a program name with args.
5658set dummy gcc; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663else
5664 if test -n "$ac_ct_CC"; then
5665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_prog_ac_ct_CC="gcc"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5677 fi
5678done
5679 done
5680IFS=$as_save_IFS
5681
5682fi
5683fi
5684ac_ct_CC=$ac_cv_prog_ac_ct_CC
5685if test -n "$ac_ct_CC"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5687$as_echo "$ac_ct_CC" >&6; }
5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692
5693 if test "x$ac_ct_CC" = x; then
5694 CC=""
5695 else
5696 case $cross_compiling:$ac_tool_warned in
5697yes:)
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700ac_tool_warned=yes ;;
5701esac
5702 CC=$ac_ct_CC
5703 fi
5704else
5705 CC="$ac_cv_prog_CC"
5706fi
5707
5708if test -z "$CC"; then
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5711set dummy ${ac_tool_prefix}cc; ac_word=$2
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713$as_echo_n "checking for $ac_word... " >&6; }
5714if test "${ac_cv_prog_CC+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716else
5717 if test -n "$CC"; then
5718 ac_cv_prog_CC="$CC" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_prog_CC="${ac_tool_prefix}cc"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732 done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737CC=$ac_cv_prog_CC
5738if test -n "$CC"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5740$as_echo "$CC" >&6; }
5741else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746
5747 fi
5748fi
5749if test -z "$CC"; then
5750 # Extract the first word of "cc", so it can be a program name with args.
5751set dummy cc; ac_word=$2
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753$as_echo_n "checking for $ac_word... " >&6; }
5754if test "${ac_cv_prog_CC+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756else
5757 if test -n "$CC"; then
5758 ac_cv_prog_CC="$CC" # Let the user override the test.
5759else
5760 ac_prog_rejected=no
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5769 ac_prog_rejected=yes
5770 continue
5771 fi
5772 ac_cv_prog_CC="cc"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777 done
5778IFS=$as_save_IFS
5779
5780if test $ac_prog_rejected = yes; then
5781 # We found a bogon in the path, so make sure we never use it.
5782 set dummy $ac_cv_prog_CC
5783 shift
5784 if test $# != 0; then
5785 # We chose a different compiler from the bogus one.
5786 # However, it has the same basename, so the bogon will be chosen
5787 # first if we set CC to just the basename; use the full file name.
5788 shift
5789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5790 fi
5791fi
5792fi
5793fi
5794CC=$ac_cv_prog_CC
5795if test -n "$CC"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5797$as_echo "$CC" >&6; }
5798else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803
5804fi
5805if test -z "$CC"; then
5806 if test -n "$ac_tool_prefix"; then
5807 for ac_prog in cl.exe
5808 do
5809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if test "${ac_cv_prog_CC+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 if test -n "$CC"; then
5817 ac_cv_prog_CC="$CC" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830done
5831 done
5832IFS=$as_save_IFS
5833
5834fi
5835fi
5836CC=$ac_cv_prog_CC
5837if test -n "$CC"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5839$as_echo "$CC" >&6; }
5840else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845
5846 test -n "$CC" && break
5847 done
5848fi
5849if test -z "$CC"; then
5850 ac_ct_CC=$CC
5851 for ac_prog in cl.exe
5852do
5853 # Extract the first word of "$ac_prog", so it can be a program name with args.
5854set dummy $ac_prog; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
5857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859else
5860 if test -n "$ac_ct_CC"; then
5861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_ac_ct_CC="$ac_prog"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875 done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880ac_ct_CC=$ac_cv_prog_ac_ct_CC
5881if test -n "$ac_ct_CC"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5883$as_echo "$ac_ct_CC" >&6; }
5884else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889
5890 test -n "$ac_ct_CC" && break
5891done
5892
5893 if test "x$ac_ct_CC" = x; then
5894 CC=""
5895 else
5896 case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902 CC=$ac_ct_CC
5903 fi
5904fi
5905
5906fi
5907
5908
5909test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005911as_fn_error $? "no acceptable C compiler found in \$PATH
5912See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005913
5914# Provide some information about the compiler.
5915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5916set X $ac_compile
5917ac_compiler=$2
5918for ac_option in --version -v -V -qversion; do
5919 { { ac_try="$ac_compiler $ac_option >&5"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5925$as_echo "$ac_try_echo"; } >&5
5926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5927 ac_status=$?
5928 if test -s conftest.err; then
5929 sed '10a\
5930... rest of stderr output deleted ...
5931 10q' conftest.err >conftest.er1
5932 cat conftest.er1 >&5
5933 fi
5934 rm -f conftest.er1 conftest.err
5935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5936 test $ac_status = 0; }
5937done
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5940$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5941if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h. */
5946
5947int
5948main ()
5949{
5950#ifndef __GNUC__
5951 choke me
5952#endif
5953
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"; then :
5959 ac_compiler_gnu=yes
5960else
5961 ac_compiler_gnu=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964ac_cv_c_compiler_gnu=$ac_compiler_gnu
5965
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5968$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5969if test $ac_compiler_gnu = yes; then
5970 GCC=yes
5971else
5972 GCC=
5973fi
5974ac_test_CFLAGS=${CFLAGS+set}
5975ac_save_CFLAGS=$CFLAGS
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5977$as_echo_n "checking whether $CC accepts -g... " >&6; }
5978if test "${ac_cv_prog_cc_g+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980else
5981 ac_save_c_werror_flag=$ac_c_werror_flag
5982 ac_c_werror_flag=yes
5983 ac_cv_prog_cc_g=no
5984 CFLAGS="-g"
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h. */
5987
5988int
5989main ()
5990{
5991
5992 ;
5993 return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997 ac_cv_prog_cc_g=yes
5998else
5999 CFLAGS=""
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h. */
6002
6003int
6004main ()
6005{
6006
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012
6013else
6014 ac_c_werror_flag=$ac_save_c_werror_flag
6015 CFLAGS="-g"
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h. */
6018
6019int
6020main ()
6021{
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_cv_prog_cc_g=yes
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 ac_c_werror_flag=$ac_save_c_werror_flag
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6038$as_echo "$ac_cv_prog_cc_g" >&6; }
6039if test "$ac_test_CFLAGS" = set; then
6040 CFLAGS=$ac_save_CFLAGS
6041elif test $ac_cv_prog_cc_g = yes; then
6042 if test "$GCC" = yes; then
6043 CFLAGS="-g -O2"
6044 else
6045 CFLAGS="-g"
6046 fi
6047else
6048 if test "$GCC" = yes; then
6049 CFLAGS="-O2"
6050 else
6051 CFLAGS=
6052 fi
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6055$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6056if test "${ac_cv_prog_cc_c89+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058else
6059 ac_cv_prog_cc_c89=no
6060ac_save_CC=$CC
6061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062/* end confdefs.h. */
6063#include <stdarg.h>
6064#include <stdio.h>
6065#include <sys/types.h>
6066#include <sys/stat.h>
6067/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6068struct buf { int x; };
6069FILE * (*rcsopen) (struct buf *, struct stat *, int);
6070static char *e (p, i)
6071 char **p;
6072 int i;
6073{
6074 return p[i];
6075}
6076static char *f (char * (*g) (char **, int), char **p, ...)
6077{
6078 char *s;
6079 va_list v;
6080 va_start (v,p);
6081 s = g (p, va_arg (v,int));
6082 va_end (v);
6083 return s;
6084}
6085
6086/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6087 function prototypes and stuff, but not '\xHH' hex character constants.
6088 These don't provoke an error unfortunately, instead are silently treated
6089 as 'x'. The following induces an error, until -std is added to get
6090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6091 array size at least. It's necessary to write '\x00'==0 to get something
6092 that's true only with -std. */
6093int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6094
6095/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6096 inside strings and character constants. */
6097#define FOO(x) 'x'
6098int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6099
6100int test (int i, double x);
6101struct s1 {int (*f) (int a);};
6102struct s2 {int (*f) (double a);};
6103int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6104int argc;
6105char **argv;
6106int
6107main ()
6108{
6109return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6116do
6117 CC="$ac_save_CC $ac_arg"
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 ac_cv_prog_cc_c89=$ac_arg
6120fi
6121rm -f core conftest.err conftest.$ac_objext
6122 test "x$ac_cv_prog_cc_c89" != "xno" && break
6123done
6124rm -f conftest.$ac_ext
6125CC=$ac_save_CC
6126
6127fi
6128# AC_CACHE_VAL
6129case "x$ac_cv_prog_cc_c89" in
6130 x)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6132$as_echo "none needed" >&6; } ;;
6133 xno)
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6135$as_echo "unsupported" >&6; } ;;
6136 *)
6137 CC="$CC $ac_cv_prog_cc_c89"
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6139$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6140esac
6141if test "x$ac_cv_prog_cc_c89" != xno; then :
6142
6143fi
6144
6145ac_ext=c
6146ac_cpp='$CPP $CPPFLAGS'
6147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150
cristy73bd4a52010-10-05 11:24:23 +00006151depcc="$CC" am_compiler_list=
6152
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6154$as_echo_n "checking dependency style of $depcc... " >&6; }
6155if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157else
6158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6159 # We make a subdir and do the tests there. Otherwise we can end up
6160 # making bogus files that we don't know about and never remove. For
6161 # instance it was reported that on HP-UX the gcc test will end up
6162 # making a dummy file named `D' -- because `-MD' means `put the output
6163 # in D'.
6164 mkdir conftest.dir
6165 # Copy depcomp to subdir because otherwise we won't find it if we're
6166 # using a relative directory.
6167 cp "$am_depcomp" conftest.dir
6168 cd conftest.dir
6169 # We will build objects and dependencies in a subdirectory because
6170 # it helps to detect inapplicable dependency modes. For instance
6171 # both Tru64's cc and ICC support -MD to output dependencies as a
6172 # side effect of compilation, but ICC will put the dependencies in
6173 # the current directory while Tru64 will put them in the object
6174 # directory.
6175 mkdir sub
6176
6177 am_cv_CC_dependencies_compiler_type=none
6178 if test "$am_compiler_list" = ""; then
6179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6180 fi
6181 am__universal=false
6182 case " $depcc " in #(
6183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6184 esac
6185
6186 for depmode in $am_compiler_list; do
6187 # Setup a source with many dependencies, because some compilers
6188 # like to wrap large dependency lists on column 80 (with \), and
6189 # we should not choose a depcomp mode which is confused by this.
6190 #
6191 # We need to recreate these files for each test, as the compiler may
6192 # overwrite some of them when testing with obscure command lines.
6193 # This happens at least with the AIX C compiler.
6194 : > sub/conftest.c
6195 for i in 1 2 3 4 5 6; do
6196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6198 # Solaris 8's {/usr,}/bin/sh.
6199 touch sub/conftst$i.h
6200 done
6201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6202
6203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6204 # mode. It turns out that the SunPro C++ compiler does not properly
6205 # handle `-M -o', and we need to detect this. Also, some Intel
6206 # versions had trouble with output in subdirs
6207 am__obj=sub/conftest.${OBJEXT-o}
6208 am__minus_obj="-o $am__obj"
6209 case $depmode in
6210 gcc)
6211 # This depmode causes a compiler race in universal mode.
6212 test "$am__universal" = false || continue
6213 ;;
6214 nosideeffect)
6215 # after this tag, mechanisms are not by side-effect, so they'll
6216 # only be used when explicitly requested
6217 if test "x$enable_dependency_tracking" = xyes; then
6218 continue
6219 else
6220 break
6221 fi
6222 ;;
6223 msvisualcpp | msvcmsys)
6224 # This compiler won't grok `-c -o', but also, the minuso test has
6225 # not run yet. These depmodes are late enough in the game, and
6226 # so weak that their functioning should not be impacted.
6227 am__obj=conftest.${OBJEXT-o}
6228 am__minus_obj=
6229 ;;
6230 none) break ;;
6231 esac
6232 if depmode=$depmode \
6233 source=sub/conftest.c object=$am__obj \
6234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6236 >/dev/null 2>conftest.err &&
6237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6241 # icc doesn't choke on unknown options, it will just issue warnings
6242 # or remarks (even with -Werror). So we grep stderr for any message
6243 # that says an option was ignored or not supported.
6244 # When given -MP, icc 7.0 and 7.1 complain thusly:
6245 # icc: Command line warning: ignoring option '-M'; no argument required
6246 # The diagnosis changed in icc 8.0:
6247 # icc: Command line remark: option '-MP' not supported
6248 if (grep 'ignoring option' conftest.err ||
6249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6250 am_cv_CC_dependencies_compiler_type=$depmode
6251 break
6252 fi
6253 fi
6254 done
6255
6256 cd ..
6257 rm -rf conftest.dir
6258else
6259 am_cv_CC_dependencies_compiler_type=none
6260fi
6261
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6264$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6265CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6266
6267 if
6268 test "x$enable_dependency_tracking" != xno \
6269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6270 am__fastdepCC_TRUE=
6271 am__fastdepCC_FALSE='#'
6272else
6273 am__fastdepCC_TRUE='#'
6274 am__fastdepCC_FALSE=
6275fi
6276
6277
cristy95646052009-11-28 23:05:30 +00006278ac_ext=cpp
6279ac_cpp='$CXXCPP $CPPFLAGS'
6280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6283if test -z "$CXX"; then
6284 if test -n "$CCC"; then
6285 CXX=$CCC
6286 else
6287 if test -n "$ac_tool_prefix"; then
6288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6289 do
6290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293$as_echo_n "checking for $ac_word... " >&6; }
6294if test "${ac_cv_prog_CXX+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6296else
6297 if test -n "$CXX"; then
6298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6299else
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311done
6312 done
6313IFS=$as_save_IFS
6314
6315fi
6316fi
6317CXX=$ac_cv_prog_CXX
6318if test -n "$CXX"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6320$as_echo "$CXX" >&6; }
6321else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
6324fi
6325
6326
6327 test -n "$CXX" && break
6328 done
6329fi
6330if test -z "$CXX"; then
6331 ac_ct_CXX=$CXX
6332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6333do
6334 # Extract the first word of "$ac_prog", so it can be a program name with args.
6335set dummy $ac_prog; ac_word=$2
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337$as_echo_n "checking for $ac_word... " >&6; }
6338if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6339 $as_echo_n "(cached) " >&6
6340else
6341 if test -n "$ac_ct_CXX"; then
6342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_ac_ct_CXX="$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355done
6356 done
6357IFS=$as_save_IFS
6358
6359fi
6360fi
6361ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6362if test -n "$ac_ct_CXX"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6364$as_echo "$ac_ct_CXX" >&6; }
6365else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
6368fi
6369
6370
6371 test -n "$ac_ct_CXX" && break
6372done
6373
6374 if test "x$ac_ct_CXX" = x; then
6375 CXX="g++"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378yes:)
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381ac_tool_warned=yes ;;
6382esac
6383 CXX=$ac_ct_CXX
6384 fi
6385fi
6386
6387 fi
6388fi
6389# Provide some information about the compiler.
6390$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6391set X $ac_compile
6392ac_compiler=$2
6393for ac_option in --version -v -V -qversion; do
6394 { { ac_try="$ac_compiler $ac_option >&5"
6395case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6400$as_echo "$ac_try_echo"; } >&5
6401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6402 ac_status=$?
6403 if test -s conftest.err; then
6404 sed '10a\
6405... rest of stderr output deleted ...
6406 10q' conftest.err >conftest.er1
6407 cat conftest.er1 >&5
6408 fi
6409 rm -f conftest.er1 conftest.err
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }
6412done
6413
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6415$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6416if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h. */
6421
6422int
6423main ()
6424{
6425#ifndef __GNUC__
6426 choke me
6427#endif
6428
6429 ;
6430 return 0;
6431}
6432_ACEOF
6433if ac_fn_cxx_try_compile "$LINENO"; then :
6434 ac_compiler_gnu=yes
6435else
6436 ac_compiler_gnu=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6440
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6443$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6444if test $ac_compiler_gnu = yes; then
6445 GXX=yes
6446else
6447 GXX=
6448fi
6449ac_test_CXXFLAGS=${CXXFLAGS+set}
6450ac_save_CXXFLAGS=$CXXFLAGS
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6452$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6453if test "${ac_cv_prog_cxx_g+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455else
6456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6457 ac_cxx_werror_flag=yes
6458 ac_cv_prog_cxx_g=no
6459 CXXFLAGS="-g"
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h. */
6462
6463int
6464main ()
6465{
6466
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471if ac_fn_cxx_try_compile "$LINENO"; then :
6472 ac_cv_prog_cxx_g=yes
6473else
6474 CXXFLAGS=""
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h. */
6477
6478int
6479main ()
6480{
6481
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486if ac_fn_cxx_try_compile "$LINENO"; then :
6487
6488else
6489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6490 CXXFLAGS="-g"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h. */
6493
6494int
6495main ()
6496{
6497
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502if ac_fn_cxx_try_compile "$LINENO"; then :
6503 ac_cv_prog_cxx_g=yes
6504fi
6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508fi
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6513$as_echo "$ac_cv_prog_cxx_g" >&6; }
6514if test "$ac_test_CXXFLAGS" = set; then
6515 CXXFLAGS=$ac_save_CXXFLAGS
6516elif test $ac_cv_prog_cxx_g = yes; then
6517 if test "$GXX" = yes; then
6518 CXXFLAGS="-g -O2"
6519 else
6520 CXXFLAGS="-g"
6521 fi
6522else
6523 if test "$GXX" = yes; then
6524 CXXFLAGS="-O2"
6525 else
6526 CXXFLAGS=
6527 fi
6528fi
6529ac_ext=c
6530ac_cpp='$CPP $CPPFLAGS'
6531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534
cristy73bd4a52010-10-05 11:24:23 +00006535depcc="$CXX" am_compiler_list=
6536
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6538$as_echo_n "checking dependency style of $depcc... " >&6; }
6539if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6543 # We make a subdir and do the tests there. Otherwise we can end up
6544 # making bogus files that we don't know about and never remove. For
6545 # instance it was reported that on HP-UX the gcc test will end up
6546 # making a dummy file named `D' -- because `-MD' means `put the output
6547 # in D'.
6548 mkdir conftest.dir
6549 # Copy depcomp to subdir because otherwise we won't find it if we're
6550 # using a relative directory.
6551 cp "$am_depcomp" conftest.dir
6552 cd conftest.dir
6553 # We will build objects and dependencies in a subdirectory because
6554 # it helps to detect inapplicable dependency modes. For instance
6555 # both Tru64's cc and ICC support -MD to output dependencies as a
6556 # side effect of compilation, but ICC will put the dependencies in
6557 # the current directory while Tru64 will put them in the object
6558 # directory.
6559 mkdir sub
6560
6561 am_cv_CXX_dependencies_compiler_type=none
6562 if test "$am_compiler_list" = ""; then
6563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6564 fi
6565 am__universal=false
6566 case " $depcc " in #(
6567 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6568 esac
6569
6570 for depmode in $am_compiler_list; do
6571 # Setup a source with many dependencies, because some compilers
6572 # like to wrap large dependency lists on column 80 (with \), and
6573 # we should not choose a depcomp mode which is confused by this.
6574 #
6575 # We need to recreate these files for each test, as the compiler may
6576 # overwrite some of them when testing with obscure command lines.
6577 # This happens at least with the AIX C compiler.
6578 : > sub/conftest.c
6579 for i in 1 2 3 4 5 6; do
6580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6582 # Solaris 8's {/usr,}/bin/sh.
6583 touch sub/conftst$i.h
6584 done
6585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6586
6587 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6588 # mode. It turns out that the SunPro C++ compiler does not properly
6589 # handle `-M -o', and we need to detect this. Also, some Intel
6590 # versions had trouble with output in subdirs
6591 am__obj=sub/conftest.${OBJEXT-o}
6592 am__minus_obj="-o $am__obj"
6593 case $depmode in
6594 gcc)
6595 # This depmode causes a compiler race in universal mode.
6596 test "$am__universal" = false || continue
6597 ;;
6598 nosideeffect)
6599 # after this tag, mechanisms are not by side-effect, so they'll
6600 # only be used when explicitly requested
6601 if test "x$enable_dependency_tracking" = xyes; then
6602 continue
6603 else
6604 break
6605 fi
6606 ;;
6607 msvisualcpp | msvcmsys)
6608 # This compiler won't grok `-c -o', but also, the minuso test has
6609 # not run yet. These depmodes are late enough in the game, and
6610 # so weak that their functioning should not be impacted.
6611 am__obj=conftest.${OBJEXT-o}
6612 am__minus_obj=
6613 ;;
6614 none) break ;;
6615 esac
6616 if depmode=$depmode \
6617 source=sub/conftest.c object=$am__obj \
6618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6619 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6620 >/dev/null 2>conftest.err &&
6621 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6622 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6623 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6624 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6625 # icc doesn't choke on unknown options, it will just issue warnings
6626 # or remarks (even with -Werror). So we grep stderr for any message
6627 # that says an option was ignored or not supported.
6628 # When given -MP, icc 7.0 and 7.1 complain thusly:
6629 # icc: Command line warning: ignoring option '-M'; no argument required
6630 # The diagnosis changed in icc 8.0:
6631 # icc: Command line remark: option '-MP' not supported
6632 if (grep 'ignoring option' conftest.err ||
6633 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6634 am_cv_CXX_dependencies_compiler_type=$depmode
6635 break
6636 fi
6637 fi
6638 done
6639
6640 cd ..
6641 rm -rf conftest.dir
6642else
6643 am_cv_CXX_dependencies_compiler_type=none
6644fi
6645
6646fi
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6648$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6649CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6650
6651 if
6652 test "x$enable_dependency_tracking" != xno \
6653 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6654 am__fastdepCXX_TRUE=
6655 am__fastdepCXX_FALSE='#'
6656else
6657 am__fastdepCXX_TRUE='#'
6658 am__fastdepCXX_FALSE=
6659fi
6660
6661
cristy8b350f62009-11-15 23:12:43 +00006662 case $ac_cv_prog_cc_stdc in #(
6663 no) :
6664 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6665 *) :
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006667$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006668if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006669 $as_echo_n "(cached) " >&6
6670else
6671 ac_cv_prog_cc_c99=no
6672ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006674/* end confdefs.h. */
6675#include <stdarg.h>
6676#include <stdbool.h>
6677#include <stdlib.h>
6678#include <wchar.h>
6679#include <stdio.h>
6680
6681// Check varargs macros. These examples are taken from C99 6.10.3.5.
6682#define debug(...) fprintf (stderr, __VA_ARGS__)
6683#define showlist(...) puts (#__VA_ARGS__)
6684#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6685static void
6686test_varargs_macros (void)
6687{
6688 int x = 1234;
6689 int y = 5678;
6690 debug ("Flag");
6691 debug ("X = %d\n", x);
6692 showlist (The first, second, and third items.);
6693 report (x>y, "x is %d but y is %d", x, y);
6694}
6695
6696// Check long long types.
6697#define BIG64 18446744073709551615ull
6698#define BIG32 4294967295ul
6699#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6700#if !BIG_OK
6701 your preprocessor is broken;
6702#endif
6703#if BIG_OK
6704#else
6705 your preprocessor is broken;
6706#endif
6707static long long int bignum = -9223372036854775807LL;
6708static unsigned long long int ubignum = BIG64;
6709
6710struct incomplete_array
6711{
6712 int datasize;
6713 double data[];
6714};
6715
6716struct named_init {
6717 int number;
6718 const wchar_t *name;
6719 double average;
6720};
6721
6722typedef const char *ccp;
6723
6724static inline int
6725test_restrict (ccp restrict text)
6726{
6727 // See if C++-style comments work.
6728 // Iterate through items via the restricted pointer.
6729 // Also check for declarations in for loops.
6730 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6731 continue;
6732 return 0;
6733}
6734
6735// Check varargs and va_copy.
6736static void
6737test_varargs (const char *format, ...)
6738{
6739 va_list args;
6740 va_start (args, format);
6741 va_list args_copy;
6742 va_copy (args_copy, args);
6743
6744 const char *str;
6745 int number;
6746 float fnumber;
6747
6748 while (*format)
6749 {
6750 switch (*format++)
6751 {
6752 case 's': // string
6753 str = va_arg (args_copy, const char *);
6754 break;
6755 case 'd': // int
6756 number = va_arg (args_copy, int);
6757 break;
6758 case 'f': // float
6759 fnumber = va_arg (args_copy, double);
6760 break;
6761 default:
6762 break;
6763 }
6764 }
6765 va_end (args_copy);
6766 va_end (args);
6767}
6768
6769int
6770main ()
6771{
6772
6773 // Check bool.
6774 _Bool success = false;
6775
6776 // Check restrict.
6777 if (test_restrict ("String literal") == 0)
6778 success = true;
6779 char *restrict newvar = "Another string";
6780
6781 // Check varargs.
6782 test_varargs ("s, d' f .", "string", 65, 34.234);
6783 test_varargs_macros ();
6784
6785 // Check flexible array members.
6786 struct incomplete_array *ia =
6787 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6788 ia->datasize = 10;
6789 for (int i = 0; i < ia->datasize; ++i)
6790 ia->data[i] = i * 1.234;
6791
6792 // Check named initializers.
6793 struct named_init ni = {
6794 .number = 34,
6795 .name = L"Test wide string",
6796 .average = 543.34343,
6797 };
6798
6799 ni.number = 58;
6800
6801 int dynamic_array[ni.number];
6802 dynamic_array[ni.number - 1] = 543;
6803
6804 // work around unused variable warnings
6805 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6806 || dynamic_array[ni.number - 1] != 543);
6807
6808 ;
6809 return 0;
6810}
6811_ACEOF
6812for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6813do
6814 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006815 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006816 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006817fi
cristy3ed852e2009-09-05 21:47:34 +00006818rm -f core conftest.err conftest.$ac_objext
6819 test "x$ac_cv_prog_cc_c99" != "xno" && break
6820done
6821rm -f conftest.$ac_ext
6822CC=$ac_save_CC
6823
6824fi
6825# AC_CACHE_VAL
6826case "x$ac_cv_prog_cc_c99" in
6827 x)
cristy8b350f62009-11-15 23:12:43 +00006828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006829$as_echo "none needed" >&6; } ;;
6830 xno)
cristy8b350f62009-11-15 23:12:43 +00006831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006832$as_echo "unsupported" >&6; } ;;
6833 *)
6834 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006836$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6837esac
cristy8b350f62009-11-15 23:12:43 +00006838if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006839 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6840else
cristy8b350f62009-11-15 23:12:43 +00006841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006842$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006843if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006844 $as_echo_n "(cached) " >&6
6845else
6846 ac_cv_prog_cc_c89=no
6847ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006849/* end confdefs.h. */
6850#include <stdarg.h>
6851#include <stdio.h>
6852#include <sys/types.h>
6853#include <sys/stat.h>
6854/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6855struct buf { int x; };
6856FILE * (*rcsopen) (struct buf *, struct stat *, int);
6857static char *e (p, i)
6858 char **p;
6859 int i;
6860{
6861 return p[i];
6862}
6863static char *f (char * (*g) (char **, int), char **p, ...)
6864{
6865 char *s;
6866 va_list v;
6867 va_start (v,p);
6868 s = g (p, va_arg (v,int));
6869 va_end (v);
6870 return s;
6871}
6872
6873/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6874 function prototypes and stuff, but not '\xHH' hex character constants.
6875 These don't provoke an error unfortunately, instead are silently treated
6876 as 'x'. The following induces an error, until -std is added to get
6877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6878 array size at least. It's necessary to write '\x00'==0 to get something
6879 that's true only with -std. */
6880int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6881
6882/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6883 inside strings and character constants. */
6884#define FOO(x) 'x'
6885int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6886
6887int test (int i, double x);
6888struct s1 {int (*f) (int a);};
6889struct s2 {int (*f) (double a);};
6890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6891int argc;
6892char **argv;
6893int
6894main ()
6895{
6896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6903do
6904 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006905 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006906 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006907fi
cristy3ed852e2009-09-05 21:47:34 +00006908rm -f core conftest.err conftest.$ac_objext
6909 test "x$ac_cv_prog_cc_c89" != "xno" && break
6910done
6911rm -f conftest.$ac_ext
6912CC=$ac_save_CC
6913
6914fi
6915# AC_CACHE_VAL
6916case "x$ac_cv_prog_cc_c89" in
6917 x)
cristy8b350f62009-11-15 23:12:43 +00006918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006919$as_echo "none needed" >&6; } ;;
6920 xno)
cristy8b350f62009-11-15 23:12:43 +00006921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006922$as_echo "unsupported" >&6; } ;;
6923 *)
6924 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006926$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6927esac
cristy8b350f62009-11-15 23:12:43 +00006928if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006929 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6930else
6931 ac_cv_prog_cc_stdc=no
6932fi
6933
cristy3ed852e2009-09-05 21:47:34 +00006934fi
cristy3ed852e2009-09-05 21:47:34 +00006935 ;;
6936esac
cristy8b350f62009-11-15 23:12:43 +00006937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006938$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006939 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006940 $as_echo_n "(cached) " >&6
6941fi
6942
cristy8b350f62009-11-15 23:12:43 +00006943 case $ac_cv_prog_cc_stdc in #(
6944 no) :
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6946$as_echo "unsupported" >&6; } ;; #(
6947 '') :
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6949$as_echo "none needed" >&6; } ;; #(
6950 *) :
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006952$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6953esac
6954
cristy3ed852e2009-09-05 21:47:34 +00006955ac_ext=c
6956ac_cpp='$CPP $CPPFLAGS'
6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006961$as_echo_n "checking how to run the C preprocessor... " >&6; }
6962# On Suns, sometimes $CPP names a directory.
6963if test -n "$CPP" && test -d "$CPP"; then
6964 CPP=
6965fi
6966if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006967 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006968 $as_echo_n "(cached) " >&6
6969else
6970 # Double quotes because CPP needs to be expanded
6971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6972 do
6973 ac_preproc_ok=false
6974for ac_c_preproc_warn_flag in '' yes
6975do
6976 # Use a header file that comes with gcc, so configuring glibc
6977 # with a fresh cross-compiler works.
6978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6979 # <limits.h> exists even on freestanding compilers.
6980 # On the NeXT, cc -E runs the code through the compiler's parser,
6981 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006983/* end confdefs.h. */
6984#ifdef __STDC__
6985# include <limits.h>
6986#else
6987# include <assert.h>
6988#endif
6989 Syntax error
6990_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006991if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006992
cristy8b350f62009-11-15 23:12:43 +00006993else
cristy3ed852e2009-09-05 21:47:34 +00006994 # Broken: fails on valid input.
6995continue
6996fi
cristy3ed852e2009-09-05 21:47:34 +00006997rm -f conftest.err conftest.$ac_ext
6998
6999 # OK, works on sane cases. Now check whether nonexistent headers
7000 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007002/* end confdefs.h. */
7003#include <ac_nonexistent.h>
7004_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007005if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007006 # Broken: success on invalid input.
7007continue
7008else
cristy3ed852e2009-09-05 21:47:34 +00007009 # Passes both tests.
7010ac_preproc_ok=:
7011break
7012fi
cristy3ed852e2009-09-05 21:47:34 +00007013rm -f conftest.err conftest.$ac_ext
7014
7015done
7016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7017rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007018if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007019 break
7020fi
7021
7022 done
7023 ac_cv_prog_CPP=$CPP
7024
7025fi
7026 CPP=$ac_cv_prog_CPP
7027else
7028 ac_cv_prog_CPP=$CPP
7029fi
cristy8b350f62009-11-15 23:12:43 +00007030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo "$CPP" >&6; }
7032ac_preproc_ok=false
7033for ac_c_preproc_warn_flag in '' yes
7034do
7035 # Use a header file that comes with gcc, so configuring glibc
7036 # with a fresh cross-compiler works.
7037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038 # <limits.h> exists even on freestanding compilers.
7039 # On the NeXT, cc -E runs the code through the compiler's parser,
7040 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007042/* end confdefs.h. */
7043#ifdef __STDC__
7044# include <limits.h>
7045#else
7046# include <assert.h>
7047#endif
7048 Syntax error
7049_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007050if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007051
cristy8b350f62009-11-15 23:12:43 +00007052else
cristy3ed852e2009-09-05 21:47:34 +00007053 # Broken: fails on valid input.
7054continue
7055fi
cristy3ed852e2009-09-05 21:47:34 +00007056rm -f conftest.err conftest.$ac_ext
7057
7058 # OK, works on sane cases. Now check whether nonexistent headers
7059 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007061/* end confdefs.h. */
7062#include <ac_nonexistent.h>
7063_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007064if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007065 # Broken: success on invalid input.
7066continue
7067else
cristy3ed852e2009-09-05 21:47:34 +00007068 # Passes both tests.
7069ac_preproc_ok=:
7070break
7071fi
cristy3ed852e2009-09-05 21:47:34 +00007072rm -f conftest.err conftest.$ac_ext
7073
7074done
7075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007077if $ac_preproc_ok; then :
7078
cristy3ed852e2009-09-05 21:47:34 +00007079else
cristy8b350f62009-11-15 23:12:43 +00007080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007082as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7083See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007084fi
7085
7086ac_ext=c
7087ac_cpp='$CPP $CPPFLAGS'
7088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
cristy73bd4a52010-10-05 11:24:23 +00007092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7093$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7094if test "${ac_cv_path_SED+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096else
7097 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7098 for ac_i in 1 2 3 4 5 6 7; do
7099 ac_script="$ac_script$as_nl$ac_script"
7100 done
7101 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7102 { ac_script=; unset ac_script;}
7103 if test -z "$SED"; then
7104 ac_path_SED_found=false
7105 # Loop through the user's path and test for each of PROGNAME-LIST
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_prog in sed gsed; do
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7114 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7115# Check for GNU ac_path_SED and select it if it is found.
7116 # Check for GNU $ac_path_SED
7117case `"$ac_path_SED" --version 2>&1` in
7118*GNU*)
7119 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7120*)
7121 ac_count=0
7122 $as_echo_n 0123456789 >"conftest.in"
7123 while :
7124 do
7125 cat "conftest.in" "conftest.in" >"conftest.tmp"
7126 mv "conftest.tmp" "conftest.in"
7127 cp "conftest.in" "conftest.nl"
7128 $as_echo '' >> "conftest.nl"
7129 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7131 as_fn_arith $ac_count + 1 && ac_count=$as_val
7132 if test $ac_count -gt ${ac_path_SED_max-0}; then
7133 # Best one so far, save it but keep looking for a better one
7134 ac_cv_path_SED="$ac_path_SED"
7135 ac_path_SED_max=$ac_count
7136 fi
7137 # 10*(2^10) chars as input seems more than enough
7138 test $ac_count -gt 10 && break
7139 done
7140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7141esac
7142
7143 $ac_path_SED_found && break 3
7144 done
7145 done
7146 done
7147IFS=$as_save_IFS
7148 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007149 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007150 fi
7151else
7152 ac_cv_path_SED=$SED
7153fi
7154
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7157$as_echo "$ac_cv_path_SED" >&6; }
7158 SED="$ac_cv_path_SED"
7159 rm -f conftest.sed
7160
7161test -z "$SED" && SED=sed
7162Xsed="$SED -e 1s/^X//"
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7175$as_echo_n "checking for fgrep... " >&6; }
7176if test "${ac_cv_path_FGREP+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7178else
7179 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7180 then ac_cv_path_FGREP="$GREP -F"
7181 else
7182 if test -z "$FGREP"; then
7183 ac_path_FGREP_found=false
7184 # Loop through the user's path and test for each of PROGNAME-LIST
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_prog in fgrep; do
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7193 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7194# Check for GNU ac_path_FGREP and select it if it is found.
7195 # Check for GNU $ac_path_FGREP
7196case `"$ac_path_FGREP" --version 2>&1` in
7197*GNU*)
7198 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7199*)
7200 ac_count=0
7201 $as_echo_n 0123456789 >"conftest.in"
7202 while :
7203 do
7204 cat "conftest.in" "conftest.in" >"conftest.tmp"
7205 mv "conftest.tmp" "conftest.in"
7206 cp "conftest.in" "conftest.nl"
7207 $as_echo 'FGREP' >> "conftest.nl"
7208 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7210 as_fn_arith $ac_count + 1 && ac_count=$as_val
7211 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7212 # Best one so far, save it but keep looking for a better one
7213 ac_cv_path_FGREP="$ac_path_FGREP"
7214 ac_path_FGREP_max=$ac_count
7215 fi
7216 # 10*(2^10) chars as input seems more than enough
7217 test $ac_count -gt 10 && break
7218 done
7219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7220esac
7221
7222 $ac_path_FGREP_found && break 3
7223 done
7224 done
7225 done
7226IFS=$as_save_IFS
7227 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007228 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007229 fi
7230else
7231 ac_cv_path_FGREP=$FGREP
7232fi
7233
7234 fi
7235fi
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7237$as_echo "$ac_cv_path_FGREP" >&6; }
7238 FGREP="$ac_cv_path_FGREP"
7239
7240
7241test -z "$GREP" && GREP=grep
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261# Check whether --with-gnu-ld was given.
7262if test "${with_gnu_ld+set}" = set; then :
7263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7264else
7265 with_gnu_ld=no
7266fi
7267
7268ac_prog=ld
7269if test "$GCC" = yes; then
7270 # Check if gcc -print-prog-name=ld gives a path.
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7272$as_echo_n "checking for ld used by $CC... " >&6; }
7273 case $host in
7274 *-*-mingw*)
7275 # gcc leaves a trailing carriage return which upsets mingw
7276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7277 *)
7278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7279 esac
7280 case $ac_prog in
7281 # Accept absolute paths.
7282 [\\/]* | ?:[\\/]*)
7283 re_direlt='/[^/][^/]*/\.\./'
7284 # Canonicalize the pathname of ld
7285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7288 done
7289 test -z "$LD" && LD="$ac_prog"
7290 ;;
7291 "")
7292 # If it fails, then pretend we aren't using GCC.
7293 ac_prog=ld
7294 ;;
7295 *)
7296 # If it is relative, then search for the first ld in PATH.
7297 with_gnu_ld=unknown
7298 ;;
7299 esac
7300elif test "$with_gnu_ld" = yes; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7302$as_echo_n "checking for GNU ld... " >&6; }
7303else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7305$as_echo_n "checking for non-GNU ld... " >&6; }
7306fi
7307if test "${lt_cv_path_LD+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309else
7310 if test -z "$LD"; then
7311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7312 for ac_dir in $PATH; do
7313 IFS="$lt_save_ifs"
7314 test -z "$ac_dir" && ac_dir=.
7315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7316 lt_cv_path_LD="$ac_dir/$ac_prog"
7317 # Check to see if the program is GNU ld. I'd rather use --version,
7318 # but apparently some variants of GNU ld only accept -v.
7319 # Break only if it was the GNU/non-GNU ld that we prefer.
7320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7321 *GNU* | *'with BFD'*)
7322 test "$with_gnu_ld" != no && break
7323 ;;
7324 *)
7325 test "$with_gnu_ld" != yes && break
7326 ;;
7327 esac
7328 fi
7329 done
7330 IFS="$lt_save_ifs"
7331else
7332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7333fi
7334fi
7335
7336LD="$lt_cv_path_LD"
7337if test -n "$LD"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7339$as_echo "$LD" >&6; }
7340else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
cristy98dddb52010-11-04 00:30:15 +00007344test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7346$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7347if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349else
7350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7351case `$LD -v 2>&1 </dev/null` in
7352*GNU* | *'with BFD'*)
7353 lt_cv_prog_gnu_ld=yes
7354 ;;
7355*)
7356 lt_cv_prog_gnu_ld=no
7357 ;;
7358esac
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7361$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7362with_gnu_ld=$lt_cv_prog_gnu_ld
7363
7364
7365
7366
7367
7368
7369
7370
7371
cristy3ed852e2009-09-05 21:47:34 +00007372
cristy837d6dc2010-02-27 01:16:57 +00007373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7374$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7375if test "${ac_cv_prog_cc_c99+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377else
7378 ac_cv_prog_cc_c99=no
7379ac_save_CC=$CC
7380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h. */
7382#include <stdarg.h>
7383#include <stdbool.h>
7384#include <stdlib.h>
7385#include <wchar.h>
7386#include <stdio.h>
7387
7388// Check varargs macros. These examples are taken from C99 6.10.3.5.
7389#define debug(...) fprintf (stderr, __VA_ARGS__)
7390#define showlist(...) puts (#__VA_ARGS__)
7391#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7392static void
7393test_varargs_macros (void)
7394{
7395 int x = 1234;
7396 int y = 5678;
7397 debug ("Flag");
7398 debug ("X = %d\n", x);
7399 showlist (The first, second, and third items.);
7400 report (x>y, "x is %d but y is %d", x, y);
7401}
7402
7403// Check long long types.
7404#define BIG64 18446744073709551615ull
7405#define BIG32 4294967295ul
7406#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7407#if !BIG_OK
7408 your preprocessor is broken;
7409#endif
7410#if BIG_OK
7411#else
7412 your preprocessor is broken;
7413#endif
7414static long long int bignum = -9223372036854775807LL;
7415static unsigned long long int ubignum = BIG64;
7416
7417struct incomplete_array
7418{
7419 int datasize;
7420 double data[];
7421};
7422
7423struct named_init {
7424 int number;
7425 const wchar_t *name;
7426 double average;
7427};
7428
7429typedef const char *ccp;
7430
7431static inline int
7432test_restrict (ccp restrict text)
7433{
7434 // See if C++-style comments work.
7435 // Iterate through items via the restricted pointer.
7436 // Also check for declarations in for loops.
7437 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7438 continue;
7439 return 0;
7440}
7441
7442// Check varargs and va_copy.
7443static void
7444test_varargs (const char *format, ...)
7445{
7446 va_list args;
7447 va_start (args, format);
7448 va_list args_copy;
7449 va_copy (args_copy, args);
7450
7451 const char *str;
7452 int number;
7453 float fnumber;
7454
7455 while (*format)
7456 {
7457 switch (*format++)
7458 {
7459 case 's': // string
7460 str = va_arg (args_copy, const char *);
7461 break;
7462 case 'd': // int
7463 number = va_arg (args_copy, int);
7464 break;
7465 case 'f': // float
7466 fnumber = va_arg (args_copy, double);
7467 break;
7468 default:
7469 break;
7470 }
7471 }
7472 va_end (args_copy);
7473 va_end (args);
7474}
7475
7476int
7477main ()
7478{
7479
7480 // Check bool.
7481 _Bool success = false;
7482
7483 // Check restrict.
7484 if (test_restrict ("String literal") == 0)
7485 success = true;
7486 char *restrict newvar = "Another string";
7487
7488 // Check varargs.
7489 test_varargs ("s, d' f .", "string", 65, 34.234);
7490 test_varargs_macros ();
7491
7492 // Check flexible array members.
7493 struct incomplete_array *ia =
7494 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7495 ia->datasize = 10;
7496 for (int i = 0; i < ia->datasize; ++i)
7497 ia->data[i] = i * 1.234;
7498
7499 // Check named initializers.
7500 struct named_init ni = {
7501 .number = 34,
7502 .name = L"Test wide string",
7503 .average = 543.34343,
7504 };
7505
7506 ni.number = 58;
7507
7508 int dynamic_array[ni.number];
7509 dynamic_array[ni.number - 1] = 543;
7510
7511 // work around unused variable warnings
7512 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7513 || dynamic_array[ni.number - 1] != 543);
7514
7515 ;
7516 return 0;
7517}
7518_ACEOF
7519for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7520do
7521 CC="$ac_save_CC $ac_arg"
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 ac_cv_prog_cc_c99=$ac_arg
7524fi
7525rm -f core conftest.err conftest.$ac_objext
7526 test "x$ac_cv_prog_cc_c99" != "xno" && break
7527done
7528rm -f conftest.$ac_ext
7529CC=$ac_save_CC
7530
7531fi
7532# AC_CACHE_VAL
7533case "x$ac_cv_prog_cc_c99" in
7534 x)
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7536$as_echo "none needed" >&6; } ;;
7537 xno)
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7539$as_echo "unsupported" >&6; } ;;
7540 *)
7541 CC="$CC $ac_cv_prog_cc_c99"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7543$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7544esac
7545if test "x$ac_cv_prog_cc_c99" != xno; then :
7546
7547fi
7548
7549
cristy73bd4a52010-10-05 11:24:23 +00007550if test "x$CC" != xcc; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7552$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7553else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7555$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7556fi
7557set dummy $CC; ac_cc=`$as_echo "$2" |
7558 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy98dddb52010-11-04 00:30:15 +00007559if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007560 $as_echo_n "(cached) " >&6
7561else
cristy73bd4a52010-10-05 11:24:23 +00007562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h. */
7564
7565int
7566main ()
7567{
7568
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573# Make sure it works both with $CC and with simple cc.
7574# We do the test twice because some compilers refuse to overwrite an
7575# existing .o file with -o, though they will create one.
7576ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7577rm -f conftest2.*
7578if { { case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581esac
7582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7583$as_echo "$ac_try_echo"; } >&5
7584 (eval "$ac_try") 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; } &&
7588 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591esac
7592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7593$as_echo "$ac_try_echo"; } >&5
7594 (eval "$ac_try") 2>&5
7595 ac_status=$?
7596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7597 test $ac_status = 0; };
7598then
7599 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7600 if test "x$CC" != xcc; then
7601 # Test first that cc exists at all.
7602 if { ac_try='cc -c conftest.$ac_ext >&5'
7603 { { case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606esac
7607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7608$as_echo "$ac_try_echo"; } >&5
7609 (eval "$ac_try") 2>&5
7610 ac_status=$?
7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; }; }; then
7613 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7614 rm -f conftest2.*
7615 if { { case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618esac
7619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7620$as_echo "$ac_try_echo"; } >&5
7621 (eval "$ac_try") 2>&5
7622 ac_status=$?
7623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7624 test $ac_status = 0; } &&
7625 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628esac
7629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7630$as_echo "$ac_try_echo"; } >&5
7631 (eval "$ac_try") 2>&5
7632 ac_status=$?
7633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; };
7635 then
7636 # cc works too.
7637 :
7638 else
7639 # cc exists but doesn't like -o.
7640 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7641 fi
7642 fi
7643 fi
7644else
7645 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7646fi
7647rm -f core conftest*
7648
7649fi
7650if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7652$as_echo "yes" >&6; }
7653else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
7656
7657$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7658
7659fi
7660
7661# FIXME: we rely on the cache variable name because
7662# there is no other way.
7663set dummy $CC
7664am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7665eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7666if test "$am_t" != yes; then
7667 # Losing compiler, so override with the script.
7668 # FIXME: It is wrong to rewrite CC.
7669 # But if we don't then we get into trouble of one sort or another.
7670 # A longer-term fix would be to have automake use am__CC in this case,
7671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7672 CC="$am_aux_dir/compile $CC"
7673fi
7674
7675
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7677$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7678if test "${ac_cv_cflags_warn_all+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680else
7681 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007682 ac_ext=c
7683ac_cpp='$CPP $CPPFLAGS'
7684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688 ac_save_CFLAGS="$CFLAGS"
7689for 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" #
7690do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h. */
7693
7694int
7695main ()
7696{
cristy24fc1fe2010-10-23 21:13:01 +00007697
cristy73bd4a52010-10-05 11:24:23 +00007698 ;
7699 return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_compile "$LINENO"; then :
7703 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706done
7707 CFLAGS="$ac_save_CFLAGS"
7708 ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7717$as_echo "$ac_cv_cflags_warn_all" >&6; }
7718case ".$ac_cv_cflags_warn_all" in
7719 .ok|.ok,*) ;;
7720 .|.no|.no,*)
7721 ;;
7722 *)
7723 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7724 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7725 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; }
7729 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7730 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7731 ac_status=$?
7732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733 test $ac_status = 0; }
7734 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7735 fi
7736 ;;
nicolas6237c462010-10-05 06:11:49 +00007737esac
cristy3ed852e2009-09-05 21:47:34 +00007738
cristya0b81c32010-01-22 02:54:33 +00007739
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7741$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7742set x ${MAKE-make}
7743ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00007744if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007745 $as_echo_n "(cached) " >&6
7746else
7747 cat >conftest.make <<\_ACEOF
7748SHELL = /bin/sh
7749all:
7750 @echo '@@@%%%=$(MAKE)=@@@%%%'
7751_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007752# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007753case `${MAKE-make} -f conftest.make 2>/dev/null` in
7754 *@@@%%%=?*=@@@%%%*)
7755 eval ac_cv_prog_make_${ac_make}_set=yes;;
7756 *)
7757 eval ac_cv_prog_make_${ac_make}_set=no;;
7758esac
7759rm -f conftest.make
7760fi
7761if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763$as_echo "yes" >&6; }
7764 SET_MAKE=
7765else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767$as_echo "no" >&6; }
7768 SET_MAKE="MAKE=${MAKE-make}"
7769fi
7770
cristy8b350f62009-11-15 23:12:43 +00007771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007772$as_echo_n "checking whether ln -s works... " >&6; }
7773LN_S=$as_ln_s
7774if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007776$as_echo "yes" >&6; }
7777else
cristy8b350f62009-11-15 23:12:43 +00007778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007779$as_echo "no, using $LN_S" >&6; }
7780fi
7781
cristy73bd4a52010-10-05 11:24:23 +00007782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7783$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7784
7785# Check whether --with-dmalloc was given.
7786if test "${with_dmalloc+set}" = set; then :
7787 withval=$with_dmalloc; if test "$withval" = yes; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7789$as_echo "yes" >&6; }
7790
7791$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7792
7793 LIBS="$LIBS -ldmalloc"
7794 LDFLAGS="$LDFLAGS -g"
7795else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
7798fi
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7807$as_echo_n "checking for __attribute__... " >&6; }
7808if test "${ax_cv___attribute__+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */
7813#include <stdlib.h>
7814 static void foo(void) __attribute__ ((unused));
7815 static void
7816 foo(void) {
7817 exit(1);
7818 }
7819
7820int
7821main ()
7822{
7823
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_compile "$LINENO"; then :
7829 ax_cv___attribute__=yes
7830else
7831 ax_cv___attribute__=no
7832
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7838$as_echo "$ax_cv___attribute__" >&6; }
7839 if test "$ax_cv___attribute__" = "yes"; then
7840
7841$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7842
7843 fi
7844
7845
7846
7847if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7850set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855else
7856 case $PKG_CONFIG in
7857 [\\/]* | ?:[\\/]*)
7858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7859 ;;
7860 *)
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872done
7873 done
7874IFS=$as_save_IFS
7875
7876 ;;
7877esac
7878fi
7879PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7880if test -n "$PKG_CONFIG"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7882$as_echo "$PKG_CONFIG" >&6; }
7883else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888
7889fi
7890if test -z "$ac_cv_path_PKG_CONFIG"; then
7891 ac_pt_PKG_CONFIG=$PKG_CONFIG
7892 # Extract the first word of "pkg-config", so it can be a program name with args.
7893set dummy pkg-config; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 case $ac_pt_PKG_CONFIG in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7902 ;;
7903 *)
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7914 fi
7915done
7916 done
7917IFS=$as_save_IFS
7918
7919 ;;
7920esac
7921fi
7922ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7923if test -n "$ac_pt_PKG_CONFIG"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7925$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7926else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
7929fi
7930
7931 if test "x$ac_pt_PKG_CONFIG" = x; then
7932 PKG_CONFIG=""
7933 else
7934 case $cross_compiling:$ac_tool_warned in
7935yes:)
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938ac_tool_warned=yes ;;
7939esac
7940 PKG_CONFIG=$ac_pt_PKG_CONFIG
7941 fi
7942else
7943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7944fi
7945
7946fi
7947if test -n "$PKG_CONFIG"; then
7948 _pkg_min_version=0.9.0
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7950$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7951 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7953$as_echo "yes" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957 PKG_CONFIG=""
7958 fi
7959
7960fi
cristy3ed852e2009-09-05 21:47:34 +00007961
7962#
cristy3ed852e2009-09-05 21:47:34 +00007963# Enable run-time checking.
7964#
7965# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007966if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007967 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7968else
7969 enable_bounds_checking='no'
7970fi
7971
7972
7973if test "$enable_bounds_checking" = yes; then
7974
cristy8b350f62009-11-15 23:12:43 +00007975$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007976
7977fi
7978
7979#
7980# Tests for Windows
7981#
7982
7983
cristy73bd4a52010-10-05 11:24:23 +00007984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7985$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7986if test "${ax_cv_c_compiler_ms+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988else
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h. */
7991
7992int
7993main ()
7994{
7995#ifndef _MSC_VER
7996 choke me
7997#endif
7998
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"; then :
8004 ax_compiler_ms=yes
8005else
8006 ax_compiler_ms=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009ax_cv_c_compiler_ms=$ax_compiler_ms
8010
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8013$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008014
8015GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008016native_win32_build='no'
8017cygwin_build='no'
8018case "${host_os}" in
8019 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008020 cygwin_build='yes'
8021 GDI32_LIBS='-lgdi32'
8022 ;;
8023 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008024 native_win32_build='yes'
8025 GDI32_LIBS='-lgdi32'
8026 ;;
8027esac
8028if test "${GDI32_LIBS}x" != 'x'; then
8029
cristy8b350f62009-11-15 23:12:43 +00008030$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008031
8032fi
8033
cristy73bd4a52010-10-05 11:24:23 +00008034 if test "${GDI32_LIBS}x" != 'x' ; then
8035 WINGDI32_DELEGATE_TRUE=
8036 WINGDI32_DELEGATE_FALSE='#'
8037else
8038 WINGDI32_DELEGATE_TRUE='#'
8039 WINGDI32_DELEGATE_FALSE=
8040fi
8041
8042 if test "${native_win32_build}" = 'yes' ; then
8043 WIN32_NATIVE_BUILD_TRUE=
8044 WIN32_NATIVE_BUILD_FALSE='#'
8045else
8046 WIN32_NATIVE_BUILD_TRUE='#'
8047 WIN32_NATIVE_BUILD_FALSE=
8048fi
8049
8050 if test "${cygwin_build}" = 'yes' ; then
8051 CYGWIN_BUILD_TRUE=
8052 CYGWIN_BUILD_FALSE='#'
8053else
8054 CYGWIN_BUILD_TRUE='#'
8055 CYGWIN_BUILD_FALSE=
8056fi
8057
8058 if test "x${CC}" = 'xcl.exe' ; then
8059 USING_CL_TRUE=
8060 USING_CL_FALSE='#'
8061else
8062 USING_CL_TRUE='#'
8063 USING_CL_FALSE=
8064fi
8065
cristy3ed852e2009-09-05 21:47:34 +00008066
8067WinPathScript="${srcdirfull}/winpath.sh"
8068
8069
8070#
8071# Compiler flags tweaks
8072#
8073if test "${GCC}" != "yes"; then
8074 case "${host}" in
8075 *-*-hpux* )
8076 # aCC: HP ANSI C++ B3910B A.03.34
8077 CFLAGS="${CFLAGS} -Wp,-H30000"
8078 if test -n "${CXXFLAGS}"; then
8079 CXXFLAGS='-AA'
8080 else
8081 CXXFLAGS="${CXXFLAGS} -AA"
8082 fi
8083 ;;
8084 *-dec-osf5.* )
8085 # Compaq alphaev68-dec-osf5.1 compiler
8086 if test -n "${CXXFLAGS}"; then
8087 CXXFLAGS='-std strict_ansi -noimplicit_include'
8088 else
8089 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8090 fi
8091 esac
8092fi
8093
8094# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008096$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008097if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008098 $as_echo_n "(cached) " >&6
8099else
8100
8101im_cv_ld_lazyload='none'
8102case "${host}" in
8103 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8104 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8105 im_cv_ld_lazyload='-Wl,-zlazyload'
8106 fi
8107 ;;
8108esac
8109
8110fi
cristy8b350f62009-11-15 23:12:43 +00008111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008112$as_echo "$im_cv_ld_lazyload" >&6; }
8113if test "${im_cv_ld_lazyload}" != 'none' ; then
8114 if test -z "${LDFLAGS}" ; then
8115 LDFLAGS="${im_cv_ld_lazyload}"
8116 else
8117 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8118 fi
8119fi
8120
8121case "$host" in
8122*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008123 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008124if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008125 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8126else
8127 build_osxuniversal=no
8128fi
8129
8130
8131 if test "${build_osxuniversal}" != no ; then
8132 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008133 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008134Please re-run configure with these options:
8135 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008136 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008137 fi
8138 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8139 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8140 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8141 fi
8142 ;;
8143esac
8144
8145# Enable support for threads
8146
8147# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008148if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008149 withval=$with_threads; with_threads=$withval
8150else
8151 with_threads='yes'
8152fi
8153
8154
8155have_threads=no
8156if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008157
8158
8159
8160ac_ext=c
8161ac_cpp='$CPP $CPPFLAGS'
8162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165
8166ax_pthread_ok=no
8167
8168# We used to check for pthread.h first, but this fails if pthread.h
8169# requires special compiler flags (e.g. on True64 or Sequent).
8170# It gets checked for in the link test anyway.
8171
8172# First of all, check if the user has set any of the PTHREAD_LIBS,
8173# etcetera environment variables, and if threads linking works using
8174# them:
8175if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8176 save_CFLAGS="$CFLAGS"
8177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8178 save_LIBS="$LIBS"
8179 LIBS="$PTHREAD_LIBS $LIBS"
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8181$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h. */
8184
8185/* Override any GCC internal prototype to avoid an error.
8186 Use char because int might match the return type of a GCC
8187 builtin and then its argument prototype would still apply. */
8188#ifdef __cplusplus
8189extern "C"
8190#endif
8191char pthread_join ();
8192int
8193main ()
8194{
8195return pthread_join ();
8196 ;
8197 return 0;
8198}
8199_ACEOF
8200if ac_fn_c_try_link "$LINENO"; then :
8201 ax_pthread_ok=yes
8202fi
8203rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8206$as_echo "$ax_pthread_ok" >&6; }
8207 if test x"$ax_pthread_ok" = xno; then
8208 PTHREAD_LIBS=""
8209 PTHREAD_CFLAGS=""
8210 fi
8211 LIBS="$save_LIBS"
8212 CFLAGS="$save_CFLAGS"
8213fi
8214
8215# We must check for the threads library under a number of different
8216# names; the ordering is very important because some systems
8217# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8218# libraries is broken (non-POSIX).
8219
8220# Create a list of thread flags to try. Items starting with a "-" are
8221# C compiler flags, and other items are library names, except for "none"
8222# which indicates that we try without any flags at all, and "pthread-config"
8223# which is a program returning the flags for the Pth emulation library.
8224
8225ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8226
8227# The ordering *is* (sometimes) important. Some notes on the
8228# individual items follow:
8229
8230# pthreads: AIX (must check this before -lpthread)
8231# none: in case threads are in libc; should be tried before -Kthread and
8232# other compiler flags to prevent continual compiler warnings
8233# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8234# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8235# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8236# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8237# -pthreads: Solaris/gcc
8238# -mthreads: Mingw32/gcc, Lynx/gcc
8239# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8240# doesn't hurt to check since this sometimes defines pthreads too;
8241# also defines -D_REENTRANT)
8242# ... -mt is also the pthreads flag for HP/aCC
8243# pthread: Linux, etcetera
8244# --thread-safe: KAI C++
8245# pthread-config: use pthread-config program (for GNU Pth library)
8246
8247case "${host_cpu}-${host_os}" in
8248 *solaris*)
8249
8250 # On Solaris (at least, for some versions), libc contains stubbed
8251 # (non-functional) versions of the pthreads routines, so link-based
8252 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8253 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8254 # a function called by this macro, so we could check for that, but
8255 # who knows whether they'll stub that too in a future libc.) So,
8256 # we'll just look for -pthreads and -lpthread first:
8257
8258 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8259 ;;
8260
8261 *-darwin*)
8262 ax_pthread_flags="-pthread $ax_pthread_flags"
8263 ;;
8264esac
8265
8266if test x"$ax_pthread_ok" = xno; then
8267for flag in $ax_pthread_flags; do
8268
8269 case $flag in
8270 none)
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8272$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8273 ;;
8274
8275 -*)
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8277$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8278 PTHREAD_CFLAGS="$flag"
8279 ;;
8280
8281 pthread-config)
8282 # Extract the first word of "pthread-config", so it can be a program name with args.
8283set dummy pthread-config; ac_word=$2
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285$as_echo_n "checking for $ac_word... " >&6; }
8286if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288else
8289 if test -n "$ax_pthread_config"; then
8290 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8291else
8292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_ax_pthread_config="yes"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303done
8304 done
8305IFS=$as_save_IFS
8306
8307 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8308fi
8309fi
8310ax_pthread_config=$ac_cv_prog_ax_pthread_config
8311if test -n "$ax_pthread_config"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8313$as_echo "$ax_pthread_config" >&6; }
8314else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316$as_echo "no" >&6; }
8317fi
8318
8319
8320 if test x"$ax_pthread_config" = xno; then continue; fi
8321 PTHREAD_CFLAGS="`pthread-config --cflags`"
8322 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8323 ;;
8324
8325 *)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8327$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8328 PTHREAD_LIBS="-l$flag"
8329 ;;
8330 esac
8331
8332 save_LIBS="$LIBS"
8333 save_CFLAGS="$CFLAGS"
8334 LIBS="$PTHREAD_LIBS $LIBS"
8335 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8336
8337 # Check for various functions. We must include pthread.h,
8338 # since some functions may be macros. (On the Sequent, we
8339 # need a special flag -Kthread to make this header compile.)
8340 # We check for pthread_join because it is in -lpthread on IRIX
8341 # while pthread_create is in libc. We check for pthread_attr_init
8342 # due to DEC craziness with -lpthreads. We check for
8343 # pthread_cleanup_push because it is one of the few pthread
8344 # functions on Solaris that doesn't have a non-functional libc stub.
8345 # We try pthread_create on general principles.
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h. */
8348#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008349 static void routine(void* a) {a=0;}
8350 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008351int
8352main ()
8353{
8354pthread_t th; pthread_attr_t attr;
8355 pthread_create(&th,0,start_routine,0);
8356 pthread_join(th, 0);
8357 pthread_attr_init(&attr);
8358 pthread_cleanup_push(routine, 0);
8359 pthread_cleanup_pop(0);
8360 ;
8361 return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_link "$LINENO"; then :
8365 ax_pthread_ok=yes
8366fi
8367rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369
8370 LIBS="$save_LIBS"
8371 CFLAGS="$save_CFLAGS"
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8374$as_echo "$ax_pthread_ok" >&6; }
8375 if test "x$ax_pthread_ok" = xyes; then
8376 break;
8377 fi
8378
8379 PTHREAD_LIBS=""
8380 PTHREAD_CFLAGS=""
8381done
8382fi
8383
8384# Various other checks:
8385if test "x$ax_pthread_ok" = xyes; then
8386 save_LIBS="$LIBS"
8387 LIBS="$PTHREAD_LIBS $LIBS"
8388 save_CFLAGS="$CFLAGS"
8389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8390
8391 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8393$as_echo_n "checking for joinable pthread attribute... " >&6; }
8394 attr_name=unknown
8395 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h. */
8398#include <pthread.h>
8399int
8400main ()
8401{
8402int attr=$attr; return attr;
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407if ac_fn_c_try_link "$LINENO"; then :
8408 attr_name=$attr; break
8409fi
8410rm -f core conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 done
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8414$as_echo "$attr_name" >&6; }
8415 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8416
8417cat >>confdefs.h <<_ACEOF
8418#define PTHREAD_CREATE_JOINABLE $attr_name
8419_ACEOF
8420
8421 fi
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8424$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8425 flag=no
8426 case "${host_cpu}-${host_os}" in
8427 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8428 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8429 esac
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8431$as_echo "${flag}" >&6; }
8432 if test "x$flag" != xno; then
8433 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8434 fi
8435
8436 LIBS="$save_LIBS"
8437 CFLAGS="$save_CFLAGS"
8438
8439 # More AIX lossage: must compile with xlc_r or cc_r
8440 if test x"$GCC" != xyes; then
8441 for ac_prog in xlc_r cc_r
8442do
8443 # Extract the first word of "$ac_prog", so it can be a program name with args.
8444set dummy $ac_prog; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
8447if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449else
8450 if test -n "$PTHREAD_CC"; then
8451 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_PTHREAD_CC="$ac_prog"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8463 fi
8464done
8465 done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8471if test -n "$PTHREAD_CC"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8473$as_echo "$PTHREAD_CC" >&6; }
8474else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480 test -n "$PTHREAD_CC" && break
8481done
8482test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8483
8484 else
8485 PTHREAD_CC=$CC
8486 fi
8487else
8488 PTHREAD_CC="$CC"
8489fi
8490
8491
8492
8493
8494
8495# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8496if test x"$ax_pthread_ok" = xyes; then
8497
8498$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8499
8500 :
8501else
8502 ax_pthread_ok=no
8503
8504fi
8505ac_ext=c
8506ac_cpp='$CPP $CPPFLAGS'
8507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8509ac_compiler_gnu=$ac_cv_c_compiler_gnu
8510
8511
cristy7acf8fb2010-09-23 19:58:53 +00008512 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008513 have_threads=yes
8514 DEF_THREAD="$PTHREAD_CFLAGS"
8515 CFLAGS="$CFLAGS $DEF_THREAD"
8516 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8517 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008518 { $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 +00008519$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8520 CC="$PTHREAD_CC"
8521 fi
cristy55bf91c2010-09-24 00:29:41 +00008522
8523$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8524
cristy3ed852e2009-09-05 21:47:34 +00008525 fi
8526fi
8527
8528# Enable support for OpenMP
8529if test "$have_threads" != 'yes'; then
8530 ac_cv_prog_c_openmp=unsupported
8531fi
8532
8533 OPENMP_CFLAGS=
8534 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008535if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008536 enableval=$enable_openmp;
8537fi
8538
8539 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008541$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008542if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008543 $as_echo_n "(cached) " >&6
8544else
cristy8b350f62009-11-15 23:12:43 +00008545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008547
8548#ifndef _OPENMP
8549 choke me
8550#endif
8551#include <omp.h>
8552int main () { return omp_get_num_threads (); }
8553
8554_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008555if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008556 ac_cv_prog_c_openmp='none needed'
8557else
cristy8b350f62009-11-15 23:12:43 +00008558 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008559 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8560 ac_save_CFLAGS=$CFLAGS
8561 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008564
8565#ifndef _OPENMP
8566 choke me
8567#endif
8568#include <omp.h>
8569int main () { return omp_get_num_threads (); }
8570
8571_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008573 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008574fi
cristy8b350f62009-11-15 23:12:43 +00008575rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008577 CFLAGS=$ac_save_CFLAGS
8578 if test "$ac_cv_prog_c_openmp" != unsupported; then
8579 break
8580 fi
8581 done
8582fi
cristy8b350f62009-11-15 23:12:43 +00008583rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008585fi
cristy8b350f62009-11-15 23:12:43 +00008586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008587$as_echo "$ac_cv_prog_c_openmp" >&6; }
8588 case $ac_cv_prog_c_openmp in #(
8589 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008590 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008591 *)
cristy8b350f62009-11-15 23:12:43 +00008592 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008593 esac
8594 fi
8595
8596
8597CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8598MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8599
cristy391f1ce2010-09-09 17:23:28 +00008600if test "$enable_openmp" != no; then
8601 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8602 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8603 fi
8604fi
cristy3ed852e2009-09-05 21:47:34 +00008605
cristy736173a2009-09-20 21:18:22 +00008606# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008607
8608
8609
8610ac_ext=c
8611ac_cpp='$CPP $CPPFLAGS'
8612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8614ac_compiler_gnu=$ac_cv_c_compiler_gnu
8615
8616ax_pthread_ok=no
8617
8618# We used to check for pthread.h first, but this fails if pthread.h
8619# requires special compiler flags (e.g. on True64 or Sequent).
8620# It gets checked for in the link test anyway.
8621
8622# First of all, check if the user has set any of the PTHREAD_LIBS,
8623# etcetera environment variables, and if threads linking works using
8624# them:
8625if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8626 save_CFLAGS="$CFLAGS"
8627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8628 save_LIBS="$LIBS"
8629 LIBS="$PTHREAD_LIBS $LIBS"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8631$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h. */
8634
8635/* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8638#ifdef __cplusplus
8639extern "C"
8640#endif
8641char pthread_join ();
8642int
8643main ()
8644{
8645return pthread_join ();
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650if ac_fn_c_try_link "$LINENO"; then :
8651 ax_pthread_ok=yes
8652fi
8653rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8656$as_echo "$ax_pthread_ok" >&6; }
8657 if test x"$ax_pthread_ok" = xno; then
8658 PTHREAD_LIBS=""
8659 PTHREAD_CFLAGS=""
8660 fi
8661 LIBS="$save_LIBS"
8662 CFLAGS="$save_CFLAGS"
8663fi
8664
8665# We must check for the threads library under a number of different
8666# names; the ordering is very important because some systems
8667# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8668# libraries is broken (non-POSIX).
8669
8670# Create a list of thread flags to try. Items starting with a "-" are
8671# C compiler flags, and other items are library names, except for "none"
8672# which indicates that we try without any flags at all, and "pthread-config"
8673# which is a program returning the flags for the Pth emulation library.
8674
8675ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8676
8677# The ordering *is* (sometimes) important. Some notes on the
8678# individual items follow:
8679
8680# pthreads: AIX (must check this before -lpthread)
8681# none: in case threads are in libc; should be tried before -Kthread and
8682# other compiler flags to prevent continual compiler warnings
8683# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8684# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8685# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8686# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8687# -pthreads: Solaris/gcc
8688# -mthreads: Mingw32/gcc, Lynx/gcc
8689# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8690# doesn't hurt to check since this sometimes defines pthreads too;
8691# also defines -D_REENTRANT)
8692# ... -mt is also the pthreads flag for HP/aCC
8693# pthread: Linux, etcetera
8694# --thread-safe: KAI C++
8695# pthread-config: use pthread-config program (for GNU Pth library)
8696
8697case "${host_cpu}-${host_os}" in
8698 *solaris*)
8699
8700 # On Solaris (at least, for some versions), libc contains stubbed
8701 # (non-functional) versions of the pthreads routines, so link-based
8702 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8703 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8704 # a function called by this macro, so we could check for that, but
8705 # who knows whether they'll stub that too in a future libc.) So,
8706 # we'll just look for -pthreads and -lpthread first:
8707
8708 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8709 ;;
8710
8711 *-darwin*)
8712 ax_pthread_flags="-pthread $ax_pthread_flags"
8713 ;;
8714esac
8715
8716if test x"$ax_pthread_ok" = xno; then
8717for flag in $ax_pthread_flags; do
8718
8719 case $flag in
8720 none)
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8722$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8723 ;;
8724
8725 -*)
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8727$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8728 PTHREAD_CFLAGS="$flag"
8729 ;;
8730
8731 pthread-config)
8732 # Extract the first word of "pthread-config", so it can be a program name with args.
8733set dummy pthread-config; ac_word=$2
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738else
8739 if test -n "$ax_pthread_config"; then
8740 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_prog_ax_pthread_config="yes"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8752 fi
8753done
8754 done
8755IFS=$as_save_IFS
8756
8757 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8758fi
8759fi
8760ax_pthread_config=$ac_cv_prog_ax_pthread_config
8761if test -n "$ax_pthread_config"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8763$as_echo "$ax_pthread_config" >&6; }
8764else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
8767fi
8768
8769
8770 if test x"$ax_pthread_config" = xno; then continue; fi
8771 PTHREAD_CFLAGS="`pthread-config --cflags`"
8772 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8773 ;;
8774
8775 *)
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8777$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8778 PTHREAD_LIBS="-l$flag"
8779 ;;
8780 esac
8781
8782 save_LIBS="$LIBS"
8783 save_CFLAGS="$CFLAGS"
8784 LIBS="$PTHREAD_LIBS $LIBS"
8785 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8786
8787 # Check for various functions. We must include pthread.h,
8788 # since some functions may be macros. (On the Sequent, we
8789 # need a special flag -Kthread to make this header compile.)
8790 # We check for pthread_join because it is in -lpthread on IRIX
8791 # while pthread_create is in libc. We check for pthread_attr_init
8792 # due to DEC craziness with -lpthreads. We check for
8793 # pthread_cleanup_push because it is one of the few pthread
8794 # functions on Solaris that doesn't have a non-functional libc stub.
8795 # We try pthread_create on general principles.
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h. */
8798#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008799 static void routine(void* a) {a=0;}
8800 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008801int
8802main ()
8803{
8804pthread_t th; pthread_attr_t attr;
8805 pthread_create(&th,0,start_routine,0);
8806 pthread_join(th, 0);
8807 pthread_attr_init(&attr);
8808 pthread_cleanup_push(routine, 0);
8809 pthread_cleanup_pop(0);
8810 ;
8811 return 0;
8812}
8813_ACEOF
8814if ac_fn_c_try_link "$LINENO"; then :
8815 ax_pthread_ok=yes
8816fi
8817rm -f core conftest.err conftest.$ac_objext \
8818 conftest$ac_exeext conftest.$ac_ext
8819
8820 LIBS="$save_LIBS"
8821 CFLAGS="$save_CFLAGS"
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8824$as_echo "$ax_pthread_ok" >&6; }
8825 if test "x$ax_pthread_ok" = xyes; then
8826 break;
8827 fi
8828
8829 PTHREAD_LIBS=""
8830 PTHREAD_CFLAGS=""
8831done
8832fi
8833
8834# Various other checks:
8835if test "x$ax_pthread_ok" = xyes; then
8836 save_LIBS="$LIBS"
8837 LIBS="$PTHREAD_LIBS $LIBS"
8838 save_CFLAGS="$CFLAGS"
8839 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8840
8841 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8843$as_echo_n "checking for joinable pthread attribute... " >&6; }
8844 attr_name=unknown
8845 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h. */
8848#include <pthread.h>
8849int
8850main ()
8851{
8852int attr=$attr; return attr;
8853 ;
8854 return 0;
8855}
8856_ACEOF
8857if ac_fn_c_try_link "$LINENO"; then :
8858 attr_name=$attr; break
8859fi
8860rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 done
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8864$as_echo "$attr_name" >&6; }
8865 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8866
8867cat >>confdefs.h <<_ACEOF
8868#define PTHREAD_CREATE_JOINABLE $attr_name
8869_ACEOF
8870
8871 fi
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8874$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8875 flag=no
8876 case "${host_cpu}-${host_os}" in
8877 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8878 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8879 esac
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8881$as_echo "${flag}" >&6; }
8882 if test "x$flag" != xno; then
8883 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8884 fi
8885
8886 LIBS="$save_LIBS"
8887 CFLAGS="$save_CFLAGS"
8888
8889 # More AIX lossage: must compile with xlc_r or cc_r
8890 if test x"$GCC" != xyes; then
8891 for ac_prog in xlc_r cc_r
8892do
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894set dummy $ac_prog; ac_word=$2
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896$as_echo_n "checking for $ac_word... " >&6; }
8897if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899else
8900 if test -n "$PTHREAD_CC"; then
8901 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8902else
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8910 ac_cv_prog_PTHREAD_CC="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915 done
8916IFS=$as_save_IFS
8917
8918fi
8919fi
8920PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8921if test -n "$PTHREAD_CC"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8923$as_echo "$PTHREAD_CC" >&6; }
8924else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926$as_echo "no" >&6; }
8927fi
8928
8929
8930 test -n "$PTHREAD_CC" && break
8931done
8932test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8933
8934 else
8935 PTHREAD_CC=$CC
8936 fi
8937else
8938 PTHREAD_CC="$CC"
8939fi
8940
8941
8942
8943
8944
8945# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8946if test x"$ax_pthread_ok" = xyes; then
8947
8948$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8949
8950 :
8951else
8952 ax_pthread_ok=no
8953
8954fi
8955ac_ext=c
8956ac_cpp='$CPP $CPPFLAGS'
8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960
8961
8962
8963# Check whether --enable-opencl was given.
8964if test "${enable_opencl+set}" = set; then :
8965 enableval=$enable_opencl; disable_opencl=$enableval
8966else
8967 disable_opencl='yes'
8968fi
8969
8970
8971if test "$disable_opencl" = 'yes'; then
8972 ac_ext=c
8973ac_cpp='$CPP $CPPFLAGS'
8974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976ac_compiler_gnu=$ac_cv_c_compiler_gnu
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8979$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8980if test "${ax_cv_c_compiler_ms+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h. */
8985
8986int
8987main ()
8988{
8989#ifndef _MSC_VER
8990 choke me
8991#endif
8992
8993 ;
8994 return 0;
8995}
8996_ACEOF
8997if ac_fn_c_try_compile "$LINENO"; then :
8998 ax_compiler_ms=yes
8999else
9000 ax_compiler_ms=no
9001fi
9002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003ax_cv_c_compiler_ms=$ax_compiler_ms
9004
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9007$as_echo "$ax_cv_c_compiler_ms" >&6; }
9008 if test X$ax_compiler_ms = Xno; then :
9009 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9010fi
9011
9012 ax_save_CPPFLAGS=$CPPFLAGS
9013 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9014 for ac_header in CL/cl.h OpenCL/cl.h
9015do :
9016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9017ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009019 cat >>confdefs.h <<_ACEOF
9020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9021_ACEOF
9022
9023fi
9024
9025done
9026
9027 CPPFLAGS=$ax_save_CPPFLAGS
9028
9029 for ac_header in windows.h
9030do :
9031 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9032if test "x$ac_cv_header_windows_h" = x""yes; then :
9033 cat >>confdefs.h <<_ACEOF
9034#define HAVE_WINDOWS_H 1
9035_ACEOF
9036
9037fi
9038
9039done
9040
9041
9042
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9045$as_echo_n "checking for OpenCL library... " >&6; }
9046if test "${ax_cv_check_cl_libcl+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048else
9049 ax_cv_check_cl_libcl=no
9050 case $host_cpu in
9051 x86_64) ax_check_cl_libdir=lib64 ;;
9052 *) ax_check_cl_libdir=lib ;;
9053 esac
9054 ax_save_CPPFLAGS=$CPPFLAGS
9055 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9056 ax_save_LIBS=$LIBS
9057 LIBS=""
9058 ax_check_libs="-lOpenCL -lCL -lclparser"
9059 for ax_lib in $ax_check_libs; do
9060 if test X$ax_compiler_ms = Xyes; then :
9061 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9062else
9063 ax_try_lib=$ax_lib
9064fi
9065 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h. */
9068
9069 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9070 # include <windows.h>
9071 # endif
9072 # ifdef HAVE_CL_CL_H
9073 # include <CL/cl.h>
9074 # elif defined(HAVE_OPENCL_CL_H)
9075 # include <OpenCL/cl.h>
9076 # else
9077 # error no CL.h
9078 # endif
9079int
9080main ()
9081{
9082clCreateContextFromType(0,0,0,0,0)
9083 ;
9084 return 0;
9085}
9086_ACEOF
9087if ac_fn_c_try_link "$LINENO"; then :
9088 ax_cv_check_cl_libcl=$ax_try_lib; break
9089else
9090 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"
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h. */
9093
9094 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9095 # include <windows.h>
9096 # endif
9097 # ifdef HAVE_CL_CL_H
9098 # include <CL/cl.h>
9099 # elif defined(HAVE_OPENCL_CL_H)
9100 # include <OpenCL/cl.h>
9101 # else
9102 # error no CL.h
9103 # endif
9104int
9105main ()
9106{
9107clCreateContextFromType(0,0,0,0,0)
9108 ;
9109 return 0;
9110}
9111_ACEOF
9112if ac_fn_c_try_link "$LINENO"; then :
9113 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9114else
9115 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"
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h. */
9118
9119 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9120 # include <windows.h>
9121 # endif
9122 # ifdef HAVE_CL_CL_H
9123 # include <CL/cl.h>
9124 # elif defined(HAVE_OPENCL_CL_H)
9125 # include <OpenCL/cl.h>
9126 # else
9127 # error no CL.h
9128 # endif
9129int
9130main ()
9131{
9132clCreateContextFromType(0,0,0,0,0)
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137if ac_fn_c_try_link "$LINENO"; then :
9138 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9139fi
9140rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142fi
9143rm -f core conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145fi
9146rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 done
9149
9150 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9151 LIBS='-framework OpenCL'
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h. */
9154
9155 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9156 # include <windows.h>
9157 # endif
9158 # ifdef HAVE_CL_CL_H
9159 # include <CL/cl.h>
9160 # elif defined(HAVE_OPENCL_CL_H)
9161 # include <OpenCL/cl.h>
9162 # else
9163 # error no CL.h
9164 # endif
9165int
9166main ()
9167{
9168clCreateContextFromType(0,0,0,0,0)
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_link "$LINENO"; then :
9174 ax_cv_check_cl_libcl=$LIBS
9175fi
9176rm -f core conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178fi
9179
9180 LIBS=$ax_save_LIBS
9181 CPPFLAGS=$ax_save_CPPFLAGS
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9184$as_echo "$ax_cv_check_cl_libcl" >&6; }
9185
9186 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9187 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9188else
9189 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9190$as_echo "#define _OPENCL 1" >>confdefs.h
9191
9192fi
9193 ac_ext=c
9194ac_cpp='$CPP $CPPFLAGS'
9195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9197ac_compiler_gnu=$ac_cv_c_compiler_gnu
9198
9199fi
9200
9201
9202
9203
cristyc7083c12009-10-14 03:16:55 +00009204CFLAGS="$CL_CFLAGS $CFLAGS"
9205LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009206
cristy391f1ce2010-09-09 17:23:28 +00009207if test "$enable_opencl" != no; then
9208 if test "_OPENCL" = '1'; then
9209 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9210 fi
cristyfd9dcd42010-08-08 18:07:02 +00009211fi
cristy2e8b51d2009-10-17 18:26:15 +00009212
cristy3ed852e2009-09-05 21:47:34 +00009213########
9214#
9215# Check for large file support
9216#
9217########
9218# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009219if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009220 enableval=$enable_largefile;
9221fi
9222
9223if test "$enable_largefile" != no; then
9224
cristy8b350f62009-11-15 23:12:43 +00009225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009226$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009227if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009228 $as_echo_n "(cached) " >&6
9229else
9230 ac_cv_sys_largefile_CC=no
9231 if test "$GCC" != yes; then
9232 ac_save_CC=$CC
9233 while :; do
9234 # IRIX 6.2 and later do not support large files by default,
9235 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009237/* end confdefs.h. */
9238#include <sys/types.h>
9239 /* Check that off_t can represent 2**63 - 1 correctly.
9240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9241 since some C++ compilers masquerading as C compilers
9242 incorrectly reject 9223372036854775807. */
9243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9245 && LARGE_OFF_T % 2147483647 == 1)
9246 ? 1 : -1];
9247int
9248main ()
9249{
9250
9251 ;
9252 return 0;
9253}
9254_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009255 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 break
cristy3ed852e2009-09-05 21:47:34 +00009257fi
cristy3ed852e2009-09-05 21:47:34 +00009258rm -f core conftest.err conftest.$ac_objext
9259 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009260 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009261 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009262fi
cristy3ed852e2009-09-05 21:47:34 +00009263rm -f core conftest.err conftest.$ac_objext
9264 break
9265 done
9266 CC=$ac_save_CC
9267 rm -f conftest.$ac_ext
9268 fi
9269fi
cristy8b350f62009-11-15 23:12:43 +00009270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009271$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9272 if test "$ac_cv_sys_largefile_CC" != no; then
9273 CC=$CC$ac_cv_sys_largefile_CC
9274 fi
9275
cristy8b350f62009-11-15 23:12:43 +00009276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009277$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009278if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009279 $as_echo_n "(cached) " >&6
9280else
9281 while :; do
cristy8b350f62009-11-15 23:12:43 +00009282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009283/* end confdefs.h. */
9284#include <sys/types.h>
9285 /* Check that off_t can represent 2**63 - 1 correctly.
9286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9287 since some C++ compilers masquerading as C compilers
9288 incorrectly reject 9223372036854775807. */
9289#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9291 && LARGE_OFF_T % 2147483647 == 1)
9292 ? 1 : -1];
9293int
9294main ()
9295{
9296
9297 ;
9298 return 0;
9299}
9300_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009301if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009302 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009303fi
cristy3ed852e2009-09-05 21:47:34 +00009304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009306/* end confdefs.h. */
9307#define _FILE_OFFSET_BITS 64
9308#include <sys/types.h>
9309 /* Check that off_t can represent 2**63 - 1 correctly.
9310 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9311 since some C++ compilers masquerading as C compilers
9312 incorrectly reject 9223372036854775807. */
9313#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9315 && LARGE_OFF_T % 2147483647 == 1)
9316 ? 1 : -1];
9317int
9318main ()
9319{
9320
9321 ;
9322 return 0;
9323}
9324_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009325if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009326 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009327fi
cristy3ed852e2009-09-05 21:47:34 +00009328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 ac_cv_sys_file_offset_bits=unknown
9330 break
9331done
9332fi
cristy8b350f62009-11-15 23:12:43 +00009333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009334$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9335case $ac_cv_sys_file_offset_bits in #(
9336 no | unknown) ;;
9337 *)
9338cat >>confdefs.h <<_ACEOF
9339#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9340_ACEOF
9341;;
9342esac
9343rm -rf conftest*
9344 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009346$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009347if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009348 $as_echo_n "(cached) " >&6
9349else
9350 while :; do
cristy8b350f62009-11-15 23:12:43 +00009351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009352/* end confdefs.h. */
9353#include <sys/types.h>
9354 /* Check that off_t can represent 2**63 - 1 correctly.
9355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9356 since some C++ compilers masquerading as C compilers
9357 incorrectly reject 9223372036854775807. */
9358#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9360 && LARGE_OFF_T % 2147483647 == 1)
9361 ? 1 : -1];
9362int
9363main ()
9364{
9365
9366 ;
9367 return 0;
9368}
9369_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009370if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009371 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009372fi
cristy3ed852e2009-09-05 21:47:34 +00009373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009375/* end confdefs.h. */
9376#define _LARGE_FILES 1
9377#include <sys/types.h>
9378 /* Check that off_t can represent 2**63 - 1 correctly.
9379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9380 since some C++ compilers masquerading as C compilers
9381 incorrectly reject 9223372036854775807. */
9382#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9384 && LARGE_OFF_T % 2147483647 == 1)
9385 ? 1 : -1];
9386int
9387main ()
9388{
9389
9390 ;
9391 return 0;
9392}
9393_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009394if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009395 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009396fi
cristy3ed852e2009-09-05 21:47:34 +00009397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 ac_cv_sys_large_files=unknown
9399 break
9400done
9401fi
cristy8b350f62009-11-15 23:12:43 +00009402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009403$as_echo "$ac_cv_sys_large_files" >&6; }
9404case $ac_cv_sys_large_files in #(
9405 no | unknown) ;;
9406 *)
9407cat >>confdefs.h <<_ACEOF
9408#define _LARGE_FILES $ac_cv_sys_large_files
9409_ACEOF
9410;;
9411esac
9412rm -rf conftest*
9413 fi
9414fi
9415
cristy8b350f62009-11-15 23:12:43 +00009416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009417$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009418if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009419 $as_echo_n "(cached) " >&6
9420else
9421 while :; do
cristy8b350f62009-11-15 23:12:43 +00009422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009423/* end confdefs.h. */
9424#include <sys/types.h> /* for off_t */
9425 #include <stdio.h>
9426int
9427main ()
9428{
9429int (*fp) (FILE *, off_t, int) = fseeko;
9430 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9431 ;
9432 return 0;
9433}
9434_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009436 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009437fi
cristy8b350f62009-11-15 23:12:43 +00009438rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009441/* end confdefs.h. */
9442#define _LARGEFILE_SOURCE 1
9443#include <sys/types.h> /* for off_t */
9444 #include <stdio.h>
9445int
9446main ()
9447{
9448int (*fp) (FILE *, off_t, int) = fseeko;
9449 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9450 ;
9451 return 0;
9452}
9453_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009455 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009456fi
cristy8b350f62009-11-15 23:12:43 +00009457rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009459 ac_cv_sys_largefile_source=unknown
9460 break
9461done
9462fi
cristy8b350f62009-11-15 23:12:43 +00009463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009464$as_echo "$ac_cv_sys_largefile_source" >&6; }
9465case $ac_cv_sys_largefile_source in #(
9466 no | unknown) ;;
9467 *)
9468cat >>confdefs.h <<_ACEOF
9469#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9470_ACEOF
9471;;
9472esac
9473rm -rf conftest*
9474
9475# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9476# in glibc 2.1.3, but that breaks too many other things.
9477# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9478if test $ac_cv_sys_largefile_source != unknown; then
9479
cristy8b350f62009-11-15 23:12:43 +00009480$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009481
9482fi
9483
9484LFS_CPPFLAGS=''
9485if test "$enable_largefile" != no; then
9486 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9487 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9488 else
cristy8b350f62009-11-15 23:12:43 +00009489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009490$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009491 if test "$cross_compiling" = yes; then :
9492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009494as_fn_error $? "cannot run test program while cross compiling
9495See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009496else
cristy8b350f62009-11-15 23:12:43 +00009497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009499#include <unistd.h>
9500 main () {
9501 exit(!(sizeof(off_t) == 8));
9502 }
9503_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009504if ac_fn_c_try_run "$LINENO"; then :
9505 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009506
cristy8b350f62009-11-15 23:12:43 +00009507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009508$as_echo "yes" >&6; }
9509else
cristy8b350f62009-11-15 23:12:43 +00009510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009511$as_echo "no" >&6; }
9512fi
cristy8b350f62009-11-15 23:12:43 +00009513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9514 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009515fi
9516
cristy3ed852e2009-09-05 21:47:34 +00009517 fi
9518 if test "$ac_cv_sys_large_files" != 'no'; then
9519 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9520 fi
9521 if test "$ac_cv_sys_largefile_source" != 'no'; then
9522 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9523 fi
9524fi
9525
9526
9527#
9528# Configure libtool & libltdl
9529#
9530# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009531enable_dlopen=yes
9532
9533
9534
9535case `pwd` in
9536 *\ * | *\ *)
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9538$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9539esac
9540
9541
9542
9543macro_version='2.2.6b'
9544macro_revision='1.3017'
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558ltmain="$ac_aux_dir/ltmain.sh"
9559
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9561$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9562if test "${lt_cv_path_NM+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9564else
9565 if test -n "$NM"; then
9566 # Let the user override the test.
9567 lt_cv_path_NM="$NM"
9568else
9569 lt_nm_to_check="${ac_tool_prefix}nm"
9570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9571 lt_nm_to_check="$lt_nm_to_check nm"
9572 fi
9573 for lt_tmp_nm in $lt_nm_to_check; do
9574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9576 IFS="$lt_save_ifs"
9577 test -z "$ac_dir" && ac_dir=.
9578 tmp_nm="$ac_dir/$lt_tmp_nm"
9579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9580 # Check to see if the nm accepts a BSD-compat flag.
9581 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9582 # nm: unknown option "B" ignored
9583 # Tru64's nm complains that /dev/null is an invalid object file
9584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9585 */dev/null* | *'Invalid file or object type'*)
9586 lt_cv_path_NM="$tmp_nm -B"
9587 break
9588 ;;
9589 *)
9590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9591 */dev/null*)
9592 lt_cv_path_NM="$tmp_nm -p"
9593 break
9594 ;;
9595 *)
9596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9597 continue # so that we can try to find one that supports BSD flags
9598 ;;
9599 esac
9600 ;;
9601 esac
9602 fi
9603 done
9604 IFS="$lt_save_ifs"
9605 done
9606 : ${lt_cv_path_NM=no}
9607fi
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9610$as_echo "$lt_cv_path_NM" >&6; }
9611if test "$lt_cv_path_NM" != "no"; then
9612 NM="$lt_cv_path_NM"
9613else
9614 # Didn't find any BSD compatible name lister, look for dumpbin.
9615 if test -n "$ac_tool_prefix"; then
9616 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9617 do
9618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621$as_echo_n "checking for $ac_word... " >&6; }
9622if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624else
9625 if test -n "$DUMPBIN"; then
9626 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9635 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9638 fi
9639done
9640 done
9641IFS=$as_save_IFS
9642
9643fi
9644fi
9645DUMPBIN=$ac_cv_prog_DUMPBIN
9646if test -n "$DUMPBIN"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9648$as_echo "$DUMPBIN" >&6; }
9649else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651$as_echo "no" >&6; }
9652fi
9653
9654
9655 test -n "$DUMPBIN" && break
9656 done
9657fi
9658if test -z "$DUMPBIN"; then
9659 ac_ct_DUMPBIN=$DUMPBIN
9660 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9661do
9662 # Extract the first word of "$ac_prog", so it can be a program name with args.
9663set dummy $ac_prog; ac_word=$2
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665$as_echo_n "checking for $ac_word... " >&6; }
9666if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9668else
9669 if test -n "$ac_ct_DUMPBIN"; then
9670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9671else
9672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673for as_dir in $PATH
9674do
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 break 2
9682 fi
9683done
9684 done
9685IFS=$as_save_IFS
9686
9687fi
9688fi
9689ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9690if test -n "$ac_ct_DUMPBIN"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9692$as_echo "$ac_ct_DUMPBIN" >&6; }
9693else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9696fi
9697
9698
9699 test -n "$ac_ct_DUMPBIN" && break
9700done
9701
9702 if test "x$ac_ct_DUMPBIN" = x; then
9703 DUMPBIN=":"
9704 else
9705 case $cross_compiling:$ac_tool_warned in
9706yes:)
9707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9709ac_tool_warned=yes ;;
9710esac
9711 DUMPBIN=$ac_ct_DUMPBIN
9712 fi
9713fi
9714
9715
9716 if test "$DUMPBIN" != ":"; then
9717 NM="$DUMPBIN"
9718 fi
9719fi
9720test -z "$NM" && NM=nm
9721
9722
9723
9724
9725
9726
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9728$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9729if test "${lt_cv_nm_interface+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731else
9732 lt_cv_nm_interface="BSD nm"
9733 echo "int some_variable = 0;" > conftest.$ac_ext
cristy98dddb52010-11-04 00:30:15 +00009734 (eval echo "\"\$as_me:9734: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009735 (eval "$ac_compile" 2>conftest.err)
9736 cat conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +00009737 (eval echo "\"\$as_me:9737: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9739 cat conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +00009740 (eval echo "\"\$as_me:9740: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009741 cat conftest.out >&5
9742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9743 lt_cv_nm_interface="MS dumpbin"
9744 fi
9745 rm -f conftest*
9746fi
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9748$as_echo "$lt_cv_nm_interface" >&6; }
9749
9750# find the maximum length of command line arguments
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9752$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9753if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755else
9756 i=0
9757 teststring="ABCD"
9758
9759 case $build_os in
9760 msdosdjgpp*)
9761 # On DJGPP, this test can blow up pretty badly due to problems in libc
9762 # (any single argument exceeding 2000 bytes causes a buffer overrun
9763 # during glob expansion). Even if it were fixed, the result of this
9764 # check would be larger than it should be.
9765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9766 ;;
9767
9768 gnu*)
9769 # Under GNU Hurd, this test is not required because there is
9770 # no limit to the length of command line arguments.
9771 # Libtool will interpret -1 as no limit whatsoever
9772 lt_cv_sys_max_cmd_len=-1;
9773 ;;
9774
9775 cygwin* | mingw* | cegcc*)
9776 # On Win9x/ME, this test blows up -- it succeeds, but takes
9777 # about 5 minutes as the teststring grows exponentially.
9778 # Worse, since 9x/ME are not pre-emptively multitasking,
9779 # you end up with a "frozen" computer, even though with patience
9780 # the test eventually succeeds (with a max line length of 256k).
9781 # Instead, let's just punt: use the minimum linelength reported by
9782 # all of the supported platforms: 8192 (on NT/2K/XP).
9783 lt_cv_sys_max_cmd_len=8192;
9784 ;;
9785
9786 amigaos*)
9787 # On AmigaOS with pdksh, this test takes hours, literally.
9788 # So we just punt and use a minimum line length of 8192.
9789 lt_cv_sys_max_cmd_len=8192;
9790 ;;
9791
9792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9793 # This has been around since 386BSD, at least. Likely further.
9794 if test -x /sbin/sysctl; then
9795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9796 elif test -x /usr/sbin/sysctl; then
9797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9798 else
9799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9800 fi
9801 # And add a safety zone
9802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9804 ;;
9805
9806 interix*)
9807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9808 lt_cv_sys_max_cmd_len=196608
9809 ;;
9810
9811 osf*)
9812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9814 # nice to cause kernel panics so lets avoid the loop below.
9815 # First set a reasonable default.
9816 lt_cv_sys_max_cmd_len=16384
9817 #
9818 if test -x /sbin/sysconfig; then
9819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9821 esac
9822 fi
9823 ;;
9824 sco3.2v5*)
9825 lt_cv_sys_max_cmd_len=102400
9826 ;;
9827 sysv5* | sco5v6* | sysv4.2uw2*)
9828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9829 if test -n "$kargmax"; then
9830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9831 else
9832 lt_cv_sys_max_cmd_len=32768
9833 fi
9834 ;;
9835 *)
9836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9837 if test -n "$lt_cv_sys_max_cmd_len"; then
9838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9840 else
9841 # Make teststring a little bigger before we do anything with it.
9842 # a 1K string should be a reasonable start.
9843 for i in 1 2 3 4 5 6 7 8 ; do
9844 teststring=$teststring$teststring
9845 done
9846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9847 # If test is not a shell built-in, we'll probably end up computing a
9848 # maximum length that is only half of the actual maximum length, but
9849 # we can't tell.
9850 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9851 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9852 test $i != 17 # 1/2 MB should be enough
9853 do
9854 i=`expr $i + 1`
9855 teststring=$teststring$teststring
9856 done
9857 # Only check the string length outside the loop.
9858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9859 teststring=
9860 # Add a significant safety factor because C++ compilers can tack on
9861 # massive amounts of additional arguments before passing them to the
9862 # linker. It appears as though 1/2 is a usable value.
9863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9864 fi
9865 ;;
9866 esac
9867
9868fi
9869
9870if test -n $lt_cv_sys_max_cmd_len ; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9872$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9873else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9875$as_echo "none" >&6; }
9876fi
9877max_cmd_len=$lt_cv_sys_max_cmd_len
9878
9879
9880
9881
9882
9883
9884: ${CP="cp -f"}
9885: ${MV="mv -f"}
9886: ${RM="rm -f"}
9887
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9889$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9890# Try some XSI features
9891xsi_shell=no
9892( _lt_dummy="a/b/c"
9893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9894 = c,a/b,, \
9895 && eval 'test $(( 1 + 1 )) -eq 2 \
9896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9897 && xsi_shell=yes
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9899$as_echo "$xsi_shell" >&6; }
9900
9901
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9903$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9904lt_shell_append=no
9905( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9906 >/dev/null 2>&1 \
9907 && lt_shell_append=yes
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9909$as_echo "$lt_shell_append" >&6; }
9910
9911
9912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9913 lt_unset=unset
9914else
9915 lt_unset=false
9916fi
9917
9918
9919
9920
9921
9922# test EBCDIC or ASCII
9923case `echo X|tr X '\101'` in
9924 A) # ASCII based system
9925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9926 lt_SP2NL='tr \040 \012'
9927 lt_NL2SP='tr \015\012 \040\040'
9928 ;;
9929 *) # EBCDIC based system
9930 lt_SP2NL='tr \100 \n'
9931 lt_NL2SP='tr \r\n \100\100'
9932 ;;
9933esac
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9944$as_echo_n "checking for $LD option to reload object files... " >&6; }
9945if test "${lt_cv_ld_reload_flag+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947else
9948 lt_cv_ld_reload_flag='-r'
9949fi
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9951$as_echo "$lt_cv_ld_reload_flag" >&6; }
9952reload_flag=$lt_cv_ld_reload_flag
9953case $reload_flag in
9954"" | " "*) ;;
9955*) reload_flag=" $reload_flag" ;;
9956esac
9957reload_cmds='$LD$reload_flag -o $output$reload_objs'
9958case $host_os in
9959 darwin*)
9960 if test "$GCC" = yes; then
9961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9962 else
9963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9964 fi
9965 ;;
9966esac
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976if test -n "$ac_tool_prefix"; then
9977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9978set dummy ${ac_tool_prefix}objdump; ac_word=$2
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980$as_echo_n "checking for $ac_word... " >&6; }
9981if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983else
9984 if test -n "$OBJDUMP"; then
9985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9986else
9987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988for as_dir in $PATH
9989do
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9997 fi
9998done
9999 done
10000IFS=$as_save_IFS
10001
10002fi
10003fi
10004OBJDUMP=$ac_cv_prog_OBJDUMP
10005if test -n "$OBJDUMP"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10007$as_echo "$OBJDUMP" >&6; }
10008else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010$as_echo "no" >&6; }
10011fi
10012
10013
10014fi
10015if test -z "$ac_cv_prog_OBJDUMP"; then
10016 ac_ct_OBJDUMP=$OBJDUMP
10017 # Extract the first word of "objdump", so it can be a program name with args.
10018set dummy objdump; ac_word=$2
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020$as_echo_n "checking for $ac_word... " >&6; }
10021if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10023else
10024 if test -n "$ac_ct_OBJDUMP"; then
10025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10026else
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10037 fi
10038done
10039 done
10040IFS=$as_save_IFS
10041
10042fi
10043fi
10044ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10045if test -n "$ac_ct_OBJDUMP"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10047$as_echo "$ac_ct_OBJDUMP" >&6; }
10048else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050$as_echo "no" >&6; }
10051fi
10052
10053 if test "x$ac_ct_OBJDUMP" = x; then
10054 OBJDUMP="false"
10055 else
10056 case $cross_compiling:$ac_tool_warned in
10057yes:)
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10060ac_tool_warned=yes ;;
10061esac
10062 OBJDUMP=$ac_ct_OBJDUMP
10063 fi
10064else
10065 OBJDUMP="$ac_cv_prog_OBJDUMP"
10066fi
10067
10068test -z "$OBJDUMP" && OBJDUMP=objdump
10069
10070
10071
10072
10073
10074
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10076$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10077if test "${lt_cv_deplibs_check_method+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079else
10080 lt_cv_file_magic_cmd='$MAGIC_CMD'
10081lt_cv_file_magic_test_file=
10082lt_cv_deplibs_check_method='unknown'
10083# Need to set the preceding variable on all platforms that support
10084# interlibrary dependencies.
10085# 'none' -- dependencies not supported.
10086# `unknown' -- same as none, but documents that we really don't know.
10087# 'pass_all' -- all dependencies passed with no checks.
10088# 'test_compile' -- check by making test program.
10089# 'file_magic [[regex]]' -- check by looking for files in library path
10090# which responds to the $file_magic_cmd with a given extended regex.
10091# If you have `file' or equivalent on your system and you're not sure
10092# whether `pass_all' will *always* work, you probably want this one.
10093
10094case $host_os in
10095aix[4-9]*)
10096 lt_cv_deplibs_check_method=pass_all
10097 ;;
10098
10099beos*)
10100 lt_cv_deplibs_check_method=pass_all
10101 ;;
10102
10103bsdi[45]*)
10104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10105 lt_cv_file_magic_cmd='/usr/bin/file -L'
10106 lt_cv_file_magic_test_file=/shlib/libc.so
10107 ;;
10108
10109cygwin*)
10110 # func_win32_libid is a shell function defined in ltmain.sh
10111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10112 lt_cv_file_magic_cmd='func_win32_libid'
10113 ;;
10114
10115mingw* | pw32*)
10116 # Base MSYS/MinGW do not provide the 'file' command needed by
10117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10118 # unless we find 'file', for example because we are cross-compiling.
10119 if ( file / ) >/dev/null 2>&1; then
10120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10121 lt_cv_file_magic_cmd='func_win32_libid'
10122 else
10123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10124 lt_cv_file_magic_cmd='$OBJDUMP -f'
10125 fi
10126 ;;
10127
10128cegcc)
10129 # use the weaker test based on 'objdump'. See mingw*.
10130 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10131 lt_cv_file_magic_cmd='$OBJDUMP -f'
10132 ;;
10133
10134darwin* | rhapsody*)
10135 lt_cv_deplibs_check_method=pass_all
10136 ;;
10137
10138freebsd* | dragonfly*)
10139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10140 case $host_cpu in
10141 i*86 )
10142 # Not sure whether the presence of OpenBSD here was a mistake.
10143 # Let's accept both of them until this is cleared up.
10144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10145 lt_cv_file_magic_cmd=/usr/bin/file
10146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10147 ;;
10148 esac
10149 else
10150 lt_cv_deplibs_check_method=pass_all
10151 fi
10152 ;;
10153
10154gnu*)
10155 lt_cv_deplibs_check_method=pass_all
10156 ;;
10157
10158hpux10.20* | hpux11*)
10159 lt_cv_file_magic_cmd=/usr/bin/file
10160 case $host_cpu in
10161 ia64*)
10162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10163 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10164 ;;
10165 hppa*64*)
10166 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]'
10167 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10168 ;;
10169 *)
10170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10171 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10172 ;;
10173 esac
10174 ;;
10175
10176interix[3-9]*)
10177 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10179 ;;
10180
10181irix5* | irix6* | nonstopux*)
10182 case $LD in
10183 *-32|*"-32 ") libmagic=32-bit;;
10184 *-n32|*"-n32 ") libmagic=N32;;
10185 *-64|*"-64 ") libmagic=64-bit;;
10186 *) libmagic=never-match;;
10187 esac
10188 lt_cv_deplibs_check_method=pass_all
10189 ;;
10190
10191# This must be Linux ELF.
10192linux* | k*bsd*-gnu)
10193 lt_cv_deplibs_check_method=pass_all
10194 ;;
10195
10196netbsd*)
10197 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10199 else
10200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10201 fi
10202 ;;
10203
10204newos6*)
10205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10206 lt_cv_file_magic_cmd=/usr/bin/file
10207 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10208 ;;
10209
10210*nto* | *qnx*)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213
10214openbsd*)
10215 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10217 else
10218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10219 fi
10220 ;;
10221
10222osf3* | osf4* | osf5*)
10223 lt_cv_deplibs_check_method=pass_all
10224 ;;
10225
10226rdos*)
10227 lt_cv_deplibs_check_method=pass_all
10228 ;;
10229
10230solaris*)
10231 lt_cv_deplibs_check_method=pass_all
10232 ;;
10233
10234sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10235 lt_cv_deplibs_check_method=pass_all
10236 ;;
10237
10238sysv4 | sysv4.3*)
10239 case $host_vendor in
10240 motorola)
10241 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]'
10242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10243 ;;
10244 ncr)
10245 lt_cv_deplibs_check_method=pass_all
10246 ;;
10247 sequent)
10248 lt_cv_file_magic_cmd='/bin/file'
10249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10250 ;;
10251 sni)
10252 lt_cv_file_magic_cmd='/bin/file'
10253 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10254 lt_cv_file_magic_test_file=/lib/libc.so
10255 ;;
10256 siemens)
10257 lt_cv_deplibs_check_method=pass_all
10258 ;;
10259 pc)
10260 lt_cv_deplibs_check_method=pass_all
10261 ;;
10262 esac
10263 ;;
10264
10265tpf*)
10266 lt_cv_deplibs_check_method=pass_all
10267 ;;
10268esac
10269
10270fi
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10272$as_echo "$lt_cv_deplibs_check_method" >&6; }
10273file_magic_cmd=$lt_cv_file_magic_cmd
10274deplibs_check_method=$lt_cv_deplibs_check_method
10275test -z "$deplibs_check_method" && deplibs_check_method=unknown
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288if test -n "$ac_tool_prefix"; then
10289 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10290set dummy ${ac_tool_prefix}ar; ac_word=$2
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
10293if test "${ac_cv_prog_AR+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295else
10296 if test -n "$AR"; then
10297 ac_cv_prog_AR="$AR" # Let the user override the test.
10298else
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10306 ac_cv_prog_AR="${ac_tool_prefix}ar"
10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10309 fi
10310done
10311 done
10312IFS=$as_save_IFS
10313
10314fi
10315fi
10316AR=$ac_cv_prog_AR
10317if test -n "$AR"; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10319$as_echo "$AR" >&6; }
10320else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
10323fi
10324
10325
10326fi
10327if test -z "$ac_cv_prog_AR"; then
10328 ac_ct_AR=$AR
10329 # Extract the first word of "ar", so it can be a program name with args.
10330set dummy ar; ac_word=$2
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332$as_echo_n "checking for $ac_word... " >&6; }
10333if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
10335else
10336 if test -n "$ac_ct_AR"; then
10337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10338else
10339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10346 ac_cv_prog_ac_ct_AR="ar"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350done
10351 done
10352IFS=$as_save_IFS
10353
10354fi
10355fi
10356ac_ct_AR=$ac_cv_prog_ac_ct_AR
10357if test -n "$ac_ct_AR"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10359$as_echo "$ac_ct_AR" >&6; }
10360else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
10363fi
10364
10365 if test "x$ac_ct_AR" = x; then
10366 AR="false"
10367 else
10368 case $cross_compiling:$ac_tool_warned in
10369yes:)
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10372ac_tool_warned=yes ;;
10373esac
10374 AR=$ac_ct_AR
10375 fi
10376else
10377 AR="$ac_cv_prog_AR"
10378fi
10379
10380test -z "$AR" && AR=ar
10381test -z "$AR_FLAGS" && AR_FLAGS=cru
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393if test -n "$ac_tool_prefix"; then
10394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10395set dummy ${ac_tool_prefix}strip; ac_word=$2
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397$as_echo_n "checking for $ac_word... " >&6; }
10398if test "${ac_cv_prog_STRIP+set}" = set; then :
10399 $as_echo_n "(cached) " >&6
10400else
10401 if test -n "$STRIP"; then
10402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10403else
10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in $PATH
10406do
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10414 fi
10415done
10416 done
10417IFS=$as_save_IFS
10418
10419fi
10420fi
10421STRIP=$ac_cv_prog_STRIP
10422if test -n "$STRIP"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10424$as_echo "$STRIP" >&6; }
10425else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427$as_echo "no" >&6; }
10428fi
10429
10430
10431fi
10432if test -z "$ac_cv_prog_STRIP"; then
10433 ac_ct_STRIP=$STRIP
10434 # Extract the first word of "strip", so it can be a program name with args.
10435set dummy strip; ac_word=$2
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
10438if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441 if test -n "$ac_ct_STRIP"; then
10442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10443else
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10451 ac_cv_prog_ac_ct_STRIP="strip"
10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 break 2
10454 fi
10455done
10456 done
10457IFS=$as_save_IFS
10458
10459fi
10460fi
10461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10462if test -n "$ac_ct_STRIP"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10464$as_echo "$ac_ct_STRIP" >&6; }
10465else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
10468fi
10469
10470 if test "x$ac_ct_STRIP" = x; then
10471 STRIP=":"
10472 else
10473 case $cross_compiling:$ac_tool_warned in
10474yes:)
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10477ac_tool_warned=yes ;;
10478esac
10479 STRIP=$ac_ct_STRIP
10480 fi
10481else
10482 STRIP="$ac_cv_prog_STRIP"
10483fi
10484
10485test -z "$STRIP" && STRIP=:
10486
10487
10488
10489
10490
10491
10492if test -n "$ac_tool_prefix"; then
10493 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10494set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496$as_echo_n "checking for $ac_word... " >&6; }
10497if test "${ac_cv_prog_RANLIB+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 if test -n "$RANLIB"; then
10501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10502else
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514done
10515 done
10516IFS=$as_save_IFS
10517
10518fi
10519fi
10520RANLIB=$ac_cv_prog_RANLIB
10521if test -n "$RANLIB"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10523$as_echo "$RANLIB" >&6; }
10524else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528
10529
10530fi
10531if test -z "$ac_cv_prog_RANLIB"; then
10532 ac_ct_RANLIB=$RANLIB
10533 # Extract the first word of "ranlib", so it can be a program name with args.
10534set dummy ranlib; ac_word=$2
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
10537if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539else
10540 if test -n "$ac_ct_RANLIB"; then
10541 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10550 ac_cv_prog_ac_ct_RANLIB="ranlib"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555 done
10556IFS=$as_save_IFS
10557
10558fi
10559fi
10560ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10561if test -n "$ac_ct_RANLIB"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10563$as_echo "$ac_ct_RANLIB" >&6; }
10564else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569 if test "x$ac_ct_RANLIB" = x; then
10570 RANLIB=":"
10571 else
10572 case $cross_compiling:$ac_tool_warned in
10573yes:)
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10576ac_tool_warned=yes ;;
10577esac
10578 RANLIB=$ac_ct_RANLIB
10579 fi
10580else
10581 RANLIB="$ac_cv_prog_RANLIB"
10582fi
10583
10584test -z "$RANLIB" && RANLIB=:
10585
10586
10587
10588
10589
10590
10591# Determine commands to create old-style static archives.
10592old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10593old_postinstall_cmds='chmod 644 $oldlib'
10594old_postuninstall_cmds=
10595
10596if test -n "$RANLIB"; then
10597 case $host_os in
10598 openbsd*)
10599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10600 ;;
10601 *)
10602 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10603 ;;
10604 esac
10605 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10606fi
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
10640
10641# If no C compiler was specified, use CC.
10642LTCC=${LTCC-"$CC"}
10643
10644# If no C compiler flags were specified, use CFLAGS.
10645LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10646
10647# Allow CC to be a program name with arguments.
10648compiler=$CC
10649
10650
10651# Check for command to grab the raw symbol name followed by C symbol from nm.
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10653$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10654if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656else
10657
10658# These are sane defaults that work on at least a few old systems.
10659# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10660
10661# Character class describing NM global symbol codes.
10662symcode='[BCDEGRST]'
10663
10664# Regexp to match symbols that can be accessed directly from C.
10665sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10666
10667# Define system-specific variables.
10668case $host_os in
10669aix*)
10670 symcode='[BCDT]'
10671 ;;
10672cygwin* | mingw* | pw32* | cegcc*)
10673 symcode='[ABCDGISTW]'
10674 ;;
10675hpux*)
10676 if test "$host_cpu" = ia64; then
10677 symcode='[ABCDEGRST]'
10678 fi
10679 ;;
10680irix* | nonstopux*)
10681 symcode='[BCDEGRST]'
10682 ;;
10683osf*)
10684 symcode='[BCDEGQRST]'
10685 ;;
10686solaris*)
10687 symcode='[BDRT]'
10688 ;;
10689sco3.2v5*)
10690 symcode='[DT]'
10691 ;;
10692sysv4.2uw2*)
10693 symcode='[DT]'
10694 ;;
10695sysv5* | sco5v6* | unixware* | OpenUNIX*)
10696 symcode='[ABDT]'
10697 ;;
10698sysv4)
10699 symcode='[DFNSTU]'
10700 ;;
10701esac
10702
10703# If we're using GNU nm, then use its standard symbol codes.
10704case `$NM -V 2>&1` in
10705*GNU* | *'with BFD'*)
10706 symcode='[ABCDGIRSTW]' ;;
10707esac
10708
10709# Transform an extracted symbol line into a proper C declaration.
10710# Some systems (esp. on ia64) link data and code symbols differently,
10711# so use this general approach.
10712lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10713
10714# Transform an extracted symbol line into symbol name and symbol address
10715lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10716lt_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'"
10717
10718# Handle CRLF in mingw tool chain
10719opt_cr=
10720case $build_os in
10721mingw*)
10722 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10723 ;;
10724esac
10725
10726# Try without a prefix underscore, then with it.
10727for ac_symprfx in "" "_"; do
10728
10729 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10730 symxfrm="\\1 $ac_symprfx\\2 \\2"
10731
10732 # Write the raw and C identifiers.
10733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10734 # Fake it for dumpbin and say T for any non-static function
10735 # and D for any global variable.
10736 # Also find C++ and __fastcall symbols from MSVC++,
10737 # which start with @ or ?.
10738 lt_cv_sys_global_symbol_pipe="$AWK '"\
10739" {last_section=section; section=\$ 3};"\
10740" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10741" \$ 0!~/External *\|/{next};"\
10742" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10743" {if(hide[section]) next};"\
10744" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10745" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10746" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10747" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10748" ' prfx=^$ac_symprfx"
10749 else
10750 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10751 fi
10752
10753 # Check to see that the pipe works correctly.
10754 pipe_works=no
10755
10756 rm -f conftest*
10757 cat > conftest.$ac_ext <<_LT_EOF
10758#ifdef __cplusplus
10759extern "C" {
10760#endif
10761char nm_test_var;
10762void nm_test_func(void);
10763void nm_test_func(void){}
10764#ifdef __cplusplus
10765}
10766#endif
10767int main(){nm_test_var='a';nm_test_func();return(0);}
10768_LT_EOF
10769
10770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10771 (eval $ac_compile) 2>&5
10772 ac_status=$?
10773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774 test $ac_status = 0; }; then
10775 # Now try to grab the symbols.
10776 nlist=conftest.nm
10777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10778 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10779 ac_status=$?
10780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781 test $ac_status = 0; } && test -s "$nlist"; then
10782 # Try sorting and uniquifying the output.
10783 if sort "$nlist" | uniq > "$nlist"T; then
10784 mv -f "$nlist"T "$nlist"
10785 else
10786 rm -f "$nlist"T
10787 fi
10788
10789 # Make sure that we snagged all the symbols we need.
10790 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10791 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10792 cat <<_LT_EOF > conftest.$ac_ext
10793#ifdef __cplusplus
10794extern "C" {
10795#endif
10796
10797_LT_EOF
10798 # Now generate the symbol file.
10799 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10800
10801 cat <<_LT_EOF >> conftest.$ac_ext
10802
10803/* The mapping between symbol names and symbols. */
10804const struct {
10805 const char *name;
10806 void *address;
10807}
10808lt__PROGRAM__LTX_preloaded_symbols[] =
10809{
10810 { "@PROGRAM@", (void *) 0 },
10811_LT_EOF
10812 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10813 cat <<\_LT_EOF >> conftest.$ac_ext
10814 {0, (void *) 0}
10815};
10816
10817/* This works around a problem in FreeBSD linker */
10818#ifdef FREEBSD_WORKAROUND
10819static const void *lt_preloaded_setup() {
10820 return lt__PROGRAM__LTX_preloaded_symbols;
10821}
10822#endif
10823
10824#ifdef __cplusplus
10825}
10826#endif
10827_LT_EOF
10828 # Now try linking the two files.
10829 mv conftest.$ac_objext conftstm.$ac_objext
10830 lt_save_LIBS="$LIBS"
10831 lt_save_CFLAGS="$CFLAGS"
10832 LIBS="conftstm.$ac_objext"
10833 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10835 (eval $ac_link) 2>&5
10836 ac_status=$?
10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10838 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10839 pipe_works=yes
10840 fi
10841 LIBS="$lt_save_LIBS"
10842 CFLAGS="$lt_save_CFLAGS"
10843 else
10844 echo "cannot find nm_test_func in $nlist" >&5
10845 fi
10846 else
10847 echo "cannot find nm_test_var in $nlist" >&5
10848 fi
10849 else
10850 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10851 fi
10852 else
10853 echo "$progname: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 fi
10856 rm -rf conftest* conftst*
10857
10858 # Do not use the global_symbol_pipe unless it works.
10859 if test "$pipe_works" = yes; then
10860 break
10861 else
10862 lt_cv_sys_global_symbol_pipe=
10863 fi
10864done
10865
10866fi
10867
10868if test -z "$lt_cv_sys_global_symbol_pipe"; then
10869 lt_cv_sys_global_symbol_to_cdecl=
10870fi
10871if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10873$as_echo "failed" >&6; }
10874else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10876$as_echo "ok" >&6; }
10877fi
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900# Check whether --enable-libtool-lock was given.
10901if test "${enable_libtool_lock+set}" = set; then :
10902 enableval=$enable_libtool_lock;
10903fi
10904
10905test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10906
10907# Some flags need to be propagated to the compiler or linker for good
10908# libtool support.
10909case $host in
10910ia64-*-hpux*)
10911 # Find out which ABI we are using.
10912 echo 'int i;' > conftest.$ac_ext
10913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10914 (eval $ac_compile) 2>&5
10915 ac_status=$?
10916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10917 test $ac_status = 0; }; then
10918 case `/usr/bin/file conftest.$ac_objext` in
10919 *ELF-32*)
10920 HPUX_IA64_MODE="32"
10921 ;;
10922 *ELF-64*)
10923 HPUX_IA64_MODE="64"
10924 ;;
10925 esac
10926 fi
10927 rm -rf conftest*
10928 ;;
10929*-*-irix6*)
10930 # Find out which ABI we are using.
cristy98dddb52010-11-04 00:30:15 +000010931 echo '#line 10931 "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10933 (eval $ac_compile) 2>&5
10934 ac_status=$?
10935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10936 test $ac_status = 0; }; then
10937 if test "$lt_cv_prog_gnu_ld" = yes; then
10938 case `/usr/bin/file conftest.$ac_objext` in
10939 *32-bit*)
10940 LD="${LD-ld} -melf32bsmip"
10941 ;;
10942 *N32*)
10943 LD="${LD-ld} -melf32bmipn32"
10944 ;;
10945 *64-bit*)
10946 LD="${LD-ld} -melf64bmip"
10947 ;;
10948 esac
10949 else
10950 case `/usr/bin/file conftest.$ac_objext` in
10951 *32-bit*)
10952 LD="${LD-ld} -32"
10953 ;;
10954 *N32*)
10955 LD="${LD-ld} -n32"
10956 ;;
10957 *64-bit*)
10958 LD="${LD-ld} -64"
10959 ;;
10960 esac
10961 fi
10962 fi
10963 rm -rf conftest*
10964 ;;
10965
10966x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10967s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10968 # Find out which ABI we are using.
10969 echo 'int i;' > conftest.$ac_ext
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10971 (eval $ac_compile) 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; }; then
10975 case `/usr/bin/file conftest.o` in
10976 *32-bit*)
10977 case $host in
10978 x86_64-*kfreebsd*-gnu)
10979 LD="${LD-ld} -m elf_i386_fbsd"
10980 ;;
10981 x86_64-*linux*)
10982 LD="${LD-ld} -m elf_i386"
10983 ;;
10984 ppc64-*linux*|powerpc64-*linux*)
10985 LD="${LD-ld} -m elf32ppclinux"
10986 ;;
10987 s390x-*linux*)
10988 LD="${LD-ld} -m elf_s390"
10989 ;;
10990 sparc64-*linux*)
10991 LD="${LD-ld} -m elf32_sparc"
10992 ;;
10993 esac
10994 ;;
10995 *64-bit*)
10996 case $host in
10997 x86_64-*kfreebsd*-gnu)
10998 LD="${LD-ld} -m elf_x86_64_fbsd"
10999 ;;
11000 x86_64-*linux*)
11001 LD="${LD-ld} -m elf_x86_64"
11002 ;;
11003 ppc*-*linux*|powerpc*-*linux*)
11004 LD="${LD-ld} -m elf64ppc"
11005 ;;
11006 s390*-*linux*|s390*-*tpf*)
11007 LD="${LD-ld} -m elf64_s390"
11008 ;;
11009 sparc*-*linux*)
11010 LD="${LD-ld} -m elf64_sparc"
11011 ;;
11012 esac
11013 ;;
11014 esac
11015 fi
11016 rm -rf conftest*
11017 ;;
11018
11019*-*-sco3.2v5*)
11020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11021 SAVE_CFLAGS="$CFLAGS"
11022 CFLAGS="$CFLAGS -belf"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11024$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11025if test "${lt_cv_cc_needs_belf+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027else
11028 ac_ext=c
11029ac_cpp='$CPP $CPPFLAGS'
11030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11032ac_compiler_gnu=$ac_cv_c_compiler_gnu
11033
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h. */
11036
11037int
11038main ()
11039{
11040
11041 ;
11042 return 0;
11043}
11044_ACEOF
11045if ac_fn_c_try_link "$LINENO"; then :
11046 lt_cv_cc_needs_belf=yes
11047else
11048 lt_cv_cc_needs_belf=no
11049fi
11050rm -f core conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11052 ac_ext=c
11053ac_cpp='$CPP $CPPFLAGS'
11054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11056ac_compiler_gnu=$ac_cv_c_compiler_gnu
11057
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11060$as_echo "$lt_cv_cc_needs_belf" >&6; }
11061 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11062 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11063 CFLAGS="$SAVE_CFLAGS"
11064 fi
11065 ;;
11066sparc*-*solaris*)
11067 # Find out which ABI we are using.
11068 echo 'int i;' > conftest.$ac_ext
11069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11070 (eval $ac_compile) 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073 test $ac_status = 0; }; then
11074 case `/usr/bin/file conftest.o` in
11075 *64-bit*)
11076 case $lt_cv_prog_gnu_ld in
11077 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11078 *)
11079 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11080 LD="${LD-ld} -64"
11081 fi
11082 ;;
11083 esac
11084 ;;
11085 esac
11086 fi
11087 rm -rf conftest*
11088 ;;
11089esac
11090
11091need_locks="$enable_libtool_lock"
11092
11093
11094 case $host_os in
11095 rhapsody* | darwin*)
11096 if test -n "$ac_tool_prefix"; then
11097 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11098set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100$as_echo_n "checking for $ac_word... " >&6; }
11101if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11102 $as_echo_n "(cached) " >&6
11103else
11104 if test -n "$DSYMUTIL"; then
11105 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11106else
11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH
11109do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118done
11119 done
11120IFS=$as_save_IFS
11121
11122fi
11123fi
11124DSYMUTIL=$ac_cv_prog_DSYMUTIL
11125if test -n "$DSYMUTIL"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11127$as_echo "$DSYMUTIL" >&6; }
11128else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
11131fi
11132
11133
11134fi
11135if test -z "$ac_cv_prog_DSYMUTIL"; then
11136 ac_ct_DSYMUTIL=$DSYMUTIL
11137 # Extract the first word of "dsymutil", so it can be a program name with args.
11138set dummy dsymutil; ac_word=$2
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140$as_echo_n "checking for $ac_word... " >&6; }
11141if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11143else
11144 if test -n "$ac_ct_DSYMUTIL"; then
11145 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11146else
11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158done
11159 done
11160IFS=$as_save_IFS
11161
11162fi
11163fi
11164ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11165if test -n "$ac_ct_DSYMUTIL"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11167$as_echo "$ac_ct_DSYMUTIL" >&6; }
11168else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170$as_echo "no" >&6; }
11171fi
11172
11173 if test "x$ac_ct_DSYMUTIL" = x; then
11174 DSYMUTIL=":"
11175 else
11176 case $cross_compiling:$ac_tool_warned in
11177yes:)
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11180ac_tool_warned=yes ;;
11181esac
11182 DSYMUTIL=$ac_ct_DSYMUTIL
11183 fi
11184else
11185 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11186fi
11187
11188 if test -n "$ac_tool_prefix"; then
11189 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11190set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
11193if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11195else
11196 if test -n "$NMEDIT"; then
11197 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210done
11211 done
11212IFS=$as_save_IFS
11213
11214fi
11215fi
11216NMEDIT=$ac_cv_prog_NMEDIT
11217if test -n "$NMEDIT"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11219$as_echo "$NMEDIT" >&6; }
11220else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
11223fi
11224
11225
11226fi
11227if test -z "$ac_cv_prog_NMEDIT"; then
11228 ac_ct_NMEDIT=$NMEDIT
11229 # Extract the first word of "nmedit", so it can be a program name with args.
11230set dummy nmedit; ac_word=$2
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232$as_echo_n "checking for $ac_word... " >&6; }
11233if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235else
11236 if test -n "$ac_ct_NMEDIT"; then
11237 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11238else
11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240for as_dir in $PATH
11241do
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 break 2
11249 fi
11250done
11251 done
11252IFS=$as_save_IFS
11253
11254fi
11255fi
11256ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11257if test -n "$ac_ct_NMEDIT"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11259$as_echo "$ac_ct_NMEDIT" >&6; }
11260else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263fi
11264
11265 if test "x$ac_ct_NMEDIT" = x; then
11266 NMEDIT=":"
11267 else
11268 case $cross_compiling:$ac_tool_warned in
11269yes:)
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11272ac_tool_warned=yes ;;
11273esac
11274 NMEDIT=$ac_ct_NMEDIT
11275 fi
11276else
11277 NMEDIT="$ac_cv_prog_NMEDIT"
11278fi
11279
11280 if test -n "$ac_tool_prefix"; then
11281 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11282set dummy ${ac_tool_prefix}lipo; ac_word=$2
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if test "${ac_cv_prog_LIPO+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287else
11288 if test -n "$LIPO"; then
11289 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303 done
11304IFS=$as_save_IFS
11305
11306fi
11307fi
11308LIPO=$ac_cv_prog_LIPO
11309if test -n "$LIPO"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11311$as_echo "$LIPO" >&6; }
11312else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
11315fi
11316
11317
11318fi
11319if test -z "$ac_cv_prog_LIPO"; then
11320 ac_ct_LIPO=$LIPO
11321 # Extract the first word of "lipo", so it can be a program name with args.
11322set dummy lipo; ac_word=$2
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
11325if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327else
11328 if test -n "$ac_ct_LIPO"; then
11329 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338 ac_cv_prog_ac_ct_LIPO="lipo"
11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343 done
11344IFS=$as_save_IFS
11345
11346fi
11347fi
11348ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11349if test -n "$ac_ct_LIPO"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11351$as_echo "$ac_ct_LIPO" >&6; }
11352else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355fi
11356
11357 if test "x$ac_ct_LIPO" = x; then
11358 LIPO=":"
11359 else
11360 case $cross_compiling:$ac_tool_warned in
11361yes:)
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11364ac_tool_warned=yes ;;
11365esac
11366 LIPO=$ac_ct_LIPO
11367 fi
11368else
11369 LIPO="$ac_cv_prog_LIPO"
11370fi
11371
11372 if test -n "$ac_tool_prefix"; then
11373 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11374set dummy ${ac_tool_prefix}otool; ac_word=$2
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376$as_echo_n "checking for $ac_word... " >&6; }
11377if test "${ac_cv_prog_OTOOL+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11379else
11380 if test -n "$OTOOL"; then
11381 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395 done
11396IFS=$as_save_IFS
11397
11398fi
11399fi
11400OTOOL=$ac_cv_prog_OTOOL
11401if test -n "$OTOOL"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11403$as_echo "$OTOOL" >&6; }
11404else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407fi
11408
11409
11410fi
11411if test -z "$ac_cv_prog_OTOOL"; then
11412 ac_ct_OTOOL=$OTOOL
11413 # Extract the first word of "otool", so it can be a program name with args.
11414set dummy otool; ac_word=$2
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416$as_echo_n "checking for $ac_word... " >&6; }
11417if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11418 $as_echo_n "(cached) " >&6
11419else
11420 if test -n "$ac_ct_OTOOL"; then
11421 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11422else
11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430 ac_cv_prog_ac_ct_OTOOL="otool"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11433 fi
11434done
11435 done
11436IFS=$as_save_IFS
11437
11438fi
11439fi
11440ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11441if test -n "$ac_ct_OTOOL"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11443$as_echo "$ac_ct_OTOOL" >&6; }
11444else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446$as_echo "no" >&6; }
11447fi
11448
11449 if test "x$ac_ct_OTOOL" = x; then
11450 OTOOL=":"
11451 else
11452 case $cross_compiling:$ac_tool_warned in
11453yes:)
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11456ac_tool_warned=yes ;;
11457esac
11458 OTOOL=$ac_ct_OTOOL
11459 fi
11460else
11461 OTOOL="$ac_cv_prog_OTOOL"
11462fi
11463
11464 if test -n "$ac_tool_prefix"; then
11465 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11466set dummy ${ac_tool_prefix}otool64; ac_word=$2
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468$as_echo_n "checking for $ac_word... " >&6; }
11469if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11471else
11472 if test -n "$OTOOL64"; then
11473 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487 done
11488IFS=$as_save_IFS
11489
11490fi
11491fi
11492OTOOL64=$ac_cv_prog_OTOOL64
11493if test -n "$OTOOL64"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11495$as_echo "$OTOOL64" >&6; }
11496else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
11499fi
11500
11501
11502fi
11503if test -z "$ac_cv_prog_OTOOL64"; then
11504 ac_ct_OTOOL64=$OTOOL64
11505 # Extract the first word of "otool64", so it can be a program name with args.
11506set dummy otool64; ac_word=$2
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508$as_echo_n "checking for $ac_word... " >&6; }
11509if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511else
11512 if test -n "$ac_ct_OTOOL64"; then
11513 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11514else
11515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_prog_ac_ct_OTOOL64="otool64"
11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526done
11527 done
11528IFS=$as_save_IFS
11529
11530fi
11531fi
11532ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11533if test -n "$ac_ct_OTOOL64"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11535$as_echo "$ac_ct_OTOOL64" >&6; }
11536else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538$as_echo "no" >&6; }
11539fi
11540
11541 if test "x$ac_ct_OTOOL64" = x; then
11542 OTOOL64=":"
11543 else
11544 case $cross_compiling:$ac_tool_warned in
11545yes:)
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548ac_tool_warned=yes ;;
11549esac
11550 OTOOL64=$ac_ct_OTOOL64
11551 fi
11552else
11553 OTOOL64="$ac_cv_prog_OTOOL64"
11554fi
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
11581
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11583$as_echo_n "checking for -single_module linker flag... " >&6; }
11584if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11586else
11587 lt_cv_apple_cc_single_mod=no
11588 if test -z "${LT_MULTI_MODULE}"; then
11589 # By default we will add the -single_module flag. You can override
11590 # by either setting the environment variable LT_MULTI_MODULE
11591 # non-empty at configure time, or by adding -multi_module to the
11592 # link flags.
11593 rm -rf libconftest.dylib*
11594 echo "int foo(void){return 1;}" > conftest.c
11595 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11596-dynamiclib -Wl,-single_module conftest.c" >&5
11597 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11598 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11599 _lt_result=$?
11600 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11601 lt_cv_apple_cc_single_mod=yes
11602 else
11603 cat conftest.err >&5
11604 fi
11605 rm -rf libconftest.dylib*
11606 rm -f conftest.*
11607 fi
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11610$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11612$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11613if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615else
11616 lt_cv_ld_exported_symbols_list=no
11617 save_LDFLAGS=$LDFLAGS
11618 echo "_main" > conftest.sym
11619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h. */
11622
11623int
11624main ()
11625{
11626
11627 ;
11628 return 0;
11629}
11630_ACEOF
11631if ac_fn_c_try_link "$LINENO"; then :
11632 lt_cv_ld_exported_symbols_list=yes
11633else
11634 lt_cv_ld_exported_symbols_list=no
11635fi
11636rm -f core conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638 LDFLAGS="$save_LDFLAGS"
11639
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11642$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11643 case $host_os in
11644 rhapsody* | darwin1.[012])
11645 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11646 darwin1.*)
11647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648 darwin*) # darwin 5.x on
11649 # if running on 10.5 or later, the deployment target defaults
11650 # to the OS version, if on x86, and 10.4, the deployment
11651 # target defaults to 10.4. Don't you love it?
11652 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11653 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655 10.[012]*)
11656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11657 10.*)
11658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11659 esac
11660 ;;
11661 esac
11662 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11663 _lt_dar_single_mod='$single_module'
11664 fi
11665 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11666 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11667 else
11668 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11669 fi
11670 if test "$DSYMUTIL" != ":"; then
11671 _lt_dsymutil='~$DSYMUTIL $lib || :'
11672 else
11673 _lt_dsymutil=
11674 fi
11675 ;;
11676 esac
11677
11678for ac_header in dlfcn.h
11679do :
11680 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11681"
11682if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11683 cat >>confdefs.h <<_ACEOF
11684#define HAVE_DLFCN_H 1
11685_ACEOF
11686
11687fi
11688
11689done
11690
11691
11692
11693ac_ext=cpp
11694ac_cpp='$CXXCPP $CPPFLAGS'
11695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11698if test -z "$CXX"; then
11699 if test -n "$CCC"; then
11700 CXX=$CCC
11701 else
11702 if test -n "$ac_tool_prefix"; then
11703 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11704 do
11705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708$as_echo_n "checking for $ac_word... " >&6; }
11709if test "${ac_cv_prog_CXX+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11711else
11712 if test -n "$CXX"; then
11713 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727 done
11728IFS=$as_save_IFS
11729
11730fi
11731fi
11732CXX=$ac_cv_prog_CXX
11733if test -n "$CXX"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11735$as_echo "$CXX" >&6; }
11736else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739fi
11740
11741
11742 test -n "$CXX" && break
11743 done
11744fi
11745if test -z "$CXX"; then
11746 ac_ct_CXX=$CXX
11747 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11748do
11749 # Extract the first word of "$ac_prog", so it can be a program name with args.
11750set dummy $ac_prog; ac_word=$2
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752$as_echo_n "checking for $ac_word... " >&6; }
11753if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11754 $as_echo_n "(cached) " >&6
11755else
11756 if test -n "$ac_ct_CXX"; then
11757 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11758else
11759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766 ac_cv_prog_ac_ct_CXX="$ac_prog"
11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11769 fi
11770done
11771 done
11772IFS=$as_save_IFS
11773
11774fi
11775fi
11776ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11777if test -n "$ac_ct_CXX"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11779$as_echo "$ac_ct_CXX" >&6; }
11780else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
11783fi
11784
11785
11786 test -n "$ac_ct_CXX" && break
11787done
11788
11789 if test "x$ac_ct_CXX" = x; then
11790 CXX="g++"
11791 else
11792 case $cross_compiling:$ac_tool_warned in
11793yes:)
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11796ac_tool_warned=yes ;;
11797esac
11798 CXX=$ac_ct_CXX
11799 fi
11800fi
11801
11802 fi
11803fi
11804# Provide some information about the compiler.
11805$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11806set X $ac_compile
11807ac_compiler=$2
11808for ac_option in --version -v -V -qversion; do
11809 { { ac_try="$ac_compiler $ac_option >&5"
11810case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11815$as_echo "$ac_try_echo"; } >&5
11816 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11817 ac_status=$?
11818 if test -s conftest.err; then
11819 sed '10a\
11820... rest of stderr output deleted ...
11821 10q' conftest.err >conftest.er1
11822 cat conftest.er1 >&5
11823 fi
11824 rm -f conftest.er1 conftest.err
11825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; }
11827done
11828
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11830$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11831if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11832 $as_echo_n "(cached) " >&6
11833else
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835/* end confdefs.h. */
11836
11837int
11838main ()
11839{
11840#ifndef __GNUC__
11841 choke me
11842#endif
11843
11844 ;
11845 return 0;
11846}
11847_ACEOF
11848if ac_fn_cxx_try_compile "$LINENO"; then :
11849 ac_compiler_gnu=yes
11850else
11851 ac_compiler_gnu=no
11852fi
11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11855
11856fi
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11858$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11859if test $ac_compiler_gnu = yes; then
11860 GXX=yes
11861else
11862 GXX=
11863fi
11864ac_test_CXXFLAGS=${CXXFLAGS+set}
11865ac_save_CXXFLAGS=$CXXFLAGS
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11867$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11868if test "${ac_cv_prog_cxx_g+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870else
11871 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11872 ac_cxx_werror_flag=yes
11873 ac_cv_prog_cxx_g=no
11874 CXXFLAGS="-g"
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h. */
11877
11878int
11879main ()
11880{
11881
11882 ;
11883 return 0;
11884}
11885_ACEOF
11886if ac_fn_cxx_try_compile "$LINENO"; then :
11887 ac_cv_prog_cxx_g=yes
11888else
11889 CXXFLAGS=""
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891/* end confdefs.h. */
11892
11893int
11894main ()
11895{
11896
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901if ac_fn_cxx_try_compile "$LINENO"; then :
11902
11903else
11904 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11905 CXXFLAGS="-g"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h. */
11908
11909int
11910main ()
11911{
11912
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917if ac_fn_cxx_try_compile "$LINENO"; then :
11918 ac_cv_prog_cxx_g=yes
11919fi
11920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921fi
11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923fi
11924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11928$as_echo "$ac_cv_prog_cxx_g" >&6; }
11929if test "$ac_test_CXXFLAGS" = set; then
11930 CXXFLAGS=$ac_save_CXXFLAGS
11931elif test $ac_cv_prog_cxx_g = yes; then
11932 if test "$GXX" = yes; then
11933 CXXFLAGS="-g -O2"
11934 else
11935 CXXFLAGS="-g"
11936 fi
11937else
11938 if test "$GXX" = yes; then
11939 CXXFLAGS="-O2"
11940 else
11941 CXXFLAGS=
11942 fi
11943fi
11944ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950depcc="$CXX" am_compiler_list=
11951
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11953$as_echo_n "checking dependency style of $depcc... " >&6; }
11954if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956else
11957 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11958 # We make a subdir and do the tests there. Otherwise we can end up
11959 # making bogus files that we don't know about and never remove. For
11960 # instance it was reported that on HP-UX the gcc test will end up
11961 # making a dummy file named `D' -- because `-MD' means `put the output
11962 # in D'.
11963 mkdir conftest.dir
11964 # Copy depcomp to subdir because otherwise we won't find it if we're
11965 # using a relative directory.
11966 cp "$am_depcomp" conftest.dir
11967 cd conftest.dir
11968 # We will build objects and dependencies in a subdirectory because
11969 # it helps to detect inapplicable dependency modes. For instance
11970 # both Tru64's cc and ICC support -MD to output dependencies as a
11971 # side effect of compilation, but ICC will put the dependencies in
11972 # the current directory while Tru64 will put them in the object
11973 # directory.
11974 mkdir sub
11975
11976 am_cv_CXX_dependencies_compiler_type=none
11977 if test "$am_compiler_list" = ""; then
11978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11979 fi
11980 am__universal=false
11981 case " $depcc " in #(
11982 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11983 esac
11984
11985 for depmode in $am_compiler_list; do
11986 # Setup a source with many dependencies, because some compilers
11987 # like to wrap large dependency lists on column 80 (with \), and
11988 # we should not choose a depcomp mode which is confused by this.
11989 #
11990 # We need to recreate these files for each test, as the compiler may
11991 # overwrite some of them when testing with obscure command lines.
11992 # This happens at least with the AIX C compiler.
11993 : > sub/conftest.c
11994 for i in 1 2 3 4 5 6; do
11995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11997 # Solaris 8's {/usr,}/bin/sh.
11998 touch sub/conftst$i.h
11999 done
12000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12001
12002 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12003 # mode. It turns out that the SunPro C++ compiler does not properly
12004 # handle `-M -o', and we need to detect this. Also, some Intel
12005 # versions had trouble with output in subdirs
12006 am__obj=sub/conftest.${OBJEXT-o}
12007 am__minus_obj="-o $am__obj"
12008 case $depmode in
12009 gcc)
12010 # This depmode causes a compiler race in universal mode.
12011 test "$am__universal" = false || continue
12012 ;;
12013 nosideeffect)
12014 # after this tag, mechanisms are not by side-effect, so they'll
12015 # only be used when explicitly requested
12016 if test "x$enable_dependency_tracking" = xyes; then
12017 continue
12018 else
12019 break
12020 fi
12021 ;;
12022 msvisualcpp | msvcmsys)
12023 # This compiler won't grok `-c -o', but also, the minuso test has
12024 # not run yet. These depmodes are late enough in the game, and
12025 # so weak that their functioning should not be impacted.
12026 am__obj=conftest.${OBJEXT-o}
12027 am__minus_obj=
12028 ;;
12029 none) break ;;
12030 esac
12031 if depmode=$depmode \
12032 source=sub/conftest.c object=$am__obj \
12033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12034 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12035 >/dev/null 2>conftest.err &&
12036 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12038 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12040 # icc doesn't choke on unknown options, it will just issue warnings
12041 # or remarks (even with -Werror). So we grep stderr for any message
12042 # that says an option was ignored or not supported.
12043 # When given -MP, icc 7.0 and 7.1 complain thusly:
12044 # icc: Command line warning: ignoring option '-M'; no argument required
12045 # The diagnosis changed in icc 8.0:
12046 # icc: Command line remark: option '-MP' not supported
12047 if (grep 'ignoring option' conftest.err ||
12048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12049 am_cv_CXX_dependencies_compiler_type=$depmode
12050 break
12051 fi
12052 fi
12053 done
12054
12055 cd ..
12056 rm -rf conftest.dir
12057else
12058 am_cv_CXX_dependencies_compiler_type=none
12059fi
12060
12061fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12063$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12064CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12065
12066 if
12067 test "x$enable_dependency_tracking" != xno \
12068 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12069 am__fastdepCXX_TRUE=
12070 am__fastdepCXX_FALSE='#'
12071else
12072 am__fastdepCXX_TRUE='#'
12073 am__fastdepCXX_FALSE=
12074fi
12075
12076
12077if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12078 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12079 (test "X$CXX" != "Xg++"))) ; then
12080 ac_ext=cpp
12081ac_cpp='$CXXCPP $CPPFLAGS'
12082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12086$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12087if test -z "$CXXCPP"; then
12088 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090else
12091 # Double quotes because CXXCPP needs to be expanded
12092 for CXXCPP in "$CXX -E" "/lib/cpp"
12093 do
12094 ac_preproc_ok=false
12095for ac_cxx_preproc_warn_flag in '' yes
12096do
12097 # Use a header file that comes with gcc, so configuring glibc
12098 # with a fresh cross-compiler works.
12099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 # <limits.h> exists even on freestanding compilers.
12101 # On the NeXT, cc -E runs the code through the compiler's parser,
12102 # not just through cpp. "Syntax error" is here to catch this case.
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104/* end confdefs.h. */
12105#ifdef __STDC__
12106# include <limits.h>
12107#else
12108# include <assert.h>
12109#endif
12110 Syntax error
12111_ACEOF
12112if ac_fn_cxx_try_cpp "$LINENO"; then :
12113
12114else
12115 # Broken: fails on valid input.
12116continue
12117fi
12118rm -f conftest.err conftest.$ac_ext
12119
12120 # OK, works on sane cases. Now check whether nonexistent headers
12121 # can be detected and how.
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124#include <ac_nonexistent.h>
12125_ACEOF
12126if ac_fn_cxx_try_cpp "$LINENO"; then :
12127 # Broken: success on invalid input.
12128continue
12129else
12130 # Passes both tests.
12131ac_preproc_ok=:
12132break
12133fi
12134rm -f conftest.err conftest.$ac_ext
12135
12136done
12137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12138rm -f conftest.err conftest.$ac_ext
12139if $ac_preproc_ok; then :
12140 break
12141fi
12142
12143 done
12144 ac_cv_prog_CXXCPP=$CXXCPP
12145
12146fi
12147 CXXCPP=$ac_cv_prog_CXXCPP
12148else
12149 ac_cv_prog_CXXCPP=$CXXCPP
12150fi
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12152$as_echo "$CXXCPP" >&6; }
12153ac_preproc_ok=false
12154for ac_cxx_preproc_warn_flag in '' yes
12155do
12156 # Use a header file that comes with gcc, so configuring glibc
12157 # with a fresh cross-compiler works.
12158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12159 # <limits.h> exists even on freestanding compilers.
12160 # On the NeXT, cc -E runs the code through the compiler's parser,
12161 # not just through cpp. "Syntax error" is here to catch this case.
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163/* end confdefs.h. */
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
12169 Syntax error
12170_ACEOF
12171if ac_fn_cxx_try_cpp "$LINENO"; then :
12172
12173else
12174 # Broken: fails on valid input.
12175continue
12176fi
12177rm -f conftest.err conftest.$ac_ext
12178
12179 # OK, works on sane cases. Now check whether nonexistent headers
12180 # can be detected and how.
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h. */
12183#include <ac_nonexistent.h>
12184_ACEOF
12185if ac_fn_cxx_try_cpp "$LINENO"; then :
12186 # Broken: success on invalid input.
12187continue
12188else
12189 # Passes both tests.
12190ac_preproc_ok=:
12191break
12192fi
12193rm -f conftest.err conftest.$ac_ext
12194
12195done
12196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12197rm -f conftest.err conftest.$ac_ext
12198if $ac_preproc_ok; then :
12199
12200else
12201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12203_lt_caught_CXX_error=yes; }
12204fi
12205
12206ac_ext=c
12207ac_cpp='$CPP $CPPFLAGS'
12208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210ac_compiler_gnu=$ac_cv_c_compiler_gnu
12211
12212else
12213 _lt_caught_CXX_error=yes
12214fi
12215
12216
12217
12218
12219
12220# Set options
12221enable_win32_dll=yes
12222
12223case $host in
12224*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12225 if test -n "$ac_tool_prefix"; then
12226 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12227set dummy ${ac_tool_prefix}as; ac_word=$2
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229$as_echo_n "checking for $ac_word... " >&6; }
12230if test "${ac_cv_prog_AS+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232else
12233 if test -n "$AS"; then
12234 ac_cv_prog_AS="$AS" # Let the user override the test.
12235else
12236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $PATH
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12243 ac_cv_prog_AS="${ac_tool_prefix}as"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12246 fi
12247done
12248 done
12249IFS=$as_save_IFS
12250
12251fi
12252fi
12253AS=$ac_cv_prog_AS
12254if test -n "$AS"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12256$as_echo "$AS" >&6; }
12257else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
12260fi
12261
12262
12263fi
12264if test -z "$ac_cv_prog_AS"; then
12265 ac_ct_AS=$AS
12266 # Extract the first word of "as", so it can be a program name with args.
12267set dummy as; ac_word=$2
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
12270if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272else
12273 if test -n "$ac_ct_AS"; then
12274 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283 ac_cv_prog_ac_ct_AS="as"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12286 fi
12287done
12288 done
12289IFS=$as_save_IFS
12290
12291fi
12292fi
12293ac_ct_AS=$ac_cv_prog_ac_ct_AS
12294if test -n "$ac_ct_AS"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12296$as_echo "$ac_ct_AS" >&6; }
12297else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
12300fi
12301
12302 if test "x$ac_ct_AS" = x; then
12303 AS="false"
12304 else
12305 case $cross_compiling:$ac_tool_warned in
12306yes:)
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12309ac_tool_warned=yes ;;
12310esac
12311 AS=$ac_ct_AS
12312 fi
12313else
12314 AS="$ac_cv_prog_AS"
12315fi
12316
12317 if test -n "$ac_tool_prefix"; then
12318 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12319set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324else
12325 if test -n "$DLLTOOL"; then
12326 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12327else
12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12338 fi
12339done
12340 done
12341IFS=$as_save_IFS
12342
12343fi
12344fi
12345DLLTOOL=$ac_cv_prog_DLLTOOL
12346if test -n "$DLLTOOL"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12348$as_echo "$DLLTOOL" >&6; }
12349else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
12352fi
12353
12354
12355fi
12356if test -z "$ac_cv_prog_DLLTOOL"; then
12357 ac_ct_DLLTOOL=$DLLTOOL
12358 # Extract the first word of "dlltool", so it can be a program name with args.
12359set dummy dlltool; ac_word=$2
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361$as_echo_n "checking for $ac_word... " >&6; }
12362if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364else
12365 if test -n "$ac_ct_DLLTOOL"; then
12366 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12367else
12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369for as_dir in $PATH
12370do
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12378 fi
12379done
12380 done
12381IFS=$as_save_IFS
12382
12383fi
12384fi
12385ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12386if test -n "$ac_ct_DLLTOOL"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12388$as_echo "$ac_ct_DLLTOOL" >&6; }
12389else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392fi
12393
12394 if test "x$ac_ct_DLLTOOL" = x; then
12395 DLLTOOL="false"
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398yes:)
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401ac_tool_warned=yes ;;
12402esac
12403 DLLTOOL=$ac_ct_DLLTOOL
12404 fi
12405else
12406 DLLTOOL="$ac_cv_prog_DLLTOOL"
12407fi
12408
12409 if test -n "$ac_tool_prefix"; then
12410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12411set dummy ${ac_tool_prefix}objdump; ac_word=$2
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416else
12417 if test -n "$OBJDUMP"; then
12418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12419else
12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421for as_dir in $PATH
12422do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12430 fi
12431done
12432 done
12433IFS=$as_save_IFS
12434
12435fi
12436fi
12437OBJDUMP=$ac_cv_prog_OBJDUMP
12438if test -n "$OBJDUMP"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12440$as_echo "$OBJDUMP" >&6; }
12441else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
12444fi
12445
12446
12447fi
12448if test -z "$ac_cv_prog_OBJDUMP"; then
12449 ac_ct_OBJDUMP=$OBJDUMP
12450 # Extract the first word of "objdump", so it can be a program name with args.
12451set dummy objdump; ac_word=$2
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453$as_echo_n "checking for $ac_word... " >&6; }
12454if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456else
12457 if test -n "$ac_ct_OBJDUMP"; then
12458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12459else
12460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $PATH
12462do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471done
12472 done
12473IFS=$as_save_IFS
12474
12475fi
12476fi
12477ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12478if test -n "$ac_ct_OBJDUMP"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12480$as_echo "$ac_ct_OBJDUMP" >&6; }
12481else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483$as_echo "no" >&6; }
12484fi
12485
12486 if test "x$ac_ct_OBJDUMP" = x; then
12487 OBJDUMP="false"
12488 else
12489 case $cross_compiling:$ac_tool_warned in
12490yes:)
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12493ac_tool_warned=yes ;;
12494esac
12495 OBJDUMP=$ac_ct_OBJDUMP
12496 fi
12497else
12498 OBJDUMP="$ac_cv_prog_OBJDUMP"
12499fi
12500
12501 ;;
12502esac
12503
12504test -z "$AS" && AS=as
12505
12506
12507
12508
12509
12510test -z "$DLLTOOL" && DLLTOOL=dlltool
12511
12512
12513
12514
12515
12516test -z "$OBJDUMP" && OBJDUMP=objdump
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526 # Check whether --enable-shared was given.
12527if test "${enable_shared+set}" = set; then :
12528 enableval=$enable_shared; p=${PACKAGE-default}
12529 case $enableval in
12530 yes) enable_shared=yes ;;
12531 no) enable_shared=no ;;
12532 *)
12533 enable_shared=no
12534 # Look at the argument we got. We use all the common list separators.
12535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12536 for pkg in $enableval; do
12537 IFS="$lt_save_ifs"
12538 if test "X$pkg" = "X$p"; then
12539 enable_shared=yes
12540 fi
12541 done
12542 IFS="$lt_save_ifs"
12543 ;;
12544 esac
12545else
12546 enable_shared=yes
12547fi
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557 # Check whether --enable-static was given.
12558if test "${enable_static+set}" = set; then :
12559 enableval=$enable_static; p=${PACKAGE-default}
12560 case $enableval in
12561 yes) enable_static=yes ;;
12562 no) enable_static=no ;;
12563 *)
12564 enable_static=no
12565 # Look at the argument we got. We use all the common list separators.
12566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12567 for pkg in $enableval; do
12568 IFS="$lt_save_ifs"
12569 if test "X$pkg" = "X$p"; then
12570 enable_static=yes
12571 fi
12572 done
12573 IFS="$lt_save_ifs"
12574 ;;
12575 esac
12576else
12577 enable_static=yes
12578fi
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589# Check whether --with-pic was given.
12590if test "${with_pic+set}" = set; then :
12591 withval=$with_pic; pic_mode="$withval"
12592else
12593 pic_mode=default
12594fi
12595
12596
12597test -z "$pic_mode" && pic_mode=default
12598
12599
12600
12601
12602
12603
12604
12605 # Check whether --enable-fast-install was given.
12606if test "${enable_fast_install+set}" = set; then :
12607 enableval=$enable_fast_install; p=${PACKAGE-default}
12608 case $enableval in
12609 yes) enable_fast_install=yes ;;
12610 no) enable_fast_install=no ;;
12611 *)
12612 enable_fast_install=no
12613 # Look at the argument we got. We use all the common list separators.
12614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12615 for pkg in $enableval; do
12616 IFS="$lt_save_ifs"
12617 if test "X$pkg" = "X$p"; then
12618 enable_fast_install=yes
12619 fi
12620 done
12621 IFS="$lt_save_ifs"
12622 ;;
12623 esac
12624else
12625 enable_fast_install=yes
12626fi
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638# This can be used to rebuild libtool when needed
12639LIBTOOL_DEPS="$ltmain"
12640
12641# Always use our own libtool.
12642LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668test -z "$LN_S" && LN_S="ln -s"
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683if test -n "${ZSH_VERSION+set}" ; then
12684 setopt NO_GLOB_SUBST
12685fi
12686
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12688$as_echo_n "checking for objdir... " >&6; }
12689if test "${lt_cv_objdir+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691else
12692 rm -f .libs 2>/dev/null
12693mkdir .libs 2>/dev/null
12694if test -d .libs; then
12695 lt_cv_objdir=.libs
12696else
12697 # MS-DOS does not allow filenames that begin with a dot.
12698 lt_cv_objdir=_libs
12699fi
12700rmdir .libs 2>/dev/null
12701fi
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12703$as_echo "$lt_cv_objdir" >&6; }
12704objdir=$lt_cv_objdir
12705
12706
12707
12708
12709
12710cat >>confdefs.h <<_ACEOF
12711#define LT_OBJDIR "$lt_cv_objdir/"
12712_ACEOF
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730case $host_os in
12731aix3*)
12732 # AIX sometimes has problems with the GCC collect2 program. For some
12733 # reason, if we set the COLLECT_NAMES environment variable, the problems
12734 # vanish in a puff of smoke.
12735 if test "X${COLLECT_NAMES+set}" != Xset; then
12736 COLLECT_NAMES=
12737 export COLLECT_NAMES
12738 fi
12739 ;;
12740esac
12741
12742# Sed substitution that helps us do robust quoting. It backslashifies
12743# metacharacters that are still active within double-quoted strings.
12744sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12745
12746# Same as above, but do not quote variable references.
12747double_quote_subst='s/\(["`\\]\)/\\\1/g'
12748
12749# Sed substitution to delay expansion of an escaped shell variable in a
12750# double_quote_subst'ed string.
12751delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12752
12753# Sed substitution to delay expansion of an escaped single quote.
12754delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12755
12756# Sed substitution to avoid accidental globbing in evaled expressions
12757no_glob_subst='s/\*/\\\*/g'
12758
12759# Global variables:
12760ofile=libtool
12761can_build_shared=yes
12762
12763# All known linkers require a `.a' archive for static linking (except MSVC,
12764# which needs '.lib').
12765libext=a
12766
12767with_gnu_ld="$lt_cv_prog_gnu_ld"
12768
12769old_CC="$CC"
12770old_CFLAGS="$CFLAGS"
12771
12772# Set sane defaults for various variables
12773test -z "$CC" && CC=cc
12774test -z "$LTCC" && LTCC=$CC
12775test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12776test -z "$LD" && LD=ld
12777test -z "$ac_objext" && ac_objext=o
12778
12779for cc_temp in $compiler""; do
12780 case $cc_temp in
12781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12783 \-*) ;;
12784 *) break;;
12785 esac
12786done
12787cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12788
12789
12790# Only perform the check for file, if the check method requires it
12791test -z "$MAGIC_CMD" && MAGIC_CMD=file
12792case $deplibs_check_method in
12793file_magic*)
12794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12796$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12797if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12799else
12800 case $MAGIC_CMD in
12801[\\/*] | ?:[\\/]*)
12802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12803 ;;
12804*)
12805 lt_save_MAGIC_CMD="$MAGIC_CMD"
12806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12808 for ac_dir in $ac_dummy; do
12809 IFS="$lt_save_ifs"
12810 test -z "$ac_dir" && ac_dir=.
12811 if test -f $ac_dir/${ac_tool_prefix}file; then
12812 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12813 if test -n "$file_magic_test_file"; then
12814 case $deplibs_check_method in
12815 "file_magic "*)
12816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12819 $EGREP "$file_magic_regex" > /dev/null; then
12820 :
12821 else
12822 cat <<_LT_EOF 1>&2
12823
12824*** Warning: the command libtool uses to detect shared libraries,
12825*** $file_magic_cmd, produces output that libtool cannot recognize.
12826*** The result is that libtool may fail to recognize shared libraries
12827*** as such. This will affect the creation of libtool libraries that
12828*** depend on shared libraries, but programs linked with such libtool
12829*** libraries will work regardless of this problem. Nevertheless, you
12830*** may want to report the problem to your system manager and/or to
12831*** bug-libtool@gnu.org
12832
12833_LT_EOF
12834 fi ;;
12835 esac
12836 fi
12837 break
12838 fi
12839 done
12840 IFS="$lt_save_ifs"
12841 MAGIC_CMD="$lt_save_MAGIC_CMD"
12842 ;;
12843esac
12844fi
12845
12846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12847if test -n "$MAGIC_CMD"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12849$as_echo "$MAGIC_CMD" >&6; }
12850else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852$as_echo "no" >&6; }
12853fi
12854
12855
12856
12857
12858
12859if test -z "$lt_cv_path_MAGIC_CMD"; then
12860 if test -n "$ac_tool_prefix"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12862$as_echo_n "checking for file... " >&6; }
12863if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865else
12866 case $MAGIC_CMD in
12867[\\/*] | ?:[\\/]*)
12868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12869 ;;
12870*)
12871 lt_save_MAGIC_CMD="$MAGIC_CMD"
12872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12874 for ac_dir in $ac_dummy; do
12875 IFS="$lt_save_ifs"
12876 test -z "$ac_dir" && ac_dir=.
12877 if test -f $ac_dir/file; then
12878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12879 if test -n "$file_magic_test_file"; then
12880 case $deplibs_check_method in
12881 "file_magic "*)
12882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12885 $EGREP "$file_magic_regex" > /dev/null; then
12886 :
12887 else
12888 cat <<_LT_EOF 1>&2
12889
12890*** Warning: the command libtool uses to detect shared libraries,
12891*** $file_magic_cmd, produces output that libtool cannot recognize.
12892*** The result is that libtool may fail to recognize shared libraries
12893*** as such. This will affect the creation of libtool libraries that
12894*** depend on shared libraries, but programs linked with such libtool
12895*** libraries will work regardless of this problem. Nevertheless, you
12896*** may want to report the problem to your system manager and/or to
12897*** bug-libtool@gnu.org
12898
12899_LT_EOF
12900 fi ;;
12901 esac
12902 fi
12903 break
12904 fi
12905 done
12906 IFS="$lt_save_ifs"
12907 MAGIC_CMD="$lt_save_MAGIC_CMD"
12908 ;;
12909esac
12910fi
12911
12912MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12913if test -n "$MAGIC_CMD"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12915$as_echo "$MAGIC_CMD" >&6; }
12916else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918$as_echo "no" >&6; }
12919fi
12920
12921
12922 else
12923 MAGIC_CMD=:
12924 fi
12925fi
12926
12927 fi
12928 ;;
12929esac
12930
12931# Use C for the default configuration in the libtool script
12932
12933lt_save_CC="$CC"
12934ac_ext=c
12935ac_cpp='$CPP $CPPFLAGS'
12936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12938ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939
12940
12941# Source file extension for C test sources.
12942ac_ext=c
12943
12944# Object file extension for compiled C test sources.
12945objext=o
12946objext=$objext
12947
12948# Code to be used in simple compile tests
12949lt_simple_compile_test_code="int some_variable = 0;"
12950
12951# Code to be used in simple link tests
12952lt_simple_link_test_code='int main(){return(0);}'
12953
12954
12955
12956
12957
12958
12959
12960# If no C compiler was specified, use CC.
12961LTCC=${LTCC-"$CC"}
12962
12963# If no C compiler flags were specified, use CFLAGS.
12964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12965
12966# Allow CC to be a program name with arguments.
12967compiler=$CC
12968
12969# Save the default compiler, since it gets overwritten when the other
12970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12971compiler_DEFAULT=$CC
12972
12973# save warnings/boilerplate of simple test code
12974ac_outfile=conftest.$ac_objext
12975echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12977_lt_compiler_boilerplate=`cat conftest.err`
12978$RM conftest*
12979
12980ac_outfile=conftest.$ac_objext
12981echo "$lt_simple_link_test_code" >conftest.$ac_ext
12982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12983_lt_linker_boilerplate=`cat conftest.err`
12984$RM -r conftest*
12985
12986
12987## CAVEAT EMPTOR:
12988## There is no encapsulation within the following macros, do not change
12989## the running order or otherwise move them around unless you know exactly
12990## what you are doing...
12991if test -n "$compiler"; then
12992
12993lt_prog_compiler_no_builtin_flag=
12994
12995if test "$GCC" = yes; then
12996 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12997
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12999$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13000if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13001 $as_echo_n "(cached) " >&6
13002else
13003 lt_cv_prog_compiler_rtti_exceptions=no
13004 ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13006 lt_compiler_flag="-fno-rtti -fno-exceptions"
13007 # Insert the option either (1) after the last *FLAGS variable, or
13008 # (2) before a word containing "conftest.", or (3) at the end.
13009 # Note that $ac_compile itself does not contain backslashes and begins
13010 # with a dollar sign (not a hyphen), so the echo should work correctly.
13011 # The option is referenced via a variable to avoid confusing sed.
13012 lt_compile=`echo "$ac_compile" | $SED \
13013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13015 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000013016 (eval echo "\"\$as_me:13016: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013017 (eval "$lt_compile" 2>conftest.err)
13018 ac_status=$?
13019 cat conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000013020 echo "$as_me:13020: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013021 if (exit $ac_status) && test -s "$ac_outfile"; then
13022 # The compiler can only warn and ignore the option if not recognized
13023 # So say no if there are warnings other than the usual output.
13024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13027 lt_cv_prog_compiler_rtti_exceptions=yes
13028 fi
13029 fi
13030 $RM conftest*
13031
13032fi
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13034$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13035
13036if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13037 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13038else
13039 :
13040fi
13041
13042fi
13043
13044
13045
13046
13047
13048
13049 lt_prog_compiler_wl=
13050lt_prog_compiler_pic=
13051lt_prog_compiler_static=
13052
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13054$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13055
13056 if test "$GCC" = yes; then
13057 lt_prog_compiler_wl='-Wl,'
13058 lt_prog_compiler_static='-static'
13059
13060 case $host_os in
13061 aix*)
13062 # All AIX code is PIC.
13063 if test "$host_cpu" = ia64; then
13064 # AIX 5 now supports IA64 processor
13065 lt_prog_compiler_static='-Bstatic'
13066 fi
13067 ;;
13068
13069 amigaos*)
13070 case $host_cpu in
13071 powerpc)
13072 # see comment about AmigaOS4 .so support
13073 lt_prog_compiler_pic='-fPIC'
13074 ;;
13075 m68k)
13076 # FIXME: we need at least 68020 code to build shared libraries, but
13077 # adding the `-m68020' flag to GCC prevents building anything better,
13078 # like `-m68040'.
13079 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13080 ;;
13081 esac
13082 ;;
13083
13084 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13085 # PIC is the default for these OSes.
13086 ;;
13087
13088 mingw* | cygwin* | pw32* | os2* | cegcc*)
13089 # This hack is so that the source file can tell whether it is being
13090 # built for inclusion in a dll (and should export symbols for example).
13091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13092 # (--disable-auto-import) libraries
13093 lt_prog_compiler_pic='-DDLL_EXPORT'
13094 ;;
13095
13096 darwin* | rhapsody*)
13097 # PIC is the default on this platform
13098 # Common symbols not allowed in MH_DYLIB files
13099 lt_prog_compiler_pic='-fno-common'
13100 ;;
13101
13102 hpux*)
13103 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13104 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13105 # sets the default TLS model and affects inlining.
13106 case $host_cpu in
13107 hppa*64*)
13108 # +Z the default
13109 ;;
13110 *)
13111 lt_prog_compiler_pic='-fPIC'
13112 ;;
13113 esac
13114 ;;
13115
13116 interix[3-9]*)
13117 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13118 # Instead, we relocate shared libraries at runtime.
13119 ;;
13120
13121 msdosdjgpp*)
13122 # Just because we use GCC doesn't mean we suddenly get shared libraries
13123 # on systems that don't support them.
13124 lt_prog_compiler_can_build_shared=no
13125 enable_shared=no
13126 ;;
13127
13128 *nto* | *qnx*)
13129 # QNX uses GNU C++, but need to define -shared option too, otherwise
13130 # it will coredump.
13131 lt_prog_compiler_pic='-fPIC -shared'
13132 ;;
13133
13134 sysv4*MP*)
13135 if test -d /usr/nec; then
13136 lt_prog_compiler_pic=-Kconform_pic
13137 fi
13138 ;;
13139
13140 *)
13141 lt_prog_compiler_pic='-fPIC'
13142 ;;
13143 esac
13144 else
13145 # PORTME Check for flag to pass linker flags through the system compiler.
13146 case $host_os in
13147 aix*)
13148 lt_prog_compiler_wl='-Wl,'
13149 if test "$host_cpu" = ia64; then
13150 # AIX 5 now supports IA64 processor
13151 lt_prog_compiler_static='-Bstatic'
13152 else
13153 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13154 fi
13155 ;;
13156
13157 mingw* | cygwin* | pw32* | os2* | cegcc*)
13158 # This hack is so that the source file can tell whether it is being
13159 # built for inclusion in a dll (and should export symbols for example).
13160 lt_prog_compiler_pic='-DDLL_EXPORT'
13161 ;;
13162
13163 hpux9* | hpux10* | hpux11*)
13164 lt_prog_compiler_wl='-Wl,'
13165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13166 # not for PA HP-UX.
13167 case $host_cpu in
13168 hppa*64*|ia64*)
13169 # +Z the default
13170 ;;
13171 *)
13172 lt_prog_compiler_pic='+Z'
13173 ;;
13174 esac
13175 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13176 lt_prog_compiler_static='${wl}-a ${wl}archive'
13177 ;;
13178
13179 irix5* | irix6* | nonstopux*)
13180 lt_prog_compiler_wl='-Wl,'
13181 # PIC (with -KPIC) is the default.
13182 lt_prog_compiler_static='-non_shared'
13183 ;;
13184
13185 linux* | k*bsd*-gnu)
13186 case $cc_basename in
13187 # old Intel for x86_64 which still supported -KPIC.
13188 ecc*)
13189 lt_prog_compiler_wl='-Wl,'
13190 lt_prog_compiler_pic='-KPIC'
13191 lt_prog_compiler_static='-static'
13192 ;;
13193 # icc used to be incompatible with GCC.
13194 # ICC 10 doesn't accept -KPIC any more.
13195 icc* | ifort*)
13196 lt_prog_compiler_wl='-Wl,'
13197 lt_prog_compiler_pic='-fPIC'
13198 lt_prog_compiler_static='-static'
13199 ;;
13200 # Lahey Fortran 8.1.
13201 lf95*)
13202 lt_prog_compiler_wl='-Wl,'
13203 lt_prog_compiler_pic='--shared'
13204 lt_prog_compiler_static='--static'
13205 ;;
13206 pgcc* | pgf77* | pgf90* | pgf95*)
13207 # Portland Group compilers (*not* the Pentium gcc compiler,
13208 # which looks to be a dead project)
13209 lt_prog_compiler_wl='-Wl,'
13210 lt_prog_compiler_pic='-fpic'
13211 lt_prog_compiler_static='-Bstatic'
13212 ;;
13213 ccc*)
13214 lt_prog_compiler_wl='-Wl,'
13215 # All Alpha code is PIC.
13216 lt_prog_compiler_static='-non_shared'
13217 ;;
13218 xl*)
13219 # IBM XL C 8.0/Fortran 10.1 on PPC
13220 lt_prog_compiler_wl='-Wl,'
13221 lt_prog_compiler_pic='-qpic'
13222 lt_prog_compiler_static='-qstaticlink'
13223 ;;
13224 *)
13225 case `$CC -V 2>&1 | sed 5q` in
13226 *Sun\ C*)
13227 # Sun C 5.9
13228 lt_prog_compiler_pic='-KPIC'
13229 lt_prog_compiler_static='-Bstatic'
13230 lt_prog_compiler_wl='-Wl,'
13231 ;;
13232 *Sun\ F*)
13233 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13234 lt_prog_compiler_pic='-KPIC'
13235 lt_prog_compiler_static='-Bstatic'
13236 lt_prog_compiler_wl=''
13237 ;;
13238 esac
13239 ;;
13240 esac
13241 ;;
13242
13243 newsos6)
13244 lt_prog_compiler_pic='-KPIC'
13245 lt_prog_compiler_static='-Bstatic'
13246 ;;
13247
13248 *nto* | *qnx*)
13249 # QNX uses GNU C++, but need to define -shared option too, otherwise
13250 # it will coredump.
13251 lt_prog_compiler_pic='-fPIC -shared'
13252 ;;
13253
13254 osf3* | osf4* | osf5*)
13255 lt_prog_compiler_wl='-Wl,'
13256 # All OSF/1 code is PIC.
13257 lt_prog_compiler_static='-non_shared'
13258 ;;
13259
13260 rdos*)
13261 lt_prog_compiler_static='-non_shared'
13262 ;;
13263
13264 solaris*)
13265 lt_prog_compiler_pic='-KPIC'
13266 lt_prog_compiler_static='-Bstatic'
13267 case $cc_basename in
13268 f77* | f90* | f95*)
13269 lt_prog_compiler_wl='-Qoption ld ';;
13270 *)
13271 lt_prog_compiler_wl='-Wl,';;
13272 esac
13273 ;;
13274
13275 sunos4*)
13276 lt_prog_compiler_wl='-Qoption ld '
13277 lt_prog_compiler_pic='-PIC'
13278 lt_prog_compiler_static='-Bstatic'
13279 ;;
13280
13281 sysv4 | sysv4.2uw2* | sysv4.3*)
13282 lt_prog_compiler_wl='-Wl,'
13283 lt_prog_compiler_pic='-KPIC'
13284 lt_prog_compiler_static='-Bstatic'
13285 ;;
13286
13287 sysv4*MP*)
13288 if test -d /usr/nec ;then
13289 lt_prog_compiler_pic='-Kconform_pic'
13290 lt_prog_compiler_static='-Bstatic'
13291 fi
13292 ;;
13293
13294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13295 lt_prog_compiler_wl='-Wl,'
13296 lt_prog_compiler_pic='-KPIC'
13297 lt_prog_compiler_static='-Bstatic'
13298 ;;
13299
13300 unicos*)
13301 lt_prog_compiler_wl='-Wl,'
13302 lt_prog_compiler_can_build_shared=no
13303 ;;
13304
13305 uts4*)
13306 lt_prog_compiler_pic='-pic'
13307 lt_prog_compiler_static='-Bstatic'
13308 ;;
13309
13310 *)
13311 lt_prog_compiler_can_build_shared=no
13312 ;;
13313 esac
13314 fi
13315
13316case $host_os in
13317 # For platforms which do not support PIC, -DPIC is meaningless:
13318 *djgpp*)
13319 lt_prog_compiler_pic=
13320 ;;
13321 *)
13322 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13323 ;;
13324esac
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13326$as_echo "$lt_prog_compiler_pic" >&6; }
13327
13328
13329
13330
13331
13332
13333#
13334# Check to make sure the PIC flag actually works.
13335#
13336if test -n "$lt_prog_compiler_pic"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13338$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13339if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341else
13342 lt_cv_prog_compiler_pic_works=no
13343 ac_outfile=conftest.$ac_objext
13344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13346 # Insert the option either (1) after the last *FLAGS variable, or
13347 # (2) before a word containing "conftest.", or (3) at the end.
13348 # Note that $ac_compile itself does not contain backslashes and begins
13349 # with a dollar sign (not a hyphen), so the echo should work correctly.
13350 # The option is referenced via a variable to avoid confusing sed.
13351 lt_compile=`echo "$ac_compile" | $SED \
13352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13354 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000013355 (eval echo "\"\$as_me:13355: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013356 (eval "$lt_compile" 2>conftest.err)
13357 ac_status=$?
13358 cat conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000013359 echo "$as_me:13359: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013360 if (exit $ac_status) && test -s "$ac_outfile"; then
13361 # The compiler can only warn and ignore the option if not recognized
13362 # So say no if there are warnings other than the usual output.
13363 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13366 lt_cv_prog_compiler_pic_works=yes
13367 fi
13368 fi
13369 $RM conftest*
13370
13371fi
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13373$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13374
13375if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13376 case $lt_prog_compiler_pic in
13377 "" | " "*) ;;
13378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13379 esac
13380else
13381 lt_prog_compiler_pic=
13382 lt_prog_compiler_can_build_shared=no
13383fi
13384
13385fi
13386
13387
13388
13389
13390
13391
13392#
13393# Check to make sure the static flag actually works.
13394#
13395wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13397$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13398if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400else
13401 lt_cv_prog_compiler_static_works=no
13402 save_LDFLAGS="$LDFLAGS"
13403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13404 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13406 # The linker can only warn and ignore the option if not recognized
13407 # So say no if there are warnings
13408 if test -s conftest.err; then
13409 # Append any errors to the config.log.
13410 cat conftest.err 1>&5
13411 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13413 if diff conftest.exp conftest.er2 >/dev/null; then
13414 lt_cv_prog_compiler_static_works=yes
13415 fi
13416 else
13417 lt_cv_prog_compiler_static_works=yes
13418 fi
13419 fi
13420 $RM -r conftest*
13421 LDFLAGS="$save_LDFLAGS"
13422
13423fi
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13425$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13426
13427if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13428 :
13429else
13430 lt_prog_compiler_static=
13431fi
13432
13433
13434
13435
13436
13437
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13440$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13441if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13443else
13444 lt_cv_prog_compiler_c_o=no
13445 $RM -r conftest 2>/dev/null
13446 mkdir conftest
13447 cd conftest
13448 mkdir out
13449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13450
13451 lt_compiler_flag="-o out/conftest2.$ac_objext"
13452 # Insert the option either (1) after the last *FLAGS variable, or
13453 # (2) before a word containing "conftest.", or (3) at the end.
13454 # Note that $ac_compile itself does not contain backslashes and begins
13455 # with a dollar sign (not a hyphen), so the echo should work correctly.
13456 lt_compile=`echo "$ac_compile" | $SED \
13457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13459 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000013460 (eval echo "\"\$as_me:13460: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013461 (eval "$lt_compile" 2>out/conftest.err)
13462 ac_status=$?
13463 cat out/conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000013464 echo "$as_me:13464: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13466 then
13467 # The compiler can only warn and ignore the option if not recognized
13468 # So say no if there are warnings
13469 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13470 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13471 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13472 lt_cv_prog_compiler_c_o=yes
13473 fi
13474 fi
13475 chmod u+w . 2>&5
13476 $RM conftest*
13477 # SGI C++ compiler will create directory out/ii_files/ for
13478 # template instantiation
13479 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13480 $RM out/* && rmdir out
13481 cd ..
13482 $RM -r conftest
13483 $RM conftest*
13484
13485fi
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13487$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13488
13489
13490
13491
13492
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13495$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13496if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498else
13499 lt_cv_prog_compiler_c_o=no
13500 $RM -r conftest 2>/dev/null
13501 mkdir conftest
13502 cd conftest
13503 mkdir out
13504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13505
13506 lt_compiler_flag="-o out/conftest2.$ac_objext"
13507 # Insert the option either (1) after the last *FLAGS variable, or
13508 # (2) before a word containing "conftest.", or (3) at the end.
13509 # Note that $ac_compile itself does not contain backslashes and begins
13510 # with a dollar sign (not a hyphen), so the echo should work correctly.
13511 lt_compile=`echo "$ac_compile" | $SED \
13512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13514 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000013515 (eval echo "\"\$as_me:13515: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013516 (eval "$lt_compile" 2>out/conftest.err)
13517 ac_status=$?
13518 cat out/conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000013519 echo "$as_me:13519: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13521 then
13522 # The compiler can only warn and ignore the option if not recognized
13523 # So say no if there are warnings
13524 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13527 lt_cv_prog_compiler_c_o=yes
13528 fi
13529 fi
13530 chmod u+w . 2>&5
13531 $RM conftest*
13532 # SGI C++ compiler will create directory out/ii_files/ for
13533 # template instantiation
13534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13535 $RM out/* && rmdir out
13536 cd ..
13537 $RM -r conftest
13538 $RM conftest*
13539
13540fi
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13542$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13543
13544
13545
13546
13547hard_links="nottested"
13548if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13549 # do not overwrite the value of need_locks provided by the user
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13551$as_echo_n "checking if we can lock with hard links... " >&6; }
13552 hard_links=yes
13553 $RM conftest*
13554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13555 touch conftest.a
13556 ln conftest.a conftest.b 2>&5 || hard_links=no
13557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13559$as_echo "$hard_links" >&6; }
13560 if test "$hard_links" = no; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13562$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13563 need_locks=warn
13564 fi
13565else
13566 need_locks=no
13567fi
13568
13569
13570
13571
13572
13573
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13575$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13576
13577 runpath_var=
13578 allow_undefined_flag=
13579 always_export_symbols=no
13580 archive_cmds=
13581 archive_expsym_cmds=
13582 compiler_needs_object=no
13583 enable_shared_with_static_runtimes=no
13584 export_dynamic_flag_spec=
13585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13586 hardcode_automatic=no
13587 hardcode_direct=no
13588 hardcode_direct_absolute=no
13589 hardcode_libdir_flag_spec=
13590 hardcode_libdir_flag_spec_ld=
13591 hardcode_libdir_separator=
13592 hardcode_minus_L=no
13593 hardcode_shlibpath_var=unsupported
13594 inherit_rpath=no
13595 link_all_deplibs=unknown
13596 module_cmds=
13597 module_expsym_cmds=
13598 old_archive_from_new_cmds=
13599 old_archive_from_expsyms_cmds=
13600 thread_safe_flag_spec=
13601 whole_archive_flag_spec=
13602 # include_expsyms should be a list of space-separated symbols to be *always*
13603 # included in the symbol list
13604 include_expsyms=
13605 # exclude_expsyms can be an extended regexp of symbols to exclude
13606 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13607 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13608 # as well as any symbol that contains `d'.
13609 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13610 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13611 # platforms (ab)use it in PIC code, but their linkers get confused if
13612 # the symbol is explicitly referenced. Since portable code cannot
13613 # rely on this symbol name, it's probably fine to never include it in
13614 # preloaded symbol tables.
13615 # Exclude shared library initialization/finalization symbols.
13616 extract_expsyms_cmds=
13617
13618 case $host_os in
13619 cygwin* | mingw* | pw32* | cegcc*)
13620 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13621 # When not using gcc, we currently assume that we are using
13622 # Microsoft Visual C++.
13623 if test "$GCC" != yes; then
13624 with_gnu_ld=no
13625 fi
13626 ;;
13627 interix*)
13628 # we just hope/assume this is gcc and not c89 (= MSVC++)
13629 with_gnu_ld=yes
13630 ;;
13631 openbsd*)
13632 with_gnu_ld=no
13633 ;;
13634 esac
13635
13636 ld_shlibs=yes
13637 if test "$with_gnu_ld" = yes; then
13638 # If archive_cmds runs LD, not CC, wlarc should be empty
13639 wlarc='${wl}'
13640
13641 # Set some defaults for GNU ld with shared library support. These
13642 # are reset later if shared libraries are not supported. Putting them
13643 # here allows them to be overridden if necessary.
13644 runpath_var=LD_RUN_PATH
13645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13646 export_dynamic_flag_spec='${wl}--export-dynamic'
13647 # ancient GNU ld didn't support --whole-archive et. al.
13648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13650 else
13651 whole_archive_flag_spec=
13652 fi
13653 supports_anon_versioning=no
13654 case `$LD -v 2>&1` in
13655 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13658 *\ 2.11.*) ;; # other 2.11 versions
13659 *) supports_anon_versioning=yes ;;
13660 esac
13661
13662 # See if GNU ld supports shared libraries.
13663 case $host_os in
13664 aix[3-9]*)
13665 # On AIX/PPC, the GNU linker is very broken
13666 if test "$host_cpu" != ia64; then
13667 ld_shlibs=no
13668 cat <<_LT_EOF 1>&2
13669
13670*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13671*** to be unable to reliably create shared libraries on AIX.
13672*** Therefore, libtool is disabling shared libraries support. If you
13673*** really care for shared libraries, you may want to modify your PATH
13674*** so that a non-GNU linker is found, and then restart.
13675
13676_LT_EOF
13677 fi
13678 ;;
13679
13680 amigaos*)
13681 case $host_cpu in
13682 powerpc)
13683 # see comment about AmigaOS4 .so support
13684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685 archive_expsym_cmds=''
13686 ;;
13687 m68k)
13688 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)'
13689 hardcode_libdir_flag_spec='-L$libdir'
13690 hardcode_minus_L=yes
13691 ;;
13692 esac
13693 ;;
13694
13695 beos*)
13696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13697 allow_undefined_flag=unsupported
13698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13699 # support --undefined. This deserves some investigation. FIXME
13700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701 else
13702 ld_shlibs=no
13703 fi
13704 ;;
13705
13706 cygwin* | mingw* | pw32* | cegcc*)
13707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13708 # as there is no search path for DLLs.
13709 hardcode_libdir_flag_spec='-L$libdir'
13710 allow_undefined_flag=unsupported
13711 always_export_symbols=no
13712 enable_shared_with_static_runtimes=yes
13713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13714
13715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13717 # If the export-symbols file already is a .def file (1st line
13718 # is EXPORTS), use it as is; otherwise, prepend...
13719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13720 cp $export_symbols $output_objdir/$soname.def;
13721 else
13722 echo EXPORTS > $output_objdir/$soname.def;
13723 cat $export_symbols >> $output_objdir/$soname.def;
13724 fi~
13725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13726 else
13727 ld_shlibs=no
13728 fi
13729 ;;
13730
13731 interix[3-9]*)
13732 hardcode_direct=no
13733 hardcode_shlibpath_var=no
13734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13735 export_dynamic_flag_spec='${wl}-E'
13736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13737 # Instead, shared libraries are loaded at an image base (0x10000000 by
13738 # default) and relocated if they conflict, which is a slow very memory
13739 # consuming and fragmenting process. To avoid this, we pick a random,
13740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13743 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'
13744 ;;
13745
13746 gnu* | linux* | tpf* | k*bsd*-gnu)
13747 tmp_diet=no
13748 if test "$host_os" = linux-dietlibc; then
13749 case $cc_basename in
13750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13751 esac
13752 fi
13753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13754 && test "$tmp_diet" = no
13755 then
13756 tmp_addflag=
13757 tmp_sharedflag='-shared'
13758 case $cc_basename,$host_cpu in
13759 pgcc*) # Portland Group C compiler
13760 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'
13761 tmp_addflag=' $pic_flag'
13762 ;;
13763 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13764 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'
13765 tmp_addflag=' $pic_flag -Mnomain' ;;
13766 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13767 tmp_addflag=' -i_dynamic' ;;
13768 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13769 tmp_addflag=' -i_dynamic -nofor_main' ;;
13770 ifc* | ifort*) # Intel Fortran compiler
13771 tmp_addflag=' -nofor_main' ;;
13772 lf95*) # Lahey Fortran 8.1
13773 whole_archive_flag_spec=
13774 tmp_sharedflag='--shared' ;;
13775 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13776 tmp_sharedflag='-qmkshrobj'
13777 tmp_addflag= ;;
13778 esac
13779 case `$CC -V 2>&1 | sed 5q` in
13780 *Sun\ C*) # Sun C 5.9
13781 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'
13782 compiler_needs_object=yes
13783 tmp_sharedflag='-G' ;;
13784 *Sun\ F*) # Sun Fortran 8.3
13785 tmp_sharedflag='-G' ;;
13786 esac
13787 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13788
13789 if test "x$supports_anon_versioning" = xyes; then
13790 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13792 echo "local: *; };" >> $output_objdir/$libname.ver~
13793 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13794 fi
13795
13796 case $cc_basename in
13797 xlf*)
13798 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13799 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13800 hardcode_libdir_flag_spec=
13801 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13802 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13803 if test "x$supports_anon_versioning" = xyes; then
13804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13806 echo "local: *; };" >> $output_objdir/$libname.ver~
13807 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13808 fi
13809 ;;
13810 esac
13811 else
13812 ld_shlibs=no
13813 fi
13814 ;;
13815
13816 netbsd*)
13817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13818 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13819 wlarc=
13820 else
13821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 fi
13824 ;;
13825
13826 solaris*)
13827 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13828 ld_shlibs=no
13829 cat <<_LT_EOF 1>&2
13830
13831*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13832*** create shared libraries on Solaris systems. Therefore, libtool
13833*** is disabling shared libraries support. We urge you to upgrade GNU
13834*** binutils to release 2.9.1 or newer. Another option is to modify
13835*** your PATH or compiler configuration so that the native linker is
13836*** used, and then restart.
13837
13838_LT_EOF
13839 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13842 else
13843 ld_shlibs=no
13844 fi
13845 ;;
13846
13847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13848 case `$LD -v 2>&1` in
13849 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13850 ld_shlibs=no
13851 cat <<_LT_EOF 1>&2
13852
13853*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13854*** reliably create shared libraries on SCO systems. Therefore, libtool
13855*** is disabling shared libraries support. We urge you to upgrade GNU
13856*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13857*** your PATH or compiler configuration so that the native linker is
13858*** used, and then restart.
13859
13860_LT_EOF
13861 ;;
13862 *)
13863 # For security reasons, it is highly recommended that you always
13864 # use absolute paths for naming shared libraries, and exclude the
13865 # DT_RUNPATH tag from executables and libraries. But doing so
13866 # requires that you compile everything twice, which is a pain.
13867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13871 else
13872 ld_shlibs=no
13873 fi
13874 ;;
13875 esac
13876 ;;
13877
13878 sunos4*)
13879 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13880 wlarc=
13881 hardcode_direct=yes
13882 hardcode_shlibpath_var=no
13883 ;;
13884
13885 *)
13886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13889 else
13890 ld_shlibs=no
13891 fi
13892 ;;
13893 esac
13894
13895 if test "$ld_shlibs" = no; then
13896 runpath_var=
13897 hardcode_libdir_flag_spec=
13898 export_dynamic_flag_spec=
13899 whole_archive_flag_spec=
13900 fi
13901 else
13902 # PORTME fill in a description of your system's linker (not GNU ld)
13903 case $host_os in
13904 aix3*)
13905 allow_undefined_flag=unsupported
13906 always_export_symbols=yes
13907 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'
13908 # Note: this linker hardcodes the directories in LIBPATH if there
13909 # are no directories specified by -L.
13910 hardcode_minus_L=yes
13911 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13912 # Neither direct hardcoding nor static linking is supported with a
13913 # broken collect2.
13914 hardcode_direct=unsupported
13915 fi
13916 ;;
13917
13918 aix[4-9]*)
13919 if test "$host_cpu" = ia64; then
13920 # On IA64, the linker does run time linking by default, so we don't
13921 # have to do anything special.
13922 aix_use_runtimelinking=no
13923 exp_sym_flag='-Bexport'
13924 no_entry_flag=""
13925 else
13926 # If we're using GNU nm, then we don't want the "-C" option.
13927 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13929 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'
13930 else
13931 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'
13932 fi
13933 aix_use_runtimelinking=no
13934
13935 # Test if we are trying to use run time linking or normal
13936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13937 # need to do runtime linking.
13938 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13939 for ld_flag in $LDFLAGS; do
13940 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13941 aix_use_runtimelinking=yes
13942 break
13943 fi
13944 done
13945 ;;
13946 esac
13947
13948 exp_sym_flag='-bexport'
13949 no_entry_flag='-bnoentry'
13950 fi
13951
13952 # When large executables or shared objects are built, AIX ld can
13953 # have problems creating the table of contents. If linking a library
13954 # or program results in "error TOC overflow" add -mminimal-toc to
13955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13957
13958 archive_cmds=''
13959 hardcode_direct=yes
13960 hardcode_direct_absolute=yes
13961 hardcode_libdir_separator=':'
13962 link_all_deplibs=yes
13963 file_list_spec='${wl}-f,'
13964
13965 if test "$GCC" = yes; then
13966 case $host_os in aix4.[012]|aix4.[012].*)
13967 # We only want to do this on AIX 4.2 and lower, the check
13968 # below for broken collect2 doesn't work under 4.3+
13969 collect2name=`${CC} -print-prog-name=collect2`
13970 if test -f "$collect2name" &&
13971 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13972 then
13973 # We have reworked collect2
13974 :
13975 else
13976 # We have old collect2
13977 hardcode_direct=unsupported
13978 # It fails to find uninstalled libraries when the uninstalled
13979 # path is not listed in the libpath. Setting hardcode_minus_L
13980 # to unsupported forces relinking
13981 hardcode_minus_L=yes
13982 hardcode_libdir_flag_spec='-L$libdir'
13983 hardcode_libdir_separator=
13984 fi
13985 ;;
13986 esac
13987 shared_flag='-shared'
13988 if test "$aix_use_runtimelinking" = yes; then
13989 shared_flag="$shared_flag "'${wl}-G'
13990 fi
13991 else
13992 # not using gcc
13993 if test "$host_cpu" = ia64; then
13994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13995 # chokes on -Wl,-G. The following line is correct:
13996 shared_flag='-G'
13997 else
13998 if test "$aix_use_runtimelinking" = yes; then
13999 shared_flag='${wl}-G'
14000 else
14001 shared_flag='${wl}-bM:SRE'
14002 fi
14003 fi
14004 fi
14005
14006 export_dynamic_flag_spec='${wl}-bexpall'
14007 # It seems that -bexpall does not export symbols beginning with
14008 # underscore (_), so it is better to generate a list of symbols to export.
14009 always_export_symbols=yes
14010 if test "$aix_use_runtimelinking" = yes; then
14011 # Warning - without using the other runtime loading flags (-brtl),
14012 # -berok will link without error, but may produce a broken library.
14013 allow_undefined_flag='-berok'
14014 # Determine the default libpath from the value encoded in an
14015 # empty executable.
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017/* end confdefs.h. */
14018
14019int
14020main ()
14021{
14022
14023 ;
14024 return 0;
14025}
14026_ACEOF
14027if ac_fn_c_try_link "$LINENO"; then :
14028
14029lt_aix_libpath_sed='
14030 /Import File Strings/,/^$/ {
14031 /^0/ {
14032 s/^0 *\(.*\)$/\1/
14033 p
14034 }
14035 }'
14036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14037# Check for a 64-bit object if we didn't find anything.
14038if test -z "$aix_libpath"; then
14039 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14040fi
14041fi
14042rm -f core conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
14044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14045
14046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14047 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"
14048 else
14049 if test "$host_cpu" = ia64; then
14050 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14051 allow_undefined_flag="-z nodefs"
14052 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"
14053 else
14054 # Determine the default libpath from the value encoded in an
14055 # empty executable.
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057/* end confdefs.h. */
14058
14059int
14060main ()
14061{
14062
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067if ac_fn_c_try_link "$LINENO"; then :
14068
14069lt_aix_libpath_sed='
14070 /Import File Strings/,/^$/ {
14071 /^0/ {
14072 s/^0 *\(.*\)$/\1/
14073 p
14074 }
14075 }'
14076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14077# Check for a 64-bit object if we didn't find anything.
14078if test -z "$aix_libpath"; then
14079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14080fi
14081fi
14082rm -f core conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14084if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14085
14086 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14087 # Warning - without using the other run time loading flags,
14088 # -berok will link without error, but may produce a broken library.
14089 no_undefined_flag=' ${wl}-bernotok'
14090 allow_undefined_flag=' ${wl}-berok'
14091 # Exported symbols can be pulled into shared objects from archives
14092 whole_archive_flag_spec='$convenience'
14093 archive_cmds_need_lc=yes
14094 # This is similar to how AIX traditionally builds its shared libraries.
14095 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'
14096 fi
14097 fi
14098 ;;
14099
14100 amigaos*)
14101 case $host_cpu in
14102 powerpc)
14103 # see comment about AmigaOS4 .so support
14104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14105 archive_expsym_cmds=''
14106 ;;
14107 m68k)
14108 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)'
14109 hardcode_libdir_flag_spec='-L$libdir'
14110 hardcode_minus_L=yes
14111 ;;
14112 esac
14113 ;;
14114
14115 bsdi[45]*)
14116 export_dynamic_flag_spec=-rdynamic
14117 ;;
14118
14119 cygwin* | mingw* | pw32* | cegcc*)
14120 # When not using gcc, we currently assume that we are using
14121 # Microsoft Visual C++.
14122 # hardcode_libdir_flag_spec is actually meaningless, as there is
14123 # no search path for DLLs.
14124 hardcode_libdir_flag_spec=' '
14125 allow_undefined_flag=unsupported
14126 # Tell ltmain to make .lib files, not .a files.
14127 libext=lib
14128 # Tell ltmain to make .dll files, not .so files.
14129 shrext_cmds=".dll"
14130 # FIXME: Setting linknames here is a bad hack.
14131 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14132 # The linker will automatically build a .lib file if we build a DLL.
14133 old_archive_from_new_cmds='true'
14134 # FIXME: Should let the user specify the lib program.
14135 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14136 fix_srcfile_path='`cygpath -w "$srcfile"`'
14137 enable_shared_with_static_runtimes=yes
14138 ;;
14139
14140 darwin* | rhapsody*)
14141
14142
14143 archive_cmds_need_lc=no
14144 hardcode_direct=no
14145 hardcode_automatic=yes
14146 hardcode_shlibpath_var=unsupported
14147 whole_archive_flag_spec=''
14148 link_all_deplibs=yes
14149 allow_undefined_flag="$_lt_dar_allow_undefined"
14150 case $cc_basename in
14151 ifort*) _lt_dar_can_shared=yes ;;
14152 *) _lt_dar_can_shared=$GCC ;;
14153 esac
14154 if test "$_lt_dar_can_shared" = "yes"; then
14155 output_verbose_link_cmd=echo
14156 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14157 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14158 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}"
14159 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}"
14160
14161 else
14162 ld_shlibs=no
14163 fi
14164
14165 ;;
14166
14167 dgux*)
14168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14169 hardcode_libdir_flag_spec='-L$libdir'
14170 hardcode_shlibpath_var=no
14171 ;;
14172
14173 freebsd1*)
14174 ld_shlibs=no
14175 ;;
14176
14177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14178 # support. Future versions do this automatically, but an explicit c++rt0.o
14179 # does not break anything, and helps significantly (at the cost of a little
14180 # extra space).
14181 freebsd2.2*)
14182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14183 hardcode_libdir_flag_spec='-R$libdir'
14184 hardcode_direct=yes
14185 hardcode_shlibpath_var=no
14186 ;;
14187
14188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14189 freebsd2*)
14190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14191 hardcode_direct=yes
14192 hardcode_minus_L=yes
14193 hardcode_shlibpath_var=no
14194 ;;
14195
14196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14197 freebsd* | dragonfly*)
14198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14199 hardcode_libdir_flag_spec='-R$libdir'
14200 hardcode_direct=yes
14201 hardcode_shlibpath_var=no
14202 ;;
14203
14204 hpux9*)
14205 if test "$GCC" = yes; then
14206 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'
14207 else
14208 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'
14209 fi
14210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14211 hardcode_libdir_separator=:
14212 hardcode_direct=yes
14213
14214 # hardcode_minus_L: Not really in the search PATH,
14215 # but as the default location of the library.
14216 hardcode_minus_L=yes
14217 export_dynamic_flag_spec='${wl}-E'
14218 ;;
14219
14220 hpux10*)
14221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14223 else
14224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14225 fi
14226 if test "$with_gnu_ld" = no; then
14227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14228 hardcode_libdir_flag_spec_ld='+b $libdir'
14229 hardcode_libdir_separator=:
14230 hardcode_direct=yes
14231 hardcode_direct_absolute=yes
14232 export_dynamic_flag_spec='${wl}-E'
14233 # hardcode_minus_L: Not really in the search PATH,
14234 # but as the default location of the library.
14235 hardcode_minus_L=yes
14236 fi
14237 ;;
14238
14239 hpux11*)
14240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14241 case $host_cpu in
14242 hppa*64*)
14243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14244 ;;
14245 ia64*)
14246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14247 ;;
14248 *)
14249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14250 ;;
14251 esac
14252 else
14253 case $host_cpu in
14254 hppa*64*)
14255 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14256 ;;
14257 ia64*)
14258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14259 ;;
14260 *)
14261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14262 ;;
14263 esac
14264 fi
14265 if test "$with_gnu_ld" = no; then
14266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14267 hardcode_libdir_separator=:
14268
14269 case $host_cpu in
14270 hppa*64*|ia64*)
14271 hardcode_direct=no
14272 hardcode_shlibpath_var=no
14273 ;;
14274 *)
14275 hardcode_direct=yes
14276 hardcode_direct_absolute=yes
14277 export_dynamic_flag_spec='${wl}-E'
14278
14279 # hardcode_minus_L: Not really in the search PATH,
14280 # but as the default location of the library.
14281 hardcode_minus_L=yes
14282 ;;
14283 esac
14284 fi
14285 ;;
14286
14287 irix5* | irix6* | nonstopux*)
14288 if test "$GCC" = yes; then
14289 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'
14290 # Try to use the -exported_symbol ld option, if it does not
14291 # work, assume that -exports_file does not work either and
14292 # implicitly export all symbols.
14293 save_LDFLAGS="$LDFLAGS"
14294 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h. */
14297int foo(void) {}
14298_ACEOF
14299if ac_fn_c_try_link "$LINENO"; then :
14300 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'
14301
14302fi
14303rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LDFLAGS="$save_LDFLAGS"
14306 else
14307 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'
14308 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'
14309 fi
14310 archive_cmds_need_lc='no'
14311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14312 hardcode_libdir_separator=:
14313 inherit_rpath=yes
14314 link_all_deplibs=yes
14315 ;;
14316
14317 netbsd*)
14318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14320 else
14321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14322 fi
14323 hardcode_libdir_flag_spec='-R$libdir'
14324 hardcode_direct=yes
14325 hardcode_shlibpath_var=no
14326 ;;
14327
14328 newsos6)
14329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330 hardcode_direct=yes
14331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14332 hardcode_libdir_separator=:
14333 hardcode_shlibpath_var=no
14334 ;;
14335
14336 *nto* | *qnx*)
14337 ;;
14338
14339 openbsd*)
14340 if test -f /usr/libexec/ld.so; then
14341 hardcode_direct=yes
14342 hardcode_shlibpath_var=no
14343 hardcode_direct_absolute=yes
14344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14348 export_dynamic_flag_spec='${wl}-E'
14349 else
14350 case $host_os in
14351 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14353 hardcode_libdir_flag_spec='-R$libdir'
14354 ;;
14355 *)
14356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14358 ;;
14359 esac
14360 fi
14361 else
14362 ld_shlibs=no
14363 fi
14364 ;;
14365
14366 os2*)
14367 hardcode_libdir_flag_spec='-L$libdir'
14368 hardcode_minus_L=yes
14369 allow_undefined_flag=unsupported
14370 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'
14371 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14372 ;;
14373
14374 osf3*)
14375 if test "$GCC" = yes; then
14376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14377 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'
14378 else
14379 allow_undefined_flag=' -expect_unresolved \*'
14380 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'
14381 fi
14382 archive_cmds_need_lc='no'
14383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14384 hardcode_libdir_separator=:
14385 ;;
14386
14387 osf4* | osf5*) # as osf3* with the addition of -msym flag
14388 if test "$GCC" = yes; then
14389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14390 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'
14391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14392 else
14393 allow_undefined_flag=' -expect_unresolved \*'
14394 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'
14395 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~
14396 $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'
14397
14398 # Both c and cxx compiler support -rpath directly
14399 hardcode_libdir_flag_spec='-rpath $libdir'
14400 fi
14401 archive_cmds_need_lc='no'
14402 hardcode_libdir_separator=:
14403 ;;
14404
14405 solaris*)
14406 no_undefined_flag=' -z defs'
14407 if test "$GCC" = yes; then
14408 wlarc='${wl}'
14409 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14411 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14412 else
14413 case `$CC -V 2>&1` in
14414 *"Compilers 5.0"*)
14415 wlarc=''
14416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14419 ;;
14420 *)
14421 wlarc='${wl}'
14422 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14424 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14425 ;;
14426 esac
14427 fi
14428 hardcode_libdir_flag_spec='-R$libdir'
14429 hardcode_shlibpath_var=no
14430 case $host_os in
14431 solaris2.[0-5] | solaris2.[0-5].*) ;;
14432 *)
14433 # The compiler driver will combine and reorder linker options,
14434 # but understands `-z linker_flag'. GCC discards it without `$wl',
14435 # but is careful enough not to reorder.
14436 # Supported since Solaris 2.6 (maybe 2.5.1?)
14437 if test "$GCC" = yes; then
14438 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14439 else
14440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14441 fi
14442 ;;
14443 esac
14444 link_all_deplibs=yes
14445 ;;
14446
14447 sunos4*)
14448 if test "x$host_vendor" = xsequent; then
14449 # Use $CC to link under sequent, because it throws in some extra .o
14450 # files that make .init and .fini sections work.
14451 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14452 else
14453 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14454 fi
14455 hardcode_libdir_flag_spec='-L$libdir'
14456 hardcode_direct=yes
14457 hardcode_minus_L=yes
14458 hardcode_shlibpath_var=no
14459 ;;
14460
14461 sysv4)
14462 case $host_vendor in
14463 sni)
14464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14465 hardcode_direct=yes # is this really true???
14466 ;;
14467 siemens)
14468 ## LD is ld it makes a PLAMLIB
14469 ## CC just makes a GrossModule.
14470 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14471 reload_cmds='$CC -r -o $output$reload_objs'
14472 hardcode_direct=no
14473 ;;
14474 motorola)
14475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14477 ;;
14478 esac
14479 runpath_var='LD_RUN_PATH'
14480 hardcode_shlibpath_var=no
14481 ;;
14482
14483 sysv4.3*)
14484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485 hardcode_shlibpath_var=no
14486 export_dynamic_flag_spec='-Bexport'
14487 ;;
14488
14489 sysv4*MP*)
14490 if test -d /usr/nec; then
14491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14492 hardcode_shlibpath_var=no
14493 runpath_var=LD_RUN_PATH
14494 hardcode_runpath_var=yes
14495 ld_shlibs=yes
14496 fi
14497 ;;
14498
14499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14500 no_undefined_flag='${wl}-z,text'
14501 archive_cmds_need_lc=no
14502 hardcode_shlibpath_var=no
14503 runpath_var='LD_RUN_PATH'
14504
14505 if test "$GCC" = yes; then
14506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508 else
14509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 fi
14512 ;;
14513
14514 sysv5* | sco3.2v5* | sco5v6*)
14515 # Note: We can NOT use -z defs as we might desire, because we do not
14516 # link with -lc, and that would cause any symbols used from libc to
14517 # always be unresolved, which means just about no library would
14518 # ever link correctly. If we're not using GNU ld we use -z text
14519 # though, which does catch some bad symbols but isn't as heavy-handed
14520 # as -z defs.
14521 no_undefined_flag='${wl}-z,text'
14522 allow_undefined_flag='${wl}-z,nodefs'
14523 archive_cmds_need_lc=no
14524 hardcode_shlibpath_var=no
14525 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14526 hardcode_libdir_separator=':'
14527 link_all_deplibs=yes
14528 export_dynamic_flag_spec='${wl}-Bexport'
14529 runpath_var='LD_RUN_PATH'
14530
14531 if test "$GCC" = yes; then
14532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 else
14535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537 fi
14538 ;;
14539
14540 uts4*)
14541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542 hardcode_libdir_flag_spec='-L$libdir'
14543 hardcode_shlibpath_var=no
14544 ;;
14545
14546 *)
14547 ld_shlibs=no
14548 ;;
14549 esac
14550
14551 if test x$host_vendor = xsni; then
14552 case $host in
14553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14554 export_dynamic_flag_spec='${wl}-Blargedynsym'
14555 ;;
14556 esac
14557 fi
14558 fi
14559
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14561$as_echo "$ld_shlibs" >&6; }
14562test "$ld_shlibs" = no && can_build_shared=no
14563
14564with_gnu_ld=$with_gnu_ld
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580#
14581# Do we need to explicitly link libc?
14582#
14583case "x$archive_cmds_need_lc" in
14584x|xyes)
14585 # Assume -lc should be added
14586 archive_cmds_need_lc=yes
14587
14588 if test "$enable_shared" = yes && test "$GCC" = yes; then
14589 case $archive_cmds in
14590 *'~'*)
14591 # FIXME: we may have to deal with multi-command sequences.
14592 ;;
14593 '$CC '*)
14594 # Test whether the compiler implicitly links with -lc since on some
14595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14596 # to ld, don't add -lc before -lgcc.
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14598$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14599 $RM conftest*
14600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14601
14602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14603 (eval $ac_compile) 2>&5
14604 ac_status=$?
14605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14606 test $ac_status = 0; } 2>conftest.err; then
14607 soname=conftest
14608 lib=conftest
14609 libobjs=conftest.$ac_objext
14610 deplibs=
14611 wl=$lt_prog_compiler_wl
14612 pic_flag=$lt_prog_compiler_pic
14613 compiler_flags=-v
14614 linker_flags=-v
14615 verstring=
14616 output_objdir=.
14617 libname=conftest
14618 lt_save_allow_undefined_flag=$allow_undefined_flag
14619 allow_undefined_flag=
14620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14621 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14622 ac_status=$?
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }
14625 then
14626 archive_cmds_need_lc=no
14627 else
14628 archive_cmds_need_lc=yes
14629 fi
14630 allow_undefined_flag=$lt_save_allow_undefined_flag
14631 else
14632 cat conftest.err 1>&5
14633 fi
14634 $RM conftest*
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14636$as_echo "$archive_cmds_need_lc" >&6; }
14637 ;;
14638 esac
14639 fi
14640 ;;
14641esac
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
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14800$as_echo_n "checking dynamic linker characteristics... " >&6; }
14801
14802if test "$GCC" = yes; then
14803 case $host_os in
14804 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14805 *) lt_awk_arg="/^libraries:/" ;;
14806 esac
14807 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14808 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14809 # if the path contains ";" then we assume it to be the separator
14810 # otherwise default to the standard path separator (i.e. ":") - it is
14811 # assumed that no part of a normal pathname contains ";" but that should
14812 # okay in the real world where ";" in dirpaths is itself problematic.
14813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14814 else
14815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14816 fi
14817 # Ok, now we have the path, separated by spaces, we can step through it
14818 # and add multilib dir if necessary.
14819 lt_tmp_lt_search_path_spec=
14820 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14821 for lt_sys_path in $lt_search_path_spec; do
14822 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14824 else
14825 test -d "$lt_sys_path" && \
14826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14827 fi
14828 done
14829 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14830BEGIN {RS=" "; FS="/|\n";} {
14831 lt_foo="";
14832 lt_count=0;
14833 for (lt_i = NF; lt_i > 0; lt_i--) {
14834 if ($lt_i != "" && $lt_i != ".") {
14835 if ($lt_i == "..") {
14836 lt_count++;
14837 } else {
14838 if (lt_count == 0) {
14839 lt_foo="/" $lt_i lt_foo;
14840 } else {
14841 lt_count--;
14842 }
14843 }
14844 }
14845 }
14846 if (lt_foo != "") { lt_freq[lt_foo]++; }
14847 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14848}'`
14849 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14850else
14851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14852fi
14853library_names_spec=
14854libname_spec='lib$name'
14855soname_spec=
14856shrext_cmds=".so"
14857postinstall_cmds=
14858postuninstall_cmds=
14859finish_cmds=
14860finish_eval=
14861shlibpath_var=
14862shlibpath_overrides_runpath=unknown
14863version_type=none
14864dynamic_linker="$host_os ld.so"
14865sys_lib_dlsearch_path_spec="/lib /usr/lib"
14866need_lib_prefix=unknown
14867hardcode_into_libs=no
14868
14869# when you set need_version to no, make sure it does not cause -set_version
14870# flags to be left without arguments
14871need_version=unknown
14872
14873case $host_os in
14874aix3*)
14875 version_type=linux
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14877 shlibpath_var=LIBPATH
14878
14879 # AIX 3 has no versioning support, so we append a major version to the name.
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 ;;
14882
14883aix[4-9]*)
14884 version_type=linux
14885 need_lib_prefix=no
14886 need_version=no
14887 hardcode_into_libs=yes
14888 if test "$host_cpu" = ia64; then
14889 # AIX 5 supports IA64
14890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 else
14893 # With GCC up to 2.95.x, collect2 would create an import file
14894 # for dependence libraries. The import file would start with
14895 # the line `#! .'. This would cause the generated library to
14896 # depend on `.', always an invalid library. This was fixed in
14897 # development snapshots of GCC prior to 3.0.
14898 case $host_os in
14899 aix4 | aix4.[01] | aix4.[01].*)
14900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14901 echo ' yes '
14902 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14903 :
14904 else
14905 can_build_shared=no
14906 fi
14907 ;;
14908 esac
14909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14910 # soname into executable. Probably we can add versioning support to
14911 # collect2, so additional links can be useful in future.
14912 if test "$aix_use_runtimelinking" = yes; then
14913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14914 # instead of lib<name>.a to let people know that these are not
14915 # typical AIX shared libraries.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 else
14918 # We preserve .a as extension for shared libraries through AIX4.2
14919 # and later when we are not doing run time linking.
14920 library_names_spec='${libname}${release}.a $libname.a'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 fi
14923 shlibpath_var=LIBPATH
14924 fi
14925 ;;
14926
14927amigaos*)
14928 case $host_cpu in
14929 powerpc)
14930 # Since July 2007 AmigaOS4 officially supports .so libraries.
14931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 ;;
14934 m68k)
14935 library_names_spec='$libname.ixlibrary $libname.a'
14936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14937 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'
14938 ;;
14939 esac
14940 ;;
14941
14942beos*)
14943 library_names_spec='${libname}${shared_ext}'
14944 dynamic_linker="$host_os ld.so"
14945 shlibpath_var=LIBRARY_PATH
14946 ;;
14947
14948bsdi[45]*)
14949 version_type=linux
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14957 # the default ld.so.conf also contains /usr/contrib/lib and
14958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14959 # libtool to hard-code these into programs
14960 ;;
14961
14962cygwin* | mingw* | pw32* | cegcc*)
14963 version_type=windows
14964 shrext_cmds=".dll"
14965 need_version=no
14966 need_lib_prefix=no
14967
14968 case $GCC,$host_os in
14969 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14970 library_names_spec='$libname.dll.a'
14971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14972 postinstall_cmds='base_file=`basename \${file}`~
14973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14974 dldir=$destdir/`dirname \$dlpath`~
14975 test -d \$dldir || mkdir -p \$dldir~
14976 $install_prog $dir/$dlname \$dldir/$dlname~
14977 chmod a+x \$dldir/$dlname~
14978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14980 fi'
14981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14982 dlpath=$dir/\$dldll~
14983 $RM \$dlpath'
14984 shlibpath_overrides_runpath=yes
14985
14986 case $host_os in
14987 cygwin*)
14988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14991 ;;
14992 mingw* | cegcc*)
14993 # MinGW DLLs use traditional 'lib' prefix
14994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14996 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14997 # It is most probably a Windows format PATH printed by
14998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14999 # path with ; separators, and with drive letters. We can handle the
15000 # drive letters (cygwin fileutils understands them), so leave them,
15001 # especially as we might pass files found there to a mingw objdump,
15002 # which wouldn't understand a cygwinified path. Ahh.
15003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15004 else
15005 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15006 fi
15007 ;;
15008 pw32*)
15009 # pw32 DLLs use 'pw' prefix rather than 'lib'
15010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15011 ;;
15012 esac
15013 ;;
15014
15015 *)
15016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15017 ;;
15018 esac
15019 dynamic_linker='Win32 ld.exe'
15020 # FIXME: first we should search . and the directory the executable is in
15021 shlibpath_var=PATH
15022 ;;
15023
15024darwin* | rhapsody*)
15025 dynamic_linker="$host_os dyld"
15026 version_type=darwin
15027 need_lib_prefix=no
15028 need_version=no
15029 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15030 soname_spec='${libname}${release}${major}$shared_ext'
15031 shlibpath_overrides_runpath=yes
15032 shlibpath_var=DYLD_LIBRARY_PATH
15033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15034
15035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15036 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15037 ;;
15038
15039dgux*)
15040 version_type=linux
15041 need_lib_prefix=no
15042 need_version=no
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 shlibpath_var=LD_LIBRARY_PATH
15046 ;;
15047
15048freebsd1*)
15049 dynamic_linker=no
15050 ;;
15051
15052freebsd* | dragonfly*)
15053 # DragonFly does not have aout. When/if they implement a new
15054 # versioning mechanism, adjust this.
15055 if test -x /usr/bin/objformat; then
15056 objformat=`/usr/bin/objformat`
15057 else
15058 case $host_os in
15059 freebsd[123]*) objformat=aout ;;
15060 *) objformat=elf ;;
15061 esac
15062 fi
15063 version_type=freebsd-$objformat
15064 case $version_type in
15065 freebsd-elf*)
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15067 need_version=no
15068 need_lib_prefix=no
15069 ;;
15070 freebsd-*)
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15072 need_version=yes
15073 ;;
15074 esac
15075 shlibpath_var=LD_LIBRARY_PATH
15076 case $host_os in
15077 freebsd2*)
15078 shlibpath_overrides_runpath=yes
15079 ;;
15080 freebsd3.[01]* | freebsdelf3.[01]*)
15081 shlibpath_overrides_runpath=yes
15082 hardcode_into_libs=yes
15083 ;;
15084 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15085 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15086 shlibpath_overrides_runpath=no
15087 hardcode_into_libs=yes
15088 ;;
15089 *) # from 4.6 on, and DragonFly
15090 shlibpath_overrides_runpath=yes
15091 hardcode_into_libs=yes
15092 ;;
15093 esac
15094 ;;
15095
15096gnu*)
15097 version_type=linux
15098 need_lib_prefix=no
15099 need_version=no
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 hardcode_into_libs=yes
15104 ;;
15105
15106hpux9* | hpux10* | hpux11*)
15107 # Give a soname corresponding to the major version so that dld.sl refuses to
15108 # link against other versions.
15109 version_type=sunos
15110 need_lib_prefix=no
15111 need_version=no
15112 case $host_cpu in
15113 ia64*)
15114 shrext_cmds='.so'
15115 hardcode_into_libs=yes
15116 dynamic_linker="$host_os dld.so"
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 if test "X$HPUX_IA64_MODE" = X32; then
15122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15123 else
15124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15125 fi
15126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15127 ;;
15128 hppa*64*)
15129 shrext_cmds='.sl'
15130 hardcode_into_libs=yes
15131 dynamic_linker="$host_os dld.sl"
15132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15138 ;;
15139 *)
15140 shrext_cmds='.sl'
15141 dynamic_linker="$host_os dld.sl"
15142 shlibpath_var=SHLIB_PATH
15143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 ;;
15147 esac
15148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15149 postinstall_cmds='chmod 555 $lib'
15150 ;;
15151
15152interix[3-9]*)
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=no
15161 hardcode_into_libs=yes
15162 ;;
15163
15164irix5* | irix6* | nonstopux*)
15165 case $host_os in
15166 nonstopux*) version_type=nonstopux ;;
15167 *)
15168 if test "$lt_cv_prog_gnu_ld" = yes; then
15169 version_type=linux
15170 else
15171 version_type=irix
15172 fi ;;
15173 esac
15174 need_lib_prefix=no
15175 need_version=no
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15178 case $host_os in
15179 irix5* | nonstopux*)
15180 libsuff= shlibsuff=
15181 ;;
15182 *)
15183 case $LD in # libtool.m4 will add one of these switches to LD
15184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15185 libsuff= shlibsuff= libmagic=32-bit;;
15186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15187 libsuff=32 shlibsuff=N32 libmagic=N32;;
15188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15190 *) libsuff= shlibsuff= libmagic=never-match;;
15191 esac
15192 ;;
15193 esac
15194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15195 shlibpath_overrides_runpath=no
15196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15198 hardcode_into_libs=yes
15199 ;;
15200
15201# No shared lib support for Linux oldld, aout, or coff.
15202linux*oldld* | linux*aout* | linux*coff*)
15203 dynamic_linker=no
15204 ;;
15205
15206# This must be Linux ELF.
15207linux* | k*bsd*-gnu)
15208 version_type=linux
15209 need_lib_prefix=no
15210 need_version=no
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=no
15216 # Some binutils ld are patched to set DT_RUNPATH
15217 save_LDFLAGS=$LDFLAGS
15218 save_libdir=$libdir
15219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222/* end confdefs.h. */
15223
15224int
15225main ()
15226{
15227
15228 ;
15229 return 0;
15230}
15231_ACEOF
15232if ac_fn_c_try_link "$LINENO"; then :
15233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15234 shlibpath_overrides_runpath=yes
15235fi
15236fi
15237rm -f core conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LDFLAGS=$save_LDFLAGS
15240 libdir=$save_libdir
15241
15242 # This implies no fast_install, which is unacceptable.
15243 # Some rework will be needed to allow for fast_install
15244 # before this can be enabled.
15245 hardcode_into_libs=yes
15246
15247 # Add ABI-specific directories to the system library path.
15248 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15249
15250 # Append ld.so.conf contents to the search path
15251 if test -f /etc/ld.so.conf; then
15252 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' ' '`
15253 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15254 fi
15255
15256 # We used to test for /lib/ld.so.1 and disable shared libraries on
15257 # powerpc, because MkLinux only supported shared libraries with the
15258 # GNU dynamic linker. Since this was broken with cross compilers,
15259 # most powerpc-linux boxes support dynamic linking these days and
15260 # people can always --disable-shared, the test was removed, and we
15261 # assume the GNU/Linux dynamic linker is in use.
15262 dynamic_linker='GNU/Linux ld.so'
15263 ;;
15264
15265netbsd*)
15266 version_type=sunos
15267 need_lib_prefix=no
15268 need_version=no
15269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15272 dynamic_linker='NetBSD (a.out) ld.so'
15273 else
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 dynamic_linker='NetBSD ld.elf_so'
15277 fi
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 hardcode_into_libs=yes
15281 ;;
15282
15283newsos6)
15284 version_type=linux
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 shlibpath_overrides_runpath=yes
15288 ;;
15289
15290*nto* | *qnx*)
15291 version_type=qnx
15292 need_lib_prefix=no
15293 need_version=no
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec='${libname}${release}${shared_ext}$major'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=no
15298 hardcode_into_libs=yes
15299 dynamic_linker='ldqnx.so'
15300 ;;
15301
15302openbsd*)
15303 version_type=sunos
15304 sys_lib_dlsearch_path_spec="/usr/lib"
15305 need_lib_prefix=no
15306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15307 case $host_os in
15308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15309 *) need_version=no ;;
15310 esac
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15315 case $host_os in
15316 openbsd2.[89] | openbsd2.[89].*)
15317 shlibpath_overrides_runpath=no
15318 ;;
15319 *)
15320 shlibpath_overrides_runpath=yes
15321 ;;
15322 esac
15323 else
15324 shlibpath_overrides_runpath=yes
15325 fi
15326 ;;
15327
15328os2*)
15329 libname_spec='$name'
15330 shrext_cmds=".dll"
15331 need_lib_prefix=no
15332 library_names_spec='$libname${shared_ext} $libname.a'
15333 dynamic_linker='OS/2 ld.exe'
15334 shlibpath_var=LIBPATH
15335 ;;
15336
15337osf3* | osf4* | osf5*)
15338 version_type=osf
15339 need_lib_prefix=no
15340 need_version=no
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15346 ;;
15347
15348rdos*)
15349 dynamic_linker=no
15350 ;;
15351
15352solaris*)
15353 version_type=linux
15354 need_lib_prefix=no
15355 need_version=no
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15360 hardcode_into_libs=yes
15361 # ldd complains unless libraries are executable
15362 postinstall_cmds='chmod +x $lib'
15363 ;;
15364
15365sunos4*)
15366 version_type=sunos
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=yes
15371 if test "$with_gnu_ld" = yes; then
15372 need_lib_prefix=no
15373 fi
15374 need_version=yes
15375 ;;
15376
15377sysv4 | sysv4.3*)
15378 version_type=linux
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 case $host_vendor in
15383 sni)
15384 shlibpath_overrides_runpath=no
15385 need_lib_prefix=no
15386 runpath_var=LD_RUN_PATH
15387 ;;
15388 siemens)
15389 need_lib_prefix=no
15390 ;;
15391 motorola)
15392 need_lib_prefix=no
15393 need_version=no
15394 shlibpath_overrides_runpath=no
15395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15396 ;;
15397 esac
15398 ;;
15399
15400sysv4*MP*)
15401 if test -d /usr/nec ;then
15402 version_type=linux
15403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15404 soname_spec='$libname${shared_ext}.$major'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 fi
15407 ;;
15408
15409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15410 version_type=freebsd-elf
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 shlibpath_overrides_runpath=yes
15417 hardcode_into_libs=yes
15418 if test "$with_gnu_ld" = yes; then
15419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15420 else
15421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15422 case $host_os in
15423 sco3.2v5*)
15424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15425 ;;
15426 esac
15427 fi
15428 sys_lib_dlsearch_path_spec='/usr/lib'
15429 ;;
15430
15431tpf*)
15432 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15433 version_type=linux
15434 need_lib_prefix=no
15435 need_version=no
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=no
15439 hardcode_into_libs=yes
15440 ;;
15441
15442uts4*)
15443 version_type=linux
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 ;;
15448
15449*)
15450 dynamic_linker=no
15451 ;;
15452esac
15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15454$as_echo "$dynamic_linker" >&6; }
15455test "$dynamic_linker" = no && can_build_shared=no
15456
15457variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15458if test "$GCC" = yes; then
15459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15460fi
15461
15462if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15463 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15464fi
15465if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15466 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15467fi
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
15554
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15556$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15557hardcode_action=
15558if test -n "$hardcode_libdir_flag_spec" ||
15559 test -n "$runpath_var" ||
15560 test "X$hardcode_automatic" = "Xyes" ; then
15561
15562 # We can hardcode non-existent directories.
15563 if test "$hardcode_direct" != no &&
15564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15565 # have to relink, otherwise we might link with an installed library
15566 # when we should be linking with a yet-to-be-installed one
15567 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15568 test "$hardcode_minus_L" != no; then
15569 # Linking always hardcodes the temporary library directory.
15570 hardcode_action=relink
15571 else
15572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15573 hardcode_action=immediate
15574 fi
15575else
15576 # We cannot hardcode anything, or else we can only hardcode existing
15577 # directories.
15578 hardcode_action=unsupported
15579fi
15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15581$as_echo "$hardcode_action" >&6; }
15582
15583if test "$hardcode_action" = relink ||
15584 test "$inherit_rpath" = yes; then
15585 # Fast installation is not supported
15586 enable_fast_install=no
15587elif test "$shlibpath_overrides_runpath" = yes ||
15588 test "$enable_shared" = no; then
15589 # Fast installation is not necessary
15590 enable_fast_install=needless
15591fi
15592
15593
15594
15595
15596
15597
15598 if test "x$enable_dlopen" != xyes; then
15599 enable_dlopen=unknown
15600 enable_dlopen_self=unknown
15601 enable_dlopen_self_static=unknown
15602else
15603 lt_cv_dlopen=no
15604 lt_cv_dlopen_libs=
15605
15606 case $host_os in
15607 beos*)
15608 lt_cv_dlopen="load_add_on"
15609 lt_cv_dlopen_libs=
15610 lt_cv_dlopen_self=yes
15611 ;;
15612
15613 mingw* | pw32* | cegcc*)
15614 lt_cv_dlopen="LoadLibrary"
15615 lt_cv_dlopen_libs=
15616 ;;
15617
15618 cygwin*)
15619 lt_cv_dlopen="dlopen"
15620 lt_cv_dlopen_libs=
15621 ;;
15622
15623 darwin*)
15624 # if libdl is installed we need to link against it
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15626$as_echo_n "checking for dlopen in -ldl... " >&6; }
15627if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15628 $as_echo_n "(cached) " >&6
15629else
15630 ac_check_lib_save_LIBS=$LIBS
15631LIBS="-ldl $LIBS"
15632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633/* end confdefs.h. */
15634
15635/* Override any GCC internal prototype to avoid an error.
15636 Use char because int might match the return type of a GCC
15637 builtin and then its argument prototype would still apply. */
15638#ifdef __cplusplus
15639extern "C"
15640#endif
15641char dlopen ();
15642int
15643main ()
15644{
15645return dlopen ();
15646 ;
15647 return 0;
15648}
15649_ACEOF
15650if ac_fn_c_try_link "$LINENO"; then :
15651 ac_cv_lib_dl_dlopen=yes
15652else
15653 ac_cv_lib_dl_dlopen=no
15654fi
15655rm -f core conftest.err conftest.$ac_objext \
15656 conftest$ac_exeext conftest.$ac_ext
15657LIBS=$ac_check_lib_save_LIBS
15658fi
15659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15660$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15661if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15663else
15664
15665 lt_cv_dlopen="dyld"
15666 lt_cv_dlopen_libs=
15667 lt_cv_dlopen_self=yes
15668
15669fi
15670
15671 ;;
15672
15673 *)
15674 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15675if test "x$ac_cv_func_shl_load" = x""yes; then :
15676 lt_cv_dlopen="shl_load"
15677else
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15679$as_echo_n "checking for shl_load in -ldld... " >&6; }
15680if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15682else
15683 ac_check_lib_save_LIBS=$LIBS
15684LIBS="-ldld $LIBS"
15685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686/* end confdefs.h. */
15687
15688/* Override any GCC internal prototype to avoid an error.
15689 Use char because int might match the return type of a GCC
15690 builtin and then its argument prototype would still apply. */
15691#ifdef __cplusplus
15692extern "C"
15693#endif
15694char shl_load ();
15695int
15696main ()
15697{
15698return shl_load ();
15699 ;
15700 return 0;
15701}
15702_ACEOF
15703if ac_fn_c_try_link "$LINENO"; then :
15704 ac_cv_lib_dld_shl_load=yes
15705else
15706 ac_cv_lib_dld_shl_load=no
15707fi
15708rm -f core conftest.err conftest.$ac_objext \
15709 conftest$ac_exeext conftest.$ac_ext
15710LIBS=$ac_check_lib_save_LIBS
15711fi
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15713$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15714if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15715 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15716else
15717 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15718if test "x$ac_cv_func_dlopen" = x""yes; then :
15719 lt_cv_dlopen="dlopen"
15720else
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15722$as_echo_n "checking for dlopen in -ldl... " >&6; }
15723if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15724 $as_echo_n "(cached) " >&6
15725else
15726 ac_check_lib_save_LIBS=$LIBS
15727LIBS="-ldl $LIBS"
15728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729/* end confdefs.h. */
15730
15731/* Override any GCC internal prototype to avoid an error.
15732 Use char because int might match the return type of a GCC
15733 builtin and then its argument prototype would still apply. */
15734#ifdef __cplusplus
15735extern "C"
15736#endif
15737char dlopen ();
15738int
15739main ()
15740{
15741return dlopen ();
15742 ;
15743 return 0;
15744}
15745_ACEOF
15746if ac_fn_c_try_link "$LINENO"; then :
15747 ac_cv_lib_dl_dlopen=yes
15748else
15749 ac_cv_lib_dl_dlopen=no
15750fi
15751rm -f core conftest.err conftest.$ac_objext \
15752 conftest$ac_exeext conftest.$ac_ext
15753LIBS=$ac_check_lib_save_LIBS
15754fi
15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15757if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15759else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15761$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15762if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15763 $as_echo_n "(cached) " >&6
15764else
15765 ac_check_lib_save_LIBS=$LIBS
15766LIBS="-lsvld $LIBS"
15767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768/* end confdefs.h. */
15769
15770/* Override any GCC internal prototype to avoid an error.
15771 Use char because int might match the return type of a GCC
15772 builtin and then its argument prototype would still apply. */
15773#ifdef __cplusplus
15774extern "C"
15775#endif
15776char dlopen ();
15777int
15778main ()
15779{
15780return dlopen ();
15781 ;
15782 return 0;
15783}
15784_ACEOF
15785if ac_fn_c_try_link "$LINENO"; then :
15786 ac_cv_lib_svld_dlopen=yes
15787else
15788 ac_cv_lib_svld_dlopen=no
15789fi
15790rm -f core conftest.err conftest.$ac_objext \
15791 conftest$ac_exeext conftest.$ac_ext
15792LIBS=$ac_check_lib_save_LIBS
15793fi
15794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15795$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15796if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15798else
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15800$as_echo_n "checking for dld_link in -ldld... " >&6; }
15801if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
15803else
15804 ac_check_lib_save_LIBS=$LIBS
15805LIBS="-ldld $LIBS"
15806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h. */
15808
15809/* Override any GCC internal prototype to avoid an error.
15810 Use char because int might match the return type of a GCC
15811 builtin and then its argument prototype would still apply. */
15812#ifdef __cplusplus
15813extern "C"
15814#endif
15815char dld_link ();
15816int
15817main ()
15818{
15819return dld_link ();
15820 ;
15821 return 0;
15822}
15823_ACEOF
15824if ac_fn_c_try_link "$LINENO"; then :
15825 ac_cv_lib_dld_dld_link=yes
15826else
15827 ac_cv_lib_dld_dld_link=no
15828fi
15829rm -f core conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831LIBS=$ac_check_lib_save_LIBS
15832fi
15833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15834$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15835if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15837fi
15838
15839
15840fi
15841
15842
15843fi
15844
15845
15846fi
15847
15848
15849fi
15850
15851
15852fi
15853
15854 ;;
15855 esac
15856
15857 if test "x$lt_cv_dlopen" != xno; then
15858 enable_dlopen=yes
15859 else
15860 enable_dlopen=no
15861 fi
15862
15863 case $lt_cv_dlopen in
15864 dlopen)
15865 save_CPPFLAGS="$CPPFLAGS"
15866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15867
15868 save_LDFLAGS="$LDFLAGS"
15869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15870
15871 save_LIBS="$LIBS"
15872 LIBS="$lt_cv_dlopen_libs $LIBS"
15873
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15875$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15876if test "${lt_cv_dlopen_self+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15878else
15879 if test "$cross_compiling" = yes; then :
15880 lt_cv_dlopen_self=cross
15881else
15882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15883 lt_status=$lt_dlunknown
15884 cat > conftest.$ac_ext <<_LT_EOF
cristy98dddb52010-11-04 00:30:15 +000015885#line 15885 "configure"
cristy73bd4a52010-10-05 11:24:23 +000015886#include "confdefs.h"
15887
15888#if HAVE_DLFCN_H
15889#include <dlfcn.h>
15890#endif
15891
15892#include <stdio.h>
15893
15894#ifdef RTLD_GLOBAL
15895# define LT_DLGLOBAL RTLD_GLOBAL
15896#else
15897# ifdef DL_GLOBAL
15898# define LT_DLGLOBAL DL_GLOBAL
15899# else
15900# define LT_DLGLOBAL 0
15901# endif
15902#endif
15903
15904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15905 find out it does not work in some platform. */
15906#ifndef LT_DLLAZY_OR_NOW
15907# ifdef RTLD_LAZY
15908# define LT_DLLAZY_OR_NOW RTLD_LAZY
15909# else
15910# ifdef DL_LAZY
15911# define LT_DLLAZY_OR_NOW DL_LAZY
15912# else
15913# ifdef RTLD_NOW
15914# define LT_DLLAZY_OR_NOW RTLD_NOW
15915# else
15916# ifdef DL_NOW
15917# define LT_DLLAZY_OR_NOW DL_NOW
15918# else
15919# define LT_DLLAZY_OR_NOW 0
15920# endif
15921# endif
15922# endif
15923# endif
15924#endif
15925
15926void fnord() { int i=42;}
15927int main ()
15928{
15929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15930 int status = $lt_dlunknown;
15931
15932 if (self)
15933 {
15934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15936 /* dlclose (self); */
15937 }
15938 else
15939 puts (dlerror ());
15940
15941 return status;
15942}
15943_LT_EOF
15944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15945 (eval $ac_link) 2>&5
15946 ac_status=$?
15947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15948 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15949 (./conftest; exit; ) >&5 2>/dev/null
15950 lt_status=$?
15951 case x$lt_status in
15952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15955 esac
15956 else :
15957 # compilation failed
15958 lt_cv_dlopen_self=no
15959 fi
15960fi
15961rm -fr conftest*
15962
15963
15964fi
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15966$as_echo "$lt_cv_dlopen_self" >&6; }
15967
15968 if test "x$lt_cv_dlopen_self" = xyes; then
15969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15971$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15972if test "${lt_cv_dlopen_self_static+set}" = set; then :
15973 $as_echo_n "(cached) " >&6
15974else
15975 if test "$cross_compiling" = yes; then :
15976 lt_cv_dlopen_self_static=cross
15977else
15978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15979 lt_status=$lt_dlunknown
15980 cat > conftest.$ac_ext <<_LT_EOF
cristy98dddb52010-11-04 00:30:15 +000015981#line 15981 "configure"
cristy73bd4a52010-10-05 11:24:23 +000015982#include "confdefs.h"
15983
15984#if HAVE_DLFCN_H
15985#include <dlfcn.h>
15986#endif
15987
15988#include <stdio.h>
15989
15990#ifdef RTLD_GLOBAL
15991# define LT_DLGLOBAL RTLD_GLOBAL
15992#else
15993# ifdef DL_GLOBAL
15994# define LT_DLGLOBAL DL_GLOBAL
15995# else
15996# define LT_DLGLOBAL 0
15997# endif
15998#endif
15999
16000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16001 find out it does not work in some platform. */
16002#ifndef LT_DLLAZY_OR_NOW
16003# ifdef RTLD_LAZY
16004# define LT_DLLAZY_OR_NOW RTLD_LAZY
16005# else
16006# ifdef DL_LAZY
16007# define LT_DLLAZY_OR_NOW DL_LAZY
16008# else
16009# ifdef RTLD_NOW
16010# define LT_DLLAZY_OR_NOW RTLD_NOW
16011# else
16012# ifdef DL_NOW
16013# define LT_DLLAZY_OR_NOW DL_NOW
16014# else
16015# define LT_DLLAZY_OR_NOW 0
16016# endif
16017# endif
16018# endif
16019# endif
16020#endif
16021
16022void fnord() { int i=42;}
16023int main ()
16024{
16025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16026 int status = $lt_dlunknown;
16027
16028 if (self)
16029 {
16030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16032 /* dlclose (self); */
16033 }
16034 else
16035 puts (dlerror ());
16036
16037 return status;
16038}
16039_LT_EOF
16040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16041 (eval $ac_link) 2>&5
16042 ac_status=$?
16043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16045 (./conftest; exit; ) >&5 2>/dev/null
16046 lt_status=$?
16047 case x$lt_status in
16048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16051 esac
16052 else :
16053 # compilation failed
16054 lt_cv_dlopen_self_static=no
16055 fi
16056fi
16057rm -fr conftest*
16058
16059
16060fi
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16062$as_echo "$lt_cv_dlopen_self_static" >&6; }
16063 fi
16064
16065 CPPFLAGS="$save_CPPFLAGS"
16066 LDFLAGS="$save_LDFLAGS"
16067 LIBS="$save_LIBS"
16068 ;;
16069 esac
16070
16071 case $lt_cv_dlopen_self in
16072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16073 *) enable_dlopen_self=unknown ;;
16074 esac
16075
16076 case $lt_cv_dlopen_self_static in
16077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16078 *) enable_dlopen_self_static=unknown ;;
16079 esac
16080fi
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098striplib=
16099old_striplib=
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16101$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16102if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106$as_echo "yes" >&6; }
16107else
16108# FIXME - insert some real tests, host_os isn't really good enough
16109 case $host_os in
16110 darwin*)
16111 if test -n "$STRIP" ; then
16112 striplib="$STRIP -x"
16113 old_striplib="$STRIP -S"
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16115$as_echo "yes" >&6; }
16116 else
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118$as_echo "no" >&6; }
16119 fi
16120 ;;
16121 *)
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16123$as_echo "no" >&6; }
16124 ;;
16125 esac
16126fi
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139 # Report which library types will actually be built
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16141$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16143$as_echo "$can_build_shared" >&6; }
16144
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16146$as_echo_n "checking whether to build shared libraries... " >&6; }
16147 test "$can_build_shared" = "no" && enable_shared=no
16148
16149 # On AIX, shared libraries and static libraries use the same namespace, and
16150 # are all built from PIC.
16151 case $host_os in
16152 aix3*)
16153 test "$enable_shared" = yes && enable_static=no
16154 if test -n "$RANLIB"; then
16155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16156 postinstall_cmds='$RANLIB $lib'
16157 fi
16158 ;;
16159
16160 aix[4-9]*)
16161 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16162 test "$enable_shared" = yes && enable_static=no
16163 fi
16164 ;;
16165 esac
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16167$as_echo "$enable_shared" >&6; }
16168
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16170$as_echo_n "checking whether to build static libraries... " >&6; }
16171 # Make sure either enable_shared or enable_static is yes.
16172 test "$enable_shared" = yes || enable_static=yes
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16174$as_echo "$enable_static" >&6; }
16175
16176
16177
16178
16179fi
16180ac_ext=c
16181ac_cpp='$CPP $CPPFLAGS'
16182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16184ac_compiler_gnu=$ac_cv_c_compiler_gnu
16185
16186CC="$lt_save_CC"
16187
16188
16189ac_ext=cpp
16190ac_cpp='$CXXCPP $CPPFLAGS'
16191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16194
16195archive_cmds_need_lc_CXX=no
16196allow_undefined_flag_CXX=
16197always_export_symbols_CXX=no
16198archive_expsym_cmds_CXX=
16199compiler_needs_object_CXX=no
16200export_dynamic_flag_spec_CXX=
16201hardcode_direct_CXX=no
16202hardcode_direct_absolute_CXX=no
16203hardcode_libdir_flag_spec_CXX=
16204hardcode_libdir_flag_spec_ld_CXX=
16205hardcode_libdir_separator_CXX=
16206hardcode_minus_L_CXX=no
16207hardcode_shlibpath_var_CXX=unsupported
16208hardcode_automatic_CXX=no
16209inherit_rpath_CXX=no
16210module_cmds_CXX=
16211module_expsym_cmds_CXX=
16212link_all_deplibs_CXX=unknown
16213old_archive_cmds_CXX=$old_archive_cmds
16214no_undefined_flag_CXX=
16215whole_archive_flag_spec_CXX=
16216enable_shared_with_static_runtimes_CXX=no
16217
16218# Source file extension for C++ test sources.
16219ac_ext=cpp
16220
16221# Object file extension for compiled C++ test sources.
16222objext=o
16223objext_CXX=$objext
16224
16225# No sense in running all these tests if we already determined that
16226# the CXX compiler isn't working. Some variables (like enable_shared)
16227# are currently assumed to apply to all compilers on this platform,
16228# and will be corrupted by setting them based on a non-working compiler.
16229if test "$_lt_caught_CXX_error" != yes; then
16230 # Code to be used in simple compile tests
16231 lt_simple_compile_test_code="int some_variable = 0;"
16232
16233 # Code to be used in simple link tests
16234 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16235
16236 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16237
16238
16239
16240
16241
16242
16243# If no C compiler was specified, use CC.
16244LTCC=${LTCC-"$CC"}
16245
16246# If no C compiler flags were specified, use CFLAGS.
16247LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16248
16249# Allow CC to be a program name with arguments.
16250compiler=$CC
16251
16252
16253 # save warnings/boilerplate of simple test code
16254 ac_outfile=conftest.$ac_objext
16255echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16256eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16257_lt_compiler_boilerplate=`cat conftest.err`
16258$RM conftest*
16259
16260 ac_outfile=conftest.$ac_objext
16261echo "$lt_simple_link_test_code" >conftest.$ac_ext
16262eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16263_lt_linker_boilerplate=`cat conftest.err`
16264$RM -r conftest*
16265
16266
16267 # Allow CC to be a program name with arguments.
16268 lt_save_CC=$CC
16269 lt_save_LD=$LD
16270 lt_save_GCC=$GCC
16271 GCC=$GXX
16272 lt_save_with_gnu_ld=$with_gnu_ld
16273 lt_save_path_LD=$lt_cv_path_LD
16274 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16275 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16276 else
16277 $as_unset lt_cv_prog_gnu_ld
16278 fi
16279 if test -n "${lt_cv_path_LDCXX+set}"; then
16280 lt_cv_path_LD=$lt_cv_path_LDCXX
16281 else
16282 $as_unset lt_cv_path_LD
16283 fi
16284 test -z "${LDCXX+set}" || LD=$LDCXX
16285 CC=${CXX-"c++"}
16286 compiler=$CC
16287 compiler_CXX=$CC
16288 for cc_temp in $compiler""; do
16289 case $cc_temp in
16290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16292 \-*) ;;
16293 *) break;;
16294 esac
16295done
16296cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16297
16298
16299 if test -n "$compiler"; then
16300 # We don't want -fno-exception when compiling C++ code, so set the
16301 # no_builtin_flag separately
16302 if test "$GXX" = yes; then
16303 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16304 else
16305 lt_prog_compiler_no_builtin_flag_CXX=
16306 fi
16307
16308 if test "$GXX" = yes; then
16309 # Set up default GNU C++ configuration
16310
16311
16312
16313# Check whether --with-gnu-ld was given.
16314if test "${with_gnu_ld+set}" = set; then :
16315 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16316else
16317 with_gnu_ld=no
16318fi
16319
16320ac_prog=ld
16321if test "$GCC" = yes; then
16322 # Check if gcc -print-prog-name=ld gives a path.
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16324$as_echo_n "checking for ld used by $CC... " >&6; }
16325 case $host in
16326 *-*-mingw*)
16327 # gcc leaves a trailing carriage return which upsets mingw
16328 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16329 *)
16330 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16331 esac
16332 case $ac_prog in
16333 # Accept absolute paths.
16334 [\\/]* | ?:[\\/]*)
16335 re_direlt='/[^/][^/]*/\.\./'
16336 # Canonicalize the pathname of ld
16337 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16338 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16339 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16340 done
16341 test -z "$LD" && LD="$ac_prog"
16342 ;;
16343 "")
16344 # If it fails, then pretend we aren't using GCC.
16345 ac_prog=ld
16346 ;;
16347 *)
16348 # If it is relative, then search for the first ld in PATH.
16349 with_gnu_ld=unknown
16350 ;;
16351 esac
16352elif test "$with_gnu_ld" = yes; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16354$as_echo_n "checking for GNU ld... " >&6; }
16355else
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16357$as_echo_n "checking for non-GNU ld... " >&6; }
16358fi
16359if test "${lt_cv_path_LD+set}" = set; then :
16360 $as_echo_n "(cached) " >&6
16361else
16362 if test -z "$LD"; then
16363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16364 for ac_dir in $PATH; do
16365 IFS="$lt_save_ifs"
16366 test -z "$ac_dir" && ac_dir=.
16367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16368 lt_cv_path_LD="$ac_dir/$ac_prog"
16369 # Check to see if the program is GNU ld. I'd rather use --version,
16370 # but apparently some variants of GNU ld only accept -v.
16371 # Break only if it was the GNU/non-GNU ld that we prefer.
16372 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16373 *GNU* | *'with BFD'*)
16374 test "$with_gnu_ld" != no && break
16375 ;;
16376 *)
16377 test "$with_gnu_ld" != yes && break
16378 ;;
16379 esac
16380 fi
16381 done
16382 IFS="$lt_save_ifs"
16383else
16384 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16385fi
16386fi
16387
16388LD="$lt_cv_path_LD"
16389if test -n "$LD"; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16391$as_echo "$LD" >&6; }
16392else
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394$as_echo "no" >&6; }
16395fi
cristy98dddb52010-11-04 00:30:15 +000016396test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16398$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16399if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16400 $as_echo_n "(cached) " >&6
16401else
16402 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16403case `$LD -v 2>&1 </dev/null` in
16404*GNU* | *'with BFD'*)
16405 lt_cv_prog_gnu_ld=yes
16406 ;;
16407*)
16408 lt_cv_prog_gnu_ld=no
16409 ;;
16410esac
16411fi
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16413$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16414with_gnu_ld=$lt_cv_prog_gnu_ld
16415
16416
16417
16418
16419
16420
16421
16422 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16423 # archiving commands below assume that GNU ld is being used.
16424 if test "$with_gnu_ld" = yes; then
16425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16426 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'
16427
16428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16430
16431 # If archive_cmds runs LD, not CC, wlarc should be empty
16432 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16433 # investigate it a little bit more. (MM)
16434 wlarc='${wl}'
16435
16436 # ancient GNU ld didn't support --whole-archive et. al.
16437 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16438 $GREP 'no-whole-archive' > /dev/null; then
16439 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16440 else
16441 whole_archive_flag_spec_CXX=
16442 fi
16443 else
16444 with_gnu_ld=no
16445 wlarc=
16446
16447 # A generic and very simple default shared library creation
16448 # command for GNU C++ for the case where it uses the native
16449 # linker, instead of GNU ld. If possible, this setting should
16450 # overridden to take advantage of the native linker features on
16451 # the platform it is being used on.
16452 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16453 fi
16454
16455 # Commands to make compiler produce verbose output that lists
16456 # what "hidden" libraries, object files and flags are used when
16457 # linking a shared library.
16458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16459
16460 else
16461 GXX=no
16462 with_gnu_ld=no
16463 wlarc=
16464 fi
16465
16466 # PORTME: fill in a description of your system's C++ link characteristics
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16468$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16469 ld_shlibs_CXX=yes
16470 case $host_os in
16471 aix3*)
16472 # FIXME: insert proper C++ library support
16473 ld_shlibs_CXX=no
16474 ;;
16475 aix[4-9]*)
16476 if test "$host_cpu" = ia64; then
16477 # On IA64, the linker does run time linking by default, so we don't
16478 # have to do anything special.
16479 aix_use_runtimelinking=no
16480 exp_sym_flag='-Bexport'
16481 no_entry_flag=""
16482 else
16483 aix_use_runtimelinking=no
16484
16485 # Test if we are trying to use run time linking or normal
16486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16487 # need to do runtime linking.
16488 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16489 for ld_flag in $LDFLAGS; do
16490 case $ld_flag in
16491 *-brtl*)
16492 aix_use_runtimelinking=yes
16493 break
16494 ;;
16495 esac
16496 done
16497 ;;
16498 esac
16499
16500 exp_sym_flag='-bexport'
16501 no_entry_flag='-bnoentry'
16502 fi
16503
16504 # When large executables or shared objects are built, AIX ld can
16505 # have problems creating the table of contents. If linking a library
16506 # or program results in "error TOC overflow" add -mminimal-toc to
16507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16509
16510 archive_cmds_CXX=''
16511 hardcode_direct_CXX=yes
16512 hardcode_direct_absolute_CXX=yes
16513 hardcode_libdir_separator_CXX=':'
16514 link_all_deplibs_CXX=yes
16515 file_list_spec_CXX='${wl}-f,'
16516
16517 if test "$GXX" = yes; then
16518 case $host_os in aix4.[012]|aix4.[012].*)
16519 # We only want to do this on AIX 4.2 and lower, the check
16520 # below for broken collect2 doesn't work under 4.3+
16521 collect2name=`${CC} -print-prog-name=collect2`
16522 if test -f "$collect2name" &&
16523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16524 then
16525 # We have reworked collect2
16526 :
16527 else
16528 # We have old collect2
16529 hardcode_direct_CXX=unsupported
16530 # It fails to find uninstalled libraries when the uninstalled
16531 # path is not listed in the libpath. Setting hardcode_minus_L
16532 # to unsupported forces relinking
16533 hardcode_minus_L_CXX=yes
16534 hardcode_libdir_flag_spec_CXX='-L$libdir'
16535 hardcode_libdir_separator_CXX=
16536 fi
16537 esac
16538 shared_flag='-shared'
16539 if test "$aix_use_runtimelinking" = yes; then
16540 shared_flag="$shared_flag "'${wl}-G'
16541 fi
16542 else
16543 # not using gcc
16544 if test "$host_cpu" = ia64; then
16545 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16546 # chokes on -Wl,-G. The following line is correct:
16547 shared_flag='-G'
16548 else
16549 if test "$aix_use_runtimelinking" = yes; then
16550 shared_flag='${wl}-G'
16551 else
16552 shared_flag='${wl}-bM:SRE'
16553 fi
16554 fi
16555 fi
16556
16557 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16558 # It seems that -bexpall does not export symbols beginning with
16559 # underscore (_), so it is better to generate a list of symbols to
16560 # export.
16561 always_export_symbols_CXX=yes
16562 if test "$aix_use_runtimelinking" = yes; then
16563 # Warning - without using the other runtime loading flags (-brtl),
16564 # -berok will link without error, but may produce a broken library.
16565 allow_undefined_flag_CXX='-berok'
16566 # Determine the default libpath from the value encoded in an empty
16567 # executable.
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569/* end confdefs.h. */
16570
16571int
16572main ()
16573{
16574
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579if ac_fn_cxx_try_link "$LINENO"; then :
16580
16581lt_aix_libpath_sed='
16582 /Import File Strings/,/^$/ {
16583 /^0/ {
16584 s/^0 *\(.*\)$/\1/
16585 p
16586 }
16587 }'
16588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16589# Check for a 64-bit object if we didn't find anything.
16590if test -z "$aix_libpath"; then
16591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16592fi
16593fi
16594rm -f core conftest.err conftest.$ac_objext \
16595 conftest$ac_exeext conftest.$ac_ext
16596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16597
16598 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16599
16600 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"
16601 else
16602 if test "$host_cpu" = ia64; then
16603 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16604 allow_undefined_flag_CXX="-z nodefs"
16605 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"
16606 else
16607 # Determine the default libpath from the value encoded in an
16608 # empty executable.
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610/* end confdefs.h. */
16611
16612int
16613main ()
16614{
16615
16616 ;
16617 return 0;
16618}
16619_ACEOF
16620if ac_fn_cxx_try_link "$LINENO"; then :
16621
16622lt_aix_libpath_sed='
16623 /Import File Strings/,/^$/ {
16624 /^0/ {
16625 s/^0 *\(.*\)$/\1/
16626 p
16627 }
16628 }'
16629aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16630# Check for a 64-bit object if we didn't find anything.
16631if test -z "$aix_libpath"; then
16632 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16633fi
16634fi
16635rm -f core conftest.err conftest.$ac_objext \
16636 conftest$ac_exeext conftest.$ac_ext
16637if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16638
16639 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16640 # Warning - without using the other run time loading flags,
16641 # -berok will link without error, but may produce a broken library.
16642 no_undefined_flag_CXX=' ${wl}-bernotok'
16643 allow_undefined_flag_CXX=' ${wl}-berok'
16644 # Exported symbols can be pulled into shared objects from archives
16645 whole_archive_flag_spec_CXX='$convenience'
16646 archive_cmds_need_lc_CXX=yes
16647 # This is similar to how AIX traditionally builds its shared
16648 # libraries.
16649 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'
16650 fi
16651 fi
16652 ;;
16653
16654 beos*)
16655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16656 allow_undefined_flag_CXX=unsupported
16657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16658 # support --undefined. This deserves some investigation. FIXME
16659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16660 else
16661 ld_shlibs_CXX=no
16662 fi
16663 ;;
16664
16665 chorus*)
16666 case $cc_basename in
16667 *)
16668 # FIXME: insert proper C++ library support
16669 ld_shlibs_CXX=no
16670 ;;
16671 esac
16672 ;;
16673
16674 cygwin* | mingw* | pw32* | cegcc*)
16675 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16676 # as there is no search path for DLLs.
16677 hardcode_libdir_flag_spec_CXX='-L$libdir'
16678 allow_undefined_flag_CXX=unsupported
16679 always_export_symbols_CXX=no
16680 enable_shared_with_static_runtimes_CXX=yes
16681
16682 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16683 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'
16684 # If the export-symbols file already is a .def file (1st line
16685 # is EXPORTS), use it as is; otherwise, prepend...
16686 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16687 cp $export_symbols $output_objdir/$soname.def;
16688 else
16689 echo EXPORTS > $output_objdir/$soname.def;
16690 cat $export_symbols >> $output_objdir/$soname.def;
16691 fi~
16692 $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'
16693 else
16694 ld_shlibs_CXX=no
16695 fi
16696 ;;
16697 darwin* | rhapsody*)
16698
16699
16700 archive_cmds_need_lc_CXX=no
16701 hardcode_direct_CXX=no
16702 hardcode_automatic_CXX=yes
16703 hardcode_shlibpath_var_CXX=unsupported
16704 whole_archive_flag_spec_CXX=''
16705 link_all_deplibs_CXX=yes
16706 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16707 case $cc_basename in
16708 ifort*) _lt_dar_can_shared=yes ;;
16709 *) _lt_dar_can_shared=$GCC ;;
16710 esac
16711 if test "$_lt_dar_can_shared" = "yes"; then
16712 output_verbose_link_cmd=echo
16713 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}"
16714 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16715 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}"
16716 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}"
16717 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16718 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}"
16719 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}"
16720 fi
16721
16722 else
16723 ld_shlibs_CXX=no
16724 fi
16725
16726 ;;
16727
16728 dgux*)
16729 case $cc_basename in
16730 ec++*)
16731 # FIXME: insert proper C++ library support
16732 ld_shlibs_CXX=no
16733 ;;
16734 ghcx*)
16735 # Green Hills C++ Compiler
16736 # FIXME: insert proper C++ library support
16737 ld_shlibs_CXX=no
16738 ;;
16739 *)
16740 # FIXME: insert proper C++ library support
16741 ld_shlibs_CXX=no
16742 ;;
16743 esac
16744 ;;
16745
16746 freebsd[12]*)
16747 # C++ shared libraries reported to be fairly broken before
16748 # switch to ELF
16749 ld_shlibs_CXX=no
16750 ;;
16751
16752 freebsd-elf*)
16753 archive_cmds_need_lc_CXX=no
16754 ;;
16755
16756 freebsd* | dragonfly*)
16757 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16758 # conventions
16759 ld_shlibs_CXX=yes
16760 ;;
16761
16762 gnu*)
16763 ;;
16764
16765 hpux9*)
16766 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16767 hardcode_libdir_separator_CXX=:
16768 export_dynamic_flag_spec_CXX='${wl}-E'
16769 hardcode_direct_CXX=yes
16770 hardcode_minus_L_CXX=yes # Not in the search PATH,
16771 # but as the default
16772 # location of the library.
16773
16774 case $cc_basename in
16775 CC*)
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 ;;
16779 aCC*)
16780 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'
16781 # Commands to make compiler produce verbose output that lists
16782 # what "hidden" libraries, object files and flags are used when
16783 # linking a shared library.
16784 #
16785 # There doesn't appear to be a way to prevent this compiler from
16786 # explicitly linking system object files so we need to strip them
16787 # from the output so that they don't get included in the library
16788 # dependencies.
16789 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'
16790 ;;
16791 *)
16792 if test "$GXX" = yes; then
16793 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'
16794 else
16795 # FIXME: insert proper C++ library support
16796 ld_shlibs_CXX=no
16797 fi
16798 ;;
16799 esac
16800 ;;
16801
16802 hpux10*|hpux11*)
16803 if test $with_gnu_ld = no; then
16804 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16805 hardcode_libdir_separator_CXX=:
16806
16807 case $host_cpu in
16808 hppa*64*|ia64*)
16809 ;;
16810 *)
16811 export_dynamic_flag_spec_CXX='${wl}-E'
16812 ;;
16813 esac
16814 fi
16815 case $host_cpu in
16816 hppa*64*|ia64*)
16817 hardcode_direct_CXX=no
16818 hardcode_shlibpath_var_CXX=no
16819 ;;
16820 *)
16821 hardcode_direct_CXX=yes
16822 hardcode_direct_absolute_CXX=yes
16823 hardcode_minus_L_CXX=yes # Not in the search PATH,
16824 # but as the default
16825 # location of the library.
16826 ;;
16827 esac
16828
16829 case $cc_basename in
16830 CC*)
16831 # FIXME: insert proper C++ library support
16832 ld_shlibs_CXX=no
16833 ;;
16834 aCC*)
16835 case $host_cpu in
16836 hppa*64*)
16837 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16838 ;;
16839 ia64*)
16840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16841 ;;
16842 *)
16843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16844 ;;
16845 esac
16846 # Commands to make compiler produce verbose output that lists
16847 # what "hidden" libraries, object files and flags are used when
16848 # linking a shared library.
16849 #
16850 # There doesn't appear to be a way to prevent this compiler from
16851 # explicitly linking system object files so we need to strip them
16852 # from the output so that they don't get included in the library
16853 # dependencies.
16854 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'
16855 ;;
16856 *)
16857 if test "$GXX" = yes; then
16858 if test $with_gnu_ld = no; then
16859 case $host_cpu in
16860 hppa*64*)
16861 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16862 ;;
16863 ia64*)
16864 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16865 ;;
16866 *)
16867 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'
16868 ;;
16869 esac
16870 fi
16871 else
16872 # FIXME: insert proper C++ library support
16873 ld_shlibs_CXX=no
16874 fi
16875 ;;
16876 esac
16877 ;;
16878
16879 interix[3-9]*)
16880 hardcode_direct_CXX=no
16881 hardcode_shlibpath_var_CXX=no
16882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16883 export_dynamic_flag_spec_CXX='${wl}-E'
16884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16885 # Instead, shared libraries are loaded at an image base (0x10000000 by
16886 # default) and relocated if they conflict, which is a slow very memory
16887 # consuming and fragmenting process. To avoid this, we pick a random,
16888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16890 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'
16891 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'
16892 ;;
16893 irix5* | irix6*)
16894 case $cc_basename in
16895 CC*)
16896 # SGI C++
16897 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'
16898
16899 # Archives containing C++ object files must be created using
16900 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16901 # necessary to make sure instantiated templates are included
16902 # in the archive.
16903 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16904 ;;
16905 *)
16906 if test "$GXX" = yes; then
16907 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16909 else
16910 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'
16911 fi
16912 fi
16913 link_all_deplibs_CXX=yes
16914 ;;
16915 esac
16916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16917 hardcode_libdir_separator_CXX=:
16918 inherit_rpath_CXX=yes
16919 ;;
16920
16921 linux* | k*bsd*-gnu)
16922 case $cc_basename in
16923 KCC*)
16924 # Kuck and Associates, Inc. (KAI) C++ Compiler
16925
16926 # KCC will only create a shared library if the output file
16927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16928 # to its proper name (with version) after linking.
16929 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'
16930 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'
16931 # Commands to make compiler produce verbose output that lists
16932 # what "hidden" libraries, object files and flags are used when
16933 # linking a shared library.
16934 #
16935 # There doesn't appear to be a way to prevent this compiler from
16936 # explicitly linking system object files so we need to strip them
16937 # from the output so that they don't get included in the library
16938 # dependencies.
16939 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'
16940
16941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16943
16944 # Archives containing C++ object files must be created using
16945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16947 ;;
16948 icpc* | ecpc* )
16949 # Intel C++
16950 with_gnu_ld=yes
16951 # version 8.0 and above of icpc choke on multiply defined symbols
16952 # if we add $predep_objects and $postdep_objects, however 7.1 and
16953 # earlier do not add the objects themselves.
16954 case `$CC -V 2>&1` in
16955 *"Version 7."*)
16956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16957 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'
16958 ;;
16959 *) # Version 8.0 or newer
16960 tmp_idyn=
16961 case $host_cpu in
16962 ia64*) tmp_idyn=' -i_dynamic';;
16963 esac
16964 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16965 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'
16966 ;;
16967 esac
16968 archive_cmds_need_lc_CXX=no
16969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16971 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16972 ;;
16973 pgCC* | pgcpp*)
16974 # Portland Group C++ compiler
16975 case `$CC -V` in
16976 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16977 prelink_cmds_CXX='tpldir=Template.dir~
16978 rm -rf $tpldir~
16979 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16980 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16981 old_archive_cmds_CXX='tpldir=Template.dir~
16982 rm -rf $tpldir~
16983 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16984 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16985 $RANLIB $oldlib'
16986 archive_cmds_CXX='tpldir=Template.dir~
16987 rm -rf $tpldir~
16988 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16989 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16990 archive_expsym_cmds_CXX='tpldir=Template.dir~
16991 rm -rf $tpldir~
16992 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16993 $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'
16994 ;;
16995 *) # Version 6 will use weak symbols
16996 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16997 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'
16998 ;;
16999 esac
17000
17001 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17003 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'
17004 ;;
17005 cxx*)
17006 # Compaq C++
17007 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17008 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'
17009
17010 runpath_var=LD_RUN_PATH
17011 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17012 hardcode_libdir_separator_CXX=:
17013
17014 # Commands to make compiler produce verbose output that lists
17015 # what "hidden" libraries, object files and flags are used when
17016 # linking a shared library.
17017 #
17018 # There doesn't appear to be a way to prevent this compiler from
17019 # explicitly linking system object files so we need to strip them
17020 # from the output so that they don't get included in the library
17021 # dependencies.
17022 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'
17023 ;;
17024 xl*)
17025 # IBM XL 8.0 on PPC, with GNU ld
17026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17028 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17029 if test "x$supports_anon_versioning" = xyes; then
17030 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17032 echo "local: *; };" >> $output_objdir/$libname.ver~
17033 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17034 fi
17035 ;;
17036 *)
17037 case `$CC -V 2>&1 | sed 5q` in
17038 *Sun\ C*)
17039 # Sun C++ 5.9
17040 no_undefined_flag_CXX=' -zdefs'
17041 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17042 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'
17043 hardcode_libdir_flag_spec_CXX='-R$libdir'
17044 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'
17045 compiler_needs_object_CXX=yes
17046
17047 # Not sure whether something based on
17048 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17049 # would be better.
17050 output_verbose_link_cmd='echo'
17051
17052 # Archives containing C++ object files must be created using
17053 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17054 # necessary to make sure instantiated templates are included
17055 # in the archive.
17056 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17057 ;;
17058 esac
17059 ;;
17060 esac
17061 ;;
17062
17063 lynxos*)
17064 # FIXME: insert proper C++ library support
17065 ld_shlibs_CXX=no
17066 ;;
17067
17068 m88k*)
17069 # FIXME: insert proper C++ library support
17070 ld_shlibs_CXX=no
17071 ;;
17072
17073 mvs*)
17074 case $cc_basename in
17075 cxx*)
17076 # FIXME: insert proper C++ library support
17077 ld_shlibs_CXX=no
17078 ;;
17079 *)
17080 # FIXME: insert proper C++ library support
17081 ld_shlibs_CXX=no
17082 ;;
17083 esac
17084 ;;
17085
17086 netbsd*)
17087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17088 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17089 wlarc=
17090 hardcode_libdir_flag_spec_CXX='-R$libdir'
17091 hardcode_direct_CXX=yes
17092 hardcode_shlibpath_var_CXX=no
17093 fi
17094 # Workaround some broken pre-1.5 toolchains
17095 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17096 ;;
17097
17098 *nto* | *qnx*)
17099 ld_shlibs_CXX=yes
17100 ;;
17101
17102 openbsd2*)
17103 # C++ shared libraries are fairly broken
17104 ld_shlibs_CXX=no
17105 ;;
17106
17107 openbsd*)
17108 if test -f /usr/libexec/ld.so; then
17109 hardcode_direct_CXX=yes
17110 hardcode_shlibpath_var_CXX=no
17111 hardcode_direct_absolute_CXX=yes
17112 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17114 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17115 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17116 export_dynamic_flag_spec_CXX='${wl}-E'
17117 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17118 fi
17119 output_verbose_link_cmd=echo
17120 else
17121 ld_shlibs_CXX=no
17122 fi
17123 ;;
17124
17125 osf3* | osf4* | osf5*)
17126 case $cc_basename in
17127 KCC*)
17128 # Kuck and Associates, Inc. (KAI) C++ Compiler
17129
17130 # KCC will only create a shared library if the output file
17131 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17132 # to its proper name (with version) after linking.
17133 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'
17134
17135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17136 hardcode_libdir_separator_CXX=:
17137
17138 # Archives containing C++ object files must be created using
17139 # the KAI C++ compiler.
17140 case $host in
17141 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17142 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17143 esac
17144 ;;
17145 RCC*)
17146 # Rational C++ 2.4.1
17147 # FIXME: insert proper C++ library support
17148 ld_shlibs_CXX=no
17149 ;;
17150 cxx*)
17151 case $host in
17152 osf3*)
17153 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17154 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'
17155 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17156 ;;
17157 *)
17158 allow_undefined_flag_CXX=' -expect_unresolved \*'
17159 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'
17160 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17161 echo "-hidden">> $lib.exp~
17162 $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~
17163 $RM $lib.exp'
17164 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17165 ;;
17166 esac
17167
17168 hardcode_libdir_separator_CXX=:
17169
17170 # Commands to make compiler produce verbose output that lists
17171 # what "hidden" libraries, object files and flags are used when
17172 # linking a shared library.
17173 #
17174 # There doesn't appear to be a way to prevent this compiler from
17175 # explicitly linking system object files so we need to strip them
17176 # from the output so that they don't get included in the library
17177 # dependencies.
17178 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'
17179 ;;
17180 *)
17181 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17183 case $host in
17184 osf3*)
17185 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'
17186 ;;
17187 *)
17188 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'
17189 ;;
17190 esac
17191
17192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17193 hardcode_libdir_separator_CXX=:
17194
17195 # Commands to make compiler produce verbose output that lists
17196 # what "hidden" libraries, object files and flags are used when
17197 # linking a shared library.
17198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17199
17200 else
17201 # FIXME: insert proper C++ library support
17202 ld_shlibs_CXX=no
17203 fi
17204 ;;
17205 esac
17206 ;;
17207
17208 psos*)
17209 # FIXME: insert proper C++ library support
17210 ld_shlibs_CXX=no
17211 ;;
17212
17213 sunos4*)
17214 case $cc_basename in
17215 CC*)
17216 # Sun C++ 4.x
17217 # FIXME: insert proper C++ library support
17218 ld_shlibs_CXX=no
17219 ;;
17220 lcc*)
17221 # Lucid
17222 # FIXME: insert proper C++ library support
17223 ld_shlibs_CXX=no
17224 ;;
17225 *)
17226 # FIXME: insert proper C++ library support
17227 ld_shlibs_CXX=no
17228 ;;
17229 esac
17230 ;;
17231
17232 solaris*)
17233 case $cc_basename in
17234 CC*)
17235 # Sun C++ 4.2, 5.x and Centerline C++
17236 archive_cmds_need_lc_CXX=yes
17237 no_undefined_flag_CXX=' -zdefs'
17238 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17239 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17240 $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'
17241
17242 hardcode_libdir_flag_spec_CXX='-R$libdir'
17243 hardcode_shlibpath_var_CXX=no
17244 case $host_os in
17245 solaris2.[0-5] | solaris2.[0-5].*) ;;
17246 *)
17247 # The compiler driver will combine and reorder linker options,
17248 # but understands `-z linker_flag'.
17249 # Supported since Solaris 2.6 (maybe 2.5.1?)
17250 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17251 ;;
17252 esac
17253 link_all_deplibs_CXX=yes
17254
17255 output_verbose_link_cmd='echo'
17256
17257 # Archives containing C++ object files must be created using
17258 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17259 # necessary to make sure instantiated templates are included
17260 # in the archive.
17261 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17262 ;;
17263 gcx*)
17264 # Green Hills C++ Compiler
17265 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17266
17267 # The C++ compiler must be used to create the archive.
17268 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17269 ;;
17270 *)
17271 # GNU C++ compiler with Solaris linker
17272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17273 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17274 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17275 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17276 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17277 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17278
17279 # Commands to make compiler produce verbose output that lists
17280 # what "hidden" libraries, object files and flags are used when
17281 # linking a shared library.
17282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17283 else
17284 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17285 # platform.
17286 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17287 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17288 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17289
17290 # Commands to make compiler produce verbose output that lists
17291 # what "hidden" libraries, object files and flags are used when
17292 # linking a shared library.
17293 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17294 fi
17295
17296 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17297 case $host_os in
17298 solaris2.[0-5] | solaris2.[0-5].*) ;;
17299 *)
17300 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17301 ;;
17302 esac
17303 fi
17304 ;;
17305 esac
17306 ;;
17307
17308 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17309 no_undefined_flag_CXX='${wl}-z,text'
17310 archive_cmds_need_lc_CXX=no
17311 hardcode_shlibpath_var_CXX=no
17312 runpath_var='LD_RUN_PATH'
17313
17314 case $cc_basename in
17315 CC*)
17316 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 ;;
17319 *)
17320 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17322 ;;
17323 esac
17324 ;;
17325
17326 sysv5* | sco3.2v5* | sco5v6*)
17327 # Note: We can NOT use -z defs as we might desire, because we do not
17328 # link with -lc, and that would cause any symbols used from libc to
17329 # always be unresolved, which means just about no library would
17330 # ever link correctly. If we're not using GNU ld we use -z text
17331 # though, which does catch some bad symbols but isn't as heavy-handed
17332 # as -z defs.
17333 no_undefined_flag_CXX='${wl}-z,text'
17334 allow_undefined_flag_CXX='${wl}-z,nodefs'
17335 archive_cmds_need_lc_CXX=no
17336 hardcode_shlibpath_var_CXX=no
17337 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17338 hardcode_libdir_separator_CXX=':'
17339 link_all_deplibs_CXX=yes
17340 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17341 runpath_var='LD_RUN_PATH'
17342
17343 case $cc_basename in
17344 CC*)
17345 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17347 ;;
17348 *)
17349 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17350 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17351 ;;
17352 esac
17353 ;;
17354
17355 tandem*)
17356 case $cc_basename in
17357 NCC*)
17358 # NonStop-UX NCC 3.20
17359 # FIXME: insert proper C++ library support
17360 ld_shlibs_CXX=no
17361 ;;
17362 *)
17363 # FIXME: insert proper C++ library support
17364 ld_shlibs_CXX=no
17365 ;;
17366 esac
17367 ;;
17368
17369 vxworks*)
17370 # FIXME: insert proper C++ library support
17371 ld_shlibs_CXX=no
17372 ;;
17373
17374 *)
17375 # FIXME: insert proper C++ library support
17376 ld_shlibs_CXX=no
17377 ;;
17378 esac
17379
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17381$as_echo "$ld_shlibs_CXX" >&6; }
17382 test "$ld_shlibs_CXX" = no && can_build_shared=no
17383
17384 GCC_CXX="$GXX"
17385 LD_CXX="$LD"
17386
17387 ## CAVEAT EMPTOR:
17388 ## There is no encapsulation within the following macros, do not change
17389 ## the running order or otherwise move them around unless you know exactly
17390 ## what you are doing...
17391 # Dependencies to place before and after the object being linked:
17392predep_objects_CXX=
17393postdep_objects_CXX=
17394predeps_CXX=
17395postdeps_CXX=
17396compiler_lib_search_path_CXX=
17397
17398cat > conftest.$ac_ext <<_LT_EOF
17399class Foo
17400{
17401public:
17402 Foo (void) { a = 0; }
17403private:
17404 int a;
17405};
17406_LT_EOF
17407
17408if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17409 (eval $ac_compile) 2>&5
17410 ac_status=$?
17411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17412 test $ac_status = 0; }; then
17413 # Parse the compiler output and extract the necessary
17414 # objects, libraries and library flags.
17415
17416 # Sentinel used to keep track of whether or not we are before
17417 # the conftest object file.
17418 pre_test_object_deps_done=no
17419
17420 for p in `eval "$output_verbose_link_cmd"`; do
17421 case $p in
17422
17423 -L* | -R* | -l*)
17424 # Some compilers place space between "-{L,R}" and the path.
17425 # Remove the space.
17426 if test $p = "-L" ||
17427 test $p = "-R"; then
17428 prev=$p
17429 continue
17430 else
17431 prev=
17432 fi
17433
17434 if test "$pre_test_object_deps_done" = no; then
17435 case $p in
17436 -L* | -R*)
17437 # Internal compiler library paths should come after those
17438 # provided the user. The postdeps already come after the
17439 # user supplied libs so there is no need to process them.
17440 if test -z "$compiler_lib_search_path_CXX"; then
17441 compiler_lib_search_path_CXX="${prev}${p}"
17442 else
17443 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17444 fi
17445 ;;
17446 # The "-l" case would never come before the object being
17447 # linked, so don't bother handling this case.
17448 esac
17449 else
17450 if test -z "$postdeps_CXX"; then
17451 postdeps_CXX="${prev}${p}"
17452 else
17453 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17454 fi
17455 fi
17456 ;;
17457
17458 *.$objext)
17459 # This assumes that the test object file only shows up
17460 # once in the compiler output.
17461 if test "$p" = "conftest.$objext"; then
17462 pre_test_object_deps_done=yes
17463 continue
17464 fi
17465
17466 if test "$pre_test_object_deps_done" = no; then
17467 if test -z "$predep_objects_CXX"; then
17468 predep_objects_CXX="$p"
17469 else
17470 predep_objects_CXX="$predep_objects_CXX $p"
17471 fi
17472 else
17473 if test -z "$postdep_objects_CXX"; then
17474 postdep_objects_CXX="$p"
17475 else
17476 postdep_objects_CXX="$postdep_objects_CXX $p"
17477 fi
17478 fi
17479 ;;
17480
17481 *) ;; # Ignore the rest.
17482
17483 esac
17484 done
17485
17486 # Clean up.
17487 rm -f a.out a.exe
17488else
17489 echo "libtool.m4: error: problem compiling CXX test program"
17490fi
17491
17492$RM -f confest.$objext
17493
17494# PORTME: override above test on systems where it is broken
17495case $host_os in
17496interix[3-9]*)
17497 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17498 # hack all around it, let's just trust "g++" to DTRT.
17499 predep_objects_CXX=
17500 postdep_objects_CXX=
17501 postdeps_CXX=
17502 ;;
17503
17504linux*)
17505 case `$CC -V 2>&1 | sed 5q` in
17506 *Sun\ C*)
17507 # Sun C++ 5.9
17508
17509 # The more standards-conforming stlport4 library is
17510 # incompatible with the Cstd library. Avoid specifying
17511 # it if it's in CXXFLAGS. Ignore libCrun as
17512 # -library=stlport4 depends on it.
17513 case " $CXX $CXXFLAGS " in
17514 *" -library=stlport4 "*)
17515 solaris_use_stlport4=yes
17516 ;;
17517 esac
17518
17519 if test "$solaris_use_stlport4" != yes; then
17520 postdeps_CXX='-library=Cstd -library=Crun'
17521 fi
17522 ;;
17523 esac
17524 ;;
17525
17526solaris*)
17527 case $cc_basename in
17528 CC*)
17529 # The more standards-conforming stlport4 library is
17530 # incompatible with the Cstd library. Avoid specifying
17531 # it if it's in CXXFLAGS. Ignore libCrun as
17532 # -library=stlport4 depends on it.
17533 case " $CXX $CXXFLAGS " in
17534 *" -library=stlport4 "*)
17535 solaris_use_stlport4=yes
17536 ;;
17537 esac
17538
17539 # Adding this requires a known-good setup of shared libraries for
17540 # Sun compiler versions before 5.6, else PIC objects from an old
17541 # archive will be linked into the output, leading to subtle bugs.
17542 if test "$solaris_use_stlport4" != yes; then
17543 postdeps_CXX='-library=Cstd -library=Crun'
17544 fi
17545 ;;
17546 esac
17547 ;;
17548esac
17549
17550
17551case " $postdeps_CXX " in
17552*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17553esac
17554 compiler_lib_search_dirs_CXX=
17555if test -n "${compiler_lib_search_path_CXX}"; then
17556 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17557fi
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
17588
17589 lt_prog_compiler_wl_CXX=
17590lt_prog_compiler_pic_CXX=
17591lt_prog_compiler_static_CXX=
17592
17593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17594$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17595
17596 # C++ specific cases for pic, static, wl, etc.
17597 if test "$GXX" = yes; then
17598 lt_prog_compiler_wl_CXX='-Wl,'
17599 lt_prog_compiler_static_CXX='-static'
17600
17601 case $host_os in
17602 aix*)
17603 # All AIX code is PIC.
17604 if test "$host_cpu" = ia64; then
17605 # AIX 5 now supports IA64 processor
17606 lt_prog_compiler_static_CXX='-Bstatic'
17607 fi
17608 ;;
17609
17610 amigaos*)
17611 case $host_cpu in
17612 powerpc)
17613 # see comment about AmigaOS4 .so support
17614 lt_prog_compiler_pic_CXX='-fPIC'
17615 ;;
17616 m68k)
17617 # FIXME: we need at least 68020 code to build shared libraries, but
17618 # adding the `-m68020' flag to GCC prevents building anything better,
17619 # like `-m68040'.
17620 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17621 ;;
17622 esac
17623 ;;
17624
17625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17626 # PIC is the default for these OSes.
17627 ;;
17628 mingw* | cygwin* | os2* | pw32* | cegcc*)
17629 # This hack is so that the source file can tell whether it is being
17630 # built for inclusion in a dll (and should export symbols for example).
17631 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17632 # (--disable-auto-import) libraries
17633 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17634 ;;
17635 darwin* | rhapsody*)
17636 # PIC is the default on this platform
17637 # Common symbols not allowed in MH_DYLIB files
17638 lt_prog_compiler_pic_CXX='-fno-common'
17639 ;;
17640 *djgpp*)
17641 # DJGPP does not support shared libraries at all
17642 lt_prog_compiler_pic_CXX=
17643 ;;
17644 interix[3-9]*)
17645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17646 # Instead, we relocate shared libraries at runtime.
17647 ;;
17648 sysv4*MP*)
17649 if test -d /usr/nec; then
17650 lt_prog_compiler_pic_CXX=-Kconform_pic
17651 fi
17652 ;;
17653 hpux*)
17654 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17655 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17656 # sets the default TLS model and affects inlining.
17657 case $host_cpu in
17658 hppa*64*)
17659 ;;
17660 *)
17661 lt_prog_compiler_pic_CXX='-fPIC'
17662 ;;
17663 esac
17664 ;;
17665 *qnx* | *nto*)
17666 # QNX uses GNU C++, but need to define -shared option too, otherwise
17667 # it will coredump.
17668 lt_prog_compiler_pic_CXX='-fPIC -shared'
17669 ;;
17670 *)
17671 lt_prog_compiler_pic_CXX='-fPIC'
17672 ;;
17673 esac
17674 else
17675 case $host_os in
17676 aix[4-9]*)
17677 # All AIX code is PIC.
17678 if test "$host_cpu" = ia64; then
17679 # AIX 5 now supports IA64 processor
17680 lt_prog_compiler_static_CXX='-Bstatic'
17681 else
17682 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17683 fi
17684 ;;
17685 chorus*)
17686 case $cc_basename in
17687 cxch68*)
17688 # Green Hills C++ Compiler
17689 # _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"
17690 ;;
17691 esac
17692 ;;
17693 dgux*)
17694 case $cc_basename in
17695 ec++*)
17696 lt_prog_compiler_pic_CXX='-KPIC'
17697 ;;
17698 ghcx*)
17699 # Green Hills C++ Compiler
17700 lt_prog_compiler_pic_CXX='-pic'
17701 ;;
17702 *)
17703 ;;
17704 esac
17705 ;;
17706 freebsd* | dragonfly*)
17707 # FreeBSD uses GNU C++
17708 ;;
17709 hpux9* | hpux10* | hpux11*)
17710 case $cc_basename in
17711 CC*)
17712 lt_prog_compiler_wl_CXX='-Wl,'
17713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17714 if test "$host_cpu" != ia64; then
17715 lt_prog_compiler_pic_CXX='+Z'
17716 fi
17717 ;;
17718 aCC*)
17719 lt_prog_compiler_wl_CXX='-Wl,'
17720 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17721 case $host_cpu in
17722 hppa*64*|ia64*)
17723 # +Z the default
17724 ;;
17725 *)
17726 lt_prog_compiler_pic_CXX='+Z'
17727 ;;
17728 esac
17729 ;;
17730 *)
17731 ;;
17732 esac
17733 ;;
17734 interix*)
17735 # This is c89, which is MS Visual C++ (no shared libs)
17736 # Anyone wants to do a port?
17737 ;;
17738 irix5* | irix6* | nonstopux*)
17739 case $cc_basename in
17740 CC*)
17741 lt_prog_compiler_wl_CXX='-Wl,'
17742 lt_prog_compiler_static_CXX='-non_shared'
17743 # CC pic flag -KPIC is the default.
17744 ;;
17745 *)
17746 ;;
17747 esac
17748 ;;
17749 linux* | k*bsd*-gnu)
17750 case $cc_basename in
17751 KCC*)
17752 # KAI C++ Compiler
17753 lt_prog_compiler_wl_CXX='--backend -Wl,'
17754 lt_prog_compiler_pic_CXX='-fPIC'
17755 ;;
17756 ecpc* )
17757 # old Intel C++ for x86_64 which still supported -KPIC.
17758 lt_prog_compiler_wl_CXX='-Wl,'
17759 lt_prog_compiler_pic_CXX='-KPIC'
17760 lt_prog_compiler_static_CXX='-static'
17761 ;;
17762 icpc* )
17763 # Intel C++, used to be incompatible with GCC.
17764 # ICC 10 doesn't accept -KPIC any more.
17765 lt_prog_compiler_wl_CXX='-Wl,'
17766 lt_prog_compiler_pic_CXX='-fPIC'
17767 lt_prog_compiler_static_CXX='-static'
17768 ;;
17769 pgCC* | pgcpp*)
17770 # Portland Group C++ compiler
17771 lt_prog_compiler_wl_CXX='-Wl,'
17772 lt_prog_compiler_pic_CXX='-fpic'
17773 lt_prog_compiler_static_CXX='-Bstatic'
17774 ;;
17775 cxx*)
17776 # Compaq C++
17777 # Make sure the PIC flag is empty. It appears that all Alpha
17778 # Linux and Compaq Tru64 Unix objects are PIC.
17779 lt_prog_compiler_pic_CXX=
17780 lt_prog_compiler_static_CXX='-non_shared'
17781 ;;
17782 xlc* | xlC*)
17783 # IBM XL 8.0 on PPC
17784 lt_prog_compiler_wl_CXX='-Wl,'
17785 lt_prog_compiler_pic_CXX='-qpic'
17786 lt_prog_compiler_static_CXX='-qstaticlink'
17787 ;;
17788 *)
17789 case `$CC -V 2>&1 | sed 5q` in
17790 *Sun\ C*)
17791 # Sun C++ 5.9
17792 lt_prog_compiler_pic_CXX='-KPIC'
17793 lt_prog_compiler_static_CXX='-Bstatic'
17794 lt_prog_compiler_wl_CXX='-Qoption ld '
17795 ;;
17796 esac
17797 ;;
17798 esac
17799 ;;
17800 lynxos*)
17801 ;;
17802 m88k*)
17803 ;;
17804 mvs*)
17805 case $cc_basename in
17806 cxx*)
17807 lt_prog_compiler_pic_CXX='-W c,exportall'
17808 ;;
17809 *)
17810 ;;
17811 esac
17812 ;;
17813 netbsd*)
17814 ;;
17815 *qnx* | *nto*)
17816 # QNX uses GNU C++, but need to define -shared option too, otherwise
17817 # it will coredump.
17818 lt_prog_compiler_pic_CXX='-fPIC -shared'
17819 ;;
17820 osf3* | osf4* | osf5*)
17821 case $cc_basename in
17822 KCC*)
17823 lt_prog_compiler_wl_CXX='--backend -Wl,'
17824 ;;
17825 RCC*)
17826 # Rational C++ 2.4.1
17827 lt_prog_compiler_pic_CXX='-pic'
17828 ;;
17829 cxx*)
17830 # Digital/Compaq C++
17831 lt_prog_compiler_wl_CXX='-Wl,'
17832 # Make sure the PIC flag is empty. It appears that all Alpha
17833 # Linux and Compaq Tru64 Unix objects are PIC.
17834 lt_prog_compiler_pic_CXX=
17835 lt_prog_compiler_static_CXX='-non_shared'
17836 ;;
17837 *)
17838 ;;
17839 esac
17840 ;;
17841 psos*)
17842 ;;
17843 solaris*)
17844 case $cc_basename in
17845 CC*)
17846 # Sun C++ 4.2, 5.x and Centerline C++
17847 lt_prog_compiler_pic_CXX='-KPIC'
17848 lt_prog_compiler_static_CXX='-Bstatic'
17849 lt_prog_compiler_wl_CXX='-Qoption ld '
17850 ;;
17851 gcx*)
17852 # Green Hills C++ Compiler
17853 lt_prog_compiler_pic_CXX='-PIC'
17854 ;;
17855 *)
17856 ;;
17857 esac
17858 ;;
17859 sunos4*)
17860 case $cc_basename in
17861 CC*)
17862 # Sun C++ 4.x
17863 lt_prog_compiler_pic_CXX='-pic'
17864 lt_prog_compiler_static_CXX='-Bstatic'
17865 ;;
17866 lcc*)
17867 # Lucid
17868 lt_prog_compiler_pic_CXX='-pic'
17869 ;;
17870 *)
17871 ;;
17872 esac
17873 ;;
17874 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17875 case $cc_basename in
17876 CC*)
17877 lt_prog_compiler_wl_CXX='-Wl,'
17878 lt_prog_compiler_pic_CXX='-KPIC'
17879 lt_prog_compiler_static_CXX='-Bstatic'
17880 ;;
17881 esac
17882 ;;
17883 tandem*)
17884 case $cc_basename in
17885 NCC*)
17886 # NonStop-UX NCC 3.20
17887 lt_prog_compiler_pic_CXX='-KPIC'
17888 ;;
17889 *)
17890 ;;
17891 esac
17892 ;;
17893 vxworks*)
17894 ;;
17895 *)
17896 lt_prog_compiler_can_build_shared_CXX=no
17897 ;;
17898 esac
17899 fi
17900
17901case $host_os in
17902 # For platforms which do not support PIC, -DPIC is meaningless:
17903 *djgpp*)
17904 lt_prog_compiler_pic_CXX=
17905 ;;
17906 *)
17907 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17908 ;;
17909esac
17910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17911$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17912
17913
17914
17915#
17916# Check to make sure the PIC flag actually works.
17917#
17918if test -n "$lt_prog_compiler_pic_CXX"; then
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17920$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17921if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17922 $as_echo_n "(cached) " >&6
17923else
17924 lt_cv_prog_compiler_pic_works_CXX=no
17925 ac_outfile=conftest.$ac_objext
17926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17927 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17928 # Insert the option either (1) after the last *FLAGS variable, or
17929 # (2) before a word containing "conftest.", or (3) at the end.
17930 # Note that $ac_compile itself does not contain backslashes and begins
17931 # with a dollar sign (not a hyphen), so the echo should work correctly.
17932 # The option is referenced via a variable to avoid confusing sed.
17933 lt_compile=`echo "$ac_compile" | $SED \
17934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17936 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000017937 (eval echo "\"\$as_me:17937: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017938 (eval "$lt_compile" 2>conftest.err)
17939 ac_status=$?
17940 cat conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000017941 echo "$as_me:17941: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017942 if (exit $ac_status) && test -s "$ac_outfile"; then
17943 # The compiler can only warn and ignore the option if not recognized
17944 # So say no if there are warnings other than the usual output.
17945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17948 lt_cv_prog_compiler_pic_works_CXX=yes
17949 fi
17950 fi
17951 $RM conftest*
17952
17953fi
17954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17955$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17956
17957if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17958 case $lt_prog_compiler_pic_CXX in
17959 "" | " "*) ;;
17960 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17961 esac
17962else
17963 lt_prog_compiler_pic_CXX=
17964 lt_prog_compiler_can_build_shared_CXX=no
17965fi
17966
17967fi
17968
17969
17970
17971#
17972# Check to make sure the static flag actually works.
17973#
17974wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17976$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17977if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17978 $as_echo_n "(cached) " >&6
17979else
17980 lt_cv_prog_compiler_static_works_CXX=no
17981 save_LDFLAGS="$LDFLAGS"
17982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17983 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17985 # The linker can only warn and ignore the option if not recognized
17986 # So say no if there are warnings
17987 if test -s conftest.err; then
17988 # Append any errors to the config.log.
17989 cat conftest.err 1>&5
17990 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17992 if diff conftest.exp conftest.er2 >/dev/null; then
17993 lt_cv_prog_compiler_static_works_CXX=yes
17994 fi
17995 else
17996 lt_cv_prog_compiler_static_works_CXX=yes
17997 fi
17998 fi
17999 $RM -r conftest*
18000 LDFLAGS="$save_LDFLAGS"
18001
18002fi
18003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18004$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18005
18006if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18007 :
18008else
18009 lt_prog_compiler_static_CXX=
18010fi
18011
18012
18013
18014
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18016$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18017if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18018 $as_echo_n "(cached) " >&6
18019else
18020 lt_cv_prog_compiler_c_o_CXX=no
18021 $RM -r conftest 2>/dev/null
18022 mkdir conftest
18023 cd conftest
18024 mkdir out
18025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18026
18027 lt_compiler_flag="-o out/conftest2.$ac_objext"
18028 # Insert the option either (1) after the last *FLAGS variable, or
18029 # (2) before a word containing "conftest.", or (3) at the end.
18030 # Note that $ac_compile itself does not contain backslashes and begins
18031 # with a dollar sign (not a hyphen), so the echo should work correctly.
18032 lt_compile=`echo "$ac_compile" | $SED \
18033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18035 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000018036 (eval echo "\"\$as_me:18036: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018037 (eval "$lt_compile" 2>out/conftest.err)
18038 ac_status=$?
18039 cat out/conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000018040 echo "$as_me:18040: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18042 then
18043 # The compiler can only warn and ignore the option if not recognized
18044 # So say no if there are warnings
18045 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18048 lt_cv_prog_compiler_c_o_CXX=yes
18049 fi
18050 fi
18051 chmod u+w . 2>&5
18052 $RM conftest*
18053 # SGI C++ compiler will create directory out/ii_files/ for
18054 # template instantiation
18055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18056 $RM out/* && rmdir out
18057 cd ..
18058 $RM -r conftest
18059 $RM conftest*
18060
18061fi
18062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18063$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18064
18065
18066
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18068$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18069if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18071else
18072 lt_cv_prog_compiler_c_o_CXX=no
18073 $RM -r conftest 2>/dev/null
18074 mkdir conftest
18075 cd conftest
18076 mkdir out
18077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18078
18079 lt_compiler_flag="-o out/conftest2.$ac_objext"
18080 # Insert the option either (1) after the last *FLAGS variable, or
18081 # (2) before a word containing "conftest.", or (3) at the end.
18082 # Note that $ac_compile itself does not contain backslashes and begins
18083 # with a dollar sign (not a hyphen), so the echo should work correctly.
18084 lt_compile=`echo "$ac_compile" | $SED \
18085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18087 -e 's:$: $lt_compiler_flag:'`
cristy98dddb52010-11-04 00:30:15 +000018088 (eval echo "\"\$as_me:18088: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018089 (eval "$lt_compile" 2>out/conftest.err)
18090 ac_status=$?
18091 cat out/conftest.err >&5
cristy98dddb52010-11-04 00:30:15 +000018092 echo "$as_me:18092: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18094 then
18095 # The compiler can only warn and ignore the option if not recognized
18096 # So say no if there are warnings
18097 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18100 lt_cv_prog_compiler_c_o_CXX=yes
18101 fi
18102 fi
18103 chmod u+w . 2>&5
18104 $RM conftest*
18105 # SGI C++ compiler will create directory out/ii_files/ for
18106 # template instantiation
18107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18108 $RM out/* && rmdir out
18109 cd ..
18110 $RM -r conftest
18111 $RM conftest*
18112
18113fi
18114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18115$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18116
18117
18118
18119
18120hard_links="nottested"
18121if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18122 # do not overwrite the value of need_locks provided by the user
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18124$as_echo_n "checking if we can lock with hard links... " >&6; }
18125 hard_links=yes
18126 $RM conftest*
18127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18128 touch conftest.a
18129 ln conftest.a conftest.b 2>&5 || hard_links=no
18130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18132$as_echo "$hard_links" >&6; }
18133 if test "$hard_links" = no; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18135$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18136 need_locks=warn
18137 fi
18138else
18139 need_locks=no
18140fi
18141
18142
18143
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18145$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18146
18147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18148 case $host_os in
18149 aix[4-9]*)
18150 # If we're using GNU nm, then we don't want the "-C" option.
18151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18152 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18153 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'
18154 else
18155 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'
18156 fi
18157 ;;
18158 pw32*)
18159 export_symbols_cmds_CXX="$ltdll_cmds"
18160 ;;
18161 cygwin* | mingw* | cegcc*)
18162 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'
18163 ;;
18164 *)
18165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18166 ;;
18167 esac
18168 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18169
18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18171$as_echo "$ld_shlibs_CXX" >&6; }
18172test "$ld_shlibs_CXX" = no && can_build_shared=no
18173
18174with_gnu_ld_CXX=$with_gnu_ld
18175
18176
18177
18178
18179
18180
18181#
18182# Do we need to explicitly link libc?
18183#
18184case "x$archive_cmds_need_lc_CXX" in
18185x|xyes)
18186 # Assume -lc should be added
18187 archive_cmds_need_lc_CXX=yes
18188
18189 if test "$enable_shared" = yes && test "$GCC" = yes; then
18190 case $archive_cmds_CXX in
18191 *'~'*)
18192 # FIXME: we may have to deal with multi-command sequences.
18193 ;;
18194 '$CC '*)
18195 # Test whether the compiler implicitly links with -lc since on some
18196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18197 # to ld, don't add -lc before -lgcc.
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18199$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18200 $RM conftest*
18201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18202
18203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18204 (eval $ac_compile) 2>&5
18205 ac_status=$?
18206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; } 2>conftest.err; then
18208 soname=conftest
18209 lib=conftest
18210 libobjs=conftest.$ac_objext
18211 deplibs=
18212 wl=$lt_prog_compiler_wl_CXX
18213 pic_flag=$lt_prog_compiler_pic_CXX
18214 compiler_flags=-v
18215 linker_flags=-v
18216 verstring=
18217 output_objdir=.
18218 libname=conftest
18219 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18220 allow_undefined_flag_CXX=
18221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18222 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18223 ac_status=$?
18224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18225 test $ac_status = 0; }
18226 then
18227 archive_cmds_need_lc_CXX=no
18228 else
18229 archive_cmds_need_lc_CXX=yes
18230 fi
18231 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18232 else
18233 cat conftest.err 1>&5
18234 fi
18235 $RM conftest*
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18237$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18238 ;;
18239 esac
18240 fi
18241 ;;
18242esac
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
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18308$as_echo_n "checking dynamic linker characteristics... " >&6; }
18309
18310library_names_spec=
18311libname_spec='lib$name'
18312soname_spec=
18313shrext_cmds=".so"
18314postinstall_cmds=
18315postuninstall_cmds=
18316finish_cmds=
18317finish_eval=
18318shlibpath_var=
18319shlibpath_overrides_runpath=unknown
18320version_type=none
18321dynamic_linker="$host_os ld.so"
18322sys_lib_dlsearch_path_spec="/lib /usr/lib"
18323need_lib_prefix=unknown
18324hardcode_into_libs=no
18325
18326# when you set need_version to no, make sure it does not cause -set_version
18327# flags to be left without arguments
18328need_version=unknown
18329
18330case $host_os in
18331aix3*)
18332 version_type=linux
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18334 shlibpath_var=LIBPATH
18335
18336 # AIX 3 has no versioning support, so we append a major version to the name.
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 ;;
18339
18340aix[4-9]*)
18341 version_type=linux
18342 need_lib_prefix=no
18343 need_version=no
18344 hardcode_into_libs=yes
18345 if test "$host_cpu" = ia64; then
18346 # AIX 5 supports IA64
18347 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 else
18350 # With GCC up to 2.95.x, collect2 would create an import file
18351 # for dependence libraries. The import file would start with
18352 # the line `#! .'. This would cause the generated library to
18353 # depend on `.', always an invalid library. This was fixed in
18354 # development snapshots of GCC prior to 3.0.
18355 case $host_os in
18356 aix4 | aix4.[01] | aix4.[01].*)
18357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18358 echo ' yes '
18359 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18360 :
18361 else
18362 can_build_shared=no
18363 fi
18364 ;;
18365 esac
18366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18367 # soname into executable. Probably we can add versioning support to
18368 # collect2, so additional links can be useful in future.
18369 if test "$aix_use_runtimelinking" = yes; then
18370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18371 # instead of lib<name>.a to let people know that these are not
18372 # typical AIX shared libraries.
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374 else
18375 # We preserve .a as extension for shared libraries through AIX4.2
18376 # and later when we are not doing run time linking.
18377 library_names_spec='${libname}${release}.a $libname.a'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 fi
18380 shlibpath_var=LIBPATH
18381 fi
18382 ;;
18383
18384amigaos*)
18385 case $host_cpu in
18386 powerpc)
18387 # Since July 2007 AmigaOS4 officially supports .so libraries.
18388 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18390 ;;
18391 m68k)
18392 library_names_spec='$libname.ixlibrary $libname.a'
18393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18394 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'
18395 ;;
18396 esac
18397 ;;
18398
18399beos*)
18400 library_names_spec='${libname}${shared_ext}'
18401 dynamic_linker="$host_os ld.so"
18402 shlibpath_var=LIBRARY_PATH
18403 ;;
18404
18405bsdi[45]*)
18406 version_type=linux
18407 need_version=no
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18413 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18414 # the default ld.so.conf also contains /usr/contrib/lib and
18415 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18416 # libtool to hard-code these into programs
18417 ;;
18418
18419cygwin* | mingw* | pw32* | cegcc*)
18420 version_type=windows
18421 shrext_cmds=".dll"
18422 need_version=no
18423 need_lib_prefix=no
18424
18425 case $GCC,$host_os in
18426 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18427 library_names_spec='$libname.dll.a'
18428 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18429 postinstall_cmds='base_file=`basename \${file}`~
18430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18431 dldir=$destdir/`dirname \$dlpath`~
18432 test -d \$dldir || mkdir -p \$dldir~
18433 $install_prog $dir/$dlname \$dldir/$dlname~
18434 chmod a+x \$dldir/$dlname~
18435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18437 fi'
18438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18439 dlpath=$dir/\$dldll~
18440 $RM \$dlpath'
18441 shlibpath_overrides_runpath=yes
18442
18443 case $host_os in
18444 cygwin*)
18445 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18446 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18448 ;;
18449 mingw* | cegcc*)
18450 # MinGW DLLs use traditional 'lib' prefix
18451 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18452 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18453 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18454 # It is most probably a Windows format PATH printed by
18455 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18456 # path with ; separators, and with drive letters. We can handle the
18457 # drive letters (cygwin fileutils understands them), so leave them,
18458 # especially as we might pass files found there to a mingw objdump,
18459 # which wouldn't understand a cygwinified path. Ahh.
18460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18461 else
18462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18463 fi
18464 ;;
18465 pw32*)
18466 # pw32 DLLs use 'pw' prefix rather than 'lib'
18467 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18468 ;;
18469 esac
18470 ;;
18471
18472 *)
18473 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18474 ;;
18475 esac
18476 dynamic_linker='Win32 ld.exe'
18477 # FIXME: first we should search . and the directory the executable is in
18478 shlibpath_var=PATH
18479 ;;
18480
18481darwin* | rhapsody*)
18482 dynamic_linker="$host_os dyld"
18483 version_type=darwin
18484 need_lib_prefix=no
18485 need_version=no
18486 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18487 soname_spec='${libname}${release}${major}$shared_ext'
18488 shlibpath_overrides_runpath=yes
18489 shlibpath_var=DYLD_LIBRARY_PATH
18490 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18491
18492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18493 ;;
18494
18495dgux*)
18496 version_type=linux
18497 need_lib_prefix=no
18498 need_version=no
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 ;;
18503
18504freebsd1*)
18505 dynamic_linker=no
18506 ;;
18507
18508freebsd* | dragonfly*)
18509 # DragonFly does not have aout. When/if they implement a new
18510 # versioning mechanism, adjust this.
18511 if test -x /usr/bin/objformat; then
18512 objformat=`/usr/bin/objformat`
18513 else
18514 case $host_os in
18515 freebsd[123]*) objformat=aout ;;
18516 *) objformat=elf ;;
18517 esac
18518 fi
18519 version_type=freebsd-$objformat
18520 case $version_type in
18521 freebsd-elf*)
18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18523 need_version=no
18524 need_lib_prefix=no
18525 ;;
18526 freebsd-*)
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18528 need_version=yes
18529 ;;
18530 esac
18531 shlibpath_var=LD_LIBRARY_PATH
18532 case $host_os in
18533 freebsd2*)
18534 shlibpath_overrides_runpath=yes
18535 ;;
18536 freebsd3.[01]* | freebsdelf3.[01]*)
18537 shlibpath_overrides_runpath=yes
18538 hardcode_into_libs=yes
18539 ;;
18540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18542 shlibpath_overrides_runpath=no
18543 hardcode_into_libs=yes
18544 ;;
18545 *) # from 4.6 on, and DragonFly
18546 shlibpath_overrides_runpath=yes
18547 hardcode_into_libs=yes
18548 ;;
18549 esac
18550 ;;
18551
18552gnu*)
18553 version_type=linux
18554 need_lib_prefix=no
18555 need_version=no
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 shlibpath_var=LD_LIBRARY_PATH
18559 hardcode_into_libs=yes
18560 ;;
18561
18562hpux9* | hpux10* | hpux11*)
18563 # Give a soname corresponding to the major version so that dld.sl refuses to
18564 # link against other versions.
18565 version_type=sunos
18566 need_lib_prefix=no
18567 need_version=no
18568 case $host_cpu in
18569 ia64*)
18570 shrext_cmds='.so'
18571 hardcode_into_libs=yes
18572 dynamic_linker="$host_os dld.so"
18573 shlibpath_var=LD_LIBRARY_PATH
18574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 if test "X$HPUX_IA64_MODE" = X32; then
18578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18579 else
18580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18581 fi
18582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18583 ;;
18584 hppa*64*)
18585 shrext_cmds='.sl'
18586 hardcode_into_libs=yes
18587 dynamic_linker="$host_os dld.sl"
18588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18594 ;;
18595 *)
18596 shrext_cmds='.sl'
18597 dynamic_linker="$host_os dld.sl"
18598 shlibpath_var=SHLIB_PATH
18599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601 soname_spec='${libname}${release}${shared_ext}$major'
18602 ;;
18603 esac
18604 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18605 postinstall_cmds='chmod 555 $lib'
18606 ;;
18607
18608interix[3-9]*)
18609 version_type=linux
18610 need_lib_prefix=no
18611 need_version=no
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18613 soname_spec='${libname}${release}${shared_ext}$major'
18614 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=no
18617 hardcode_into_libs=yes
18618 ;;
18619
18620irix5* | irix6* | nonstopux*)
18621 case $host_os in
18622 nonstopux*) version_type=nonstopux ;;
18623 *)
18624 if test "$lt_cv_prog_gnu_ld" = yes; then
18625 version_type=linux
18626 else
18627 version_type=irix
18628 fi ;;
18629 esac
18630 need_lib_prefix=no
18631 need_version=no
18632 soname_spec='${libname}${release}${shared_ext}$major'
18633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18634 case $host_os in
18635 irix5* | nonstopux*)
18636 libsuff= shlibsuff=
18637 ;;
18638 *)
18639 case $LD in # libtool.m4 will add one of these switches to LD
18640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18641 libsuff= shlibsuff= libmagic=32-bit;;
18642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18643 libsuff=32 shlibsuff=N32 libmagic=N32;;
18644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18646 *) libsuff= shlibsuff= libmagic=never-match;;
18647 esac
18648 ;;
18649 esac
18650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18651 shlibpath_overrides_runpath=no
18652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18654 hardcode_into_libs=yes
18655 ;;
18656
18657# No shared lib support for Linux oldld, aout, or coff.
18658linux*oldld* | linux*aout* | linux*coff*)
18659 dynamic_linker=no
18660 ;;
18661
18662# This must be Linux ELF.
18663linux* | k*bsd*-gnu)
18664 version_type=linux
18665 need_lib_prefix=no
18666 need_version=no
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18670 shlibpath_var=LD_LIBRARY_PATH
18671 shlibpath_overrides_runpath=no
18672 # Some binutils ld are patched to set DT_RUNPATH
18673 save_LDFLAGS=$LDFLAGS
18674 save_libdir=$libdir
18675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18678/* end confdefs.h. */
18679
18680int
18681main ()
18682{
18683
18684 ;
18685 return 0;
18686}
18687_ACEOF
18688if ac_fn_cxx_try_link "$LINENO"; then :
18689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18690 shlibpath_overrides_runpath=yes
18691fi
18692fi
18693rm -f core conftest.err conftest.$ac_objext \
18694 conftest$ac_exeext conftest.$ac_ext
18695 LDFLAGS=$save_LDFLAGS
18696 libdir=$save_libdir
18697
18698 # This implies no fast_install, which is unacceptable.
18699 # Some rework will be needed to allow for fast_install
18700 # before this can be enabled.
18701 hardcode_into_libs=yes
18702
18703 # Add ABI-specific directories to the system library path.
18704 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18705
18706 # Append ld.so.conf contents to the search path
18707 if test -f /etc/ld.so.conf; then
18708 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' ' '`
18709 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18710 fi
18711
18712 # We used to test for /lib/ld.so.1 and disable shared libraries on
18713 # powerpc, because MkLinux only supported shared libraries with the
18714 # GNU dynamic linker. Since this was broken with cross compilers,
18715 # most powerpc-linux boxes support dynamic linking these days and
18716 # people can always --disable-shared, the test was removed, and we
18717 # assume the GNU/Linux dynamic linker is in use.
18718 dynamic_linker='GNU/Linux ld.so'
18719 ;;
18720
18721netbsd*)
18722 version_type=sunos
18723 need_lib_prefix=no
18724 need_version=no
18725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18728 dynamic_linker='NetBSD (a.out) ld.so'
18729 else
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18731 soname_spec='${libname}${release}${shared_ext}$major'
18732 dynamic_linker='NetBSD ld.elf_so'
18733 fi
18734 shlibpath_var=LD_LIBRARY_PATH
18735 shlibpath_overrides_runpath=yes
18736 hardcode_into_libs=yes
18737 ;;
18738
18739newsos6)
18740 version_type=linux
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742 shlibpath_var=LD_LIBRARY_PATH
18743 shlibpath_overrides_runpath=yes
18744 ;;
18745
18746*nto* | *qnx*)
18747 version_type=qnx
18748 need_lib_prefix=no
18749 need_version=no
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751 soname_spec='${libname}${release}${shared_ext}$major'
18752 shlibpath_var=LD_LIBRARY_PATH
18753 shlibpath_overrides_runpath=no
18754 hardcode_into_libs=yes
18755 dynamic_linker='ldqnx.so'
18756 ;;
18757
18758openbsd*)
18759 version_type=sunos
18760 sys_lib_dlsearch_path_spec="/usr/lib"
18761 need_lib_prefix=no
18762 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18763 case $host_os in
18764 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18765 *) need_version=no ;;
18766 esac
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18771 case $host_os in
18772 openbsd2.[89] | openbsd2.[89].*)
18773 shlibpath_overrides_runpath=no
18774 ;;
18775 *)
18776 shlibpath_overrides_runpath=yes
18777 ;;
18778 esac
18779 else
18780 shlibpath_overrides_runpath=yes
18781 fi
18782 ;;
18783
18784os2*)
18785 libname_spec='$name'
18786 shrext_cmds=".dll"
18787 need_lib_prefix=no
18788 library_names_spec='$libname${shared_ext} $libname.a'
18789 dynamic_linker='OS/2 ld.exe'
18790 shlibpath_var=LIBPATH
18791 ;;
18792
18793osf3* | osf4* | osf5*)
18794 version_type=osf
18795 need_lib_prefix=no
18796 need_version=no
18797 soname_spec='${libname}${release}${shared_ext}$major'
18798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799 shlibpath_var=LD_LIBRARY_PATH
18800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18802 ;;
18803
18804rdos*)
18805 dynamic_linker=no
18806 ;;
18807
18808solaris*)
18809 version_type=linux
18810 need_lib_prefix=no
18811 need_version=no
18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813 soname_spec='${libname}${release}${shared_ext}$major'
18814 shlibpath_var=LD_LIBRARY_PATH
18815 shlibpath_overrides_runpath=yes
18816 hardcode_into_libs=yes
18817 # ldd complains unless libraries are executable
18818 postinstall_cmds='chmod +x $lib'
18819 ;;
18820
18821sunos4*)
18822 version_type=sunos
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18825 shlibpath_var=LD_LIBRARY_PATH
18826 shlibpath_overrides_runpath=yes
18827 if test "$with_gnu_ld" = yes; then
18828 need_lib_prefix=no
18829 fi
18830 need_version=yes
18831 ;;
18832
18833sysv4 | sysv4.3*)
18834 version_type=linux
18835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18836 soname_spec='${libname}${release}${shared_ext}$major'
18837 shlibpath_var=LD_LIBRARY_PATH
18838 case $host_vendor in
18839 sni)
18840 shlibpath_overrides_runpath=no
18841 need_lib_prefix=no
18842 runpath_var=LD_RUN_PATH
18843 ;;
18844 siemens)
18845 need_lib_prefix=no
18846 ;;
18847 motorola)
18848 need_lib_prefix=no
18849 need_version=no
18850 shlibpath_overrides_runpath=no
18851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18852 ;;
18853 esac
18854 ;;
18855
18856sysv4*MP*)
18857 if test -d /usr/nec ;then
18858 version_type=linux
18859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18860 soname_spec='$libname${shared_ext}.$major'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 fi
18863 ;;
18864
18865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18866 version_type=freebsd-elf
18867 need_lib_prefix=no
18868 need_version=no
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath=yes
18873 hardcode_into_libs=yes
18874 if test "$with_gnu_ld" = yes; then
18875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18876 else
18877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18878 case $host_os in
18879 sco3.2v5*)
18880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18881 ;;
18882 esac
18883 fi
18884 sys_lib_dlsearch_path_spec='/usr/lib'
18885 ;;
18886
18887tpf*)
18888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18889 version_type=linux
18890 need_lib_prefix=no
18891 need_version=no
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18893 shlibpath_var=LD_LIBRARY_PATH
18894 shlibpath_overrides_runpath=no
18895 hardcode_into_libs=yes
18896 ;;
18897
18898uts4*)
18899 version_type=linux
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18903 ;;
18904
18905*)
18906 dynamic_linker=no
18907 ;;
18908esac
18909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18910$as_echo "$dynamic_linker" >&6; }
18911test "$dynamic_linker" = no && can_build_shared=no
18912
18913variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18914if test "$GCC" = yes; then
18915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18916fi
18917
18918if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18919 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18920fi
18921if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18922 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18923fi
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
18959
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18961$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18962hardcode_action_CXX=
18963if test -n "$hardcode_libdir_flag_spec_CXX" ||
18964 test -n "$runpath_var_CXX" ||
18965 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18966
18967 # We can hardcode non-existent directories.
18968 if test "$hardcode_direct_CXX" != no &&
18969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18970 # have to relink, otherwise we might link with an installed library
18971 # when we should be linking with a yet-to-be-installed one
18972 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18973 test "$hardcode_minus_L_CXX" != no; then
18974 # Linking always hardcodes the temporary library directory.
18975 hardcode_action_CXX=relink
18976 else
18977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18978 hardcode_action_CXX=immediate
18979 fi
18980else
18981 # We cannot hardcode anything, or else we can only hardcode existing
18982 # directories.
18983 hardcode_action_CXX=unsupported
18984fi
18985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18986$as_echo "$hardcode_action_CXX" >&6; }
18987
18988if test "$hardcode_action_CXX" = relink ||
18989 test "$inherit_rpath_CXX" = yes; then
18990 # Fast installation is not supported
18991 enable_fast_install=no
18992elif test "$shlibpath_overrides_runpath" = yes ||
18993 test "$enable_shared" = no; then
18994 # Fast installation is not necessary
18995 enable_fast_install=needless
18996fi
18997
18998
18999
19000
19001
19002
19003
19004 fi # test -n "$compiler"
19005
19006 CC=$lt_save_CC
19007 LDCXX=$LD
19008 LD=$lt_save_LD
19009 GCC=$lt_save_GCC
19010 with_gnu_ld=$lt_save_with_gnu_ld
19011 lt_cv_path_LDCXX=$lt_cv_path_LD
19012 lt_cv_path_LD=$lt_save_path_LD
19013 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19014 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19015fi # test "$_lt_caught_CXX_error" != yes
19016
19017ac_ext=c
19018ac_cpp='$CPP $CPPFLAGS'
19019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035 ac_config_commands="$ac_config_commands libtool"
19036
19037
19038
19039
19040# Only expand once:
19041
19042
19043
cristy3ed852e2009-09-05 21:47:34 +000019044
19045
19046# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019047
19048
19049
19050
19051
19052
19053
19054
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19056$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19057if test "${libltdl_cv_shlibext+set}" = set; then :
19058 $as_echo_n "(cached) " >&6
19059else
19060
19061module=yes
19062eval libltdl_cv_shlibext=$shrext_cmds
19063
19064fi
19065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19066$as_echo "$libltdl_cv_shlibext" >&6; }
19067if test -n "$libltdl_cv_shlibext"; then
19068
19069cat >>confdefs.h <<_ACEOF
19070#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19071_ACEOF
19072
19073fi
19074
19075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19076$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19077if test "${lt_cv_module_path_var+set}" = set; then :
19078 $as_echo_n "(cached) " >&6
19079else
19080 lt_cv_module_path_var="$shlibpath_var"
19081fi
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19083$as_echo "$lt_cv_module_path_var" >&6; }
19084if test -n "$lt_cv_module_path_var"; then
19085
19086cat >>confdefs.h <<_ACEOF
19087#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19088_ACEOF
19089
19090fi
19091
19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19093$as_echo_n "checking for the default library search path... " >&6; }
19094if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19095 $as_echo_n "(cached) " >&6
19096else
19097 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19098fi
19099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19100$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19101if test -n "$lt_cv_sys_dlsearch_path"; then
19102 sys_dlsearch_path=
19103 for dir in $lt_cv_sys_dlsearch_path; do
19104 if test -z "$sys_dlsearch_path"; then
19105 sys_dlsearch_path="$dir"
19106 else
19107 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19108 fi
19109 done
19110
19111cat >>confdefs.h <<_ACEOF
19112#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19113_ACEOF
19114
19115fi
19116
19117
19118LT_DLLOADERS=
19119
19120
19121ac_ext=c
19122ac_cpp='$CPP $CPPFLAGS'
19123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126
19127
19128LIBADD_DLOPEN=
19129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19130$as_echo_n "checking for library containing dlopen... " >&6; }
19131if test "${ac_cv_search_dlopen+set}" = set; then :
19132 $as_echo_n "(cached) " >&6
19133else
19134 ac_func_search_save_LIBS=$LIBS
19135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136/* end confdefs.h. */
19137
19138/* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19141#ifdef __cplusplus
19142extern "C"
19143#endif
19144char dlopen ();
19145int
19146main ()
19147{
19148return dlopen ();
19149 ;
19150 return 0;
19151}
19152_ACEOF
19153for ac_lib in '' dl; do
19154 if test -z "$ac_lib"; then
19155 ac_res="none required"
19156 else
19157 ac_res=-l$ac_lib
19158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19159 fi
19160 if ac_fn_c_try_link "$LINENO"; then :
19161 ac_cv_search_dlopen=$ac_res
19162fi
19163rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext
19165 if test "${ac_cv_search_dlopen+set}" = set; then :
19166 break
19167fi
19168done
19169if test "${ac_cv_search_dlopen+set}" = set; then :
19170
19171else
19172 ac_cv_search_dlopen=no
19173fi
19174rm conftest.$ac_ext
19175LIBS=$ac_func_search_save_LIBS
19176fi
19177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19178$as_echo "$ac_cv_search_dlopen" >&6; }
19179ac_res=$ac_cv_search_dlopen
19180if test "$ac_res" != no; then :
19181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19182
19183$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19184
19185 if test "$ac_cv_search_dlopen" != "none required" ; then
19186 LIBADD_DLOPEN="-ldl"
19187 fi
19188 libltdl_cv_lib_dl_dlopen="yes"
19189 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19190else
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192/* end confdefs.h. */
19193#if HAVE_DLFCN_H
19194# include <dlfcn.h>
19195#endif
19196
19197int
19198main ()
19199{
19200dlopen(0, 0);
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205if ac_fn_c_try_link "$LINENO"; then :
19206
19207$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19208
19209 libltdl_cv_func_dlopen="yes"
19210 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19211else
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19213$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19214if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19215 $as_echo_n "(cached) " >&6
19216else
19217 ac_check_lib_save_LIBS=$LIBS
19218LIBS="-lsvld $LIBS"
19219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220/* end confdefs.h. */
19221
19222/* Override any GCC internal prototype to avoid an error.
19223 Use char because int might match the return type of a GCC
19224 builtin and then its argument prototype would still apply. */
19225#ifdef __cplusplus
19226extern "C"
19227#endif
19228char dlopen ();
19229int
19230main ()
19231{
19232return dlopen ();
19233 ;
19234 return 0;
19235}
19236_ACEOF
19237if ac_fn_c_try_link "$LINENO"; then :
19238 ac_cv_lib_svld_dlopen=yes
19239else
19240 ac_cv_lib_svld_dlopen=no
19241fi
19242rm -f core conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
19244LIBS=$ac_check_lib_save_LIBS
19245fi
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19247$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19248if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19249
19250$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19251
19252 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19253 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19254fi
19255
19256fi
19257rm -f core conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259fi
19260
19261if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19262then
19263 lt_save_LIBS="$LIBS"
19264 LIBS="$LIBS $LIBADD_DLOPEN"
19265 for ac_func in dlerror
19266do :
19267 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19268if test "x$ac_cv_func_dlerror" = x""yes; then :
19269 cat >>confdefs.h <<_ACEOF
19270#define HAVE_DLERROR 1
19271_ACEOF
19272
19273fi
19274done
19275
19276 LIBS="$lt_save_LIBS"
19277fi
19278
19279
19280LIBADD_SHL_LOAD=
19281ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19282if test "x$ac_cv_func_shl_load" = x""yes; then :
19283
19284$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19285
19286 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19287else
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19289$as_echo_n "checking for shl_load in -ldld... " >&6; }
19290if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19292else
19293 ac_check_lib_save_LIBS=$LIBS
19294LIBS="-ldld $LIBS"
19295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296/* end confdefs.h. */
19297
19298/* Override any GCC internal prototype to avoid an error.
19299 Use char because int might match the return type of a GCC
19300 builtin and then its argument prototype would still apply. */
19301#ifdef __cplusplus
19302extern "C"
19303#endif
19304char shl_load ();
19305int
19306main ()
19307{
19308return shl_load ();
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313if ac_fn_c_try_link "$LINENO"; then :
19314 ac_cv_lib_dld_shl_load=yes
19315else
19316 ac_cv_lib_dld_shl_load=no
19317fi
19318rm -f core conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320LIBS=$ac_check_lib_save_LIBS
19321fi
19322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19323$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19324if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19325
19326$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19327
19328 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19329 LIBADD_SHL_LOAD="-ldld"
19330fi
19331
19332fi
19333
19334
19335
19336case $host_os in
19337darwin[1567].*)
19338# We only want this for pre-Mac OS X 10.4.
19339 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19340if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19341
19342$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19343
19344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19345fi
19346
19347 ;;
19348beos*)
19349 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19350 ;;
19351cygwin* | mingw* | os2* | pw32*)
19352 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19353"
19354if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19355 ac_have_decl=1
19356else
19357 ac_have_decl=0
19358fi
19359
19360cat >>confdefs.h <<_ACEOF
19361#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19362_ACEOF
19363
19364 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19365 ;;
19366esac
19367
19368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19369$as_echo_n "checking for dld_link in -ldld... " >&6; }
19370if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19371 $as_echo_n "(cached) " >&6
19372else
19373 ac_check_lib_save_LIBS=$LIBS
19374LIBS="-ldld $LIBS"
19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h. */
19377
19378/* Override any GCC internal prototype to avoid an error.
19379 Use char because int might match the return type of a GCC
19380 builtin and then its argument prototype would still apply. */
19381#ifdef __cplusplus
19382extern "C"
19383#endif
19384char dld_link ();
19385int
19386main ()
19387{
19388return dld_link ();
19389 ;
19390 return 0;
19391}
19392_ACEOF
19393if ac_fn_c_try_link "$LINENO"; then :
19394 ac_cv_lib_dld_dld_link=yes
19395else
19396 ac_cv_lib_dld_dld_link=no
19397fi
19398rm -f core conftest.err conftest.$ac_objext \
19399 conftest$ac_exeext conftest.$ac_ext
19400LIBS=$ac_check_lib_save_LIBS
19401fi
19402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19403$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19404if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19405
19406$as_echo "#define HAVE_DLD 1" >>confdefs.h
19407
19408 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19409fi
19410
19411
19412
19413
19414LT_DLPREOPEN=
19415if test -n "$LT_DLLOADERS"
19416then
19417 for lt_loader in $LT_DLLOADERS; do
19418 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19419 done
19420
19421$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19422
19423fi
19424
19425
19426LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19427
19428
19429ac_ext=c
19430ac_cpp='$CPP $CPPFLAGS'
19431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433ac_compiler_gnu=$ac_cv_c_compiler_gnu
19434
19435
19436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19437$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19438if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19439 $as_echo_n "(cached) " >&6
19440else
19441 lt_cv_sys_symbol_underscore=no
19442 cat > conftest.$ac_ext <<_LT_EOF
19443void nm_test_func(){}
19444int main(){nm_test_func;return 0;}
19445_LT_EOF
19446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19447 (eval $ac_compile) 2>&5
19448 ac_status=$?
19449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19450 test $ac_status = 0; }; then
19451 # Now try to grab the symbols.
19452 ac_nlist=conftest.nm
19453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19454 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19455 ac_status=$?
19456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19457 test $ac_status = 0; } && test -s "$ac_nlist"; then
19458 # See whether the symbols have a leading underscore.
19459 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19460 lt_cv_sys_symbol_underscore=yes
19461 else
19462 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19463 :
19464 else
19465 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19466 fi
19467 fi
19468 else
19469 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19470 fi
19471 else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.c >&5
19474 fi
19475 rm -rf conftest*
19476
19477fi
19478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19479$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19480 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19481
19482
19483if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19484 if test x"$libltdl_cv_func_dlopen" = xyes ||
19485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19487$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19488if test "${libltdl_cv_need_uscore+set}" = set; then :
19489 $as_echo_n "(cached) " >&6
19490else
19491 libltdl_cv_need_uscore=unknown
19492 save_LIBS="$LIBS"
19493 LIBS="$LIBS $LIBADD_DLOPEN"
19494 if test "$cross_compiling" = yes; then :
19495 libltdl_cv_need_uscore=cross
19496else
19497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19498 lt_status=$lt_dlunknown
19499 cat > conftest.$ac_ext <<_LT_EOF
cristy98dddb52010-11-04 00:30:15 +000019500#line 19500 "configure"
cristy73bd4a52010-10-05 11:24:23 +000019501#include "confdefs.h"
19502
19503#if HAVE_DLFCN_H
19504#include <dlfcn.h>
19505#endif
19506
19507#include <stdio.h>
19508
19509#ifdef RTLD_GLOBAL
19510# define LT_DLGLOBAL RTLD_GLOBAL
19511#else
19512# ifdef DL_GLOBAL
19513# define LT_DLGLOBAL DL_GLOBAL
19514# else
19515# define LT_DLGLOBAL 0
19516# endif
19517#endif
19518
19519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19520 find out it does not work in some platform. */
19521#ifndef LT_DLLAZY_OR_NOW
19522# ifdef RTLD_LAZY
19523# define LT_DLLAZY_OR_NOW RTLD_LAZY
19524# else
19525# ifdef DL_LAZY
19526# define LT_DLLAZY_OR_NOW DL_LAZY
19527# else
19528# ifdef RTLD_NOW
19529# define LT_DLLAZY_OR_NOW RTLD_NOW
19530# else
19531# ifdef DL_NOW
19532# define LT_DLLAZY_OR_NOW DL_NOW
19533# else
19534# define LT_DLLAZY_OR_NOW 0
19535# endif
19536# endif
19537# endif
19538# endif
19539#endif
19540
19541void fnord() { int i=42;}
19542int main ()
19543{
19544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19545 int status = $lt_dlunknown;
19546
19547 if (self)
19548 {
19549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19550 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19551 /* dlclose (self); */
19552 }
19553 else
19554 puts (dlerror ());
19555
19556 return status;
19557}
19558_LT_EOF
19559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19560 (eval $ac_link) 2>&5
19561 ac_status=$?
19562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19564 (./conftest; exit; ) >&5 2>/dev/null
19565 lt_status=$?
19566 case x$lt_status in
19567 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19568 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19569 x$lt_dlunknown|x*) ;;
19570 esac
19571 else :
19572 # compilation failed
19573
19574 fi
19575fi
19576rm -fr conftest*
19577
19578 LIBS="$save_LIBS"
19579
19580fi
19581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19582$as_echo "$libltdl_cv_need_uscore" >&6; }
19583 fi
19584fi
19585
19586if test x"$libltdl_cv_need_uscore" = xyes; then
19587
19588$as_echo "#define NEED_USCORE 1" >>confdefs.h
19589
19590fi
19591
19592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19593$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19594if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19595 $as_echo_n "(cached) " >&6
19596else
19597 # PORTME does your system automatically load deplibs for dlopen?
19598 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19599 # For now, we just catch OSes we know something about -- in the
19600 # future, we'll try test this programmatically.
19601 lt_cv_sys_dlopen_deplibs=unknown
19602 case $host_os in
19603 aix3*|aix4.1.*|aix4.2.*)
19604 # Unknown whether this is true for these versions of AIX, but
19605 # we want this `case' here to explicitly catch those versions.
19606 lt_cv_sys_dlopen_deplibs=unknown
19607 ;;
19608 aix[4-9]*)
19609 lt_cv_sys_dlopen_deplibs=yes
19610 ;;
19611 amigaos*)
19612 case $host_cpu in
19613 powerpc)
19614 lt_cv_sys_dlopen_deplibs=no
19615 ;;
19616 esac
19617 ;;
19618 darwin*)
19619 # Assuming the user has installed a libdl from somewhere, this is true
19620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19621 lt_cv_sys_dlopen_deplibs=yes
19622 ;;
19623 freebsd* | dragonfly*)
19624 lt_cv_sys_dlopen_deplibs=yes
19625 ;;
19626 gnu* | linux* | k*bsd*-gnu)
19627 # GNU and its variants, using gnu ld.so (Glibc)
19628 lt_cv_sys_dlopen_deplibs=yes
19629 ;;
19630 hpux10*|hpux11*)
19631 lt_cv_sys_dlopen_deplibs=yes
19632 ;;
19633 interix*)
19634 lt_cv_sys_dlopen_deplibs=yes
19635 ;;
19636 irix[12345]*|irix6.[01]*)
19637 # Catch all versions of IRIX before 6.2, and indicate that we don't
19638 # know how it worked for any of those versions.
19639 lt_cv_sys_dlopen_deplibs=unknown
19640 ;;
19641 irix*)
19642 # The case above catches anything before 6.2, and it's known that
19643 # at 6.2 and later dlopen does load deplibs.
19644 lt_cv_sys_dlopen_deplibs=yes
19645 ;;
19646 netbsd*)
19647 lt_cv_sys_dlopen_deplibs=yes
19648 ;;
19649 openbsd*)
19650 lt_cv_sys_dlopen_deplibs=yes
19651 ;;
19652 osf[1234]*)
19653 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19654 # it did *not* use an RPATH in a shared library to find objects the
19655 # library depends on, so we explicitly say `no'.
19656 lt_cv_sys_dlopen_deplibs=no
19657 ;;
19658 osf5.0|osf5.0a|osf5.1)
19659 # dlopen *does* load deplibs and with the right loader patch applied
19660 # it even uses RPATH in a shared library to search for shared objects
19661 # that the library depends on, but there's no easy way to know if that
19662 # patch is installed. Since this is the case, all we can really
19663 # say is unknown -- it depends on the patch being installed. If
19664 # it is, this changes to `yes'. Without it, it would be `no'.
19665 lt_cv_sys_dlopen_deplibs=unknown
19666 ;;
19667 osf*)
19668 # the two cases above should catch all versions of osf <= 5.1. Read
19669 # the comments above for what we know about them.
19670 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19671 # is used to find them so we can finally say `yes'.
19672 lt_cv_sys_dlopen_deplibs=yes
19673 ;;
19674 qnx*)
19675 lt_cv_sys_dlopen_deplibs=yes
19676 ;;
19677 solaris*)
19678 lt_cv_sys_dlopen_deplibs=yes
19679 ;;
19680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19681 libltdl_cv_sys_dlopen_deplibs=yes
19682 ;;
19683 esac
19684
19685fi
19686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19687$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19688if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19689
19690$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19691
19692fi
19693
19694:
19695
19696for ac_header in argz.h
19697do :
19698 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19699"
19700if test "x$ac_cv_header_argz_h" = x""yes; then :
19701 cat >>confdefs.h <<_ACEOF
19702#define HAVE_ARGZ_H 1
19703_ACEOF
19704
19705fi
19706
19707done
19708
19709
19710ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19711# include <argz.h>
19712#endif
19713"
19714if test "x$ac_cv_type_error_t" = x""yes; then :
19715
19716cat >>confdefs.h <<_ACEOF
19717#define HAVE_ERROR_T 1
19718_ACEOF
19719
19720
19721else
19722
19723$as_echo "#define error_t int" >>confdefs.h
19724
19725
19726$as_echo "#define __error_t_defined 1" >>confdefs.h
19727
19728fi
19729
19730
19731ARGZ_H=
19732for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19733 argz_next argz_stringify
19734do :
19735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019738 cat >>confdefs.h <<_ACEOF
19739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19740_ACEOF
19741
19742else
19743 ARGZ_H=argz.h;
19744
19745 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19746
19747fi
19748done
19749
19750
19751if test -z "$ARGZ_H"; then :
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19753$as_echo_n "checking if argz actually works... " >&6; }
19754if test "${lt_cv_sys_argz_works+set}" = set; then :
19755 $as_echo_n "(cached) " >&6
19756else
19757 case $host_os in #(
19758 *cygwin*)
19759 lt_cv_sys_argz_works=no
19760 if test "$cross_compiling" != no; then
19761 lt_cv_sys_argz_works="guessing no"
19762 else
19763 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19764 save_IFS=$IFS
19765 IFS=-.
19766 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19767 IFS=$save_IFS
19768 lt_os_major=${2-0}
19769 lt_os_minor=${3-0}
19770 lt_os_micro=${4-0}
19771 if test "$lt_os_major" -gt 1 \
19772 || { test "$lt_os_major" -eq 1 \
19773 && { test "$lt_os_minor" -gt 5 \
19774 || { test "$lt_os_minor" -eq 5 \
19775 && test "$lt_os_micro" -gt 24; }; }; }; then
19776 lt_cv_sys_argz_works=yes
19777 fi
19778 fi
19779 ;; #(
19780 *) lt_cv_sys_argz_works=yes ;;
19781 esac
19782fi
19783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19784$as_echo "$lt_cv_sys_argz_works" >&6; }
19785 if test $lt_cv_sys_argz_works = yes; then :
19786
19787$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19788
19789else
19790 ARGZ_H=argz.h
19791
19792
19793 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19794
19795fi
19796fi
19797
19798
19799
19800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19801$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19802if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19803 $as_echo_n "(cached) " >&6
19804else
19805 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19806 libltdl_cv_preloaded_symbols=yes
19807 else
19808 libltdl_cv_preloaded_symbols=no
19809 fi
19810
19811fi
19812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19813$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19814if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19815
19816$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19817
19818fi
19819
19820# Set options
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832# Check whether --with-included_ltdl was given.
19833if test "${with_included_ltdl+set}" = set; then :
19834 withval=$with_included_ltdl;
19835fi
19836
19837
19838if test "x$with_included_ltdl" != xyes; then
19839 # We are not being forced to use the included libltdl sources, so
19840 # decide whether there is a useful installed version we can use.
19841 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19842
19843"
19844if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19845 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19846 #include <ltdl.h>
19847"
19848if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19850$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19851if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19852 $as_echo_n "(cached) " >&6
19853else
19854 ac_check_lib_save_LIBS=$LIBS
19855LIBS="-lltdl $LIBS"
19856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857/* end confdefs.h. */
19858
19859/* Override any GCC internal prototype to avoid an error.
19860 Use char because int might match the return type of a GCC
19861 builtin and then its argument prototype would still apply. */
19862#ifdef __cplusplus
19863extern "C"
19864#endif
19865char lt_dladvise_preload ();
19866int
19867main ()
19868{
19869return lt_dladvise_preload ();
19870 ;
19871 return 0;
19872}
19873_ACEOF
19874if ac_fn_c_try_link "$LINENO"; then :
19875 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19876else
19877 ac_cv_lib_ltdl_lt_dladvise_preload=no
19878fi
19879rm -f core conftest.err conftest.$ac_objext \
19880 conftest$ac_exeext conftest.$ac_ext
19881LIBS=$ac_check_lib_save_LIBS
19882fi
19883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19884$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19885if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19886 with_included_ltdl=no
19887else
19888 with_included_ltdl=yes
19889fi
19890
19891else
19892 with_included_ltdl=yes
19893fi
19894
19895else
19896 with_included_ltdl=yes
19897fi
19898
19899
19900fi
19901
19902
19903
19904
19905# Check whether --with-ltdl_include was given.
19906if test "${with_ltdl_include+set}" = set; then :
19907 withval=$with_ltdl_include;
19908fi
19909
19910
19911if test -n "$with_ltdl_include"; then
19912 if test -f "$with_ltdl_include/ltdl.h"; then :
19913 else
cristy98dddb52010-11-04 00:30:15 +000019914 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019915 fi
19916else
19917 with_ltdl_include=no
19918fi
19919
19920
19921# Check whether --with-ltdl_lib was given.
19922if test "${with_ltdl_lib+set}" = set; then :
19923 withval=$with_ltdl_lib;
19924fi
19925
19926
19927if test -n "$with_ltdl_lib"; then
19928 if test -f "$with_ltdl_lib/libltdl.la"; then :
19929 else
cristy98dddb52010-11-04 00:30:15 +000019930 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019931 fi
19932else
19933 with_ltdl_lib=no
19934fi
19935
19936case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19937 ,yes,no,no,)
19938 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000019939 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000019940 "") enable_ltdl_convenience=yes
19941 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19942esac
19943LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19944LTDLDEPS=$LIBLTDL
19945LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19946
19947
19948
19949
19950
19951# For backwards non-gettext consistent compatibility...
19952INCLTDL="$LTDLINCL"
19953
19954
19955 ;;
19956 ,no,no,no,)
19957 # If the included ltdl is not to be used, then use the
19958 # preinstalled libltdl we found.
19959
19960$as_echo "#define HAVE_LTDL 1" >>confdefs.h
19961
19962 LIBLTDL=-lltdl
19963 LTDLDEPS=
19964 LTDLINCL=
19965 ;;
19966 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000019967 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019968 ;;
19969 *) with_included_ltdl=no
19970 LIBLTDL="-L$with_ltdl_lib -lltdl"
19971 LTDLDEPS=
19972 LTDLINCL="-I$with_ltdl_include"
19973 ;;
19974esac
19975INCLTDL="$LTDLINCL"
19976
19977# Report our decision...
19978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19979$as_echo_n "checking where to find libltdl headers... " >&6; }
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19981$as_echo "$LTDLINCL" >&6; }
19982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19983$as_echo_n "checking where to find libltdl library... " >&6; }
19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19985$as_echo "$LIBLTDL" >&6; }
19986
19987
19988
19989# Check whether --enable-ltdl-install was given.
19990if test "${enable_ltdl_install+set}" = set; then :
19991 enableval=$enable_ltdl_install;
19992fi
19993
19994
19995case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19996 *yes*) ;;
19997 *) enable_ltdl_convenience=yes ;;
19998esac
19999
20000 if test x"${enable_ltdl_install-no}" != xno; then
20001 INSTALL_LTDL_TRUE=
20002 INSTALL_LTDL_FALSE='#'
20003else
20004 INSTALL_LTDL_TRUE='#'
20005 INSTALL_LTDL_FALSE=
20006fi
20007
20008 if test x"${enable_ltdl_convenience-no}" != xno; then
20009 CONVENIENCE_LTDL_TRUE=
20010 CONVENIENCE_LTDL_FALSE='#'
20011else
20012 CONVENIENCE_LTDL_TRUE='#'
20013 CONVENIENCE_LTDL_FALSE=
20014fi
20015
20016
20017
20018
20019
20020
20021
20022# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20023# the user used. This is so that ltdl.h can pick up the parent projects
20024# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20025# definitions required by ltdl.c.
20026# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20027
20028
20029
20030for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20031do :
20032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20033ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20034"
cristy98dddb52010-11-04 00:30:15 +000020035if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020036 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"
cristy98dddb52010-11-04 00:30:15 +000020049if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020050 cat >>confdefs.h <<_ACEOF
20051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20052_ACEOF
20053
20054else
20055
20056
20057 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20058
20059fi
20060done
20061
20062for ac_func in strlcat strlcpy
20063do :
20064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020067 cat >>confdefs.h <<_ACEOF
20068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20069_ACEOF
20070
20071else
20072
20073
20074 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20075
20076fi
20077done
20078
20079
20080
20081cat >>confdefs.h <<_ACEOF
20082#define LT_LIBEXT "$libext"
20083_ACEOF
20084
20085
20086name=ltdl
20087LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20088
20089
20090
20091
20092
20093
20094
20095
20096# Only expand once:
20097
20098
cristy3ed852e2009-09-05 21:47:34 +000020099
20100# Check to see if building shared libraries
20101libtool_build_shared_libs='no'
20102if test "$enable_shared" = 'yes'; then
20103 libtool_build_shared_libs='yes'
20104fi
20105
20106# Check to see if building static libraries
20107libtool_build_static_libs='no'
20108if test "$enable_static" = 'yes'; then
20109 libtool_build_static_libs='yes'
20110fi
20111
cristy73bd4a52010-10-05 11:24:23 +000020112 if test "${libtool_build_shared_libs}" = 'yes'; then
20113 WITH_SHARED_LIBS_TRUE=
20114 WITH_SHARED_LIBS_FALSE='#'
20115else
20116 WITH_SHARED_LIBS_TRUE='#'
20117 WITH_SHARED_LIBS_FALSE=
20118fi
20119
cristy3ed852e2009-09-05 21:47:34 +000020120#
20121# Enable support for building loadable modules
20122#
20123
20124# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020125if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020126 withval=$with_modules; with_modules=$withval
20127else
cristy5a1cefd2010-01-06 20:42:35 +000020128 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020129fi
20130
20131
20132# Only allow building loadable modules if we are building shared libraries
20133if test "$with_modules" != 'no' ; then
20134 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020135 { $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 +000020136$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20137 with_modules='no'
20138 fi
20139fi
20140if test "$with_modules" != 'no'; then
20141
cristy8b350f62009-11-15 23:12:43 +000020142$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020143
20144fi
cristy73bd4a52010-10-05 11:24:23 +000020145 if test "$with_modules" != 'no'; then
20146 WITH_MODULES_TRUE=
20147 WITH_MODULES_FALSE='#'
20148else
20149 WITH_MODULES_TRUE='#'
20150 WITH_MODULES_FALSE=
20151fi
20152
cristy3ed852e2009-09-05 21:47:34 +000020153
20154# Enable building/use of libltdl if we are building shared libraries regardless
20155# of whether modules are built or not.
20156with_ltdl='no'
20157if test "$libtool_build_shared_libs" != 'no'; then
20158 with_ltdl='yes'
20159fi
20160
cristy73bd4a52010-10-05 11:24:23 +000020161 if test "$with_ltdl" != 'no'; then
20162 WITH_LTDL_TRUE=
20163 WITH_LTDL_FALSE='#'
20164else
20165 WITH_LTDL_TRUE='#'
20166 WITH_LTDL_FALSE=
20167fi
20168
cristy3ed852e2009-09-05 21:47:34 +000020169if test "$with_ltdl" != 'no'; then
20170
cristy8b350f62009-11-15 23:12:43 +000020171$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020172
20173
20174 # Set DLLDFLAGS
20175 if test X"$enable_shared" = Xyes; then
20176 DLLDFLAGS=-export-dynamic
20177
20178 fi
20179fi
20180
20181# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020182# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020183# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020184if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020185 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20186else
20187 enable_delegate_build='no'
20188fi
20189
20190
20191# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020192if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020193 enableval=$enable_deprecated; enable_deprecated=$enableval
20194else
20195 enable_deprecated='no'
20196fi
20197
20198
20199if test "$enable_deprecated" = 'yes'; then
20200
cristy8b350f62009-11-15 23:12:43 +000020201$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020202
20203else
20204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20205fi
20206
20207# Build a version of ImageMagick which operates uninstalled.
20208# Used to build distributions located via MAGICK_HOME / executable path
20209# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020210if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020211 enableval=$enable_installed; enable_installed=$enableval
20212else
20213 enable_installed='yes'
20214fi
20215
20216
20217if test "$enable_installed" = 'yes'; then
20218
cristy8b350f62009-11-15 23:12:43 +000020219$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020220
20221else
20222 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20223fi
20224
20225# Permit enciphering and deciphering image pixels.
20226# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020227if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020228 enableval=$enable_cipher; enable_cipher=$enableval
20229else
20230 enable_cipher='yes'
20231fi
20232
20233
20234if test "$enable_cipher" = 'yes'; then
20235
cristy8b350f62009-11-15 23:12:43 +000020236$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020237
20238fi
20239
20240# Build an embeddable version of ImageMagick.
20241# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020242if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020243 enableval=$enable_embeddable; enable_embeddable=$enableval
20244else
20245 enable_embeddable='no'
20246fi
20247
20248
20249if test "$enable_embeddable" = 'yes'; then
20250
cristy8b350f62009-11-15 23:12:43 +000020251$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020252
20253fi
20254
20255# Build a high dynamic range version of ImageMagick.
20256# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020257if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020258 enableval=$enable_hdri; enable_hdri=$enableval
20259else
20260 enable_hdri='no'
20261fi
20262
20263
20264MAGICK_HDRI=""
20265if test "$enable_hdri" = 'yes'; then
20266 MAGICK_HDRI="HDRI"
20267
cristy8b350f62009-11-15 23:12:43 +000020268$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020269
cristyfd9dcd42010-08-08 18:07:02 +000020270 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020271fi
20272
cristy3ed852e2009-09-05 21:47:34 +000020273# Build a version of ImageMagick with assert statements.
20274# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020275if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020276 enableval=$enable_assert; enable_assert=$enableval
20277else
20278 enable_assert='yes'
20279fi
20280
20281
20282if test "$enable_assert" = 'no'; then
20283
cristy8b350f62009-11-15 23:12:43 +000020284$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020285
20286fi
20287
20288# Add configure option --enable-maintainer-mode which enables dependency
20289# checking and generation useful to package maintainers. This is made an
20290# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020291
20292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20293$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20294 # Check whether --enable-maintainer-mode was given.
20295if test "${enable_maintainer_mode+set}" = set; then :
20296 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20297else
20298 USE_MAINTAINER_MODE=no
20299fi
20300
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20302$as_echo "$USE_MAINTAINER_MODE" >&6; }
20303 if test $USE_MAINTAINER_MODE = yes; then
20304 MAINTAINER_MODE_TRUE=
20305 MAINTAINER_MODE_FALSE='#'
20306else
20307 MAINTAINER_MODE_TRUE='#'
20308 MAINTAINER_MODE_FALSE=
20309fi
20310
20311 MAINT=$MAINTAINER_MODE_TRUE
20312
20313
cristy3ed852e2009-09-05 21:47:34 +000020314
20315
20316# Enable ccmalloc memory debugging support
20317# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020318if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020319 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20320else
20321 enable_ccmalloc='no'
20322fi
20323
20324
20325# Enable Electric Fence memory debugging support
20326# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020327if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020328 enableval=$enable_efence; enable_efence=$enableval
20329else
20330 enable_efence='no'
20331fi
20332
20333
20334# Enable prof-based profiling support
20335# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020336if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020337 enableval=$enable_prof; enable_prof=$enableval
20338else
20339 enable_prof='no'
20340fi
20341
20342
20343# Enable gprof-based profiling support
20344# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020345if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020346 enableval=$enable_gprof; enable_gprof=$enableval
20347else
20348 enable_gprof='no'
20349fi
20350
20351
20352# Enable gcov-based profiling support
20353# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020354if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020355 enableval=$enable_gcov; enable_gcov=$enableval
20356else
20357 enable_gcov='no'
20358fi
20359
20360
20361enable_profiling='no'
20362if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20363 enable_profiling='yes'
20364 if test "$libtool_build_shared_libs" = 'yes'; then
20365 echo "Warning: Can not profile code using shared libraries"
20366 fi
20367fi
20368
20369# Magick API method prefix
20370
20371# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020372if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020373 withval=$with_method_prefix; with_method_prefix=$enableval
20374else
20375 with_method_prefix=''
20376fi
20377
20378
20379if test "$with_method_prefix" != ''; then
20380
20381cat >>confdefs.h <<_ACEOF
20382#define NAMESPACE_PREFIX $with_method_prefix
20383_ACEOF
20384
20385fi
20386
20387# Number of bits in a Quantum
20388
20389# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020390if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020391 withval=$with_quantum_depth; with_quantum_depth=$withval
20392else
20393 with_quantum_depth=16
20394fi
20395
20396
20397if test "$with_quantum_depth" != '8'; then
20398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20399fi
20400
20401case "${with_quantum_depth}" in
20402 8 ) ;;
20403 16 ) ;;
20404 32 ) ;;
20405 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020406 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020407esac
cristycdae12a2010-09-19 02:24:31 +000020408if test "$enable_hdri" = 'yes'; then
20409 with_quantum_depth=16
20410fi
cristy3ed852e2009-09-05 21:47:34 +000020411QUANTUM_DEPTH="$with_quantum_depth"
20412
20413cat >>confdefs.h <<_ACEOF
20414#define QUANTUM_DEPTH $QUANTUM_DEPTH
20415_ACEOF
20416
20417
20418# Set pixel cache threshold
20419
20420# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020421if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020422 withval=$with_cache; with_cache=$withval
20423else
20424 with_cache=''
20425fi
20426
20427
20428if test "$with_cache" != ''; then
20429
20430cat >>confdefs.h <<_ACEOF
20431#define PixelCacheThreshold $with_cache
20432_ACEOF
20433
20434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20435fi
20436
20437# Disable/Enable support for full delegate paths
20438
20439# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020440if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020441 withval=$with_frozenpaths; with_frozenpaths=$withval
20442else
20443 with_frozenpaths='no'
20444fi
20445
20446
20447# Enable build/install of Magick++
20448
20449# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020450if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020451 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20452else
20453 with_magick_plus_plus='yes'
20454fi
20455
20456
20457# Disable build/install of PerlMagick.
20458
20459# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020460if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020461 withval=$with_perl; with_perl=$withval
20462else
cristyb5f4e2f2010-04-25 00:49:11 +000020463 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020464fi
20465
20466
20467# Options to pass when configuring PerlMagick
20468
20469# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020470if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020471 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020472fi
20473
20474
cristy3ed852e2009-09-05 21:47:34 +000020475
20476# Enable umem, object-caching memory allocation library.
20477
20478# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020479if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020480 withval=$with_umem; with_umem=$withval
20481else
20482 with_umem='no'
20483fi
20484
20485if test "$with_umem" != 'yes' ; then
20486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20487fi
20488
20489#
20490# Specify path to shared libstdc++ if not in normal location
20491#
20492
20493# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020494if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020495 withval=$with_libstdc; with_libstdc=$withval
20496else
20497 with_libstdc=''
20498fi
20499
20500
20501if test "$with_libstdc" != ''; then
20502 if test -d "$with_libstdc"; then
20503 LIBSTDCLDFLAGS="-L$with_libstdc"
20504 fi
20505fi
20506
20507
20508# Does gcc required -traditional?
20509if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020511$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020512if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020513 $as_echo_n "(cached) " >&6
20514else
20515 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020517/* end confdefs.h. */
20518#include <sgtty.h>
20519Autoconf TIOCGETP
20520_ACEOF
20521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020522 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020523 ac_cv_prog_gcc_traditional=yes
20524else
20525 ac_cv_prog_gcc_traditional=no
20526fi
20527rm -f conftest*
20528
20529
20530 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020532/* end confdefs.h. */
20533#include <termio.h>
20534Autoconf TCGETA
20535_ACEOF
20536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020537 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020538 ac_cv_prog_gcc_traditional=yes
20539fi
20540rm -f conftest*
20541
20542 fi
20543fi
cristy8b350f62009-11-15 23:12:43 +000020544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020545$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20546 if test $ac_cv_prog_gcc_traditional = yes; then
20547 CC="$CC -traditional"
20548 fi
20549fi
20550
20551
20552########
20553#
20554# Set defines required to build DLLs and modules using MinGW
20555#
20556########
20557# These options are set for multi-thread DLL module build
20558# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20559# module: _DLL
20560# executable/Magick++: _DLL _MAGICKMOD_
20561MODULE_EXTRA_CPPFLAGS=''
20562LIBRARY_EXTRA_CPPFLAGS=''
20563if test "${native_win32_build}" = 'yes'; then
20564 if test "${libtool_build_shared_libs}" = 'yes'; then
20565 CPPFLAGS="$CPPFLAGS -D_DLL"
20566 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20567 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20568 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20569 if test "$with_modules" = 'yes'; then
20570 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20571 else
20572 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20573 fi
20574 else
20575 CPPFLAGS="$CPPFLAGS -D_LIB"
20576 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20577 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20578 fi
20579 if test "$with_threads" = 'yes'; then
20580 CPPFLAGS="$CPPFLAGS -D_MT"
20581 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20582 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20583 fi
20584fi
20585
20586
20587
20588# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020590$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020591if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020592 $as_echo_n "(cached) " >&6
20593else
cristy8b350f62009-11-15 23:12:43 +000020594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020595/* end confdefs.h. */
20596#include <stdlib.h>
20597#include <stdarg.h>
20598#include <string.h>
20599#include <float.h>
20600
20601int
20602main ()
20603{
20604
20605 ;
20606 return 0;
20607}
20608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020609if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020610 ac_cv_header_stdc=yes
20611else
cristy8b350f62009-11-15 23:12:43 +000020612 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020613fi
cristy3ed852e2009-09-05 21:47:34 +000020614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615
20616if test $ac_cv_header_stdc = yes; then
20617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020619/* end confdefs.h. */
20620#include <string.h>
20621
20622_ACEOF
20623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020624 $EGREP "memchr" >/dev/null 2>&1; then :
20625
cristy3ed852e2009-09-05 21:47:34 +000020626else
20627 ac_cv_header_stdc=no
20628fi
20629rm -f conftest*
20630
20631fi
20632
20633if test $ac_cv_header_stdc = yes; then
20634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020636/* end confdefs.h. */
20637#include <stdlib.h>
20638
20639_ACEOF
20640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020641 $EGREP "free" >/dev/null 2>&1; then :
20642
cristy3ed852e2009-09-05 21:47:34 +000020643else
20644 ac_cv_header_stdc=no
20645fi
20646rm -f conftest*
20647
20648fi
20649
20650if test $ac_cv_header_stdc = yes; then
20651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020652 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020653 :
20654else
cristy8b350f62009-11-15 23:12:43 +000020655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020656/* end confdefs.h. */
20657#include <ctype.h>
20658#include <stdlib.h>
20659#if ((' ' & 0x0FF) == 0x020)
20660# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20661# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20662#else
20663# define ISLOWER(c) \
20664 (('a' <= (c) && (c) <= 'i') \
20665 || ('j' <= (c) && (c) <= 'r') \
20666 || ('s' <= (c) && (c) <= 'z'))
20667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20668#endif
20669
20670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20671int
20672main ()
20673{
20674 int i;
20675 for (i = 0; i < 256; i++)
20676 if (XOR (islower (i), ISLOWER (i))
20677 || toupper (i) != TOUPPER (i))
20678 return 2;
20679 return 0;
20680}
20681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020682if ac_fn_c_try_run "$LINENO"; then :
20683
cristy3ed852e2009-09-05 21:47:34 +000020684else
cristy8b350f62009-11-15 23:12:43 +000020685 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020686fi
cristy8b350f62009-11-15 23:12:43 +000020687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20688 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020689fi
20690
cristy3ed852e2009-09-05 21:47:34 +000020691fi
20692fi
cristy8b350f62009-11-15 23:12:43 +000020693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020694$as_echo "$ac_cv_header_stdc" >&6; }
20695if test $ac_cv_header_stdc = yes; then
20696
cristy8b350f62009-11-15 23:12:43 +000020697$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020698
20699fi
20700
20701if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020702 { $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 +000020703 header files. Compilation cannot proceed. Please install the ANSI C
20704 headers and rerun this script." >&5
20705$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20706 header files. Compilation cannot proceed. Please install the ANSI C
20707 headers and rerun this script." >&2;};
20708fi
cristya0b81c32010-01-22 02:54:33 +000020709
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20711$as_echo_n "checking whether to enable assertions... " >&6; }
20712 # Check whether --enable-assert was given.
20713if test "${enable_assert+set}" = set; then :
20714 enableval=$enable_assert; ac_enable_assert=$enableval
20715 if test "x$enableval" = xno; then :
20716
20717$as_echo "#define NDEBUG 1" >>confdefs.h
20718
20719elif test "x$enableval" != xyes; then :
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20721$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20722 ac_enable_assert=yes
20723fi
20724else
20725 ac_enable_assert=yes
20726fi
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20729$as_echo "$ac_enable_assert" >&6; }
20730
cristy3ed852e2009-09-05 21:47:34 +000020731ac_header_dirent=no
20732for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20733 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020735$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy98dddb52010-11-04 00:30:15 +000020736if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020737 $as_echo_n "(cached) " >&6
20738else
cristy8b350f62009-11-15 23:12:43 +000020739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020740/* end confdefs.h. */
20741#include <sys/types.h>
20742#include <$ac_hdr>
20743
20744int
20745main ()
20746{
20747if ((DIR *) 0)
20748return 0;
20749 ;
20750 return 0;
20751}
20752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020753if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020754 eval "$as_ac_Header=yes"
20755else
cristy8b350f62009-11-15 23:12:43 +000020756 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020757fi
cristy3ed852e2009-09-05 21:47:34 +000020758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759fi
cristy8b350f62009-11-15 23:12:43 +000020760eval ac_res=\$$as_ac_Header
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020762$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000020763if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020764 cat >>confdefs.h <<_ACEOF
20765#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20766_ACEOF
20767
20768ac_header_dirent=$ac_hdr; break
20769fi
20770
20771done
20772# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20773if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020775$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020776if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020777 $as_echo_n "(cached) " >&6
20778else
20779 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020781/* end confdefs.h. */
20782
20783/* Override any GCC internal prototype to avoid an error.
20784 Use char because int might match the return type of a GCC
20785 builtin and then its argument prototype would still apply. */
20786#ifdef __cplusplus
20787extern "C"
20788#endif
20789char opendir ();
20790int
20791main ()
20792{
20793return opendir ();
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798for ac_lib in '' dir; do
20799 if test -z "$ac_lib"; then
20800 ac_res="none required"
20801 else
20802 ac_res=-l$ac_lib
20803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20804 fi
cristy8b350f62009-11-15 23:12:43 +000020805 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020806 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020807fi
cristy8b350f62009-11-15 23:12:43 +000020808rm -f core conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext
20810 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020811 break
20812fi
20813done
cristy8b350f62009-11-15 23:12:43 +000020814if test "${ac_cv_search_opendir+set}" = set; then :
20815
cristy3ed852e2009-09-05 21:47:34 +000020816else
20817 ac_cv_search_opendir=no
20818fi
20819rm conftest.$ac_ext
20820LIBS=$ac_func_search_save_LIBS
20821fi
cristy8b350f62009-11-15 23:12:43 +000020822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020823$as_echo "$ac_cv_search_opendir" >&6; }
20824ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020825if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20827
20828fi
20829
20830else
cristy8b350f62009-11-15 23:12:43 +000020831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020832$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020833if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020834 $as_echo_n "(cached) " >&6
20835else
20836 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020838/* end confdefs.h. */
20839
20840/* Override any GCC internal prototype to avoid an error.
20841 Use char because int might match the return type of a GCC
20842 builtin and then its argument prototype would still apply. */
20843#ifdef __cplusplus
20844extern "C"
20845#endif
20846char opendir ();
20847int
20848main ()
20849{
20850return opendir ();
20851 ;
20852 return 0;
20853}
20854_ACEOF
20855for ac_lib in '' x; do
20856 if test -z "$ac_lib"; then
20857 ac_res="none required"
20858 else
20859 ac_res=-l$ac_lib
20860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20861 fi
cristy8b350f62009-11-15 23:12:43 +000020862 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020863 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020864fi
cristy8b350f62009-11-15 23:12:43 +000020865rm -f core conftest.err conftest.$ac_objext \
20866 conftest$ac_exeext
20867 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020868 break
20869fi
20870done
cristy8b350f62009-11-15 23:12:43 +000020871if test "${ac_cv_search_opendir+set}" = set; then :
20872
cristy3ed852e2009-09-05 21:47:34 +000020873else
20874 ac_cv_search_opendir=no
20875fi
20876rm conftest.$ac_ext
20877LIBS=$ac_func_search_save_LIBS
20878fi
cristy8b350f62009-11-15 23:12:43 +000020879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020880$as_echo "$ac_cv_search_opendir" >&6; }
20881ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020882if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20884
20885fi
20886
20887fi
20888
20889
20890# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020891for 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 +000020892do :
20893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20894ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000020895if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020896 cat >>confdefs.h <<_ACEOF
20897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20898_ACEOF
20899
20900fi
20901
20902done
20903
20904
20905########
20906#
20907# Checks for typedefs, structures, and compiler characteristics.
20908#
20909########
20910
cristy8b350f62009-11-15 23:12:43 +000020911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020912$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020913if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020914 $as_echo_n "(cached) " >&6
20915else
cristy8b350f62009-11-15 23:12:43 +000020916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020917/* end confdefs.h. */
20918
20919#include <stdbool.h>
20920#ifndef bool
20921 "error: bool is not defined"
20922#endif
20923#ifndef false
20924 "error: false is not defined"
20925#endif
20926#if false
20927 "error: false is not 0"
20928#endif
20929#ifndef true
20930 "error: true is not defined"
20931#endif
20932#if true != 1
20933 "error: true is not 1"
20934#endif
20935#ifndef __bool_true_false_are_defined
20936 "error: __bool_true_false_are_defined is not defined"
20937#endif
20938
20939 struct s { _Bool s: 1; _Bool t; } s;
20940
20941 char a[true == 1 ? 1 : -1];
20942 char b[false == 0 ? 1 : -1];
20943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20944 char d[(bool) 0.5 == true ? 1 : -1];
20945 bool e = &s;
20946 char f[(_Bool) 0.0 == false ? 1 : -1];
20947 char g[true];
20948 char h[sizeof (_Bool)];
20949 char i[sizeof s.t];
20950 enum { j = false, k = true, l = false * true, m = true * 256 };
20951 /* The following fails for
20952 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20953 _Bool n[m];
20954 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20955 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20956# if defined __xlc__ || defined __GNUC__
20957 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20958 reported by James Lemley on 2005-10-05; see
20959 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20960 This test is not quite right, since xlc is allowed to
20961 reject this program, as the initializer for xlcbug is
20962 not one of the forms that C requires support for.
20963 However, doing the test right would require a runtime
20964 test, and that would make cross-compilation harder.
20965 Let us hope that IBM fixes the xlc bug, and also adds
20966 support for this kind of constant expression. In the
20967 meantime, this test will reject xlc, which is OK, since
20968 our stdbool.h substitute should suffice. We also test
20969 this with GCC, where it should work, to detect more
20970 quickly whether someone messes up the test in the
20971 future. */
20972 char digs[] = "0123456789";
20973 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20974# endif
20975 /* Catch a bug in an HP-UX C compiler. See
20976 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20977 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20978 */
20979 _Bool q = true;
20980 _Bool *pq = &q;
20981
20982int
20983main ()
20984{
20985
20986 *pq |= q;
20987 *pq |= ! q;
20988 /* Refer to every declared value, to avoid compiler optimizations. */
20989 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20990 + !m + !n + !o + !p + !q + !pq);
20991
20992 ;
20993 return 0;
20994}
20995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 ac_cv_header_stdbool_h=yes
20998else
cristy8b350f62009-11-15 23:12:43 +000020999 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021000fi
cristy3ed852e2009-09-05 21:47:34 +000021001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002fi
cristy8b350f62009-11-15 23:12:43 +000021003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021004$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021005ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21006if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021007
21008cat >>confdefs.h <<_ACEOF
21009#define HAVE__BOOL 1
21010_ACEOF
21011
21012
21013fi
21014
21015if test $ac_cv_header_stdbool_h = yes; then
21016
cristy8b350f62009-11-15 23:12:43 +000021017$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021018
21019fi
21020
cristy8b350f62009-11-15 23:12:43 +000021021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021022$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021023if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 $as_echo_n "(cached) " >&6
21025else
cristy8b350f62009-11-15 23:12:43 +000021026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021027/* end confdefs.h. */
21028
21029int
21030main ()
21031{
21032
21033volatile int x;
21034int * volatile y = (int *) 0;
21035return !x && !y;
21036 ;
21037 return 0;
21038}
21039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021041 ac_cv_c_volatile=yes
21042else
cristy8b350f62009-11-15 23:12:43 +000021043 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021044fi
cristy3ed852e2009-09-05 21:47:34 +000021045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046fi
cristy8b350f62009-11-15 23:12:43 +000021047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021048$as_echo "$ac_cv_c_volatile" >&6; }
21049if test $ac_cv_c_volatile = no; then
21050
cristy8b350f62009-11-15 23:12:43 +000021051$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021052
21053fi
21054
cristy8b350f62009-11-15 23:12:43 +000021055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021056$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021057if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 $as_echo_n "(cached) " >&6
21059else
cristy8b350f62009-11-15 23:12:43 +000021060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021061/* end confdefs.h. */
21062#define x(y) #y
21063
21064char *s = x(teststring);
21065_ACEOF
21066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021067 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 ac_cv_c_stringize=no
21069else
21070 ac_cv_c_stringize=yes
21071fi
21072rm -f conftest*
21073
21074fi
cristy8b350f62009-11-15 23:12:43 +000021075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021076$as_echo "$ac_cv_c_stringize" >&6; }
21077if test $ac_cv_c_stringize = yes; then
21078
cristy8b350f62009-11-15 23:12:43 +000021079$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021080
21081fi
21082
cristy8b350f62009-11-15 23:12:43 +000021083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021084$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021085if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 $as_echo_n "(cached) " >&6
21087else
cristy8b350f62009-11-15 23:12:43 +000021088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021089/* end confdefs.h. */
21090#include <sys/types.h>
21091#include <sys/stat.h>
21092
21093#if defined S_ISBLK && defined S_IFDIR
21094extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21095#endif
21096
21097#if defined S_ISBLK && defined S_IFCHR
21098extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21099#endif
21100
21101#if defined S_ISLNK && defined S_IFREG
21102extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21103#endif
21104
21105#if defined S_ISSOCK && defined S_IFREG
21106extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21107#endif
21108
21109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 ac_cv_header_stat_broken=no
21112else
cristy8b350f62009-11-15 23:12:43 +000021113 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021114fi
cristy3ed852e2009-09-05 21:47:34 +000021115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116fi
cristy8b350f62009-11-15 23:12:43 +000021117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021118$as_echo "$ac_cv_header_stat_broken" >&6; }
21119if test $ac_cv_header_stat_broken = yes; then
21120
cristy8b350f62009-11-15 23:12:43 +000021121$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021122
21123fi
21124
cristy8b350f62009-11-15 23:12:43 +000021125{ $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 +000021126$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021127if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 $as_echo_n "(cached) " >&6
21129else
cristy8b350f62009-11-15 23:12:43 +000021130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021131/* end confdefs.h. */
21132#include <sys/types.h>
21133#include <sys/time.h>
21134#include <time.h>
21135
21136int
21137main ()
21138{
21139if ((struct tm *) 0)
21140return 0;
21141 ;
21142 return 0;
21143}
21144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021145if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021146 ac_cv_header_time=yes
21147else
cristy8b350f62009-11-15 23:12:43 +000021148 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021149fi
cristy3ed852e2009-09-05 21:47:34 +000021150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151fi
cristy8b350f62009-11-15 23:12:43 +000021152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021153$as_echo "$ac_cv_header_time" >&6; }
21154if test $ac_cv_header_time = yes; then
21155
cristy8b350f62009-11-15 23:12:43 +000021156$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021157
21158fi
21159
cristy8b350f62009-11-15 23:12:43 +000021160{ $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 +000021161$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021162if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021163 $as_echo_n "(cached) " >&6
21164else
cristy8b350f62009-11-15 23:12:43 +000021165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021166/* end confdefs.h. */
21167#include <sys/types.h>
21168#include <time.h>
21169
21170int
21171main ()
21172{
21173struct tm tm;
21174 int *p = &tm.tm_sec;
21175 return !p;
21176 ;
21177 return 0;
21178}
21179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021180if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021181 ac_cv_struct_tm=time.h
21182else
cristy8b350f62009-11-15 23:12:43 +000021183 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021184fi
cristy3ed852e2009-09-05 21:47:34 +000021185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186fi
cristy8b350f62009-11-15 23:12:43 +000021187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021188$as_echo "$ac_cv_struct_tm" >&6; }
21189if test $ac_cv_struct_tm = sys/time.h; then
21190
cristy8b350f62009-11-15 23:12:43 +000021191$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021192
21193fi
21194
cristy92703d82010-04-26 00:18:18 +000021195ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21196#include <$ac_cv_struct_tm>
21197
21198"
21199if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21200
21201cat >>confdefs.h <<_ACEOF
21202#define HAVE_STRUCT_TM_TM_ZONE 1
21203_ACEOF
21204
21205
21206fi
21207
21208if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21209
21210$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21211
21212else
21213 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21214"
21215if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21216 ac_have_decl=1
21217else
21218 ac_have_decl=0
21219fi
21220
21221cat >>confdefs.h <<_ACEOF
21222#define HAVE_DECL_TZNAME $ac_have_decl
21223_ACEOF
21224
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21226$as_echo_n "checking for tzname... " >&6; }
21227if test "${ac_cv_var_tzname+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229else
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231/* end confdefs.h. */
21232#include <time.h>
21233#if !HAVE_DECL_TZNAME
21234extern char *tzname[];
21235#endif
21236
21237int
21238main ()
21239{
21240return tzname[0][0];
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245if ac_fn_c_try_link "$LINENO"; then :
21246 ac_cv_var_tzname=yes
21247else
21248 ac_cv_var_tzname=no
21249fi
21250rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21252fi
21253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21254$as_echo "$ac_cv_var_tzname" >&6; }
21255 if test $ac_cv_var_tzname = yes; then
21256
21257$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21258
21259 fi
21260fi
21261
cristy8b350f62009-11-15 23:12:43 +000021262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021263$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021264if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021265 $as_echo_n "(cached) " >&6
21266else
21267 echo '#! /bin/cat
21268exit 69
21269' >conftest
21270chmod u+x conftest
21271(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21272if test $? -ne 69; then
21273 ac_cv_sys_interpreter=yes
21274else
21275 ac_cv_sys_interpreter=no
21276fi
21277rm -f conftest
21278fi
cristy8b350f62009-11-15 23:12:43 +000021279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021280$as_echo "$ac_cv_sys_interpreter" >&6; }
21281interpval=$ac_cv_sys_interpreter
21282
21283
cristy3ed852e2009-09-05 21:47:34 +000021284# If the C compiler supports the keyword inline, do nothing. Otherwise
21285# define inline to __inline__ or __inline if it accepts one of those,
21286# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021288$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021289if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021290 $as_echo_n "(cached) " >&6
21291else
21292 ac_cv_c_inline=no
21293for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021295/* end confdefs.h. */
21296#ifndef __cplusplus
21297typedef int foo_t;
21298static $ac_kw foo_t static_foo () {return 0; }
21299$ac_kw foo_t foo () {return 0; }
21300#endif
21301
21302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021305fi
cristy3ed852e2009-09-05 21:47:34 +000021306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 test "$ac_cv_c_inline" != no && break
21308done
21309
21310fi
cristy8b350f62009-11-15 23:12:43 +000021311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021312$as_echo "$ac_cv_c_inline" >&6; }
21313
cristy3ed852e2009-09-05 21:47:34 +000021314case $ac_cv_c_inline in
21315 inline | yes) ;;
21316 *)
21317 case $ac_cv_c_inline in
21318 no) ac_val=;;
21319 *) ac_val=$ac_cv_c_inline;;
21320 esac
21321 cat >>confdefs.h <<_ACEOF
21322#ifndef __cplusplus
21323#define inline $ac_val
21324#endif
21325_ACEOF
21326 ;;
21327esac
21328
21329
21330# If the C compiler supports the keyword restrict, do nothing. Otherwise
21331# define restrict to __restrict__ or __restrict if it accepts one of those,
21332# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021334$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021335if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021336 $as_echo_n "(cached) " >&6
21337else
21338 ac_cv_c_restrict=no
21339 # The order here caters to the fact that C++ does not require restrict.
21340 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021342/* end confdefs.h. */
21343typedef int * int_ptr;
21344 int foo (int_ptr $ac_kw ip) {
21345 return ip[0];
21346 }
21347int
21348main ()
21349{
21350int s[1];
21351 int * $ac_kw t = s;
21352 t[0] = 0;
21353 return foo(t)
21354 ;
21355 return 0;
21356}
21357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021358if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021360fi
cristy3ed852e2009-09-05 21:47:34 +000021361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 test "$ac_cv_c_restrict" != no && break
21363 done
21364
21365fi
cristy8b350f62009-11-15 23:12:43 +000021366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021367$as_echo "$ac_cv_c_restrict" >&6; }
21368
cristy3ed852e2009-09-05 21:47:34 +000021369 case $ac_cv_c_restrict in
21370 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021371 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021372 ;;
21373 *) cat >>confdefs.h <<_ACEOF
21374#define restrict $ac_cv_c_restrict
21375_ACEOF
21376 ;;
21377 esac
21378
21379
21380# If words are stored with the most significant byte first (like
21381# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021383$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021384if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021385 $as_echo_n "(cached) " >&6
21386else
21387 ac_cv_c_bigendian=unknown
21388 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021390/* end confdefs.h. */
21391#ifndef __APPLE_CC__
21392 not a universal capable compiler
21393 #endif
21394 typedef int dummy;
21395
21396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021398
21399 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021400 # there are at least two -arch flags with different values.
21401 ac_arch=
21402 ac_prev=
21403 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21404 if test -n "$ac_prev"; then
21405 case $ac_word in
21406 i?86 | x86_64 | ppc | ppc64)
21407 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21408 ac_arch=$ac_word
21409 else
21410 ac_cv_c_bigendian=universal
21411 break
21412 fi
21413 ;;
21414 esac
21415 ac_prev=
21416 elif test "x$ac_word" = "x-arch"; then
21417 ac_prev=arch
21418 fi
21419 done
cristy3ed852e2009-09-05 21:47:34 +000021420fi
cristy3ed852e2009-09-05 21:47:34 +000021421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 if test $ac_cv_c_bigendian = unknown; then
21423 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021425/* end confdefs.h. */
21426#include <sys/types.h>
21427 #include <sys/param.h>
21428
21429int
21430main ()
21431{
21432#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21433 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21434 && LITTLE_ENDIAN)
21435 bogus endian macros
21436 #endif
21437
21438 ;
21439 return 0;
21440}
21441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021442if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021443 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021445/* end confdefs.h. */
21446#include <sys/types.h>
21447 #include <sys/param.h>
21448
21449int
21450main ()
21451{
21452#if BYTE_ORDER != BIG_ENDIAN
21453 not big endian
21454 #endif
21455
21456 ;
21457 return 0;
21458}
21459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021460if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021461 ac_cv_c_bigendian=yes
21462else
cristy8b350f62009-11-15 23:12:43 +000021463 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021464fi
cristy3ed852e2009-09-05 21:47:34 +000021465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021466fi
cristy3ed852e2009-09-05 21:47:34 +000021467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 fi
21469 if test $ac_cv_c_bigendian = unknown; then
21470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021472/* end confdefs.h. */
21473#include <limits.h>
21474
21475int
21476main ()
21477{
21478#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21479 bogus endian macros
21480 #endif
21481
21482 ;
21483 return 0;
21484}
21485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021486if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021487 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021489/* end confdefs.h. */
21490#include <limits.h>
21491
21492int
21493main ()
21494{
21495#ifndef _BIG_ENDIAN
21496 not big endian
21497 #endif
21498
21499 ;
21500 return 0;
21501}
21502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021503if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 ac_cv_c_bigendian=yes
21505else
cristy8b350f62009-11-15 23:12:43 +000021506 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021507fi
cristy3ed852e2009-09-05 21:47:34 +000021508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021509fi
cristy3ed852e2009-09-05 21:47:34 +000021510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 fi
21512 if test $ac_cv_c_bigendian = unknown; then
21513 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021514 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021517/* end confdefs.h. */
21518short int ascii_mm[] =
21519 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21520 short int ascii_ii[] =
21521 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21522 int use_ascii (int i) {
21523 return ascii_mm[i] + ascii_ii[i];
21524 }
21525 short int ebcdic_ii[] =
21526 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21527 short int ebcdic_mm[] =
21528 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21529 int use_ebcdic (int i) {
21530 return ebcdic_mm[i] + ebcdic_ii[i];
21531 }
21532 extern int foo;
21533
21534int
21535main ()
21536{
21537return use_ascii (foo) == use_ebcdic (foo);
21538 ;
21539 return 0;
21540}
21541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021542if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21544 ac_cv_c_bigendian=yes
21545 fi
21546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21547 if test "$ac_cv_c_bigendian" = unknown; then
21548 ac_cv_c_bigendian=no
21549 else
21550 # finding both strings is unlikely to happen, but who knows?
21551 ac_cv_c_bigendian=unknown
21552 fi
21553 fi
cristy3ed852e2009-09-05 21:47:34 +000021554fi
cristy3ed852e2009-09-05 21:47:34 +000021555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021558/* end confdefs.h. */
21559$ac_includes_default
21560int
21561main ()
21562{
21563
21564 /* Are we little or big endian? From Harbison&Steele. */
21565 union
21566 {
21567 long int l;
21568 char c[sizeof (long int)];
21569 } u;
21570 u.l = 1;
21571 return u.c[sizeof (long int) - 1] == 1;
21572
21573 ;
21574 return 0;
21575}
21576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021577if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021578 ac_cv_c_bigendian=no
21579else
cristy8b350f62009-11-15 23:12:43 +000021580 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021581fi
cristy8b350f62009-11-15 23:12:43 +000021582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21583 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021584fi
21585
cristy3ed852e2009-09-05 21:47:34 +000021586 fi
21587fi
cristy8b350f62009-11-15 23:12:43 +000021588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021589$as_echo "$ac_cv_c_bigendian" >&6; }
21590 case $ac_cv_c_bigendian in #(
21591 yes)
cristy8b350f62009-11-15 23:12:43 +000021592 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021593;; #(
21594 no)
21595 ;; #(
21596 universal)
21597
cristy8b350f62009-11-15 23:12:43 +000021598$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021599
21600 ;; #(
21601 *)
cristy98dddb52010-11-04 00:30:15 +000021602 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021603 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021604 esac
21605
21606
21607# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021608ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21609if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021610
cristy3ed852e2009-09-05 21:47:34 +000021611else
21612
21613cat >>confdefs.h <<_ACEOF
21614#define mode_t int
21615_ACEOF
21616
21617fi
21618
21619
21620# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021621ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21622if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021623
cristy3ed852e2009-09-05 21:47:34 +000021624else
21625
21626cat >>confdefs.h <<_ACEOF
21627#define off_t long int
21628_ACEOF
21629
21630fi
21631
21632
21633# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021634ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21635if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021636
cristy3ed852e2009-09-05 21:47:34 +000021637else
21638
21639cat >>confdefs.h <<_ACEOF
21640#define pid_t int
21641_ACEOF
21642
21643fi
21644
21645
21646# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021647ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21648if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021649
cristy3ed852e2009-09-05 21:47:34 +000021650else
21651
21652cat >>confdefs.h <<_ACEOF
21653#define size_t unsigned int
21654_ACEOF
21655
21656fi
21657
21658
21659# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021660ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21661if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021662
cristy3ed852e2009-09-05 21:47:34 +000021663else
21664
21665cat >>confdefs.h <<_ACEOF
21666#define ssize_t int
21667_ACEOF
21668
21669fi
21670
21671
21672# If the C compiler supports a working long double type with more range
21673# or precision than the double type, define HAVE_LONG_DOUBLE.
21674
cristy8b350f62009-11-15 23:12:43 +000021675 { $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 +000021676$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021677if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 $as_echo_n "(cached) " >&6
21679else
cristy8b350f62009-11-15 23:12:43 +000021680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021681/* end confdefs.h. */
21682#include <float.h>
21683 long double const a[] =
21684 {
21685 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21686 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21687 };
21688 long double
21689 f (long double x)
21690 {
21691 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21692 + (x ? f (x) : 'c'));
21693 }
21694
21695int
21696main ()
21697{
21698static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21699 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21700 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21701 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21702 && (int) LDBL_EPSILON == 0
21703 )];
21704test_array [0] = 0
21705
21706 ;
21707 return 0;
21708}
21709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021710if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021711 ac_cv_type_long_double_wider=yes
21712else
cristy8b350f62009-11-15 23:12:43 +000021713 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021714fi
cristy3ed852e2009-09-05 21:47:34 +000021715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716fi
cristy8b350f62009-11-15 23:12:43 +000021717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo "$ac_cv_type_long_double_wider" >&6; }
21719 if test $ac_cv_type_long_double_wider = yes; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723 fi
21724
21725
21726# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21727# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021730if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 $as_echo_n "(cached) " >&6
21732else
cristy8b350f62009-11-15 23:12:43 +000021733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021734/* end confdefs.h. */
21735$ac_includes_default
21736int
21737main ()
21738{
21739static int test_array [1 - 2 * !(((char) -1) < 0)];
21740test_array [0] = 0
21741
21742 ;
21743 return 0;
21744}
21745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 ac_cv_c_char_unsigned=no
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021750fi
cristy3ed852e2009-09-05 21:47:34 +000021751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752fi
cristy8b350f62009-11-15 23:12:43 +000021753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021754$as_echo "$ac_cv_c_char_unsigned" >&6; }
21755if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021756 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021757
21758fi
21759
21760
21761# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21762# The cast to long int works around a bug in the HP C Compiler
21763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21765# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021767$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021768if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 $as_echo_n "(cached) " >&6
21770else
cristy8b350f62009-11-15 23:12:43 +000021771 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 +000021772
cristy3ed852e2009-09-05 21:47:34 +000021773else
cristy8b350f62009-11-15 23:12:43 +000021774 if test "$ac_cv_type_signed_short" = yes; then
21775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021777as_fn_error 77 "cannot compute sizeof (signed short)
21778See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021779 else
21780 ac_cv_sizeof_signed_short=0
21781 fi
21782fi
cristy8b350f62009-11-15 23:12:43 +000021783
cristy3ed852e2009-09-05 21:47:34 +000021784fi
cristy8b350f62009-11-15 23:12:43 +000021785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021786$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21787
21788
21789
21790cat >>confdefs.h <<_ACEOF
21791#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21792_ACEOF
21793
21794
21795
21796# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21797# The cast to long int works around a bug in the HP C Compiler
21798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21800# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021802$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021803if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021804 $as_echo_n "(cached) " >&6
21805else
cristy8b350f62009-11-15 23:12:43 +000021806 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 +000021807
cristy3ed852e2009-09-05 21:47:34 +000021808else
cristy8b350f62009-11-15 23:12:43 +000021809 if test "$ac_cv_type_unsigned_short" = yes; then
21810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021812as_fn_error 77 "cannot compute sizeof (unsigned short)
21813See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021814 else
21815 ac_cv_sizeof_unsigned_short=0
21816 fi
21817fi
cristy8b350f62009-11-15 23:12:43 +000021818
cristy3ed852e2009-09-05 21:47:34 +000021819fi
cristy8b350f62009-11-15 23:12:43 +000021820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021821$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21822
21823
21824
21825cat >>confdefs.h <<_ACEOF
21826#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21827_ACEOF
21828
21829
21830
21831# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21832# The cast to long int works around a bug in the HP C Compiler
21833# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21834# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21835# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021838if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 $as_echo_n "(cached) " >&6
21840else
cristy8b350f62009-11-15 23:12:43 +000021841 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 +000021842
cristy3ed852e2009-09-05 21:47:34 +000021843else
cristy8b350f62009-11-15 23:12:43 +000021844 if test "$ac_cv_type_signed_int" = yes; then
21845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021847as_fn_error 77 "cannot compute sizeof (signed int)
21848See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021849 else
21850 ac_cv_sizeof_signed_int=0
21851 fi
21852fi
cristy8b350f62009-11-15 23:12:43 +000021853
cristy3ed852e2009-09-05 21:47:34 +000021854fi
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21857
21858
21859
21860cat >>confdefs.h <<_ACEOF
21861#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21862_ACEOF
21863
21864
21865
21866# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21867# The cast to long int works around a bug in the HP C Compiler
21868# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21869# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21870# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021872$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021873if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021874 $as_echo_n "(cached) " >&6
21875else
cristy8b350f62009-11-15 23:12:43 +000021876 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 +000021877
cristy3ed852e2009-09-05 21:47:34 +000021878else
cristy8b350f62009-11-15 23:12:43 +000021879 if test "$ac_cv_type_unsigned_int" = yes; then
21880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021882as_fn_error 77 "cannot compute sizeof (unsigned int)
21883See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021884 else
21885 ac_cv_sizeof_unsigned_int=0
21886 fi
21887fi
cristy8b350f62009-11-15 23:12:43 +000021888
cristy3ed852e2009-09-05 21:47:34 +000021889fi
cristy8b350f62009-11-15 23:12:43 +000021890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21892
21893
21894
21895cat >>confdefs.h <<_ACEOF
21896#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21897_ACEOF
21898
21899
21900
21901# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21902# The cast to long int works around a bug in the HP C Compiler
21903# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21904# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21905# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021907$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021908if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021909 $as_echo_n "(cached) " >&6
21910else
cristy8b350f62009-11-15 23:12:43 +000021911 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 +000021912
cristy3ed852e2009-09-05 21:47:34 +000021913else
cristy8b350f62009-11-15 23:12:43 +000021914 if test "$ac_cv_type_signed_long" = yes; then
21915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021917as_fn_error 77 "cannot compute sizeof (signed long)
21918See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021919 else
21920 ac_cv_sizeof_signed_long=0
21921 fi
21922fi
cristy8b350f62009-11-15 23:12:43 +000021923
cristy3ed852e2009-09-05 21:47:34 +000021924fi
cristy8b350f62009-11-15 23:12:43 +000021925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021926$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21927
21928
21929
21930cat >>confdefs.h <<_ACEOF
21931#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21932_ACEOF
21933
21934
21935
21936# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21937# The cast to long int works around a bug in the HP C Compiler
21938# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21939# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21940# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021943if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 $as_echo_n "(cached) " >&6
21945else
cristy8b350f62009-11-15 23:12:43 +000021946 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 +000021947
cristy3ed852e2009-09-05 21:47:34 +000021948else
cristy8b350f62009-11-15 23:12:43 +000021949 if test "$ac_cv_type_unsigned_long" = yes; then
21950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021952as_fn_error 77 "cannot compute sizeof (unsigned long)
21953See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021954 else
21955 ac_cv_sizeof_unsigned_long=0
21956 fi
21957fi
cristy8b350f62009-11-15 23:12:43 +000021958
cristy3ed852e2009-09-05 21:47:34 +000021959fi
cristy8b350f62009-11-15 23:12:43 +000021960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021961$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21962
21963
21964
21965cat >>confdefs.h <<_ACEOF
21966#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21967_ACEOF
21968
21969
21970
21971# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21972# 'signed long long' is not supported then the value defined is zero.
21973# The cast to long int works around a bug in the HP C Compiler
21974# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21975# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21976# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021979if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021980 $as_echo_n "(cached) " >&6
21981else
cristy8b350f62009-11-15 23:12:43 +000021982 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 +000021983
cristy3ed852e2009-09-05 21:47:34 +000021984else
cristy8b350f62009-11-15 23:12:43 +000021985 if test "$ac_cv_type_signed_long_long" = yes; then
21986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021988as_fn_error 77 "cannot compute sizeof (signed long long)
21989See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021990 else
21991 ac_cv_sizeof_signed_long_long=0
21992 fi
21993fi
cristy8b350f62009-11-15 23:12:43 +000021994
cristy3ed852e2009-09-05 21:47:34 +000021995fi
cristy8b350f62009-11-15 23:12:43 +000021996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021997$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21998
21999
22000
22001cat >>confdefs.h <<_ACEOF
22002#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22003_ACEOF
22004
22005
22006
22007# Obtain size of a 'unsigned long long' and define as
22008# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22009# supported then the value defined is zero.
22010# The cast to long int works around a bug in the HP C Compiler
22011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22013# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022015$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022016if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022017 $as_echo_n "(cached) " >&6
22018else
cristy8b350f62009-11-15 23:12:43 +000022019 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 +000022020
cristy3ed852e2009-09-05 21:47:34 +000022021else
cristy8b350f62009-11-15 23:12:43 +000022022 if test "$ac_cv_type_unsigned_long_long" = yes; then
22023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022025as_fn_error 77 "cannot compute sizeof (unsigned long long)
22026See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022027 else
22028 ac_cv_sizeof_unsigned_long_long=0
22029 fi
22030fi
cristy8b350f62009-11-15 23:12:43 +000022031
cristy3ed852e2009-09-05 21:47:34 +000022032fi
cristy8b350f62009-11-15 23:12:43 +000022033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22035
22036
22037
22038cat >>confdefs.h <<_ACEOF
22039#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22040_ACEOF
22041
22042
22043
22044# Obtain size of off_t and define as SIZEOF_OFF_T
22045# The cast to long int works around a bug in the HP C Compiler
22046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22048# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022051if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022052 $as_echo_n "(cached) " >&6
22053else
cristy8b350f62009-11-15 23:12:43 +000022054 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 +000022055
cristy3ed852e2009-09-05 21:47:34 +000022056else
cristy8b350f62009-11-15 23:12:43 +000022057 if test "$ac_cv_type_off_t" = yes; then
22058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022060as_fn_error 77 "cannot compute sizeof (off_t)
22061See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022062 else
22063 ac_cv_sizeof_off_t=0
22064 fi
22065fi
cristy8b350f62009-11-15 23:12:43 +000022066
cristy3ed852e2009-09-05 21:47:34 +000022067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$ac_cv_sizeof_off_t" >&6; }
22070
22071
22072
22073cat >>confdefs.h <<_ACEOF
22074#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22075_ACEOF
22076
22077
22078
22079# Obtain size of size_t and define as SIZEOF_SIZE_T
22080# The cast to long int works around a bug in the HP C Compiler
22081# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22082# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22083# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022086if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022087 $as_echo_n "(cached) " >&6
22088else
cristy8b350f62009-11-15 23:12:43 +000022089 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 +000022090
cristy3ed852e2009-09-05 21:47:34 +000022091else
cristy8b350f62009-11-15 23:12:43 +000022092 if test "$ac_cv_type_size_t" = yes; then
22093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022095as_fn_error 77 "cannot compute sizeof (size_t)
22096See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022097 else
22098 ac_cv_sizeof_size_t=0
22099 fi
22100fi
cristy8b350f62009-11-15 23:12:43 +000022101
cristy3ed852e2009-09-05 21:47:34 +000022102fi
cristy8b350f62009-11-15 23:12:43 +000022103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022104$as_echo "$ac_cv_sizeof_size_t" >&6; }
22105
22106
22107
22108cat >>confdefs.h <<_ACEOF
22109#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22110_ACEOF
22111
22112
22113
cristy330e9352010-06-01 18:42:49 +000022114# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22115# The cast to long int works around a bug in the HP C Compiler
22116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22118# This bug is HP SR number 8606223364.
22119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22120$as_echo_n "checking size of ssize_t... " >&6; }
22121if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22122 $as_echo_n "(cached) " >&6
22123else
22124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22125
22126else
22127 if test "$ac_cv_type_ssize_t" = yes; then
22128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022130as_fn_error 77 "cannot compute sizeof (ssize_t)
22131See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022132 else
22133 ac_cv_sizeof_ssize_t=0
22134 fi
22135fi
22136
22137fi
22138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22139$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22140
22141
22142
22143cat >>confdefs.h <<_ACEOF
22144#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22145_ACEOF
22146
22147
22148
cristy3ed852e2009-09-05 21:47:34 +000022149# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22150# The cast to long int works around a bug in the HP C Compiler
22151# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22152# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22153# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022155$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022156if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 $as_echo_n "(cached) " >&6
22158else
cristy8b350f62009-11-15 23:12:43 +000022159 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 +000022160
cristy3ed852e2009-09-05 21:47:34 +000022161else
cristy8b350f62009-11-15 23:12:43 +000022162 if test "$ac_cv_type_unsigned_intp" = yes; then
22163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022165as_fn_error 77 "cannot compute sizeof (unsigned int*)
22166See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022167 else
22168 ac_cv_sizeof_unsigned_intp=0
22169 fi
22170fi
cristy8b350f62009-11-15 23:12:43 +000022171
cristy3ed852e2009-09-05 21:47:34 +000022172fi
cristy8b350f62009-11-15 23:12:43 +000022173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022174$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22175
22176
22177
22178cat >>confdefs.h <<_ACEOF
22179#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22180_ACEOF
22181
22182
22183
22184#
22185# Compute sized types for current CPU and compiler options.
22186#
22187
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo_n "checking for signed 8-bit type... " >&6; }
22190INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022192$as_echo "$INT8_T" >&6; }
22193
22194
cristy8b350f62009-11-15 23:12:43 +000022195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022196$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22197UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022199$as_echo "$UINT8_T" >&6; }
22200
22201
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo_n "checking for signed 16-bit type... " >&6; }
22204INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo "$INT16_T" >&6; }
22207
22208
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22211UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo "$UINT16_T" >&6; }
22214
22215
cristy8b350f62009-11-15 23:12:43 +000022216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022217$as_echo_n "checking for signed 32-bit type... " >&6; }
22218INT32_T='none'
22219if test $ac_cv_sizeof_signed_int -eq 4; then
22220 INT32_T='signed int'
22221elif test $ac_cv_sizeof_signed_long -eq 4; then
22222 INT32_T='signed long'
22223fi
cristy8b350f62009-11-15 23:12:43 +000022224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022225$as_echo "$INT32_T" >&6; }
22226
22227
cristy8b350f62009-11-15 23:12:43 +000022228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022229$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22230UINT32_T='none'
22231if test $ac_cv_sizeof_unsigned_int -eq 4; then
22232 UINT32_T='unsigned int'
22233elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22234 UINT32_T='unsigned long'
22235fi
cristy8b350f62009-11-15 23:12:43 +000022236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022237$as_echo "$UINT32_T" >&6; }
22238
22239
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo_n "checking for signed 64-bit type... " >&6; }
22242INT64_T='none'
22243if test $ac_cv_sizeof_signed_long -eq 8; then
22244 INT64_T='signed long'
22245elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22246 INT64_T='signed long long'
22247fi
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo "$INT64_T" >&6; }
22250
22251
cristy8b350f62009-11-15 23:12:43 +000022252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022253$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22254UINT64_T='none'
22255if test $ac_cv_sizeof_unsigned_long -eq 8; then
22256 UINT64_T='unsigned long'
22257elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22258 UINT64_T='unsigned long long'
22259fi
cristy8b350f62009-11-15 23:12:43 +000022260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022261$as_echo "$UINT64_T" >&6; }
22262
22263
cristy8b350f62009-11-15 23:12:43 +000022264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022265$as_echo_n "checking for unsigned maximum type... " >&6; }
22266UINTMAX_T='none'
22267if test "$UINT64_T" != 'none'; then
22268 UINTMAX_T=$UINT64_T
22269elif test "$UINT32_T" != 'none'; then
22270 UINTMAX_T=$UINT32_T
22271fi
cristy8b350f62009-11-15 23:12:43 +000022272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022273$as_echo "$UINTMAX_T" >&6; }
22274
22275
cristy8b350f62009-11-15 23:12:43 +000022276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022277$as_echo_n "checking for pointer difference type... " >&6; }
22278UINTPTR_T='none'
22279if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22280 UINTPTR_T='unsigned long'
22281elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22282 UINTPTR_T='unsigned long long'
22283fi
cristy8b350f62009-11-15 23:12:43 +000022284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022285$as_echo "$UINTPTR_T" >&6; }
22286
22287
cristy8b350f62009-11-15 23:12:43 +000022288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022289$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022291/* end confdefs.h. */
22292
22293int
22294main ()
22295{
22296{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22297 ;
22298 return 0;
22299}
22300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022301if ac_fn_c_try_compile "$LINENO"; then :
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022303$as_echo "yes" >&6; }
22304else
cristy8b350f62009-11-15 23:12:43 +000022305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022306$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022308$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022310/* end confdefs.h. */
22311
22312int
22313main ()
22314{
22315{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22316 ;
22317 return 0;
22318}
22319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022320if ac_fn_c_try_compile "$LINENO"; then :
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022322$as_echo "yes" >&6; }
22323
cristy8b350f62009-11-15 23:12:43 +000022324$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022325
22326else
cristy8b350f62009-11-15 23:12:43 +000022327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022328$as_echo "no" >&6; }
22329
cristy8b350f62009-11-15 23:12:43 +000022330$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022331
22332fi
cristy3ed852e2009-09-05 21:47:34 +000022333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22334fi
cristy3ed852e2009-09-05 21:47:34 +000022335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336
22337########
22338#
22339# Check for functions
22340#
22341########
cristy73bd4a52010-10-05 11:24:23 +000022342for ac_header in stdlib.h unistd.h
22343do :
22344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22345ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022346if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022347 cat >>confdefs.h <<_ACEOF
22348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22349_ACEOF
22350
22351fi
22352
22353done
22354
22355for ac_func in getpagesize
22356do :
22357 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22358if test "x$ac_cv_func_getpagesize" = x""yes; then :
22359 cat >>confdefs.h <<_ACEOF
22360#define HAVE_GETPAGESIZE 1
22361_ACEOF
22362
22363fi
22364done
22365
22366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22367$as_echo_n "checking for working mmap file i/o... " >&6; }
22368if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22369 $as_echo_n "(cached) " >&6
22370else
22371 if test "$cross_compiling" = yes; then :
22372 magick_cv_func_mmap_fileio=no
22373else
22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375/* end confdefs.h. */
22376$ac_includes_default
22377/* malloc might have been renamed as rpl_malloc. */
22378#undef malloc
22379
22380/*
22381 This test is derived from GNU Autoconf's similar macro.
22382 The purpose of this test is to verify that files may be memory
22383 mapped, and that memory mapping and file I/O are coherent.
22384
22385 The test creates a test file, memory maps the file, updates
22386 the file using the memory map, and then reads the file using
22387 file I/O to verify that the file contains the updates.
22388*/
22389
22390#include <fcntl.h>
22391#include <sys/mman.h>
22392
22393#if !STDC_HEADERS && !HAVE_STDLIB_H
22394char *malloc ();
22395#endif
22396
22397/* This mess was copied from the GNU getpagesize.h. */
22398#if !HAVE_GETPAGESIZE
22399/* Assume that all systems that can run configure have sys/param.h. */
22400# if !HAVE_SYS_PARAM_H
22401# define HAVE_SYS_PARAM_H 1
22402# endif
22403
22404# ifdef _SC_PAGESIZE
22405# define getpagesize() sysconf(_SC_PAGESIZE)
22406# else /* no _SC_PAGESIZE */
22407# if HAVE_SYS_PARAM_H
22408# include <sys/param.h>
22409# ifdef EXEC_PAGESIZE
22410# define getpagesize() EXEC_PAGESIZE
22411# else /* no EXEC_PAGESIZE */
22412# ifdef NBPG
22413# define getpagesize() NBPG * CLSIZE
22414# ifndef CLSIZE
22415# define CLSIZE 1
22416# endif /* no CLSIZE */
22417# else /* no NBPG */
22418# ifdef NBPC
22419# define getpagesize() NBPC
22420# else /* no NBPC */
22421# ifdef PAGESIZE
22422# define getpagesize() PAGESIZE
22423# endif /* PAGESIZE */
22424# endif /* no NBPC */
22425# endif /* no NBPG */
22426# endif /* no EXEC_PAGESIZE */
22427# else /* no HAVE_SYS_PARAM_H */
22428# define getpagesize() 8192 /* punt totally */
22429# endif /* no HAVE_SYS_PARAM_H */
22430# endif /* no _SC_PAGESIZE */
22431
22432#endif /* no HAVE_GETPAGESIZE */
22433
22434int
22435main ()
22436{
22437 char *data, *data2, *data3;
22438 int i, pagesize;
22439 int fd;
22440
22441 pagesize = getpagesize ();
22442
22443 /* First, make a file with some known garbage in it. */
22444 data = (char *) malloc (pagesize);
22445 if (!data)
22446 exit (1);
22447 for (i = 0; i < pagesize; ++i)
22448 *(data + i) = rand ();
22449 umask (0);
22450 fd = creat ("conftest.mmap", 0600);
22451 if (fd < 0)
22452 exit (1);
22453 if (write (fd, data, pagesize) != pagesize)
22454 exit (1);
22455 close (fd);
22456
22457 /* Mmap the file as read/write/shared and verify that we see the
22458 same garbage. */
22459 fd = open ("conftest.mmap", O_RDWR);
22460 if (fd < 0)
22461 exit (1);
22462 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22463 if (data2 == 0)
22464 exit (1);
22465 for (i = 0; i < pagesize; ++i)
22466 if (*(data + i) != *(data2 + i))
22467 exit (1);
22468
22469 /* Finally, make sure that changes to the mapped area
22470 percolate back to the file as seen by read(). */
22471 for (i = 0; i < pagesize; ++i)
22472 *(data2 + i) = *(data2 + i) + 1;
22473 data3 = (char *) malloc (pagesize);
22474 if (!data3)
22475 exit (1);
22476 if (read (fd, data3, pagesize) != pagesize)
22477 exit (1);
22478 for (i = 0; i < pagesize; ++i)
22479 if (*(data2 + i) != *(data3 + i))
22480 exit (1);
22481 close (fd);
22482 exit (0);
22483}
22484_ACEOF
22485if ac_fn_c_try_run "$LINENO"; then :
22486 magick_cv_func_mmap_fileio=yes
22487else
22488 magick_cv_func_mmap_fileio=no
22489fi
22490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22491 conftest.$ac_objext conftest.beam conftest.$ac_ext
22492fi
22493
22494fi
22495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22496$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22497if test $magick_cv_func_mmap_fileio = yes; then
22498
22499$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22500
22501fi
22502rm -f conftest.mmap
22503
cristy8b350f62009-11-15 23:12:43 +000022504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022505$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022506if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022507 $as_echo_n "(cached) " >&6
22508else
cristy8b350f62009-11-15 23:12:43 +000022509 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022510 ac_cv_func_closedir_void=yes
22511else
cristy8b350f62009-11-15 23:12:43 +000022512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022513/* end confdefs.h. */
22514$ac_includes_default
22515#include <$ac_header_dirent>
22516#ifndef __cplusplus
22517int closedir ();
22518#endif
22519
22520int
22521main ()
22522{
22523return closedir (opendir (".")) != 0;
22524 ;
22525 return 0;
22526}
22527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022528if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022529 ac_cv_func_closedir_void=no
22530else
cristy8b350f62009-11-15 23:12:43 +000022531 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022532fi
cristy8b350f62009-11-15 23:12:43 +000022533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22534 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022535fi
22536
cristy3ed852e2009-09-05 21:47:34 +000022537fi
cristy8b350f62009-11-15 23:12:43 +000022538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022539$as_echo "$ac_cv_func_closedir_void" >&6; }
22540if test $ac_cv_func_closedir_void = yes; then
22541
cristy8b350f62009-11-15 23:12:43 +000022542$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022543
22544fi
22545
cristycd4c5312009-11-22 01:19:08 +000022546
22547
22548
22549 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022550do :
22551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022552ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22553"
cristy98dddb52010-11-04 00:30:15 +000022554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 cat >>confdefs.h <<_ACEOF
22556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22557_ACEOF
22558
22559fi
22560
22561done
22562
cristycd4c5312009-11-22 01:19:08 +000022563
22564
22565
22566
22567
22568
22569
cristy3ed852e2009-09-05 21:47:34 +000022570for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022571do :
22572 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22573if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022575#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022576_ACEOF
22577
22578fi
22579done
22580
cristy8b350f62009-11-15 23:12:43 +000022581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022582$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022583if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022584 $as_echo_n "(cached) " >&6
22585else
cristy8b350f62009-11-15 23:12:43 +000022586 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 ac_cv_func_mmap_fixed_mapped=no
22588else
cristy8b350f62009-11-15 23:12:43 +000022589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022590/* end confdefs.h. */
22591$ac_includes_default
22592/* malloc might have been renamed as rpl_malloc. */
22593#undef malloc
22594
22595/* Thanks to Mike Haertel and Jim Avera for this test.
22596 Here is a matrix of mmap possibilities:
22597 mmap private not fixed
22598 mmap private fixed at somewhere currently unmapped
22599 mmap private fixed at somewhere already mapped
22600 mmap shared not fixed
22601 mmap shared fixed at somewhere currently unmapped
22602 mmap shared fixed at somewhere already mapped
22603 For private mappings, we should verify that changes cannot be read()
22604 back from the file, nor mmap's back from the file at a different
22605 address. (There have been systems where private was not correctly
22606 implemented like the infamous i386 svr4.0, and systems where the
22607 VM page cache was not coherent with the file system buffer cache
22608 like early versions of FreeBSD and possibly contemporary NetBSD.)
22609 For shared mappings, we should conversely verify that changes get
22610 propagated back to all the places they're supposed to be.
22611
22612 Grep wants private fixed already mapped.
22613 The main things grep needs to know about mmap are:
22614 * does it exist and is it safe to write into the mmap'd area
22615 * how to use it (BSD variants) */
22616
22617#include <fcntl.h>
22618#include <sys/mman.h>
22619
22620#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22621char *malloc ();
22622#endif
22623
22624/* This mess was copied from the GNU getpagesize.h. */
22625#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022626# ifdef _SC_PAGESIZE
22627# define getpagesize() sysconf(_SC_PAGESIZE)
22628# else /* no _SC_PAGESIZE */
22629# ifdef HAVE_SYS_PARAM_H
22630# include <sys/param.h>
22631# ifdef EXEC_PAGESIZE
22632# define getpagesize() EXEC_PAGESIZE
22633# else /* no EXEC_PAGESIZE */
22634# ifdef NBPG
22635# define getpagesize() NBPG * CLSIZE
22636# ifndef CLSIZE
22637# define CLSIZE 1
22638# endif /* no CLSIZE */
22639# else /* no NBPG */
22640# ifdef NBPC
22641# define getpagesize() NBPC
22642# else /* no NBPC */
22643# ifdef PAGESIZE
22644# define getpagesize() PAGESIZE
22645# endif /* PAGESIZE */
22646# endif /* no NBPC */
22647# endif /* no NBPG */
22648# endif /* no EXEC_PAGESIZE */
22649# else /* no HAVE_SYS_PARAM_H */
22650# define getpagesize() 8192 /* punt totally */
22651# endif /* no HAVE_SYS_PARAM_H */
22652# endif /* no _SC_PAGESIZE */
22653
22654#endif /* no HAVE_GETPAGESIZE */
22655
22656int
22657main ()
22658{
22659 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022660 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022661 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022662 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022663
22664 pagesize = getpagesize ();
22665
22666 /* First, make a file with some known garbage in it. */
22667 data = (char *) malloc (pagesize);
22668 if (!data)
22669 return 1;
22670 for (i = 0; i < pagesize; ++i)
22671 *(data + i) = rand ();
22672 umask (0);
22673 fd = creat ("conftest.mmap", 0600);
22674 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022675 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022676 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022677 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022678 close (fd);
22679
cristycd4c5312009-11-22 01:19:08 +000022680 /* Next, check that the tail of a page is zero-filled. File must have
22681 non-zero length, otherwise we risk SIGBUS for entire page. */
22682 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22683 if (fd2 < 0)
22684 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022685 cdata2 = "";
22686 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022687 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022688 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022689 if (data2 == MAP_FAILED)
22690 return 6;
22691 for (i = 0; i < pagesize; ++i)
22692 if (*(data2 + i))
22693 return 7;
22694 close (fd2);
22695 if (munmap (data2, pagesize))
22696 return 8;
22697
cristy3ed852e2009-09-05 21:47:34 +000022698 /* Next, try to mmap the file at a fixed address which already has
22699 something else allocated at it. If we can, also make sure that
22700 we see the same garbage. */
22701 fd = open ("conftest.mmap", O_RDWR);
22702 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022703 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022704 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22705 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022706 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022707 for (i = 0; i < pagesize; ++i)
22708 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022709 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022710
22711 /* Finally, make sure that changes to the mapped area do not
22712 percolate back to the file as seen by read(). (This is a bug on
22713 some variants of i386 svr4.0.) */
22714 for (i = 0; i < pagesize; ++i)
22715 *(data2 + i) = *(data2 + i) + 1;
22716 data3 = (char *) malloc (pagesize);
22717 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022718 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022719 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022720 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022721 for (i = 0; i < pagesize; ++i)
22722 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022723 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022724 close (fd);
22725 return 0;
22726}
22727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022728if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022729 ac_cv_func_mmap_fixed_mapped=yes
22730else
cristy8b350f62009-11-15 23:12:43 +000022731 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022732fi
cristy8b350f62009-11-15 23:12:43 +000022733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22734 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022735fi
22736
cristy3ed852e2009-09-05 21:47:34 +000022737fi
cristy8b350f62009-11-15 23:12:43 +000022738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022739$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22740if test $ac_cv_func_mmap_fixed_mapped = yes; then
22741
cristy8b350f62009-11-15 23:12:43 +000022742$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022743
22744fi
cristycd4c5312009-11-22 01:19:08 +000022745rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022746
cristy3ed852e2009-09-05 21:47:34 +000022747for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022748do :
22749 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22750if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022751 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022752#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022753_ACEOF
22754
22755fi
22756
22757done
22758
cristy3ed852e2009-09-05 21:47:34 +000022759for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022760do :
22761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22762ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000022763if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022764 cat >>confdefs.h <<_ACEOF
22765#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22766_ACEOF
22767
22768fi
22769done
22770
22771if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022773$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022774if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022775 $as_echo_n "(cached) " >&6
22776else
cristy8b350f62009-11-15 23:12:43 +000022777 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022778 ac_cv_func_fork_works=cross
22779else
cristy8b350f62009-11-15 23:12:43 +000022780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022781/* end confdefs.h. */
22782$ac_includes_default
22783int
22784main ()
22785{
22786
22787 /* By Ruediger Kuhlmann. */
22788 return fork () < 0;
22789
22790 ;
22791 return 0;
22792}
22793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022794if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022795 ac_cv_func_fork_works=yes
22796else
cristy8b350f62009-11-15 23:12:43 +000022797 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022798fi
cristy8b350f62009-11-15 23:12:43 +000022799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22800 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022801fi
22802
cristy3ed852e2009-09-05 21:47:34 +000022803fi
cristy8b350f62009-11-15 23:12:43 +000022804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022805$as_echo "$ac_cv_func_fork_works" >&6; }
22806
22807else
22808 ac_cv_func_fork_works=$ac_cv_func_fork
22809fi
22810if test "x$ac_cv_func_fork_works" = xcross; then
22811 case $host in
22812 *-*-amigaos* | *-*-msdosdjgpp*)
22813 # Override, as these systems have only a dummy fork() stub
22814 ac_cv_func_fork_works=no
22815 ;;
22816 *)
22817 ac_cv_func_fork_works=yes
22818 ;;
22819 esac
cristy8b350f62009-11-15 23:12:43 +000022820 { $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 +000022821$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22822fi
22823ac_cv_func_vfork_works=$ac_cv_func_vfork
22824if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022826$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022827if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022828 $as_echo_n "(cached) " >&6
22829else
cristy8b350f62009-11-15 23:12:43 +000022830 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022831 ac_cv_func_vfork_works=cross
22832else
cristy8b350f62009-11-15 23:12:43 +000022833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022834/* end confdefs.h. */
22835/* Thanks to Paul Eggert for this test. */
22836$ac_includes_default
22837#include <sys/wait.h>
22838#ifdef HAVE_VFORK_H
22839# include <vfork.h>
22840#endif
22841/* On some sparc systems, changes by the child to local and incoming
22842 argument registers are propagated back to the parent. The compiler
22843 is told about this with #include <vfork.h>, but some compilers
22844 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22845 static variable whose address is put into a register that is
22846 clobbered by the vfork. */
22847static void
22848#ifdef __cplusplus
22849sparc_address_test (int arg)
22850# else
22851sparc_address_test (arg) int arg;
22852#endif
22853{
22854 static pid_t child;
22855 if (!child) {
22856 child = vfork ();
22857 if (child < 0) {
22858 perror ("vfork");
22859 _exit(2);
22860 }
22861 if (!child) {
22862 arg = getpid();
22863 write(-1, "", 0);
22864 _exit (arg);
22865 }
22866 }
22867}
22868
22869int
22870main ()
22871{
22872 pid_t parent = getpid ();
22873 pid_t child;
22874
22875 sparc_address_test (0);
22876
22877 child = vfork ();
22878
22879 if (child == 0) {
22880 /* Here is another test for sparc vfork register problems. This
22881 test uses lots of local variables, at least as many local
22882 variables as main has allocated so far including compiler
22883 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22884 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22885 reuse the register of parent for one of the local variables,
22886 since it will think that parent can't possibly be used any more
22887 in this routine. Assigning to the local variable will thus
22888 munge parent in the parent process. */
22889 pid_t
22890 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22891 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22892 /* Convince the compiler that p..p7 are live; otherwise, it might
22893 use the same hardware register for all 8 local variables. */
22894 if (p != p1 || p != p2 || p != p3 || p != p4
22895 || p != p5 || p != p6 || p != p7)
22896 _exit(1);
22897
22898 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22899 from child file descriptors. If the child closes a descriptor
22900 before it execs or exits, this munges the parent's descriptor
22901 as well. Test for this by closing stdout in the child. */
22902 _exit(close(fileno(stdout)) != 0);
22903 } else {
22904 int status;
22905 struct stat st;
22906
22907 while (wait(&status) != child)
22908 ;
22909 return (
22910 /* Was there some problem with vforking? */
22911 child < 0
22912
22913 /* Did the child fail? (This shouldn't happen.) */
22914 || status
22915
22916 /* Did the vfork/compiler bug occur? */
22917 || parent != getpid()
22918
22919 /* Did the file descriptor bug occur? */
22920 || fstat(fileno(stdout), &st) != 0
22921 );
22922 }
22923}
22924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022925if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 ac_cv_func_vfork_works=yes
22927else
cristy8b350f62009-11-15 23:12:43 +000022928 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022929fi
cristy8b350f62009-11-15 23:12:43 +000022930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22931 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022932fi
22933
cristy3ed852e2009-09-05 21:47:34 +000022934fi
cristy8b350f62009-11-15 23:12:43 +000022935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022936$as_echo "$ac_cv_func_vfork_works" >&6; }
22937
22938fi;
22939if test "x$ac_cv_func_fork_works" = xcross; then
22940 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022941 { $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 +000022942$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22943fi
22944
22945if test "x$ac_cv_func_vfork_works" = xyes; then
22946
cristy8b350f62009-11-15 23:12:43 +000022947$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022948
22949else
22950
cristy8b350f62009-11-15 23:12:43 +000022951$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022952
22953fi
22954if test "x$ac_cv_func_fork_works" = xyes; then
22955
cristy8b350f62009-11-15 23:12:43 +000022956$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022957
22958fi
22959
cristy8b350f62009-11-15 23:12:43 +000022960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022961$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022962if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022963 $as_echo_n "(cached) " >&6
22964else
cristy8b350f62009-11-15 23:12:43 +000022965 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022966 ac_cv_func_memcmp_working=no
22967else
cristy8b350f62009-11-15 23:12:43 +000022968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022969/* end confdefs.h. */
22970$ac_includes_default
22971int
22972main ()
22973{
22974
22975 /* Some versions of memcmp are not 8-bit clean. */
22976 char c0 = '\100', c1 = '\200', c2 = '\201';
22977 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22978 return 1;
22979
22980 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22981 or more and with at least one buffer not starting on a 4-byte boundary.
22982 William Lewis provided this test program. */
22983 {
22984 char foo[21];
22985 char bar[21];
22986 int i;
22987 for (i = 0; i < 4; i++)
22988 {
22989 char *a = foo + i;
22990 char *b = bar + i;
22991 strcpy (a, "--------01111111");
22992 strcpy (b, "--------10000000");
22993 if (memcmp (a, b, 16) >= 0)
22994 return 1;
22995 }
22996 return 0;
22997 }
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023003if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023004 ac_cv_func_memcmp_working=yes
23005else
cristy8b350f62009-11-15 23:12:43 +000023006 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023007fi
cristy8b350f62009-11-15 23:12:43 +000023008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23009 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023010fi
23011
cristy3ed852e2009-09-05 21:47:34 +000023012fi
cristy8b350f62009-11-15 23:12:43 +000023013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023014$as_echo "$ac_cv_func_memcmp_working" >&6; }
23015test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23016 *" memcmp.$ac_objext "* ) ;;
23017 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23018 ;;
23019esac
23020
23021
cristy3ed852e2009-09-05 21:47:34 +000023022for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023023do :
23024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23025ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023027 cat >>confdefs.h <<_ACEOF
23028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23029_ACEOF
23030
23031fi
23032
23033done
23034
cristy8b350f62009-11-15 23:12:43 +000023035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023036$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023037if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023038 $as_echo_n "(cached) " >&6
23039else
23040 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23041 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23042 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023044/* end confdefs.h. */
23045$ac_includes_default
23046#ifdef HAVE_SYS_SELECT_H
23047# include <sys/select.h>
23048#endif
23049#ifdef HAVE_SYS_SOCKET_H
23050# include <sys/socket.h>
23051#endif
23052
23053int
23054main ()
23055{
23056extern int select ($ac_arg1,
23057 $ac_arg234, $ac_arg234, $ac_arg234,
23058 $ac_arg5);
23059 ;
23060 return 0;
23061}
23062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023064 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023065fi
cristy3ed852e2009-09-05 21:47:34 +000023066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 done
23068 done
23069done
23070# Provide a safe default value.
23071: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23072
23073fi
cristy8b350f62009-11-15 23:12:43 +000023074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023075$as_echo "$ac_cv_func_select_args" >&6; }
23076ac_save_IFS=$IFS; IFS=','
23077set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23078IFS=$ac_save_IFS
23079shift
23080
23081cat >>confdefs.h <<_ACEOF
23082#define SELECT_TYPE_ARG1 $1
23083_ACEOF
23084
23085
23086cat >>confdefs.h <<_ACEOF
23087#define SELECT_TYPE_ARG234 ($2)
23088_ACEOF
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define SELECT_TYPE_ARG5 ($3)
23093_ACEOF
23094
23095rm -f conftest*
23096
cristy8b350f62009-11-15 23:12:43 +000023097if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023098 $as_echo_n "(cached) " >&6
23099else
23100 ac_cv_func_setvbuf_reversed=no
23101fi
23102
23103
cristy8b350f62009-11-15 23:12:43 +000023104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023105$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023106if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 $as_echo_n "(cached) " >&6
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023110/* end confdefs.h. */
23111#include <sys/types.h>
23112#include <signal.h>
23113
23114int
23115main ()
23116{
23117return *(signal (0, 0)) (0) == 1;
23118 ;
23119 return 0;
23120}
23121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023122if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 ac_cv_type_signal=int
23124else
cristy8b350f62009-11-15 23:12:43 +000023125 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023126fi
cristy3ed852e2009-09-05 21:47:34 +000023127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128fi
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023130$as_echo "$ac_cv_type_signal" >&6; }
23131
23132cat >>confdefs.h <<_ACEOF
23133#define RETSIGTYPE $ac_cv_type_signal
23134_ACEOF
23135
23136
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023139if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 $as_echo_n "(cached) " >&6
23141else
cristy8b350f62009-11-15 23:12:43 +000023142 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 ac_cv_func_strtod=no
23144else
cristy8b350f62009-11-15 23:12:43 +000023145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023146/* end confdefs.h. */
23147
23148$ac_includes_default
23149#ifndef strtod
23150double strtod ();
23151#endif
23152int
23153main()
23154{
23155 {
23156 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23157 char *string = " +69";
23158 char *term;
23159 double value;
23160 value = strtod (string, &term);
23161 if (value != 69 || term != (string + 4))
23162 return 1;
23163 }
23164
23165 {
23166 /* Under Solaris 2.4, strtod returns the wrong value for the
23167 terminating character under some conditions. */
23168 char *string = "NaN";
23169 char *term;
23170 strtod (string, &term);
23171 if (term != string && *(term - 1) == 0)
23172 return 1;
23173 }
23174 return 0;
23175}
23176
23177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023178if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023179 ac_cv_func_strtod=yes
23180else
cristy8b350f62009-11-15 23:12:43 +000023181 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023182fi
cristy8b350f62009-11-15 23:12:43 +000023183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23184 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023185fi
23186
cristy3ed852e2009-09-05 21:47:34 +000023187fi
cristy8b350f62009-11-15 23:12:43 +000023188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023189$as_echo "$ac_cv_func_strtod" >&6; }
23190if test $ac_cv_func_strtod = no; then
23191 case " $LIBOBJS " in
23192 *" strtod.$ac_objext "* ) ;;
23193 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23194 ;;
23195esac
23196
cristy8b350f62009-11-15 23:12:43 +000023197ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23198if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023199
cristy3ed852e2009-09-05 21:47:34 +000023200fi
23201
cristy3ed852e2009-09-05 21:47:34 +000023202if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023204$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023205if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023206 $as_echo_n "(cached) " >&6
23207else
23208 ac_check_lib_save_LIBS=$LIBS
23209LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023211/* end confdefs.h. */
23212
23213/* Override any GCC internal prototype to avoid an error.
23214 Use char because int might match the return type of a GCC
23215 builtin and then its argument prototype would still apply. */
23216#ifdef __cplusplus
23217extern "C"
23218#endif
23219char pow ();
23220int
23221main ()
23222{
23223return pow ();
23224 ;
23225 return 0;
23226}
23227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023229 ac_cv_lib_m_pow=yes
23230else
cristy8b350f62009-11-15 23:12:43 +000023231 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023232fi
cristy8b350f62009-11-15 23:12:43 +000023233rm -f core conftest.err conftest.$ac_objext \
23234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023235LIBS=$ac_check_lib_save_LIBS
23236fi
cristy8b350f62009-11-15 23:12:43 +000023237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023238$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023239if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023240 POW_LIB=-lm
23241else
cristy8b350f62009-11-15 23:12:43 +000023242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023243$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23244fi
23245
23246fi
23247
23248fi
23249
cristy3ed852e2009-09-05 21:47:34 +000023250for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023251do :
23252 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23253if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023254 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023255#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023256_ACEOF
23257
cristy8b350f62009-11-15 23:12:43 +000023258ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23259if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023260
cristy8b350f62009-11-15 23:12:43 +000023261$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023262
23263fi
23264
23265fi
23266done
23267
23268
23269
cristy161b9262010-03-20 19:34:32 +000023270#
23271# Find math library
23272#
23273MATH_LIBS=''
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23275$as_echo_n "checking for sqrt in -lm... " >&6; }
23276if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23277 $as_echo_n "(cached) " >&6
23278else
23279 ac_check_lib_save_LIBS=$LIBS
23280LIBS="-lm $LIBS"
23281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283
23284/* Override any GCC internal prototype to avoid an error.
23285 Use char because int might match the return type of a GCC
23286 builtin and then its argument prototype would still apply. */
23287#ifdef __cplusplus
23288extern "C"
23289#endif
23290char sqrt ();
23291int
23292main ()
23293{
23294return sqrt ();
23295 ;
23296 return 0;
23297}
23298_ACEOF
23299if ac_fn_c_try_link "$LINENO"; then :
23300 ac_cv_lib_m_sqrt=yes
23301else
23302 ac_cv_lib_m_sqrt=no
23303fi
23304rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
23306LIBS=$ac_check_lib_save_LIBS
23307fi
23308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23309$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23310if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23311 MATH_LIBS="-lm"
23312fi
23313
23314LIBS="$MATH_LIBS $LIBS"
23315
23316
cristyf1897e32010-08-29 19:59:09 +000023317for 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 +000023318do :
23319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023321if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023322 cat >>confdefs.h <<_ACEOF
23323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23324_ACEOF
23325
23326fi
23327done
23328
23329
cristye43a45e2009-09-28 14:49:00 +000023330#
23331# Check for clock_gettime().
23332#
cristy8b350f62009-11-15 23:12:43 +000023333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023334$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023335if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023336 $as_echo_n "(cached) " >&6
23337else
23338 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023340/* end confdefs.h. */
23341
23342/* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348char clock_gettime ();
23349int
23350main ()
23351{
23352return clock_gettime ();
23353 ;
23354 return 0;
23355}
23356_ACEOF
23357for ac_lib in '' rt; do
23358 if test -z "$ac_lib"; then
23359 ac_res="none required"
23360 else
23361 ac_res=-l$ac_lib
23362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23363 fi
cristy8b350f62009-11-15 23:12:43 +000023364 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023365 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023366fi
cristy8b350f62009-11-15 23:12:43 +000023367rm -f core conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext
23369 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023370 break
23371fi
23372done
cristy8b350f62009-11-15 23:12:43 +000023373if test "${ac_cv_search_clock_gettime+set}" = set; then :
23374
cristye43a45e2009-09-28 14:49:00 +000023375else
23376 ac_cv_search_clock_gettime=no
23377fi
23378rm conftest.$ac_ext
23379LIBS=$ac_func_search_save_LIBS
23380fi
cristy8b350f62009-11-15 23:12:43 +000023381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023382$as_echo "$ac_cv_search_clock_gettime" >&6; }
23383ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023384if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23386
23387
cristy8b350f62009-11-15 23:12:43 +000023388$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023389
cristy8b350f62009-11-15 23:12:43 +000023390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023391$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023393/* end confdefs.h. */
23394#include <time.h>
23395int
23396main ()
23397{
23398clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023399 ;
23400 return 0;
23401}
23402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023403if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023404
cristy8b350f62009-11-15 23:12:43 +000023405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023406$as_echo "yes" >&6; }
23407
cristy8b350f62009-11-15 23:12:43 +000023408$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023409
23410
23411else
cristy8b350f62009-11-15 23:12:43 +000023412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023413$as_echo "no" >&6; }
23414
23415fi
cristye43a45e2009-09-28 14:49:00 +000023416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417
23418else
23419
cristy8b350f62009-11-15 23:12:43 +000023420 for ac_func in gettimeofday ftime
23421do :
23422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023424if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023425 cat >>confdefs.h <<_ACEOF
23426#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23427_ACEOF
23428 break
23429fi
23430done
23431
23432
23433
23434fi
23435
23436
cristy3ed852e2009-09-05 21:47:34 +000023437########
23438#
23439# Check for function prototypes
23440#
23441########
23442
cristy8b350f62009-11-15 23:12:43 +000023443ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023444#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023445"
23446if test "x$ac_cv_have_decl_pread" = x""yes; then :
23447 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023448else
cristy8b350f62009-11-15 23:12:43 +000023449 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023450fi
23451
cristy3ed852e2009-09-05 21:47:34 +000023452cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023453#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023455ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023456#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023457"
23458if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23459 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023460else
cristy8b350f62009-11-15 23:12:43 +000023461 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023462fi
23463
cristy3ed852e2009-09-05 21:47:34 +000023464cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023465#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023466_ACEOF
23467
23468
cristy8b350f62009-11-15 23:12:43 +000023469ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023470#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023471"
23472if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23473 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023474else
cristy8b350f62009-11-15 23:12:43 +000023475 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023476fi
23477
cristy3ed852e2009-09-05 21:47:34 +000023478cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023479#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023480_ACEOF
23481
23482
cristy8b350f62009-11-15 23:12:43 +000023483ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023484#include <stdio.h>
23485#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023486"
23487if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23488 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023489else
cristy8b350f62009-11-15 23:12:43 +000023490 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023491fi
23492
cristy3ed852e2009-09-05 21:47:34 +000023493cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023494#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023495_ACEOF
23496
23497
cristy3ed852e2009-09-05 21:47:34 +000023498########
23499#
23500# C++ Support Tests (For Magick++)
23501#
23502########
23503have_magick_plus_plus='no'
23504if test "$with_magick_plus_plus" = 'yes'; then
23505 OLIBS="$LIBS"
23506 LIBS=''
23507 ac_ext=cpp
23508ac_cpp='$CXXCPP $CPPFLAGS'
23509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23512
23513
23514 # Full set of headers used...
23515 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23516 # functional iomanip iosfwd iostream iterator list string strstream utility
23517 ac_ext=cpp
23518ac_cpp='$CXXCPP $CPPFLAGS'
23519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23522
23523 ac_ext=cpp
23524ac_cpp='$CXXCPP $CPPFLAGS'
23525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23528if test -z "$CXX"; then
23529 if test -n "$CCC"; then
23530 CXX=$CCC
23531 else
23532 if test -n "$ac_tool_prefix"; then
23533 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23534 do
23535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023539if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023540 $as_echo_n "(cached) " >&6
23541else
23542 if test -n "$CXX"; then
23543 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23544else
23545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23546for as_dir in $PATH
23547do
23548 IFS=$as_save_IFS
23549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23552 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023554 break 2
23555 fi
23556done
cristy8b350f62009-11-15 23:12:43 +000023557 done
cristy3ed852e2009-09-05 21:47:34 +000023558IFS=$as_save_IFS
23559
23560fi
23561fi
23562CXX=$ac_cv_prog_CXX
23563if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo "$CXX" >&6; }
23566else
cristy8b350f62009-11-15 23:12:43 +000023567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023568$as_echo "no" >&6; }
23569fi
23570
23571
23572 test -n "$CXX" && break
23573 done
23574fi
23575if test -z "$CXX"; then
23576 ac_ct_CXX=$CXX
23577 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23578do
23579 # Extract the first word of "$ac_prog", so it can be a program name with args.
23580set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023582$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023583if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023584 $as_echo_n "(cached) " >&6
23585else
23586 if test -n "$ac_ct_CXX"; then
23587 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23588else
23589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23590for as_dir in $PATH
23591do
23592 IFS=$as_save_IFS
23593 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23596 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023598 break 2
23599 fi
23600done
cristy8b350f62009-11-15 23:12:43 +000023601 done
cristy3ed852e2009-09-05 21:47:34 +000023602IFS=$as_save_IFS
23603
23604fi
23605fi
23606ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23607if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo "$ac_ct_CXX" >&6; }
23610else
cristy8b350f62009-11-15 23:12:43 +000023611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023612$as_echo "no" >&6; }
23613fi
23614
23615
23616 test -n "$ac_ct_CXX" && break
23617done
23618
23619 if test "x$ac_ct_CXX" = x; then
23620 CXX="g++"
23621 else
23622 case $cross_compiling:$ac_tool_warned in
23623yes:)
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23626ac_tool_warned=yes ;;
23627esac
23628 CXX=$ac_ct_CXX
23629 fi
23630fi
23631
23632 fi
23633fi
23634# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023635$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023636set X $ac_compile
23637ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023638for ac_option in --version -v -V -qversion; do
23639 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023640case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643esac
cristy8b350f62009-11-15 23:12:43 +000023644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23645$as_echo "$ac_try_echo"; } >&5
23646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023647 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023648 if test -s conftest.err; then
23649 sed '10a\
23650... rest of stderr output deleted ...
23651 10q' conftest.err >conftest.er1
23652 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023653 fi
cristycd4c5312009-11-22 01:19:08 +000023654 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23656 test $ac_status = 0; }
23657done
cristy3ed852e2009-09-05 21:47:34 +000023658
cristy8b350f62009-11-15 23:12:43 +000023659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023660$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023661if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023662 $as_echo_n "(cached) " >&6
23663else
cristy8b350f62009-11-15 23:12:43 +000023664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023665/* end confdefs.h. */
23666
23667int
23668main ()
23669{
23670#ifndef __GNUC__
23671 choke me
23672#endif
23673
23674 ;
23675 return 0;
23676}
23677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023678if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023679 ac_compiler_gnu=yes
23680else
cristy8b350f62009-11-15 23:12:43 +000023681 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023682fi
cristy3ed852e2009-09-05 21:47:34 +000023683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23685
23686fi
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23689if test $ac_compiler_gnu = yes; then
23690 GXX=yes
23691else
23692 GXX=
23693fi
23694ac_test_CXXFLAGS=${CXXFLAGS+set}
23695ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023697$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023698if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023699 $as_echo_n "(cached) " >&6
23700else
23701 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23702 ac_cxx_werror_flag=yes
23703 ac_cv_prog_cxx_g=no
23704 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023706/* end confdefs.h. */
23707
23708int
23709main ()
23710{
23711
23712 ;
23713 return 0;
23714}
23715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023716if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023717 ac_cv_prog_cxx_g=yes
23718else
cristy8b350f62009-11-15 23:12:43 +000023719 CXXFLAGS=""
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023721/* end confdefs.h. */
23722
23723int
23724main ()
23725{
23726
23727 ;
23728 return 0;
23729}
23730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023731if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023732
cristy8b350f62009-11-15 23:12:43 +000023733else
23734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023735 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023737/* end confdefs.h. */
23738
23739int
23740main ()
23741{
23742
23743 ;
23744 return 0;
23745}
23746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023747if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023748 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023749fi
cristy3ed852e2009-09-05 21:47:34 +000023750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751fi
cristy3ed852e2009-09-05 21:47:34 +000023752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753fi
cristy3ed852e2009-09-05 21:47:34 +000023754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23755 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23756fi
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo "$ac_cv_prog_cxx_g" >&6; }
23759if test "$ac_test_CXXFLAGS" = set; then
23760 CXXFLAGS=$ac_save_CXXFLAGS
23761elif test $ac_cv_prog_cxx_g = yes; then
23762 if test "$GXX" = yes; then
23763 CXXFLAGS="-g -O2"
23764 else
23765 CXXFLAGS="-g"
23766 fi
23767else
23768 if test "$GXX" = yes; then
23769 CXXFLAGS="-O2"
23770 else
23771 CXXFLAGS=
23772 fi
23773fi
23774ac_ext=cpp
23775ac_cpp='$CXXCPP $CPPFLAGS'
23776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23779
cristy73bd4a52010-10-05 11:24:23 +000023780depcc="$CXX" am_compiler_list=
23781
23782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23783$as_echo_n "checking dependency style of $depcc... " >&6; }
23784if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23785 $as_echo_n "(cached) " >&6
23786else
23787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23788 # We make a subdir and do the tests there. Otherwise we can end up
23789 # making bogus files that we don't know about and never remove. For
23790 # instance it was reported that on HP-UX the gcc test will end up
23791 # making a dummy file named `D' -- because `-MD' means `put the output
23792 # in D'.
23793 mkdir conftest.dir
23794 # Copy depcomp to subdir because otherwise we won't find it if we're
23795 # using a relative directory.
23796 cp "$am_depcomp" conftest.dir
23797 cd conftest.dir
23798 # We will build objects and dependencies in a subdirectory because
23799 # it helps to detect inapplicable dependency modes. For instance
23800 # both Tru64's cc and ICC support -MD to output dependencies as a
23801 # side effect of compilation, but ICC will put the dependencies in
23802 # the current directory while Tru64 will put them in the object
23803 # directory.
23804 mkdir sub
23805
23806 am_cv_CXX_dependencies_compiler_type=none
23807 if test "$am_compiler_list" = ""; then
23808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23809 fi
23810 am__universal=false
23811 case " $depcc " in #(
23812 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23813 esac
23814
23815 for depmode in $am_compiler_list; do
23816 # Setup a source with many dependencies, because some compilers
23817 # like to wrap large dependency lists on column 80 (with \), and
23818 # we should not choose a depcomp mode which is confused by this.
23819 #
23820 # We need to recreate these files for each test, as the compiler may
23821 # overwrite some of them when testing with obscure command lines.
23822 # This happens at least with the AIX C compiler.
23823 : > sub/conftest.c
23824 for i in 1 2 3 4 5 6; do
23825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23827 # Solaris 8's {/usr,}/bin/sh.
23828 touch sub/conftst$i.h
23829 done
23830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23831
23832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23833 # mode. It turns out that the SunPro C++ compiler does not properly
23834 # handle `-M -o', and we need to detect this. Also, some Intel
23835 # versions had trouble with output in subdirs
23836 am__obj=sub/conftest.${OBJEXT-o}
23837 am__minus_obj="-o $am__obj"
23838 case $depmode in
23839 gcc)
23840 # This depmode causes a compiler race in universal mode.
23841 test "$am__universal" = false || continue
23842 ;;
23843 nosideeffect)
23844 # after this tag, mechanisms are not by side-effect, so they'll
23845 # only be used when explicitly requested
23846 if test "x$enable_dependency_tracking" = xyes; then
23847 continue
23848 else
23849 break
23850 fi
23851 ;;
23852 msvisualcpp | msvcmsys)
23853 # This compiler won't grok `-c -o', but also, the minuso test has
23854 # not run yet. These depmodes are late enough in the game, and
23855 # so weak that their functioning should not be impacted.
23856 am__obj=conftest.${OBJEXT-o}
23857 am__minus_obj=
23858 ;;
23859 none) break ;;
23860 esac
23861 if depmode=$depmode \
23862 source=sub/conftest.c object=$am__obj \
23863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23865 >/dev/null 2>conftest.err &&
23866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23870 # icc doesn't choke on unknown options, it will just issue warnings
23871 # or remarks (even with -Werror). So we grep stderr for any message
23872 # that says an option was ignored or not supported.
23873 # When given -MP, icc 7.0 and 7.1 complain thusly:
23874 # icc: Command line warning: ignoring option '-M'; no argument required
23875 # The diagnosis changed in icc 8.0:
23876 # icc: Command line remark: option '-MP' not supported
23877 if (grep 'ignoring option' conftest.err ||
23878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23879 am_cv_CXX_dependencies_compiler_type=$depmode
23880 break
23881 fi
23882 fi
23883 done
23884
23885 cd ..
23886 rm -rf conftest.dir
23887else
23888 am_cv_CXX_dependencies_compiler_type=none
23889fi
23890
23891fi
23892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23893$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23894CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23895
23896 if
23897 test "x$enable_dependency_tracking" != xno \
23898 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23899 am__fastdepCXX_TRUE=
23900 am__fastdepCXX_FALSE='#'
23901else
23902 am__fastdepCXX_TRUE='#'
23903 am__fastdepCXX_FALSE=
23904fi
23905
23906
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23908$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23909if test "${ax_cv_cxx_bool+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23911else
23912
23913 ac_ext=cpp
23914ac_cpp='$CXXCPP $CPPFLAGS'
23915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23918
23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920/* end confdefs.h. */
23921
23922int f(int x){return 1;}
23923int f(char x){return 1;}
23924int f(bool x){return 1;}
23925
23926int
23927main ()
23928{
23929bool b = true; return f(b);
23930 ;
23931 return 0;
23932}
23933_ACEOF
23934if ac_fn_cxx_try_compile "$LINENO"; then :
23935 ax_cv_cxx_bool=yes
23936else
23937 ax_cv_cxx_bool=no
23938fi
23939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 ac_ext=cpp
23941ac_cpp='$CXXCPP $CPPFLAGS'
23942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23945
23946
23947fi
23948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23949$as_echo "$ax_cv_cxx_bool" >&6; }
23950if test "$ax_cv_cxx_bool" = yes; then
23951
23952$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23953
23954fi
23955
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23957$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23958if test "${ax_cv_cxx_namespaces+set}" = set; then :
23959 $as_echo_n "(cached) " >&6
23960else
23961
23962 ac_ext=cpp
23963ac_cpp='$CXXCPP $CPPFLAGS'
23964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23967
23968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969/* end confdefs.h. */
23970namespace Outer { namespace Inner { int i = 0; }}
23971int
23972main ()
23973{
23974using namespace Outer::Inner; return i;
23975 ;
23976 return 0;
23977}
23978_ACEOF
23979if ac_fn_cxx_try_compile "$LINENO"; then :
23980 ax_cv_cxx_namespaces=yes
23981else
23982 ax_cv_cxx_namespaces=no
23983fi
23984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
23992fi
23993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23994$as_echo "$ax_cv_cxx_namespaces" >&6; }
23995if test "$ax_cv_cxx_namespaces" = yes; then
23996
23997$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23998
23999fi
24000
24001
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24003$as_echo_n "checking if g++ supports namespace std... " >&6; }
24004if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24005 $as_echo_n "(cached) " >&6
24006else
24007
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015/* end confdefs.h. */
24016#include <iostream>
24017 std::istream& is = std::cin;
24018int
24019main ()
24020{
24021
24022 ;
24023 return 0;
24024}
24025_ACEOF
24026if ac_fn_cxx_try_compile "$LINENO"; then :
24027 ax_cv_cxx_have_std_namespace=yes
24028else
24029 ax_cv_cxx_have_std_namespace=no
24030fi
24031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032 ac_ext=cpp
24033ac_cpp='$CXXCPP $CPPFLAGS'
24034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24037
24038
24039fi
24040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24041$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24042 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24043
24044$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24045
24046 fi
24047
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24049$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24050if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24051 $as_echo_n "(cached) " >&6
24052else
24053
24054
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24062/* end confdefs.h. */
24063#include <iostream>
24064#include <map>
24065#include <iomanip>
24066#include <cmath>
24067#ifdef HAVE_NAMESPACES
24068using namespace std;
24069#endif
24070int
24071main ()
24072{
24073return 0;
24074 ;
24075 return 0;
24076}
24077_ACEOF
24078if ac_fn_cxx_try_compile "$LINENO"; then :
24079 ac_cv_cxx_have_std_libs=yes
24080else
24081 ac_cv_cxx_have_std_libs=no
24082fi
24083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24084 ac_ext=cpp
24085ac_cpp='$CXXCPP $CPPFLAGS'
24086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24089
24090
24091fi
24092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24093$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24094if test "$ac_cv_cxx_have_std_libs" = yes; then
24095
24096$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24097
24098fi
24099
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24101$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24102if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24104else
24105
24106 ac_ext=cpp
24107ac_cpp='$CXXCPP $CPPFLAGS'
24108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24111
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24113/* end confdefs.h. */
24114const wchar_t* s=L"wide string";
24115_ACEOF
24116if ac_fn_cxx_try_compile "$LINENO"; then :
24117 ac_cv_cxx_have_lstring=yes
24118else
24119 ac_cv_cxx_have_lstring=no
24120fi
24121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24122 ac_ext=cpp
24123ac_cpp='$CXXCPP $CPPFLAGS'
24124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24127
24128
24129fi
24130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24131$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24132if test "$ac_cv_cxx_have_lstring" = yes; then
24133
24134$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24135
24136fi
cristy3ed852e2009-09-05 21:47:34 +000024137
24138
24139 OPENMP_CXXFLAGS=
24140 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024141if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024142 enableval=$enable_openmp;
24143fi
24144
24145 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24147$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024148if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024149 $as_echo_n "(cached) " >&6
24150else
cristy8b350f62009-11-15 23:12:43 +000024151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024153
24154#ifndef _OPENMP
24155 choke me
24156#endif
24157#include <omp.h>
24158int main () { return omp_get_num_threads (); }
24159
24160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024161if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024162 ac_cv_prog_cxx_openmp='none needed'
24163else
cristy8b350f62009-11-15 23:12:43 +000024164 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024165 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24166 ac_save_CXXFLAGS=$CXXFLAGS
24167 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024170
24171#ifndef _OPENMP
24172 choke me
24173#endif
24174#include <omp.h>
24175int main () { return omp_get_num_threads (); }
24176
24177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024178if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024179 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024180fi
cristy8b350f62009-11-15 23:12:43 +000024181rm -f core conftest.err conftest.$ac_objext \
24182 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024183 CXXFLAGS=$ac_save_CXXFLAGS
24184 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24185 break
24186 fi
24187 done
24188fi
cristy8b350f62009-11-15 23:12:43 +000024189rm -f core conftest.err conftest.$ac_objext \
24190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024191fi
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24194 case $ac_cv_prog_cxx_openmp in #(
24195 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024196 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024197 *)
cristy8b350f62009-11-15 23:12:43 +000024198 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024199 esac
24200 fi
24201
24202
24203 ac_ext=c
24204ac_cpp='$CPP $CPPFLAGS'
24205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24207ac_compiler_gnu=$ac_cv_c_compiler_gnu
24208
24209
cristy8b350f62009-11-15 23:12:43 +000024210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24212 if \
cristy964cb7f2010-04-25 23:18:00 +000024213 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024214 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024215 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024216 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024217 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024218 have_magick_plus_plus='yes'
24219 else
24220 have_magick_plus_plus='no (failed tests)'
24221 fi
cristy8b350f62009-11-15 23:12:43 +000024222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024223$as_echo "$have_magick_plus_plus" >&6; }
24224 LIBS="$OLIBS"
24225fi
cristy73bd4a52010-10-05 11:24:23 +000024226 if test "$have_magick_plus_plus" = 'yes'; then
24227 WITH_MAGICK_PLUS_PLUS_TRUE=
24228 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24229else
24230 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24231 WITH_MAGICK_PLUS_PLUS_FALSE=
24232fi
24233
cristy3ed852e2009-09-05 21:47:34 +000024234
24235# Only check for delegate libraries in subdirectories if requested.
24236if test "$enable_delegate_build" != 'no'; then
24237 # Check for delegate sub-directories and add -I & -L options as required.
24238 # This presumes that delegates are installed as detailed in the ImageMagick
24239 # README. If delegates are installed in a standard location where the
24240 # compiler will automatically find them then these options should not be
24241 # required.
24242
24243 #
24244 # Most delegates have includes in the same directory as the library, but not all...
24245 #
24246 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024247 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 +000024248 if test -d "$builddir/$dir"; then
24249 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24250 else
24251 if test -d "$srcdirfull/$dir"; then
24252 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24253 fi
24254 fi
24255 done
24256
24257 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024258 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 +000024259 if test -d "$builddir/$dir/.libs"; then
24260 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24261 else
24262 if test -d "$srcdirfull/$dir/.libs"; then
24263 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24264 fi
24265 fi
24266 if test -d "$builddir/$dir"; then
24267 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24268 else
24269 if test -d "$srcdirfull/$dir"; then
24270 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24271 fi
24272 fi
24273 done
24274fi
24275
24276# Assume that delegate headers reside under same directory as ImageMagick
24277# installation prefix.
24278MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24279
24280#
24281# Find the X11 RGB database
24282#
cristy8b350f62009-11-15 23:12:43 +000024283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024284$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024285if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024286 $as_echo_n "(cached) " >&6
24287else
24288 # Look for the header file in a standard set of common directories.
24289# Check X11 before X11Rn because it is often a symlink to the current release.
24290 for ac_dir in \
24291 /lib/usr/lib/X11 \
24292 /usr/X11/lib \
24293 /usr/X11R4/lib \
24294 /usr/X11R5/lib \
24295 /usr/X11R6/lib \
24296 /usr/X11R7/lib \
24297 /usr/X386/lib \
24298 /usr/XFree86/lib/X11 \
24299 /usr/athena/lib \
24300 /usr/lib \
24301 /usr/lib/X11 \
24302 /usr/lib/X11R4 \
24303 /usr/lib/X11R5 \
24304 /usr/lib/X11R6 \
24305 /usr/lib/X11R7 \
24306 /usr/local/X11/lib \
24307 /usr/local/X11R4/lib \
24308 /usr/local/X11R5/lib \
24309 /usr/local/X11R6/lib \
24310 /usr/local/lib \
24311 /usr/local/lib/X11 \
24312 /usr/local/lib/X11R4 \
24313 /usr/local/lib/X11R5 \
24314 /usr/local/lib/X11R6 \
24315 /usr/local/lib/X11R7 \
24316 /usr/local/x11r5/lib \
24317 /usr/lpp/Xamples/lib \
24318 /usr/openwin/lib \
24319 /usr/openwin/share/lib \
24320 /usr/unsupported/lib \
24321 /usr/x386/lib \
24322 ; do
24323 if test -f "$ac_dir/X11/rgb.txt"; then
24324 im_cv_x_configure="$ac_dir/X11/"
24325 break
24326 elif test -f "$ac_dir/rgb.txt"; then
24327 im_cv_x_configure="$ac_dir/"
24328 break
24329 fi
24330
24331 done
24332fi
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo "$im_cv_x_configure" >&6; }
24335X11_CONFIGURE_PATH="$im_cv_x_configure"
24336case "${build_os}" in
24337 mingw* )
24338 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24339 ;;
24340esac
24341
24342cat >>confdefs.h <<_ACEOF
24343#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24344_ACEOF
24345
24346
24347#
24348# Find OpenMP library
24349#
24350GOMP_LIBS=''
24351if test "$enable_openmp" != 'no'; then
24352 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024354$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024355if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024356 $as_echo_n "(cached) " >&6
24357else
24358 ac_check_lib_save_LIBS=$LIBS
24359LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024361/* end confdefs.h. */
24362
24363/* Override any GCC internal prototype to avoid an error.
24364 Use char because int might match the return type of a GCC
24365 builtin and then its argument prototype would still apply. */
24366#ifdef __cplusplus
24367extern "C"
24368#endif
24369char GOMP_parallel_start ();
24370int
24371main ()
24372{
24373return GOMP_parallel_start ();
24374 ;
24375 return 0;
24376}
24377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024379 ac_cv_lib_gomp_GOMP_parallel_start=yes
24380else
cristy8b350f62009-11-15 23:12:43 +000024381 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024382fi
cristy8b350f62009-11-15 23:12:43 +000024383rm -f core conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024385LIBS=$ac_check_lib_save_LIBS
24386fi
cristy8b350f62009-11-15 23:12:43 +000024387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024388$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024389if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024390 GOMP_LIBS="-lgomp"
24391fi
24392 # gcc
24393 else
cristy8b350f62009-11-15 23:12:43 +000024394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024395$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024396if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024397 $as_echo_n "(cached) " >&6
24398else
24399 ac_check_lib_save_LIBS=$LIBS
24400LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024402/* end confdefs.h. */
24403
24404/* Override any GCC internal prototype to avoid an error.
24405 Use char because int might match the return type of a GCC
24406 builtin and then its argument prototype would still apply. */
24407#ifdef __cplusplus
24408extern "C"
24409#endif
24410char sunw_mp_register_warn ();
24411int
24412main ()
24413{
24414return sunw_mp_register_warn ();
24415 ;
24416 return 0;
24417}
24418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024419if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024420 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24421else
cristy8b350f62009-11-15 23:12:43 +000024422 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024423fi
cristy8b350f62009-11-15 23:12:43 +000024424rm -f core conftest.err conftest.$ac_objext \
24425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024426LIBS=$ac_check_lib_save_LIBS
24427fi
cristy8b350f62009-11-15 23:12:43 +000024428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024429$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024430if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 GOMP_LIBS="-lmtsk"
24432fi
24433 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024436if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 $as_echo_n "(cached) " >&6
24438else
24439 ac_check_lib_save_LIBS=$LIBS
24440LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442/* end confdefs.h. */
24443
24444/* Override any GCC internal prototype to avoid an error.
24445 Use char because int might match the return type of a GCC
24446 builtin and then its argument prototype would still apply. */
24447#ifdef __cplusplus
24448extern "C"
24449#endif
24450char _xlsmpFlush ();
24451int
24452main ()
24453{
24454return _xlsmpFlush ();
24455 ;
24456 return 0;
24457}
24458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024460 ac_cv_lib_xlsmp__xlsmpFlush=yes
24461else
cristy8b350f62009-11-15 23:12:43 +000024462 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024463fi
cristy8b350f62009-11-15 23:12:43 +000024464rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024466LIBS=$ac_check_lib_save_LIBS
24467fi
cristy8b350f62009-11-15 23:12:43 +000024468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024470if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 GOMP_LIBS="-lxlsmp"
24472fi
24473 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024476if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 $as_echo_n "(cached) " >&6
24478else
24479 ac_check_lib_save_LIBS=$LIBS
24480LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024482/* end confdefs.h. */
24483
24484/* Override any GCC internal prototype to avoid an error.
24485 Use char because int might match the return type of a GCC
24486 builtin and then its argument prototype would still apply. */
24487#ifdef __cplusplus
24488extern "C"
24489#endif
24490char mp_destroy ();
24491int
24492main ()
24493{
24494return mp_destroy ();
24495 ;
24496 return 0;
24497}
24498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024499if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024500 ac_cv_lib_mp_mp_destroy=yes
24501else
cristy8b350f62009-11-15 23:12:43 +000024502 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024503fi
cristy8b350f62009-11-15 23:12:43 +000024504rm -f core conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024506LIBS=$ac_check_lib_save_LIBS
24507fi
cristy8b350f62009-11-15 23:12:43 +000024508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024510if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024511 GOMP_LIBS="-lmp"
24512fi
24513 # SGI IRIX 6.5 MIPSpro C/C++
24514 fi
24515 LIBS="$GOMP_LIBS $LIBS"
24516fi
24517
24518
24519#
24520# Find Posix threads library
24521#
24522THREAD_LIBS=''
24523if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24524
24525 if test "x$PTHREAD_LIBS" = "x"; then
24526 case "${host_cpu}-${host_os}" in
24527 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000024528
24529
24530
24531ac_ext=c
24532ac_cpp='$CPP $CPPFLAGS'
24533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24535ac_compiler_gnu=$ac_cv_c_compiler_gnu
24536
24537magick_pthread_lib_ok=no
24538
24539LIB=-lc_r
24540save_LIBS="$LIBS"
24541LIBS="$LIBS $LIB"
24542
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24544$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24546/* end confdefs.h. */
24547#include <pthread.h>
24548int
24549main ()
24550{
24551 pthread_t th;
24552 pthread_join(th, 0);
24553 pthread_attr_init(0);
24554 pthread_cleanup_push(0, 0);
24555 pthread_create(0,0,0,0);
24556 pthread_cleanup_pop(0);
24557 ;
24558 return 0;
24559}
24560_ACEOF
24561if ac_fn_c_try_link "$LINENO"; then :
24562 magick_pthread_lib_ok=yes
24563fi
24564rm -f core conftest.err conftest.$ac_objext \
24565 conftest$ac_exeext conftest.$ac_ext
24566
24567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24568$as_echo "${magick_pthread_lib_ok}" >&6; }
24569if test "$magick_pthread_lib_ok" = yes
24570then
24571 PTHREAD_LIBS=-lc_r
24572 :
24573else
24574
24575 :
24576fi
24577
24578LIBS="$save_LIBS"
24579
24580ac_ext=c
24581ac_cpp='$CPP $CPPFLAGS'
24582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24584ac_compiler_gnu=$ac_cv_c_compiler_gnu
24585
24586 ;;
cristy3ed852e2009-09-05 21:47:34 +000024587 esac
24588 fi
24589
24590 for lib in pthread pthreads; do
24591 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000024592
24593
24594
24595ac_ext=c
24596ac_cpp='$CPP $CPPFLAGS'
24597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24599ac_compiler_gnu=$ac_cv_c_compiler_gnu
24600
24601magick_pthread_lib_ok=no
24602
24603LIB=-l$lib
24604save_LIBS="$LIBS"
24605LIBS="$LIBS $LIB"
24606
24607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24608$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610/* end confdefs.h. */
24611#include <pthread.h>
24612int
24613main ()
24614{
24615 pthread_t th;
24616 pthread_join(th, 0);
24617 pthread_attr_init(0);
24618 pthread_cleanup_push(0, 0);
24619 pthread_create(0,0,0,0);
24620 pthread_cleanup_pop(0);
24621 ;
24622 return 0;
24623}
24624_ACEOF
24625if ac_fn_c_try_link "$LINENO"; then :
24626 magick_pthread_lib_ok=yes
24627fi
24628rm -f core conftest.err conftest.$ac_objext \
24629 conftest$ac_exeext conftest.$ac_ext
24630
24631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24632$as_echo "${magick_pthread_lib_ok}" >&6; }
24633if test "$magick_pthread_lib_ok" = yes
24634then
24635 PTHREAD_LIBS=-l$lib
24636 :
24637else
24638
24639 :
24640fi
24641
24642LIBS="$save_LIBS"
24643
24644ac_ext=c
24645ac_cpp='$CPP $CPPFLAGS'
24646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24648ac_compiler_gnu=$ac_cv_c_compiler_gnu
24649
24650
cristy3ed852e2009-09-05 21:47:34 +000024651 fi
24652 done
24653
24654 THREAD_LIBS="$PTHREAD_LIBS"
24655 LIBS="$LIBS $THREAD_LIBS"
24656fi
24657
24658
24659#
24660# Check for umem.
24661#
24662have_umem='no'
24663UMEM_LIBS=''
24664if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024666$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024668$as_echo "" >&6; }
24669 failed=0
24670 passed=0
cristy8b350f62009-11-15 23:12:43 +000024671 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24672if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024673 passed=`expr $passed + 1`
24674else
24675 failed=`expr $failed + 1`
24676fi
24677
24678
cristy8b350f62009-11-15 23:12:43 +000024679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024680$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024681if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 $as_echo_n "(cached) " >&6
24683else
24684 ac_check_lib_save_LIBS=$LIBS
24685LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024687/* end confdefs.h. */
24688
24689/* Override any GCC internal prototype to avoid an error.
24690 Use char because int might match the return type of a GCC
24691 builtin and then its argument prototype would still apply. */
24692#ifdef __cplusplus
24693extern "C"
24694#endif
24695char umem_alloc ();
24696int
24697main ()
24698{
24699return umem_alloc ();
24700 ;
24701 return 0;
24702}
24703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 ac_cv_lib_umem_umem_alloc=yes
24706else
cristy8b350f62009-11-15 23:12:43 +000024707 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024708fi
cristy8b350f62009-11-15 23:12:43 +000024709rm -f core conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024711LIBS=$ac_check_lib_save_LIBS
24712fi
cristy8b350f62009-11-15 23:12:43 +000024713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024714$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024715if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 passed=`expr $passed + 1`
24717else
24718 failed=`expr $failed + 1`
24719fi
24720
cristy8b350f62009-11-15 23:12:43 +000024721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024723if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 $as_echo_n "(cached) " >&6
24725else
24726 ac_check_lib_save_LIBS=$LIBS
24727LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729/* end confdefs.h. */
24730
24731/* Override any GCC internal prototype to avoid an error.
24732 Use char because int might match the return type of a GCC
24733 builtin and then its argument prototype would still apply. */
24734#ifdef __cplusplus
24735extern "C"
24736#endif
24737char umem_free ();
24738int
24739main ()
24740{
24741return umem_free ();
24742 ;
24743 return 0;
24744}
24745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 ac_cv_lib_umem_umem_free=yes
24748else
cristy8b350f62009-11-15 23:12:43 +000024749 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024750fi
cristy8b350f62009-11-15 23:12:43 +000024751rm -f core conftest.err conftest.$ac_objext \
24752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024753LIBS=$ac_check_lib_save_LIBS
24754fi
cristy8b350f62009-11-15 23:12:43 +000024755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024756$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024757if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 passed=`expr $passed + 1`
24759else
24760 failed=`expr $failed + 1`
24761fi
24762
cristy8b350f62009-11-15 23:12:43 +000024763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024764$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24765 if test $passed -gt 0; then
24766 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024768$as_echo "no -- some components failed test" >&6; }
24769 have_umem='no (failed tests)'
24770 else
24771 UMEM_LIBS='-lumem'
24772 LIBS="$UMEM_LIBS $LIBS"
24773
cristy8b350f62009-11-15 23:12:43 +000024774$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024775
cristy8b350f62009-11-15 23:12:43 +000024776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024777$as_echo "yes" >&6; }
24778 have_umem='yes'
24779 fi
24780 else
cristy8b350f62009-11-15 23:12:43 +000024781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024782$as_echo "no" >&6; }
24783 fi
24784fi
cristy73bd4a52010-10-05 11:24:23 +000024785 if test "$have_umem" = 'yes'; then
24786 HasUMEM_TRUE=
24787 HasUMEM_FALSE='#'
24788else
24789 HasUMEM_TRUE='#'
24790 HasUMEM_FALSE=
24791fi
24792
cristy3ed852e2009-09-05 21:47:34 +000024793
24794
24795#
24796# Add support for ccmalloc memory debugging library if requested
24797#
24798have_ccmalloc='no'
24799CCMALLOC_LIBS=''
24800if test "$enable_ccmalloc" = 'yes'; then
24801 # Extract the first word of "ccmalloc", so it can be a program name with args.
24802set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024805if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024806 $as_echo_n "(cached) " >&6
24807else
24808 case $CCMALLOCDelegate in
24809 [\\/]* | ?:[\\/]*)
24810 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24811 ;;
24812 *)
24813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24814for as_dir in $PATH
24815do
24816 IFS=$as_save_IFS
24817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24820 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024822 break 2
24823 fi
24824done
cristy8b350f62009-11-15 23:12:43 +000024825 done
cristy3ed852e2009-09-05 21:47:34 +000024826IFS=$as_save_IFS
24827
24828 ;;
24829esac
24830fi
24831CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24832if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024834$as_echo "$CCMALLOCDelegate" >&6; }
24835else
cristy8b350f62009-11-15 23:12:43 +000024836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo "no" >&6; }
24838fi
24839
24840
24841 if test -n "$CCMALLOCDelegate"; then
24842 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24843 OLIBS="$LIBS"
24844 # Assume that gcc is used with ccmalloc.
24845 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024848if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024849 $as_echo_n "(cached) " >&6
24850else
24851 ac_check_lib_save_LIBS=$LIBS
24852LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024854/* end confdefs.h. */
24855
24856/* Override any GCC internal prototype to avoid an error.
24857 Use char because int might match the return type of a GCC
24858 builtin and then its argument prototype would still apply. */
24859#ifdef __cplusplus
24860extern "C"
24861#endif
24862char ccmalloc_malloc ();
24863int
24864main ()
24865{
24866return ccmalloc_malloc ();
24867 ;
24868 return 0;
24869}
24870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024872 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24873else
cristy8b350f62009-11-15 23:12:43 +000024874 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024875fi
cristy8b350f62009-11-15 23:12:43 +000024876rm -f core conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024878LIBS=$ac_check_lib_save_LIBS
24879fi
cristy8b350f62009-11-15 23:12:43 +000024880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024881$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024882if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024883 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24884fi
24885
24886 if test -n "$CCMALLOC_LIBS"; then
24887 LIBS="$OLIBS"
24888 LIBS="$LIBS $CCMALLOC_LIBS"
24889 have_ccmalloc='yes'
24890 else
24891 LIBS="$OLIBS"
24892 fi
24893 fi
24894fi
24895
24896#
24897# Add support for efence memory debugging library if requested
24898#
24899if test "$enable_efence" = 'yes'; then
24900 EFENCE_LIBS='-lefence'
24901 LIBS="$EFENCE_LIBS $LIBS"
24902fi
24903
cristy3ed852e2009-09-05 21:47:34 +000024904
24905#
24906# Check for BZLIB
24907#
24908
24909
24910# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024911if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024912 withval=$with_bzlib; with_bzlib=$withval
24913else
24914 with_bzlib='yes'
24915fi
24916
24917
24918if test "$with_bzlib" != 'yes'; then
24919 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24920fi
24921
24922have_bzlib='no'
24923if test "$with_bzlib" != 'no'; then
24924 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024928$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024930$as_echo "" >&6; }
24931 failed=0
24932 passed=0
24933 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024934 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24935if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024936 passed=`expr $passed + 1`
24937else
24938 failed=`expr $failed + 1`
24939fi
24940
24941
cristy8b350f62009-11-15 23:12:43 +000024942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024943$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024944if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024945 $as_echo_n "(cached) " >&6
24946else
24947 ac_check_lib_save_LIBS=$LIBS
24948LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024950/* end confdefs.h. */
24951
24952/* Override any GCC internal prototype to avoid an error.
24953 Use char because int might match the return type of a GCC
24954 builtin and then its argument prototype would still apply. */
24955#ifdef __cplusplus
24956extern "C"
24957#endif
24958char BZ2_bzDecompress ();
24959int
24960main ()
24961{
24962return BZ2_bzDecompress ();
24963 ;
24964 return 0;
24965}
24966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024967if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24969else
cristy8b350f62009-11-15 23:12:43 +000024970 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024971fi
cristy8b350f62009-11-15 23:12:43 +000024972rm -f core conftest.err conftest.$ac_objext \
24973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024974LIBS=$ac_check_lib_save_LIBS
24975fi
cristy8b350f62009-11-15 23:12:43 +000024976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024977$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024978if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024979 found_libbz=`expr $found_libbz + 1`
24980fi
24981
24982 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024984$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024985if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024986 $as_echo_n "(cached) " >&6
24987else
24988 ac_check_lib_save_LIBS=$LIBS
24989LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024991/* end confdefs.h. */
24992
24993/* Override any GCC internal prototype to avoid an error.
24994 Use char because int might match the return type of a GCC
24995 builtin and then its argument prototype would still apply. */
24996#ifdef __cplusplus
24997extern "C"
24998#endif
24999char _imp__BZ2_decompress ();
25000int
25001main ()
25002{
25003return _imp__BZ2_decompress ();
25004 ;
25005 return 0;
25006}
25007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025008if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25010else
cristy8b350f62009-11-15 23:12:43 +000025011 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025012fi
cristy8b350f62009-11-15 23:12:43 +000025013rm -f core conftest.err conftest.$ac_objext \
25014 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015LIBS=$ac_check_lib_save_LIBS
25016fi
cristy8b350f62009-11-15 23:12:43 +000025017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025018$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025019if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025020 found_libbz=`expr $found_libbz + 1`
25021fi
25022
25023 fi
25024 if test $found_libbz -gt 0; then
25025 passed=`expr $passed + 1`
25026 else
25027 failed=`expr $failed + 1`
25028 fi
cristy8b350f62009-11-15 23:12:43 +000025029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025030$as_echo_n "checking if BZLIB package is complete... " >&6; }
25031 if test $passed -gt 0; then
25032 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025034$as_echo "no -- some components failed test" >&6; }
25035 have_bzlib='no (failed tests)'
25036 else
25037 BZLIB_LIBS='-lbz2'
25038 LIBS="$BZLIB_LIBS $LIBS"
25039
cristy8b350f62009-11-15 23:12:43 +000025040$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025041
cristy8b350f62009-11-15 23:12:43 +000025042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025043$as_echo "yes" >&6; }
25044 have_bzlib='yes'
25045 fi
25046 else
cristy8b350f62009-11-15 23:12:43 +000025047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025048$as_echo "no" >&6; }
25049 fi
25050fi
cristy73bd4a52010-10-05 11:24:23 +000025051 if test "$have_bzlib" = 'yes'; then
25052 BZLIB_DELEGATE_TRUE=
25053 BZLIB_DELEGATE_FALSE='#'
25054else
25055 BZLIB_DELEGATE_TRUE='#'
25056 BZLIB_DELEGATE_FALSE=
25057fi
25058
cristy3ed852e2009-09-05 21:47:34 +000025059
25060
25061#
25062# Find the X11 include and library directories.
25063#
25064IPC_LIBS=''
25065X11_LIBS=''
25066XEXT_LIBS=''
25067XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025069$as_echo_n "checking for X... " >&6; }
25070
25071
25072# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025073if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025074 withval=$with_x;
25075fi
25076
25077# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25078if test "x$with_x" = xno; then
25079 # The user explicitly disabled X.
25080 have_x=disabled
25081else
25082 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025083 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000025084 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025085 $as_echo_n "(cached) " >&6
25086else
25087 # One or both of the vars are not set, and there is no cached value.
25088ac_x_includes=no ac_x_libraries=no
25089rm -f -r conftest.dir
25090if mkdir conftest.dir; then
25091 cd conftest.dir
25092 cat >Imakefile <<'_ACEOF'
25093incroot:
25094 @echo incroot='${INCROOT}'
25095usrlibdir:
25096 @echo usrlibdir='${USRLIBDIR}'
25097libdir:
25098 @echo libdir='${LIBDIR}'
25099_ACEOF
25100 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025102 for ac_var in incroot usrlibdir libdir; do
25103 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25104 done
25105 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25106 for ac_extension in a so sl dylib la dll; do
25107 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25108 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25109 ac_im_usrlibdir=$ac_im_libdir; break
25110 fi
25111 done
25112 # Screen out bogus values from the imake configuration. They are
25113 # bogus both because they are the default anyway, and because
25114 # using them would break gcc on systems where it needs fixed includes.
25115 case $ac_im_incroot in
25116 /usr/include) ac_x_includes= ;;
25117 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25118 esac
25119 case $ac_im_usrlibdir in
25120 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25121 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25122 esac
25123 fi
25124 cd ..
25125 rm -f -r conftest.dir
25126fi
25127
25128# Standard set of common directories for X headers.
25129# Check X11 before X11Rn because it is often a symlink to the current release.
25130ac_x_header_dirs='
25131/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025132/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025133/usr/X11R6/include
25134/usr/X11R5/include
25135/usr/X11R4/include
25136
25137/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025138/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025139/usr/include/X11R6
25140/usr/include/X11R5
25141/usr/include/X11R4
25142
25143/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025144/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025145/usr/local/X11R6/include
25146/usr/local/X11R5/include
25147/usr/local/X11R4/include
25148
25149/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025150/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025151/usr/local/include/X11R6
25152/usr/local/include/X11R5
25153/usr/local/include/X11R4
25154
25155/usr/X386/include
25156/usr/x386/include
25157/usr/XFree86/include/X11
25158
25159/usr/include
25160/usr/local/include
25161/usr/unsupported/include
25162/usr/athena/include
25163/usr/local/x11r5/include
25164/usr/lpp/Xamples/include
25165
25166/usr/openwin/include
25167/usr/openwin/share/include'
25168
25169if test "$ac_x_includes" = no; then
25170 # Guess where to find include files, by looking for Xlib.h.
25171 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025173/* end confdefs.h. */
25174#include <X11/Xlib.h>
25175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025176if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025177 # We can compile using X headers with no special include directory.
25178ac_x_includes=
25179else
cristyc7083c12009-10-14 03:16:55 +000025180 for ac_dir in $ac_x_header_dirs; do
25181 if test -r "$ac_dir/X11/Xlib.h"; then
25182 ac_x_includes=$ac_dir
25183 break
25184 fi
25185done
25186fi
cristyc7083c12009-10-14 03:16:55 +000025187rm -f conftest.err conftest.$ac_ext
25188fi # $ac_x_includes = no
25189
25190if test "$ac_x_libraries" = no; then
25191 # Check for the libraries.
25192 # See if we find them without any special options.
25193 # Don't add to $LIBS permanently.
25194 ac_save_LIBS=$LIBS
25195 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025197/* end confdefs.h. */
25198#include <X11/Xlib.h>
25199int
25200main ()
25201{
25202XrmInitialize ()
25203 ;
25204 return 0;
25205}
25206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025207if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025208 LIBS=$ac_save_LIBS
25209# We can link X programs with no special library path.
25210ac_x_libraries=
25211else
cristy8b350f62009-11-15 23:12:43 +000025212 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025213for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25214do
25215 # Don't even attempt the hair of trying to link an X program!
25216 for ac_extension in a so sl dylib la dll; do
25217 if test -r "$ac_dir/libX11.$ac_extension"; then
25218 ac_x_libraries=$ac_dir
25219 break 2
25220 fi
25221 done
25222done
25223fi
cristy8b350f62009-11-15 23:12:43 +000025224rm -f core conftest.err conftest.$ac_objext \
25225 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025226fi # $ac_x_libraries = no
25227
25228case $ac_x_includes,$ac_x_libraries in #(
25229 no,* | *,no | *\'*)
25230 # Didn't find X, or a directory has "'" in its name.
25231 ac_cv_have_x="have_x=no";; #(
25232 *)
25233 # Record where we found X for the cache.
25234 ac_cv_have_x="have_x=yes\
25235 ac_x_includes='$ac_x_includes'\
25236 ac_x_libraries='$ac_x_libraries'"
25237esac
25238fi
25239;; #(
25240 *) have_x=yes;;
25241 esac
25242 eval "$ac_cv_have_x"
25243fi # $with_x != no
25244
25245if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025247$as_echo "$have_x" >&6; }
25248 no_x=yes
25249else
25250 # If each of the values was on the command line, it overrides each guess.
25251 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25252 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25253 # Update the cache value to reflect the command line values.
25254 ac_cv_have_x="have_x=yes\
25255 ac_x_includes='$x_includes'\
25256 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025258$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25259fi
25260
cristy3ed852e2009-09-05 21:47:34 +000025261if test "$no_x" = yes; then
25262 # Not all programs may use this symbol, but it does not hurt to define it.
25263
cristy8b350f62009-11-15 23:12:43 +000025264$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025265
25266 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25267else
25268 if test -n "$x_includes"; then
25269 X_CFLAGS="$X_CFLAGS -I$x_includes"
25270 fi
25271
25272 # It would also be nice to do this for all -L options, not just this one.
25273 if test -n "$x_libraries"; then
25274 X_LIBS="$X_LIBS -L$x_libraries"
25275 # For Solaris; some versions of Sun CC require a space after -R and
25276 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025278$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25279 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25280 ac_xsave_c_werror_flag=$ac_c_werror_flag
25281 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025283/* end confdefs.h. */
25284
25285int
25286main ()
25287{
25288
25289 ;
25290 return 0;
25291}
25292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025293if ac_fn_c_try_link "$LINENO"; then :
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo "no" >&6; }
25296 X_LIBS="$X_LIBS -R$x_libraries"
25297else
cristy8b350f62009-11-15 23:12:43 +000025298 LIBS="$ac_xsave_LIBS -R $x_libraries"
25299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025300/* end confdefs.h. */
25301
25302int
25303main ()
25304{
25305
25306 ;
25307 return 0;
25308}
25309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025310if ac_fn_c_try_link "$LINENO"; then :
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025312$as_echo "yes" >&6; }
25313 X_LIBS="$X_LIBS -R $x_libraries"
25314else
cristy8b350f62009-11-15 23:12:43 +000025315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025316$as_echo "neither works" >&6; }
25317fi
cristy8b350f62009-11-15 23:12:43 +000025318rm -f core conftest.err conftest.$ac_objext \
25319 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025320fi
cristy8b350f62009-11-15 23:12:43 +000025321rm -f core conftest.err conftest.$ac_objext \
25322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025323 ac_c_werror_flag=$ac_xsave_c_werror_flag
25324 LIBS=$ac_xsave_LIBS
25325 fi
25326
25327 # Check for system-dependent libraries X programs must link with.
25328 # Do this before checking for the system-independent R6 libraries
25329 # (-lICE), since we may need -lsocket or whatever for X linking.
25330
25331 if test "$ISC" = yes; then
25332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25333 else
25334 # Martyn Johnson says this is needed for Ultrix, if the X
25335 # libraries were built with DECnet support. And Karl Berry says
25336 # the Alpha needs dnet_stub (dnet does not exist).
25337 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025339/* end confdefs.h. */
25340
25341/* Override any GCC internal prototype to avoid an error.
25342 Use char because int might match the return type of a GCC
25343 builtin and then its argument prototype would still apply. */
25344#ifdef __cplusplus
25345extern "C"
25346#endif
25347char XOpenDisplay ();
25348int
25349main ()
25350{
25351return XOpenDisplay ();
25352 ;
25353 return 0;
25354}
25355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025357
cristy8b350f62009-11-15 23:12:43 +000025358else
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025361if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 $as_echo_n "(cached) " >&6
25363else
25364 ac_check_lib_save_LIBS=$LIBS
25365LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025367/* end confdefs.h. */
25368
25369/* Override any GCC internal prototype to avoid an error.
25370 Use char because int might match the return type of a GCC
25371 builtin and then its argument prototype would still apply. */
25372#ifdef __cplusplus
25373extern "C"
25374#endif
25375char dnet_ntoa ();
25376int
25377main ()
25378{
25379return dnet_ntoa ();
25380 ;
25381 return 0;
25382}
25383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025385 ac_cv_lib_dnet_dnet_ntoa=yes
25386else
cristy8b350f62009-11-15 23:12:43 +000025387 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025388fi
cristy8b350f62009-11-15 23:12:43 +000025389rm -f core conftest.err conftest.$ac_objext \
25390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025391LIBS=$ac_check_lib_save_LIBS
25392fi
cristy8b350f62009-11-15 23:12:43 +000025393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025394$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025395if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025396 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25397fi
25398
25399 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025401$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025402if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025403 $as_echo_n "(cached) " >&6
25404else
25405 ac_check_lib_save_LIBS=$LIBS
25406LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025408/* end confdefs.h. */
25409
25410/* Override any GCC internal prototype to avoid an error.
25411 Use char because int might match the return type of a GCC
25412 builtin and then its argument prototype would still apply. */
25413#ifdef __cplusplus
25414extern "C"
25415#endif
25416char dnet_ntoa ();
25417int
25418main ()
25419{
25420return dnet_ntoa ();
25421 ;
25422 return 0;
25423}
25424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025426 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25427else
cristy8b350f62009-11-15 23:12:43 +000025428 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025429fi
cristy8b350f62009-11-15 23:12:43 +000025430rm -f core conftest.err conftest.$ac_objext \
25431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025432LIBS=$ac_check_lib_save_LIBS
25433fi
cristy8b350f62009-11-15 23:12:43 +000025434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025436if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025437 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25438fi
25439
25440 fi
25441fi
cristy8b350f62009-11-15 23:12:43 +000025442rm -f core conftest.err conftest.$ac_objext \
25443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025444 LIBS="$ac_xsave_LIBS"
25445
25446 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25447 # to get the SysV transport functions.
25448 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25449 # needs -lnsl.
25450 # The nsl library prevents programs from opening the X display
25451 # on Irix 5.2, according to T.E. Dickey.
25452 # The functions gethostbyname, getservbyname, and inet_addr are
25453 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025454 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25455if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025456
cristy3ed852e2009-09-05 21:47:34 +000025457fi
25458
cristy3ed852e2009-09-05 21:47:34 +000025459 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025462if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 $as_echo_n "(cached) " >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
25466LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025468/* end confdefs.h. */
25469
25470/* Override any GCC internal prototype to avoid an error.
25471 Use char because int might match the return type of a GCC
25472 builtin and then its argument prototype would still apply. */
25473#ifdef __cplusplus
25474extern "C"
25475#endif
25476char gethostbyname ();
25477int
25478main ()
25479{
25480return gethostbyname ();
25481 ;
25482 return 0;
25483}
25484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 ac_cv_lib_nsl_gethostbyname=yes
25487else
cristy8b350f62009-11-15 23:12:43 +000025488 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025489fi
cristy8b350f62009-11-15 23:12:43 +000025490rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025492LIBS=$ac_check_lib_save_LIBS
25493fi
cristy8b350f62009-11-15 23:12:43 +000025494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025495$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025496if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025497 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25498fi
25499
25500 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025502$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025503if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025504 $as_echo_n "(cached) " >&6
25505else
25506 ac_check_lib_save_LIBS=$LIBS
25507LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025509/* end confdefs.h. */
25510
25511/* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25514#ifdef __cplusplus
25515extern "C"
25516#endif
25517char gethostbyname ();
25518int
25519main ()
25520{
25521return gethostbyname ();
25522 ;
25523 return 0;
25524}
25525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 ac_cv_lib_bsd_gethostbyname=yes
25528else
cristy8b350f62009-11-15 23:12:43 +000025529 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025530fi
cristy8b350f62009-11-15 23:12:43 +000025531rm -f core conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025533LIBS=$ac_check_lib_save_LIBS
25534fi
cristy8b350f62009-11-15 23:12:43 +000025535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025536$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025537if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25539fi
25540
25541 fi
25542 fi
25543
25544 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25545 # socket/setsockopt and other routines are undefined under SCO ODT
25546 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25547 # on later versions), says Simon Leinen: it contains gethostby*
25548 # variants that don't use the name server (or something). -lsocket
25549 # must be given before -lnsl if both are needed. We assume that
25550 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025551 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25552if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025553
cristy3ed852e2009-09-05 21:47:34 +000025554fi
25555
cristy3ed852e2009-09-05 21:47:34 +000025556 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025558$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025559if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025560 $as_echo_n "(cached) " >&6
25561else
25562 ac_check_lib_save_LIBS=$LIBS
25563LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025565/* end confdefs.h. */
25566
25567/* Override any GCC internal prototype to avoid an error.
25568 Use char because int might match the return type of a GCC
25569 builtin and then its argument prototype would still apply. */
25570#ifdef __cplusplus
25571extern "C"
25572#endif
25573char connect ();
25574int
25575main ()
25576{
25577return connect ();
25578 ;
25579 return 0;
25580}
25581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025582if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025583 ac_cv_lib_socket_connect=yes
25584else
cristy8b350f62009-11-15 23:12:43 +000025585 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025586fi
cristy8b350f62009-11-15 23:12:43 +000025587rm -f core conftest.err conftest.$ac_objext \
25588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025589LIBS=$ac_check_lib_save_LIBS
25590fi
cristy8b350f62009-11-15 23:12:43 +000025591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025592$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025593if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025594 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25595fi
25596
25597 fi
25598
25599 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025600 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25601if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025602
cristy3ed852e2009-09-05 21:47:34 +000025603fi
25604
cristy3ed852e2009-09-05 21:47:34 +000025605 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025607$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025608if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025609 $as_echo_n "(cached) " >&6
25610else
25611 ac_check_lib_save_LIBS=$LIBS
25612LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025614/* end confdefs.h. */
25615
25616/* Override any GCC internal prototype to avoid an error.
25617 Use char because int might match the return type of a GCC
25618 builtin and then its argument prototype would still apply. */
25619#ifdef __cplusplus
25620extern "C"
25621#endif
25622char remove ();
25623int
25624main ()
25625{
25626return remove ();
25627 ;
25628 return 0;
25629}
25630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025631if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025632 ac_cv_lib_posix_remove=yes
25633else
cristy8b350f62009-11-15 23:12:43 +000025634 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025635fi
cristy8b350f62009-11-15 23:12:43 +000025636rm -f core conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025638LIBS=$ac_check_lib_save_LIBS
25639fi
cristy8b350f62009-11-15 23:12:43 +000025640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025641$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025642if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25644fi
25645
25646 fi
25647
25648 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025649 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25650if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025651
cristy3ed852e2009-09-05 21:47:34 +000025652fi
25653
cristy3ed852e2009-09-05 21:47:34 +000025654 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025657if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025658 $as_echo_n "(cached) " >&6
25659else
25660 ac_check_lib_save_LIBS=$LIBS
25661LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025663/* end confdefs.h. */
25664
25665/* Override any GCC internal prototype to avoid an error.
25666 Use char because int might match the return type of a GCC
25667 builtin and then its argument prototype would still apply. */
25668#ifdef __cplusplus
25669extern "C"
25670#endif
25671char shmat ();
25672int
25673main ()
25674{
25675return shmat ();
25676 ;
25677 return 0;
25678}
25679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025681 ac_cv_lib_ipc_shmat=yes
25682else
cristy8b350f62009-11-15 23:12:43 +000025683 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025684fi
cristy8b350f62009-11-15 23:12:43 +000025685rm -f core conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025687LIBS=$ac_check_lib_save_LIBS
25688fi
cristy8b350f62009-11-15 23:12:43 +000025689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025690$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025691if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025692 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25693fi
25694
25695 fi
25696 fi
25697
25698 # Check for libraries that X11R6 Xt/Xaw programs need.
25699 ac_save_LDFLAGS=$LDFLAGS
25700 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25701 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25702 # check for ICE first), but we must link in the order -lSM -lICE or
25703 # we get undefined symbols. So assume we have SM if we have ICE.
25704 # These have to be linked with before -lX11, unlike the other
25705 # libraries we check for below, so use a different variable.
25706 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025708$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025709if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025710 $as_echo_n "(cached) " >&6
25711else
25712 ac_check_lib_save_LIBS=$LIBS
25713LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025715/* end confdefs.h. */
25716
25717/* Override any GCC internal prototype to avoid an error.
25718 Use char because int might match the return type of a GCC
25719 builtin and then its argument prototype would still apply. */
25720#ifdef __cplusplus
25721extern "C"
25722#endif
25723char IceConnectionNumber ();
25724int
25725main ()
25726{
25727return IceConnectionNumber ();
25728 ;
25729 return 0;
25730}
25731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025732if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025733 ac_cv_lib_ICE_IceConnectionNumber=yes
25734else
cristy8b350f62009-11-15 23:12:43 +000025735 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025736fi
cristy8b350f62009-11-15 23:12:43 +000025737rm -f core conftest.err conftest.$ac_objext \
25738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025739LIBS=$ac_check_lib_save_LIBS
25740fi
cristy8b350f62009-11-15 23:12:43 +000025741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025742$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025743if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025744 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25745fi
25746
25747 LDFLAGS=$ac_save_LDFLAGS
25748
25749fi
25750
25751if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025753$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025755$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025757$as_echo "" >&6; }
25758 LDFLAGS="$LDFLAGS $X_LIBS"
25759 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25760 LIBS="$X11_LIBS $LIBS"
25761 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25762
25763
cristy8b350f62009-11-15 23:12:43 +000025764$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025765
25766 #
25767 # Check for X11 shared memory extension
25768 #
25769 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025770 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25771if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025772 have_shmctl='yes'
25773fi
25774
25775 if test "$have_shmctl" != 'yes'; then
25776 PERSIST_LIBS=$LIBS
25777 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025779/* end confdefs.h. */
25780
25781/* Override any GCC internal prototype to avoid an error.
25782 Use char because int might match the return type of a GCC
25783 builtin and then its argument prototype would still apply. */
25784#ifdef __cplusplus
25785extern "C"
25786#endif
25787char shmctl ();
25788int
25789main ()
25790{
25791return shmctl ();
25792 ;
25793 return 0;
25794}
25795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025798fi
cristy8b350f62009-11-15 23:12:43 +000025799rm -f core conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025801 LIBS=$PERSIST_LIBS
25802 fi
25803
25804 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025807if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025808 $as_echo_n "(cached) " >&6
25809else
25810 ac_check_lib_save_LIBS=$LIBS
25811LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025813/* end confdefs.h. */
25814
25815/* Override any GCC internal prototype to avoid an error.
25816 Use char because int might match the return type of a GCC
25817 builtin and then its argument prototype would still apply. */
25818#ifdef __cplusplus
25819extern "C"
25820#endif
25821char XShmAttach ();
25822int
25823main ()
25824{
25825return XShmAttach ();
25826 ;
25827 return 0;
25828}
25829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 ac_cv_lib_Xext_XShmAttach=yes
25832else
cristy8b350f62009-11-15 23:12:43 +000025833 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025834fi
cristy8b350f62009-11-15 23:12:43 +000025835rm -f core conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025837LIBS=$ac_check_lib_save_LIBS
25838fi
cristy8b350f62009-11-15 23:12:43 +000025839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025841if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025843$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025844
25845fi
25846
25847 fi
25848
25849 #
25850 # Check for X11 shape extension
25851 #
cristy8b350f62009-11-15 23:12:43 +000025852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025853$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025854if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025855 $as_echo_n "(cached) " >&6
25856else
25857 ac_check_lib_save_LIBS=$LIBS
25858LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025860/* end confdefs.h. */
25861
25862/* Override any GCC internal prototype to avoid an error.
25863 Use char because int might match the return type of a GCC
25864 builtin and then its argument prototype would still apply. */
25865#ifdef __cplusplus
25866extern "C"
25867#endif
25868char XShapeCombineMask ();
25869int
25870main ()
25871{
25872return XShapeCombineMask ();
25873 ;
25874 return 0;
25875}
25876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025878 ac_cv_lib_Xext_XShapeCombineMask=yes
25879else
cristy8b350f62009-11-15 23:12:43 +000025880 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025881fi
cristy8b350f62009-11-15 23:12:43 +000025882rm -f core conftest.err conftest.$ac_objext \
25883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025884LIBS=$ac_check_lib_save_LIBS
25885fi
cristy8b350f62009-11-15 23:12:43 +000025886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025887$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025888if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025889 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025890$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025891
25892fi
25893
cristy8b350f62009-11-15 23:12:43 +000025894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025896if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025897 $as_echo_n "(cached) " >&6
25898else
25899 ac_check_lib_save_LIBS=$LIBS
25900LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025902/* end confdefs.h. */
25903
25904/* Override any GCC internal prototype to avoid an error.
25905 Use char because int might match the return type of a GCC
25906 builtin and then its argument prototype would still apply. */
25907#ifdef __cplusplus
25908extern "C"
25909#endif
25910char XtSetEventDispatcher ();
25911int
25912main ()
25913{
25914return XtSetEventDispatcher ();
25915 ;
25916 return 0;
25917}
25918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025920 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25921else
cristy8b350f62009-11-15 23:12:43 +000025922 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025923fi
cristy8b350f62009-11-15 23:12:43 +000025924rm -f core conftest.err conftest.$ac_objext \
25925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025926LIBS=$ac_check_lib_save_LIBS
25927fi
cristy8b350f62009-11-15 23:12:43 +000025928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025929$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025930if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025931 XT_LIBS='-lXt'
25932fi
25933
25934 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25935fi
25936if test "$no_x" != 'yes'; then
25937 have_x='yes'
25938else
25939 have_x='no'
25940fi
cristy73bd4a52010-10-05 11:24:23 +000025941 if test "$have_x" = 'yes'; then
25942 X11_DELEGATE_TRUE=
25943 X11_DELEGATE_FALSE='#'
25944else
25945 X11_DELEGATE_TRUE='#'
25946 X11_DELEGATE_FALSE=
25947fi
25948
cristy3ed852e2009-09-05 21:47:34 +000025949
25950
25951
25952
25953#
25954# Check for ZLIB
25955#
25956
25957# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025958if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025959 withval=$with_zlib; with_zlib=$withval
25960else
25961 with_zlib='yes'
25962fi
25963
25964
25965if test "$with_zlib" != 'yes'; then
25966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25967fi
25968
25969have_zlib='no'
25970ZLIB_LIBS=''
25971if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025977$as_echo "" >&6; }
25978 ZLIB_LIBS=''
25979 failed=0
25980 passed=0
cristy8b350f62009-11-15 23:12:43 +000025981 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25982if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025983 passed=`expr $passed + 1`
25984else
25985 failed=`expr $failed + 1`
25986fi
25987
25988
cristy8b350f62009-11-15 23:12:43 +000025989 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25990if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025991 passed=`expr $passed + 1`
25992else
25993 failed=`expr $failed + 1`
25994fi
25995
25996
cristy8b350f62009-11-15 23:12:43 +000025997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025999if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026000 $as_echo_n "(cached) " >&6
26001else
26002 ac_check_lib_save_LIBS=$LIBS
26003LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026005/* end confdefs.h. */
26006
26007/* Override any GCC internal prototype to avoid an error.
26008 Use char because int might match the return type of a GCC
26009 builtin and then its argument prototype would still apply. */
26010#ifdef __cplusplus
26011extern "C"
26012#endif
26013char compress ();
26014int
26015main ()
26016{
26017return compress ();
26018 ;
26019 return 0;
26020}
26021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026023 ac_cv_lib_z_compress=yes
26024else
cristy8b350f62009-11-15 23:12:43 +000026025 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026026fi
cristy8b350f62009-11-15 23:12:43 +000026027rm -f core conftest.err conftest.$ac_objext \
26028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026029LIBS=$ac_check_lib_save_LIBS
26030fi
cristy8b350f62009-11-15 23:12:43 +000026031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026032$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026033if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026034 passed=`expr $passed + 1`
26035else
26036 failed=`expr $failed + 1`
26037fi
26038
cristy8b350f62009-11-15 23:12:43 +000026039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026041if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026042 $as_echo_n "(cached) " >&6
26043else
26044 ac_check_lib_save_LIBS=$LIBS
26045LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026047/* end confdefs.h. */
26048
26049/* Override any GCC internal prototype to avoid an error.
26050 Use char because int might match the return type of a GCC
26051 builtin and then its argument prototype would still apply. */
26052#ifdef __cplusplus
26053extern "C"
26054#endif
26055char uncompress ();
26056int
26057main ()
26058{
26059return uncompress ();
26060 ;
26061 return 0;
26062}
26063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026065 ac_cv_lib_z_uncompress=yes
26066else
cristy8b350f62009-11-15 23:12:43 +000026067 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026068fi
cristy8b350f62009-11-15 23:12:43 +000026069rm -f core conftest.err conftest.$ac_objext \
26070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026071LIBS=$ac_check_lib_save_LIBS
26072fi
cristy8b350f62009-11-15 23:12:43 +000026073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026074$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026075if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026076 passed=`expr $passed + 1`
26077else
26078 failed=`expr $failed + 1`
26079fi
26080
cristy8b350f62009-11-15 23:12:43 +000026081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026082$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026083if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026084 $as_echo_n "(cached) " >&6
26085else
26086 ac_check_lib_save_LIBS=$LIBS
26087LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026089/* end confdefs.h. */
26090
26091/* Override any GCC internal prototype to avoid an error.
26092 Use char because int might match the return type of a GCC
26093 builtin and then its argument prototype would still apply. */
26094#ifdef __cplusplus
26095extern "C"
26096#endif
26097char deflate ();
26098int
26099main ()
26100{
26101return deflate ();
26102 ;
26103 return 0;
26104}
26105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026107 ac_cv_lib_z_deflate=yes
26108else
cristy8b350f62009-11-15 23:12:43 +000026109 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026110fi
cristy8b350f62009-11-15 23:12:43 +000026111rm -f core conftest.err conftest.$ac_objext \
26112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026113LIBS=$ac_check_lib_save_LIBS
26114fi
cristy8b350f62009-11-15 23:12:43 +000026115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026116$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026117if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026118 passed=`expr $passed + 1`
26119else
26120 failed=`expr $failed + 1`
26121fi
26122
cristy8b350f62009-11-15 23:12:43 +000026123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026125if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 $as_echo_n "(cached) " >&6
26127else
26128 ac_check_lib_save_LIBS=$LIBS
26129LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026131/* end confdefs.h. */
26132
26133/* Override any GCC internal prototype to avoid an error.
26134 Use char because int might match the return type of a GCC
26135 builtin and then its argument prototype would still apply. */
26136#ifdef __cplusplus
26137extern "C"
26138#endif
26139char inflate ();
26140int
26141main ()
26142{
26143return inflate ();
26144 ;
26145 return 0;
26146}
26147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026149 ac_cv_lib_z_inflate=yes
26150else
cristy8b350f62009-11-15 23:12:43 +000026151 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026152fi
cristy8b350f62009-11-15 23:12:43 +000026153rm -f core conftest.err conftest.$ac_objext \
26154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026155LIBS=$ac_check_lib_save_LIBS
26156fi
cristy8b350f62009-11-15 23:12:43 +000026157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026158$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026159if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026160 passed=`expr $passed + 1`
26161else
26162 failed=`expr $failed + 1`
26163fi
26164
cristy8b350f62009-11-15 23:12:43 +000026165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026166$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026167if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026168 $as_echo_n "(cached) " >&6
26169else
26170 ac_check_lib_save_LIBS=$LIBS
26171LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026173/* end confdefs.h. */
26174
26175/* Override any GCC internal prototype to avoid an error.
26176 Use char because int might match the return type of a GCC
26177 builtin and then its argument prototype would still apply. */
26178#ifdef __cplusplus
26179extern "C"
26180#endif
26181char gzseek ();
26182int
26183main ()
26184{
26185return gzseek ();
26186 ;
26187 return 0;
26188}
26189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026191 ac_cv_lib_z_gzseek=yes
26192else
cristy8b350f62009-11-15 23:12:43 +000026193 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026194fi
cristy8b350f62009-11-15 23:12:43 +000026195rm -f core conftest.err conftest.$ac_objext \
26196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026197LIBS=$ac_check_lib_save_LIBS
26198fi
cristy8b350f62009-11-15 23:12:43 +000026199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026200$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026201if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026202 passed=`expr $passed + 1`
26203else
26204 failed=`expr $failed + 1`
26205fi
26206
cristy8b350f62009-11-15 23:12:43 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026209if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026210 $as_echo_n "(cached) " >&6
26211else
26212 ac_check_lib_save_LIBS=$LIBS
26213LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026215/* end confdefs.h. */
26216
26217/* Override any GCC internal prototype to avoid an error.
26218 Use char because int might match the return type of a GCC
26219 builtin and then its argument prototype would still apply. */
26220#ifdef __cplusplus
26221extern "C"
26222#endif
26223char gztell ();
26224int
26225main ()
26226{
26227return gztell ();
26228 ;
26229 return 0;
26230}
26231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026233 ac_cv_lib_z_gztell=yes
26234else
cristy8b350f62009-11-15 23:12:43 +000026235 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026236fi
cristy8b350f62009-11-15 23:12:43 +000026237rm -f core conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026239LIBS=$ac_check_lib_save_LIBS
26240fi
cristy8b350f62009-11-15 23:12:43 +000026241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026242$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026243if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026244 passed=`expr $passed + 1`
26245else
26246 failed=`expr $failed + 1`
26247fi
26248
cristy8b350f62009-11-15 23:12:43 +000026249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026250$as_echo_n "checking if ZLIB package is complete... " >&6; }
26251 if test $passed -gt 0; then
26252 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026254$as_echo "no -- some components failed test" >&6; }
26255 have_zlib='no (failed tests)'
26256 else
26257 ZLIB_LIBS='-lz'
26258 LIBS="$ZLIB_LIBS $LIBS"
26259
cristy8b350f62009-11-15 23:12:43 +000026260$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026261
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo "yes" >&6; }
26264 have_zlib='yes'
26265 fi
26266 else
cristy8b350f62009-11-15 23:12:43 +000026267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026268$as_echo "no" >&6; }
26269 fi
26270fi
cristy73bd4a52010-10-05 11:24:23 +000026271 if test "$have_zlib" = 'yes'; then
26272 ZLIB_DELEGATE_TRUE=
26273 ZLIB_DELEGATE_FALSE='#'
26274else
26275 ZLIB_DELEGATE_TRUE='#'
26276 ZLIB_DELEGATE_FALSE=
26277fi
26278
cristy3ed852e2009-09-05 21:47:34 +000026279
26280
26281#
26282# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26283#
26284LIB_DL=''
26285if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026287$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026288if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 $as_echo_n "(cached) " >&6
26290else
26291 ac_check_lib_save_LIBS=$LIBS
26292LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026294/* end confdefs.h. */
26295
26296/* Override any GCC internal prototype to avoid an error.
26297 Use char because int might match the return type of a GCC
26298 builtin and then its argument prototype would still apply. */
26299#ifdef __cplusplus
26300extern "C"
26301#endif
26302char dlopen ();
26303int
26304main ()
26305{
26306return dlopen ();
26307 ;
26308 return 0;
26309}
26310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026312 ac_cv_lib_dl_dlopen=yes
26313else
cristy8b350f62009-11-15 23:12:43 +000026314 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026315fi
cristy8b350f62009-11-15 23:12:43 +000026316rm -f core conftest.err conftest.$ac_objext \
26317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026318LIBS=$ac_check_lib_save_LIBS
26319fi
cristy8b350f62009-11-15 23:12:43 +000026320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026321$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026322if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026323 LIB_DL='-ldl'
26324fi
26325
26326 LIBS="$LIB_DL $LIBS"
26327fi
26328
26329
26330
26331#
26332# Check for Autotrace delegate library.
26333#
26334
26335# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026336if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026337 withval=$with_autotrace; with_autotrace=$withval
26338else
26339 with_autotrace='no'
26340fi
26341
26342
26343if test "$with_autotrace" != 'yes'; then
26344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26345fi
26346
26347have_autotrace='no'
26348AUTOTRACE_CFLAGS=""
26349AUTOTRACE_LIBS=""
26350AUTOTRACE_PKG=""
26351if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026354
26355pkg_failed=no
26356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26357$as_echo_n "checking for AUTOTRACE... " >&6; }
26358
26359if test -n "$AUTOTRACE_CFLAGS"; then
26360 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26361 elif test -n "$PKG_CONFIG"; then
26362 if test -n "$PKG_CONFIG" && \
26363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26364 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26365 ac_status=$?
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; then
26368 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26369else
26370 pkg_failed=yes
26371fi
26372 else
26373 pkg_failed=untried
26374fi
26375if test -n "$AUTOTRACE_LIBS"; then
26376 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26377 elif test -n "$PKG_CONFIG"; then
26378 if test -n "$PKG_CONFIG" && \
26379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26380 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26381 ac_status=$?
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; then
26384 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26385else
26386 pkg_failed=yes
26387fi
26388 else
26389 pkg_failed=untried
26390fi
26391
26392
26393
26394if test $pkg_failed = yes; then
26395
26396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26397 _pkg_short_errors_supported=yes
26398else
26399 _pkg_short_errors_supported=no
26400fi
26401 if test $_pkg_short_errors_supported = yes; then
26402 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26403 else
26404 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26405 fi
26406 # Put the nasty error message in config.log where it belongs
26407 echo "$AUTOTRACE_PKG_ERRORS" >&5
26408
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26410$as_echo "no" >&6; }
26411 have_autotrace=no
26412elif test $pkg_failed = untried; then
26413 have_autotrace=no
26414else
26415 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26416 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26418$as_echo "yes" >&6; }
26419 have_autotrace=yes
26420fi
cristy8b350f62009-11-15 23:12:43 +000026421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026422$as_echo "" >&6; }
26423fi
26424
26425if test "$have_autotrace" = 'yes'; then
26426 failed=0
26427
cristy8b350f62009-11-15 23:12:43 +000026428$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026429
26430 if test "$with_modules" = 'no'; then
26431 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26432 fi
26433fi
26434
cristy73bd4a52010-10-05 11:24:23 +000026435 if test "$have_autotrace" = 'yes'; then
26436 AUTOTRACE_DELEGATE_TRUE=
26437 AUTOTRACE_DELEGATE_FALSE='#'
26438else
26439 AUTOTRACE_DELEGATE_TRUE='#'
26440 AUTOTRACE_DELEGATE_FALSE=
26441fi
26442
cristy3ed852e2009-09-05 21:47:34 +000026443
26444
26445
26446
26447#
26448# Check for Display Postscript delegate library.
26449#
26450
26451# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026452if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 withval=$with_dps; with_dps=$withval
26454else
26455 with_dps='yes'
26456fi
26457
26458
26459if test "$with_dps" != 'yes'; then
26460 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26461fi
26462
26463have_dps='no'
26464DPS_LIBS=''
26465if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo "" >&6; }
26472 failed=0
26473 passed=0
26474 PERSIST_CPPFLAGS="$CPPFLAGS"
26475 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026476 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26477if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 passed=`expr $passed + 1`
26479else
26480 failed=`expr $failed + 1`
26481fi
26482
26483
26484 # DPS issues:
26485 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26486 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26487 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26488 # ImageMagick itself doesn't use -lXt.
26489 have_libdps='no'
26490 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026493if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026494 $as_echo_n "(cached) " >&6
26495else
26496 ac_check_lib_save_LIBS=$LIBS
26497LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026499/* end confdefs.h. */
26500
26501/* Override any GCC internal prototype to avoid an error.
26502 Use char because int might match the return type of a GCC
26503 builtin and then its argument prototype would still apply. */
26504#ifdef __cplusplus
26505extern "C"
26506#endif
26507char DPSInitialize ();
26508int
26509main ()
26510{
26511return DPSInitialize ();
26512 ;
26513 return 0;
26514}
26515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026517 ac_cv_lib_dps_DPSInitialize=yes
26518else
cristy8b350f62009-11-15 23:12:43 +000026519 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026520fi
cristy8b350f62009-11-15 23:12:43 +000026521rm -f core conftest.err conftest.$ac_objext \
26522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026523LIBS=$ac_check_lib_save_LIBS
26524fi
cristy8b350f62009-11-15 23:12:43 +000026525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026526$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026527if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026528 have_libdps='yes'
26529else
26530 have_libdps='no'
26531fi
26532
26533 if test "$have_libdps" != 'yes'; then
26534 # Unset cache variable so we can try again.
26535 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026537$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026538if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026539 $as_echo_n "(cached) " >&6
26540else
26541 ac_check_lib_save_LIBS=$LIBS
26542LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026544/* end confdefs.h. */
26545
26546/* Override any GCC internal prototype to avoid an error.
26547 Use char because int might match the return type of a GCC
26548 builtin and then its argument prototype would still apply. */
26549#ifdef __cplusplus
26550extern "C"
26551#endif
26552char DPSInitialize ();
26553int
26554main ()
26555{
26556return DPSInitialize ();
26557 ;
26558 return 0;
26559}
26560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026561if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 ac_cv_lib_dps_DPSInitialize=yes
26563else
cristy8b350f62009-11-15 23:12:43 +000026564 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026565fi
cristy8b350f62009-11-15 23:12:43 +000026566rm -f core conftest.err conftest.$ac_objext \
26567 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026568LIBS=$ac_check_lib_save_LIBS
26569fi
cristy8b350f62009-11-15 23:12:43 +000026570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026571$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026572if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 have_libdps='yes'
26574else
26575 have_libdps='no'
26576fi
26577
26578 if test "$have_libdps" = 'yes'; then
26579 LIBDPS_XT='-lXt'
26580 fi
26581 fi
26582 if test "$have_libdps" = 'yes'; then
26583 passed=`expr $passed + 1`
26584 else
26585 failed=`expr $failed + 1`
26586 fi
cristy8b350f62009-11-15 23:12:43 +000026587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026589if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026590 $as_echo_n "(cached) " >&6
26591else
26592 ac_check_lib_save_LIBS=$LIBS
26593LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026595/* end confdefs.h. */
26596
26597/* Override any GCC internal prototype to avoid an error.
26598 Use char because int might match the return type of a GCC
26599 builtin and then its argument prototype would still apply. */
26600#ifdef __cplusplus
26601extern "C"
26602#endif
26603char XDPSPixelsPerPoint ();
26604int
26605main ()
26606{
26607return XDPSPixelsPerPoint ();
26608 ;
26609 return 0;
26610}
26611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26614else
cristy8b350f62009-11-15 23:12:43 +000026615 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026616fi
cristy8b350f62009-11-15 23:12:43 +000026617rm -f core conftest.err conftest.$ac_objext \
26618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026619LIBS=$ac_check_lib_save_LIBS
26620fi
cristy8b350f62009-11-15 23:12:43 +000026621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026622$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026623if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026624 passed=`expr $passed + 1`
26625else
26626 failed=`expr $failed + 1`
26627fi
26628
cristy8b350f62009-11-15 23:12:43 +000026629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026630$as_echo_n "checking if DPS package is complete... " >&6; }
26631 if test $passed -gt 0; then
26632 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo "no -- some components failed test" >&6; }
26635 have_dps='no (failed tests)'
26636 CPPFLAGS="$PERSIST_CPPFLAGS"
26637 else
26638 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26639 LIBS="$DPS_LIBS $LIBS"
26640
cristy8b350f62009-11-15 23:12:43 +000026641$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026642
cristy8b350f62009-11-15 23:12:43 +000026643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo "yes" >&6; }
26645 have_dps='yes'
26646 fi
26647 else
cristy8b350f62009-11-15 23:12:43 +000026648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026649$as_echo "no" >&6; }
26650 CPPFLAGS=$PERSIST_CPPFLAGS
26651 fi
26652fi
cristy73bd4a52010-10-05 11:24:23 +000026653 if test "$have_dps" = 'yes'; then
26654 DPS_DELEGATE_TRUE=
26655 DPS_DELEGATE_FALSE='#'
26656else
26657 DPS_DELEGATE_TRUE='#'
26658 DPS_DELEGATE_FALSE=
26659fi
26660
cristy3ed852e2009-09-05 21:47:34 +000026661
26662
26663
26664#
26665# Check for DJVU delegate library.
26666#
26667
26668# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026669if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 withval=$with_djvu; with_djvu=$withval
26671else
26672 with_djvu='yes'
26673fi
26674
26675
26676if test "$with_djvu" != 'yes'; then
26677 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26678fi
26679
26680have_djvu='no'
26681DJVU_LIBS=''
26682if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo "" >&6; }
26689 failed=0
26690 passed=0
cristy8b350f62009-11-15 23:12:43 +000026691 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26692if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026693 passed=`expr $passed + 1`
26694else
26695 failed=`expr $failed + 1`
26696fi
26697
26698
cristy8b350f62009-11-15 23:12:43 +000026699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026700$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026701if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 $as_echo_n "(cached) " >&6
26703else
26704 ac_check_lib_save_LIBS=$LIBS
26705LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026707/* end confdefs.h. */
26708
26709/* Override any GCC internal prototype to avoid an error.
26710 Use char because int might match the return type of a GCC
26711 builtin and then its argument prototype would still apply. */
26712#ifdef __cplusplus
26713extern "C"
26714#endif
26715char ddjvu_context_create ();
26716int
26717main ()
26718{
26719return ddjvu_context_create ();
26720 ;
26721 return 0;
26722}
26723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026725 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26726else
cristy8b350f62009-11-15 23:12:43 +000026727 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026728fi
cristy8b350f62009-11-15 23:12:43 +000026729rm -f core conftest.err conftest.$ac_objext \
26730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026731LIBS=$ac_check_lib_save_LIBS
26732fi
cristy8b350f62009-11-15 23:12:43 +000026733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026734$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026735if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 passed=`expr $passed + 1`
26737else
26738 failed=`expr $failed + 1`
26739fi
26740
cristy8b350f62009-11-15 23:12:43 +000026741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026742$as_echo_n "checking if DJVU package is complete... " >&6; }
26743 if test $passed -gt 0; then
26744 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026746$as_echo "no -- some components failed test" >&6; }
26747 have_djvu='no (failed tests)'
26748 else
26749 DJVU_LIBS='-ldjvulibre'
26750 LIBS="$DJVU_LIBS $LIBS"
26751
cristy8b350f62009-11-15 23:12:43 +000026752$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026753
cristy8b350f62009-11-15 23:12:43 +000026754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo "yes" >&6; }
26756 have_djvu='yes'
26757 fi
26758 else
cristy8b350f62009-11-15 23:12:43 +000026759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026760$as_echo "no" >&6; }
26761 fi
26762fi
cristy73bd4a52010-10-05 11:24:23 +000026763 if test "$have_djvu" = 'yes'; then
26764 DJVU_DELEGATE_TRUE=
26765 DJVU_DELEGATE_FALSE='#'
26766else
26767 DJVU_DELEGATE_TRUE='#'
26768 DJVU_DELEGATE_FALSE=
26769fi
26770
cristy3ed852e2009-09-05 21:47:34 +000026771
26772
26773
26774#
cristy430a7312010-01-21 20:44:04 +000026775# Set DejaVu font directory.
26776#
26777
26778# Check whether --with-dejavu-font-dir was given.
26779if test "${with_dejavu_font_dir+set}" = set; then :
26780 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26781else
26782 with_dejavu_font_dir='default'
26783fi
26784
26785
26786if test "$with_dejavu_font_dir" != 'default'; then
26787 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26788fi
26789
26790
26791#
cristy3ed852e2009-09-05 21:47:34 +000026792# Check for FFTW delegate library.
26793#
26794
26795# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026796if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026797 withval=$with_fftw; with_fftw=$withval
26798else
26799 with_fftw='yes'
26800fi
26801
26802
26803if test "$with_fftw" != 'yes'; then
26804 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26805fi
26806
26807have_fftw='no'
26808FFTW_LIBS=''
26809if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo "" >&6; }
26816 failed=0
26817 passed=0
cristy8b350f62009-11-15 23:12:43 +000026818 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26819if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026820 passed=`expr $passed + 1`
26821else
26822 failed=`expr $failed + 1`
26823fi
26824
26825
cristy8b350f62009-11-15 23:12:43 +000026826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026827$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026828if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026829 $as_echo_n "(cached) " >&6
26830else
26831 ac_check_lib_save_LIBS=$LIBS
26832LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026834/* end confdefs.h. */
26835
26836/* Override any GCC internal prototype to avoid an error.
26837 Use char because int might match the return type of a GCC
26838 builtin and then its argument prototype would still apply. */
26839#ifdef __cplusplus
26840extern "C"
26841#endif
26842char fftw_execute ();
26843int
26844main ()
26845{
26846return fftw_execute ();
26847 ;
26848 return 0;
26849}
26850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026851if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026852 ac_cv_lib_fftw3_fftw_execute=yes
26853else
cristy8b350f62009-11-15 23:12:43 +000026854 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026855fi
cristy8b350f62009-11-15 23:12:43 +000026856rm -f core conftest.err conftest.$ac_objext \
26857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026858LIBS=$ac_check_lib_save_LIBS
26859fi
cristy8b350f62009-11-15 23:12:43 +000026860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026862if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026863 passed=`expr $passed + 1`
26864else
26865 failed=`expr $failed + 1`
26866fi
26867
cristy8b350f62009-11-15 23:12:43 +000026868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026869$as_echo_n "checking if FFTW package is complete... " >&6; }
26870 if test $passed -gt 0; then
26871 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026873$as_echo "no -- some components failed test" >&6; }
26874 have_fftw='no (failed tests)'
26875 else
26876 FFTW_LIBS='-lfftw3'
26877 LIBS="$FFTW_LIBS $LIBS"
26878
cristy8b350f62009-11-15 23:12:43 +000026879$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026880
cristy8b350f62009-11-15 23:12:43 +000026881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo "yes" >&6; }
26883 have_fftw='yes'
26884 fi
26885 else
cristy8b350f62009-11-15 23:12:43 +000026886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026887$as_echo "no" >&6; }
26888 fi
26889fi
cristy73bd4a52010-10-05 11:24:23 +000026890 if test "$have_fftw" = 'yes'; then
26891 FFTW_DELEGATE_TRUE=
26892 FFTW_DELEGATE_FALSE='#'
26893else
26894 FFTW_DELEGATE_TRUE='#'
26895 FFTW_DELEGATE_FALSE=
26896fi
26897
cristy3ed852e2009-09-05 21:47:34 +000026898
26899
26900
26901#
26902# Check for FlashPIX delegate library.
26903#
26904
26905# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026906if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 withval=$with_fpx; with_fpx=$withval
26908else
26909 with_fpx='yes'
26910fi
26911
26912
26913if test "$with_fpx" != 'yes'; then
26914 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26915fi
26916
26917have_fpx='no'
26918FPX_LIBS=''
26919if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo "" >&6; }
26926 failed=0
26927 passed=0
26928 ac_ext=cpp
26929ac_cpp='$CXXCPP $CPPFLAGS'
26930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26933
26934
cristy8b350f62009-11-15 23:12:43 +000026935ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26936if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026937 passed=`expr $passed + 1`
26938else
26939 failed=`expr $failed + 1`
26940fi
26941
26942
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026945if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026946 $as_echo_n "(cached) " >&6
26947else
26948 ac_check_lib_save_LIBS=$LIBS
26949LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026951/* end confdefs.h. */
26952
26953/* Override any GCC internal prototype to avoid an error.
26954 Use char because int might match the return type of a GCC
26955 builtin and then its argument prototype would still apply. */
26956#ifdef __cplusplus
26957extern "C"
26958#endif
26959char FPX_OpenImageByFilename ();
26960int
26961main ()
26962{
26963return FPX_OpenImageByFilename ();
26964 ;
26965 return 0;
26966}
26967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026968if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026969 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26970else
cristy8b350f62009-11-15 23:12:43 +000026971 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026972fi
cristy8b350f62009-11-15 23:12:43 +000026973rm -f core conftest.err conftest.$ac_objext \
26974 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026975LIBS=$ac_check_lib_save_LIBS
26976fi
cristy8b350f62009-11-15 23:12:43 +000026977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026978$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026979if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 passed=`expr $passed + 1`
26981else
26982 failed=`expr $failed + 1`
26983fi
26984
26985 ac_ext=c
26986ac_cpp='$CPP $CPPFLAGS'
26987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26989ac_compiler_gnu=$ac_cv_c_compiler_gnu
26990
cristy8b350f62009-11-15 23:12:43 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026992$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26993 if test $passed -gt 0; then
26994 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026996$as_echo "no -- some components failed test" >&6; }
26997 have_fpx='no (failed tests)'
26998 else
26999 FPX_LIBS='-lfpx'
27000
cristy8b350f62009-11-15 23:12:43 +000027001$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027002
cristy8b350f62009-11-15 23:12:43 +000027003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo "yes" >&6; }
27005 have_fpx='yes'
27006 PERLMAINCC="$CXX"
27007 fi
27008 else
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "no" >&6; }
27011 fi
27012fi
cristy73bd4a52010-10-05 11:24:23 +000027013 if test "$have_fpx" = 'yes'; then
27014 FPX_DELEGATE_TRUE=
27015 FPX_DELEGATE_FALSE='#'
27016else
27017 FPX_DELEGATE_TRUE='#'
27018 FPX_DELEGATE_FALSE=
27019fi
27020
cristy3ed852e2009-09-05 21:47:34 +000027021
27022
27023
27024#
27025# Check for fontconfig delegate library.
27026#
27027
27028# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027029if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 withval=$with_fontconfig; with_fontconfig=$withval
27031else
27032 with_fontconfig=$have_x
27033fi
27034
27035
27036if test "$with_fontconfig" != 'yes'; then
27037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27038fi
27039
27040have_fontconfig='no'
27041FONTCONFIG_CFLAGS=""
27042FONTCONFIG_LIBS=""
27043FONTCONFIG_PKG=""
27044if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027047
27048pkg_failed=no
27049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27050$as_echo_n "checking for FONTCONFIG... " >&6; }
27051
27052if test -n "$FONTCONFIG_CFLAGS"; then
27053 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27054 elif test -n "$PKG_CONFIG"; then
27055 if test -n "$PKG_CONFIG" && \
27056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27057 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27058 ac_status=$?
27059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27060 test $ac_status = 0; }; then
27061 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27062else
27063 pkg_failed=yes
27064fi
27065 else
27066 pkg_failed=untried
27067fi
27068if test -n "$FONTCONFIG_LIBS"; then
27069 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27070 elif test -n "$PKG_CONFIG"; then
27071 if test -n "$PKG_CONFIG" && \
27072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27073 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27074 ac_status=$?
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; then
27077 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27078else
27079 pkg_failed=yes
27080fi
27081 else
27082 pkg_failed=untried
27083fi
27084
27085
27086
27087if test $pkg_failed = yes; then
27088
27089if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27090 _pkg_short_errors_supported=yes
27091else
27092 _pkg_short_errors_supported=no
27093fi
27094 if test $_pkg_short_errors_supported = yes; then
27095 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27096 else
27097 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27098 fi
27099 # Put the nasty error message in config.log where it belongs
27100 echo "$FONTCONFIG_PKG_ERRORS" >&5
27101
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27103$as_echo "no" >&6; }
27104 have_fontconfig=no
27105elif test $pkg_failed = untried; then
27106 have_fontconfig=no
27107else
27108 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27109 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27111$as_echo "yes" >&6; }
27112 have_fontconfig=yes
27113fi
cristy8b350f62009-11-15 23:12:43 +000027114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027115$as_echo "" >&6; }
27116fi
27117
27118if test "$have_fontconfig" = 'yes'; then
27119
cristy8b350f62009-11-15 23:12:43 +000027120$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027121
cristyd09bcf92010-03-25 03:04:45 +000027122 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027123 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027124 fi
cristy3ed852e2009-09-05 21:47:34 +000027125fi
27126
cristy73bd4a52010-10-05 11:24:23 +000027127 if test "$have_fontconfig" = 'yes'; then
27128 FONTCONFIG_DELEGATE_TRUE=
27129 FONTCONFIG_DELEGATE_FALSE='#'
27130else
27131 FONTCONFIG_DELEGATE_TRUE='#'
27132 FONTCONFIG_DELEGATE_FALSE=
27133fi
27134
cristy3ed852e2009-09-05 21:47:34 +000027135
27136
27137
27138
27139#
27140# Check for freetype delegate library.
27141#
27142
27143# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027144if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027145 withval=$with_freetype; with_freetype=$withval
27146else
27147 with_freetype='yes'
27148fi
27149
27150
27151
27152if test "$with_freetype" != 'yes'; then
27153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27154fi
27155
27156have_freetype='no'
27157FREETYPE_LIBS=''
27158if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo "" >&6; }
27165 failed=0
27166 passed=0
cristy66291112009-10-03 22:44:36 +000027167 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027168 PERSIST_CPPFLAGS="$CPPFLAGS"
27169 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27170 :
27171 else
27172 freetype_config=''
27173 for ac_prog in freetype-config
27174do
27175 # Extract the first word of "$ac_prog", so it can be a program name with args.
27176set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027179if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 $as_echo_n "(cached) " >&6
27181else
27182 if test -n "$freetype_config"; then
27183 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27184else
27185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186for as_dir in $PATH
27187do
27188 IFS=$as_save_IFS
27189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27192 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027194 break 2
27195 fi
27196done
cristy8b350f62009-11-15 23:12:43 +000027197 done
cristy3ed852e2009-09-05 21:47:34 +000027198IFS=$as_save_IFS
27199
27200fi
27201fi
27202freetype_config=$ac_cv_prog_freetype_config
27203if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027205$as_echo "$freetype_config" >&6; }
27206else
cristy8b350f62009-11-15 23:12:43 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo "no" >&6; }
27209fi
27210
27211
27212 test -n "$freetype_config" && break
27213done
27214 if test -n "$freetype_config"; then
27215 freetype_cflags=`$freetype_config --cflags`
27216 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027217 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027218 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27219 fi
27220 fi
27221
27222 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027225if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 $as_echo_n "(cached) " >&6
27227else
27228 ac_check_lib_save_LIBS=$LIBS
27229LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027231/* end confdefs.h. */
27232
27233/* Override any GCC internal prototype to avoid an error.
27234 Use char because int might match the return type of a GCC
27235 builtin and then its argument prototype would still apply. */
27236#ifdef __cplusplus
27237extern "C"
27238#endif
27239char FT_Init_FreeType ();
27240int
27241main ()
27242{
27243return FT_Init_FreeType ();
27244 ;
27245 return 0;
27246}
27247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027249 ac_cv_lib_freetype_FT_Init_FreeType=yes
27250else
cristy8b350f62009-11-15 23:12:43 +000027251 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027252fi
cristy8b350f62009-11-15 23:12:43 +000027253rm -f core conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027255LIBS=$ac_check_lib_save_LIBS
27256fi
cristy8b350f62009-11-15 23:12:43 +000027257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027259if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 FREETYPE_LIBS='-lfreetype'
27261fi
27262
27263 if test "$FREETYPE_LIBS" != ''; then
27264 passed=`expr $passed + 1`
27265 else
27266 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027267 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027268 fi
27269 fi
27270
cristy8b350f62009-11-15 23:12:43 +000027271 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27272if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027273 FT2BUILD_H='#include <ft2build.h>'
27274else
27275 ft2build=''
27276fi
27277
27278
cristy8b350f62009-11-15 23:12:43 +000027279 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27280"
27281if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 have_freetype_h='yes'
27283else
27284 have_freetype_h='no'
27285fi
27286
27287
27288 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27289 passed=`expr $passed + 1`
27290 else
27291 failed=`expr $failed + 1`
27292 CPPFLAGS="$PERSIST_CPPFLAGS"
27293 fi
27294
cristy8b350f62009-11-15 23:12:43 +000027295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo_n "checking if FreeType package is complete... " >&6; }
27297 if test $passed -gt 0; then
27298 if test $failed -gt 0; then
27299 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027301$as_echo "no -- some components failed test" >&6; }
27302 have_freetype='no (failed tests)'
27303 else
27304 LIBS="$FREETYPE_LIBS $LIBS"
27305
cristy8b350f62009-11-15 23:12:43 +000027306$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027307
27308 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27309
cristy8b350f62009-11-15 23:12:43 +000027310$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027311
27312 fi
cristy8b350f62009-11-15 23:12:43 +000027313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027314$as_echo "yes" >&6; }
27315 have_freetype='yes'
27316 fi
27317 else
cristy8b350f62009-11-15 23:12:43 +000027318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo "no" >&6; }
27320 fi
27321fi
cristy73bd4a52010-10-05 11:24:23 +000027322 if test "$have_freetype" = 'yes'; then
27323 FREETYPE_DELEGATE_TRUE=
27324 FREETYPE_DELEGATE_FALSE='#'
27325else
27326 FREETYPE_DELEGATE_TRUE='#'
27327 FREETYPE_DELEGATE_FALSE=
27328fi
27329
cristy3ed852e2009-09-05 21:47:34 +000027330
27331
27332
27333
27334#
27335# Check for Ghostscript library or framework.
27336#
27337# Test for iapi.h & test for gsapi_new_instance in -lgs
27338# or -framework Ghostscript
27339
27340
27341# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027342if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 withval=$with_gslib; with_gslib=$withval
27344else
27345 with_gslib='no'
27346fi
27347
27348
cristyb7931f12009-09-25 10:22:21 +000027349gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027350if test "$with_gslib" != 'yes'; then
27351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27352fi
27353
27354have_gslib='no'
27355GS_LIBS=''
27356if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027363 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027364 failed=0
27365 passed=0
cristy8b350f62009-11-15 23:12:43 +000027366 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27367if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027368 passed=`expr $passed + 1`
27369else
27370 failed=`expr $failed + 1`
27371fi
27372
27373
cristy8b350f62009-11-15 23:12:43 +000027374 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27375if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 passed=`expr $passed + 1`
27377else
27378 failed=`expr $failed + 1`
27379fi
27380
27381
cristy73bd4a52010-10-05 11:24:23 +000027382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27383$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27384if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27385 $as_echo_n "(cached) " >&6
27386else
27387 ac_check_framework_save_LIBS=$LIBS
27388LIBS="-framework Ghostscript $LIBS"
27389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27390/* end confdefs.h. */
27391
27392/* Override any GCC internal prototype to avoid an error.
27393 Use char because int might match the return type of a GCC
27394 builtin and then its argument prototype would still apply. */
27395#ifdef __cplusplus
27396extern "C"
27397#endif
27398char gsapi_new_instance ();
27399int
27400main ()
27401{
27402return gsapi_new_instance ();
27403 ;
27404 return 0;
27405}
27406_ACEOF
27407if ac_fn_c_try_link "$LINENO"; then :
27408 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27409else
27410 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27411fi
27412rm -f core conftest.err conftest.$ac_objext \
27413 conftest$ac_exeext conftest.$ac_ext
27414LIBS=$ac_check_framework_save_LIBS
27415fi
27416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27417$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27418if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27419 framework=`expr $framework + 1`
27420else
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027423if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 $as_echo_n "(cached) " >&6
27425else
27426 ac_check_lib_save_LIBS=$LIBS
27427LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027429/* end confdefs.h. */
27430
27431/* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
27434#ifdef __cplusplus
27435extern "C"
27436#endif
27437char gsapi_new_instance ();
27438int
27439main ()
27440{
27441return gsapi_new_instance ();
27442 ;
27443 return 0;
27444}
27445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027446if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 ac_cv_lib_gs_gsapi_new_instance=yes
27448else
cristy8b350f62009-11-15 23:12:43 +000027449 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027450fi
cristy8b350f62009-11-15 23:12:43 +000027451rm -f core conftest.err conftest.$ac_objext \
27452 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027453LIBS=$ac_check_lib_save_LIBS
27454fi
cristy8b350f62009-11-15 23:12:43 +000027455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027457if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 passed=`expr $passed + 1`
27459else
27460 failed=`expr $failed + 1`
27461fi
cristy73bd4a52010-10-05 11:24:23 +000027462
27463fi
cristy8b350f62009-11-15 23:12:43 +000027464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027465$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27466 if test $passed -gt 0; then
27467 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027469$as_echo "no -- some components failed test" >&6; }
27470 have_gslib='no (failed tests)'
27471 else
27472 if test $framework -gt 0; then
27473 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027474 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo "yes, using framework." >&6; }
27477 else
cristy8b350f62009-11-15 23:12:43 +000027478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027479$as_echo "yes, using library." >&6; }
27480 GS_LIBS='-lgs'
27481 fi
27482 LIBS="$GS_LIBS $LIBS"
27483
cristy8b350f62009-11-15 23:12:43 +000027484$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027485
27486 have_gslib='yes'
27487 fi
27488 else
cristy8b350f62009-11-15 23:12:43 +000027489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo "no" >&6; }
27491 fi
27492fi
cristy73bd4a52010-10-05 11:24:23 +000027493 if test "$have_gslib" = 'yes'; then
27494 GS_DELEGATE_TRUE=
27495 GS_DELEGATE_FALSE='#'
27496else
27497 GS_DELEGATE_TRUE='#'
27498 GS_DELEGATE_FALSE=
27499fi
27500
cristy3ed852e2009-09-05 21:47:34 +000027501
27502
27503# Set default font search path
27504
27505# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027506if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 withval=$with_fontpath; with_fontpath=$withval
27508else
27509 with_fontpath=''
27510fi
27511
27512
27513if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27514 with_fontpath=''
27515else
27516
27517cat >>confdefs.h <<_ACEOF
27518#define MAGICK_FONT_PATH "$with_fontpath"
27519_ACEOF
27520
27521fi
27522if test "$with_fontpath=" != ''; then
27523 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27524fi
27525
27526# Set Ghostscript font directory
27527
27528# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027529if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27531else
27532 with_gs_font_dir='default'
27533fi
27534
27535
27536if test "$with_gs_font_dir" != 'default'; then
27537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27538fi
27539
27540
27541#
27542# Check for GVC delegate library.
27543#
27544
27545# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027546if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027547 withval=$with_gvc; with_gvc=$withval
27548else
27549 with_gvc='yes'
27550fi
27551
27552
27553if test "$with_gvc" != 'yes'; then
27554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27555fi
27556
27557GVC_PKG=""
27558if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027560$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027561
27562pkg_failed=no
27563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27564$as_echo_n "checking for GVC... " >&6; }
27565
27566if test -n "$GVC_CFLAGS"; then
27567 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27568 elif test -n "$PKG_CONFIG"; then
27569 if test -n "$PKG_CONFIG" && \
27570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27571 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27572 ac_status=$?
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; then
27575 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27576else
27577 pkg_failed=yes
27578fi
27579 else
27580 pkg_failed=untried
27581fi
27582if test -n "$GVC_LIBS"; then
27583 pkg_cv_GVC_LIBS="$GVC_LIBS"
27584 elif test -n "$PKG_CONFIG"; then
27585 if test -n "$PKG_CONFIG" && \
27586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27587 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27588 ac_status=$?
27589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27590 test $ac_status = 0; }; then
27591 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27592else
27593 pkg_failed=yes
27594fi
27595 else
27596 pkg_failed=untried
27597fi
27598
27599
27600
27601if test $pkg_failed = yes; then
27602
27603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27604 _pkg_short_errors_supported=yes
27605else
27606 _pkg_short_errors_supported=no
27607fi
27608 if test $_pkg_short_errors_supported = yes; then
27609 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27610 else
27611 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27612 fi
27613 # Put the nasty error message in config.log where it belongs
27614 echo "$GVC_PKG_ERRORS" >&5
27615
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27617$as_echo "no" >&6; }
27618 have_gvc=no
27619elif test $pkg_failed = untried; then
27620 have_gvc=no
27621else
27622 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27623 GVC_LIBS=$pkg_cv_GVC_LIBS
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27625$as_echo "yes" >&6; }
27626 have_gvc=yes
27627fi
cristy8b350f62009-11-15 23:12:43 +000027628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027629$as_echo "" >&6; }
27630fi
27631
27632if test "$have_gvc" = 'yes'; then
27633
cristy8b350f62009-11-15 23:12:43 +000027634$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027635
27636 if test "$with_modules" = 'no'; then
27637 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27638 fi
27639fi
27640
cristy73bd4a52010-10-05 11:24:23 +000027641 if test "$have_gvc" = 'yes'; then
27642 GVC_DELEGATE_TRUE=
27643 GVC_DELEGATE_FALSE='#'
27644else
27645 GVC_DELEGATE_TRUE='#'
27646 GVC_DELEGATE_FALSE=
27647fi
27648
cristy3ed852e2009-09-05 21:47:34 +000027649
27650
27651
27652
27653#
27654# Check for JBIG delegate library.
27655#
27656
27657
27658# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027659if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 withval=$with_jbig; with_jbig=$withval
27661else
27662 with_jbig='yes'
27663fi
27664
27665
27666have_jbig='no'
27667JBIG_LIBS=''
27668if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027670$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027674$as_echo "" >&6; }
27675 failed=0
27676 passed=0
cristy8b350f62009-11-15 23:12:43 +000027677 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27678if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027679 passed=`expr $passed + 1`
27680else
27681 failed=`expr $failed + 1`
27682fi
27683
27684
cristy8b350f62009-11-15 23:12:43 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027687if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 $as_echo_n "(cached) " >&6
27689else
27690 ac_check_lib_save_LIBS=$LIBS
27691LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027693/* end confdefs.h. */
27694
27695/* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27698#ifdef __cplusplus
27699extern "C"
27700#endif
27701char jbg_dec_init ();
27702int
27703main ()
27704{
27705return jbg_dec_init ();
27706 ;
27707 return 0;
27708}
27709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027710if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 ac_cv_lib_jbig_jbg_dec_init=yes
27712else
cristy8b350f62009-11-15 23:12:43 +000027713 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027714fi
cristy8b350f62009-11-15 23:12:43 +000027715rm -f core conftest.err conftest.$ac_objext \
27716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027717LIBS=$ac_check_lib_save_LIBS
27718fi
cristy8b350f62009-11-15 23:12:43 +000027719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027721if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 passed=`expr $passed + 1`
27723else
27724 failed=`expr $failed + 1`
27725fi
27726
cristy8b350f62009-11-15 23:12:43 +000027727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo_n "checking if JBIG package is complete... " >&6; }
27729 if test $passed -gt 0; then
27730 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo "no -- some components failed test" >&6; }
27733 have_jbig='no (failed tests)'
27734 else
27735 JBIG_LIBS='-ljbig'
27736 LIBS="$JBIG_LIBS $LIBS"
27737
cristy8b350f62009-11-15 23:12:43 +000027738$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027739
cristy8b350f62009-11-15 23:12:43 +000027740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027741$as_echo "yes" >&6; }
27742 have_jbig='yes'
27743 fi
27744 else
cristy8b350f62009-11-15 23:12:43 +000027745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027746$as_echo "no" >&6; }
27747 fi
27748fi
cristy73bd4a52010-10-05 11:24:23 +000027749 if test "$have_jbig" = 'yes'; then
27750 JBIG_DELEGATE_TRUE=
27751 JBIG_DELEGATE_FALSE='#'
27752else
27753 JBIG_DELEGATE_TRUE='#'
27754 JBIG_DELEGATE_FALSE=
27755fi
27756
cristy3ed852e2009-09-05 21:47:34 +000027757
27758
27759
27760#
27761# Check for JPEG delegate library.
27762#
27763
27764# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027765if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027766 withval=$with_jpeg; with_jpeg=$withval
27767else
27768 with_jpeg='yes'
27769fi
27770
27771
27772if test "$with_jpeg" != 'yes'; then
27773 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27774fi
27775
27776have_jpeg='no'
27777JPEG_LIBS=''
27778if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027784$as_echo "" >&6; }
27785 failed=0
27786 passed=0
cristy8b350f62009-11-15 23:12:43 +000027787 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27788if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 passed=`expr $passed + 1`
27790else
27791 failed=`expr $failed + 1`
27792fi
27793
27794
cristy8b350f62009-11-15 23:12:43 +000027795 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27796if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 passed=`expr $passed + 1`
27798else
27799 failed=`expr $failed + 1`
27800fi
27801
27802
cristy8b350f62009-11-15 23:12:43 +000027803 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27804if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 passed=`expr $passed + 1`
27806else
27807 failed=`expr $failed + 1`
27808fi
27809
27810
cristy8b350f62009-11-15 23:12:43 +000027811 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27812if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 passed=`expr $passed + 1`
27814else
27815 failed=`expr $failed + 1`
27816fi
27817
27818
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027821if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 $as_echo_n "(cached) " >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027827/* end confdefs.h. */
27828
27829/* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832#ifdef __cplusplus
27833extern "C"
27834#endif
27835char jpeg_read_header ();
27836int
27837main ()
27838{
27839return jpeg_read_header ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 ac_cv_lib_jpeg_jpeg_read_header=yes
27846else
cristy8b350f62009-11-15 23:12:43 +000027847 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027848fi
cristy8b350f62009-11-15 23:12:43 +000027849rm -f core conftest.err conftest.$ac_objext \
27850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027851LIBS=$ac_check_lib_save_LIBS
27852fi
cristy8b350f62009-11-15 23:12:43 +000027853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027855if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 passed=`expr $passed + 1`
27857else
27858 failed=`expr $failed + 1`
27859fi
27860
27861
27862# Test for compatible JPEG library
27863if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027866if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 $as_echo_n "(cached) " >&6
27868else
cristy8b350f62009-11-15 23:12:43 +000027869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027870/* end confdefs.h. */
27871#include <stdio.h>
27872#include <stdlib.h>
27873#include <jpeglib.h>
27874
27875int
27876main ()
27877{
27878
27879#if JPEG_LIB_VERSION < 62
27880#error IJG JPEG library must be version 6b or newer!
27881#endif
27882return 0;
27883
27884 ;
27885 return 0;
27886}
27887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027888if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027892fi
cristy3ed852e2009-09-05 21:47:34 +000027893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27894fi
cristy8b350f62009-11-15 23:12:43 +000027895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027896$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27897fi
cristy8b350f62009-11-15 23:12:43 +000027898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027899$as_echo_n "checking if JPEG package is complete... " >&6; }
27900 if test $passed -gt 0; then
27901 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027903$as_echo "no -- some components failed test" >&6; }
27904 have_jpeg='no (failed tests)'
27905 else
27906 JPEG_LIBS='-ljpeg'
27907 LIBS="$JPEG_LIBS $LIBS"
27908
cristy8b350f62009-11-15 23:12:43 +000027909$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027910
cristy8b350f62009-11-15 23:12:43 +000027911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027912$as_echo "yes" >&6; }
27913 have_jpeg='yes'
27914 fi
27915 else
cristy8b350f62009-11-15 23:12:43 +000027916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo "no" >&6; }
27918 fi
27919fi
cristy73bd4a52010-10-05 11:24:23 +000027920 if test "$have_jpeg" = 'yes'; then
27921 JPEG_DELEGATE_TRUE=
27922 JPEG_DELEGATE_FALSE='#'
27923else
27924 JPEG_DELEGATE_TRUE='#'
27925 JPEG_DELEGATE_FALSE=
27926fi
27927
cristy3ed852e2009-09-05 21:47:34 +000027928
27929
27930
27931#
27932# Check for JPEG Version 2 delegate library.
27933#
27934
27935# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027936if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 withval=$with_jp2; with_jp2=$withval
27938else
27939 with_jp2='yes'
27940fi
27941
27942
27943if test "$with_jp2" != 'yes'; then
27944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27945fi
27946
27947have_jp2='no'
27948JP2_LIBS=''
27949if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027951$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "" >&6; }
27956 failed=0
27957 passed=0
cristy8b350f62009-11-15 23:12:43 +000027958 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27959if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 passed=`expr $passed + 1`
27961else
27962 failed=`expr $failed + 1`
27963fi
27964
27965
cristy8b350f62009-11-15 23:12:43 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027968if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 $as_echo_n "(cached) " >&6
27970else
27971 ac_check_lib_save_LIBS=$LIBS
27972LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027974/* end confdefs.h. */
27975
27976/* Override any GCC internal prototype to avoid an error.
27977 Use char because int might match the return type of a GCC
27978 builtin and then its argument prototype would still apply. */
27979#ifdef __cplusplus
27980extern "C"
27981#endif
27982char jas_stream_fopen ();
27983int
27984main ()
27985{
27986return jas_stream_fopen ();
27987 ;
27988 return 0;
27989}
27990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027992 ac_cv_lib_jasper_jas_stream_fopen=yes
27993else
cristy8b350f62009-11-15 23:12:43 +000027994 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027995fi
cristy8b350f62009-11-15 23:12:43 +000027996rm -f core conftest.err conftest.$ac_objext \
27997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027998LIBS=$ac_check_lib_save_LIBS
27999fi
cristy8b350f62009-11-15 23:12:43 +000028000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028001$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028002if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 passed=`expr $passed + 1`
28004else
28005 failed=`expr $failed + 1`
28006fi
28007
cristy8b350f62009-11-15 23:12:43 +000028008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28010 if test $passed -gt 0; then
28011 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028013$as_echo "no -- some components failed test" >&6; }
28014 have_jp2='no (failed tests)'
28015 else
28016 JP2_LIBS='-ljasper'
28017 LIBS="$JP2_LIBS $LIBS"
28018
cristy8b350f62009-11-15 23:12:43 +000028019$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028020
cristy8b350f62009-11-15 23:12:43 +000028021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo "yes" >&6; }
28023 have_jp2='yes'
28024 fi
28025 else
cristy8b350f62009-11-15 23:12:43 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028027$as_echo "no" >&6; }
28028 fi
28029fi
cristy73bd4a52010-10-05 11:24:23 +000028030 if test "$have_jp2" = 'yes'; then
28031 JP2_DELEGATE_TRUE=
28032 JP2_DELEGATE_FALSE='#'
28033else
28034 JP2_DELEGATE_TRUE='#'
28035 JP2_DELEGATE_FALSE=
28036fi
28037
cristy3ed852e2009-09-05 21:47:34 +000028038
28039
28040
28041#
28042# Check for LCMS delegate library.
28043#
cristy71203402010-06-18 13:12:03 +000028044# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028045
28046# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028047if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028048 withval=$with_lcms; with_lcms=$withval
28049else
28050 with_lcms='yes'
28051fi
28052
cristy71203402010-06-18 13:12:03 +000028053if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28055fi
28056
cristy71203402010-06-18 13:12:03 +000028057# Disable LCMS2.
28058
28059# Check whether --with-lcms2 was given.
28060if test "${with_lcms2+set}" = set; then :
28061 withval=$with_lcms2; with_lcms2=$withval
28062else
28063 with_lcms2='yes'
28064fi
28065
28066if test "$with_lcms2" != 'yes' ; then
28067 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28068fi
28069
28070have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028071LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028072if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028074$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28076$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo "" >&6; }
28079 failed=0
28080 passed=0
28081 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028082
28083 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028084 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28085if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28086 have_lcms_header='yes'
28087fi
28088
28089
28090 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028091
28092$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28093
cristy71203402010-06-18 13:12:03 +000028094 passed=`expr $passed + 1`
28095 fi
28096
28097 # Check for <lcms2/lcms2.h)
28098 if test "$have_lcms_header" != 'yes'; then
28099 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28100if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028101 have_lcms_header='yes'
28102fi
28103
28104
cristy71203402010-06-18 13:12:03 +000028105 if test "$have_lcms_header" = 'yes'; then
28106 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028107
cristy71203402010-06-18 13:12:03 +000028108$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028109
cristy71203402010-06-18 13:12:03 +000028110 fi
cristyd09bcf92010-03-25 03:04:45 +000028111 fi
cristy71203402010-06-18 13:12:03 +000028112
28113 # Failed to find lcms header?
28114 if test "$have_lcms_header" != 'yes'; then
28115 failed=`expr $failed + 1`
28116 fi
28117
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28119$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28120if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000028121 $as_echo_n "(cached) " >&6
28122else
28123 ac_check_lib_save_LIBS=$LIBS
28124LIBS="-llcms2 $LIBS"
28125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28126/* end confdefs.h. */
28127
28128/* Override any GCC internal prototype to avoid an error.
28129 Use char because int might match the return type of a GCC
28130 builtin and then its argument prototype would still apply. */
28131#ifdef __cplusplus
28132extern "C"
28133#endif
cristy71203402010-06-18 13:12:03 +000028134char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028135int
28136main ()
28137{
cristy71203402010-06-18 13:12:03 +000028138return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028139 ;
28140 return 0;
28141}
28142_ACEOF
28143if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028144 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028145else
cristy71203402010-06-18 13:12:03 +000028146 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028147fi
28148rm -f core conftest.err conftest.$ac_objext \
28149 conftest$ac_exeext conftest.$ac_ext
28150LIBS=$ac_check_lib_save_LIBS
28151fi
cristy71203402010-06-18 13:12:03 +000028152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28153$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28154if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028155 passed=`expr $passed + 1`
28156else
28157 failed=`expr $failed + 1`
28158fi
28159
cristy71203402010-06-18 13:12:03 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28161$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028162 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028163 if test $failed -gt 0; then
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028165$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028166 have_lcms2='no (failed tests)'
28167 else
28168 LCMS_LIBS='-llcms2'
28169 LIBS="$LCMS_LIBS $LIBS"
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028171$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028172 have_lcms2='yes'
28173 fi
cristyd09bcf92010-03-25 03:04:45 +000028174 else
cristy71203402010-06-18 13:12:03 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028176$as_echo "no" >&6; }
28177 fi
28178fi
28179
cristy71203402010-06-18 13:12:03 +000028180#
28181# Check for LCMS v1 (1.11 or later)
28182#
28183if test $have_lcms2 = 'yes'; then
28184 with_lcms='no'
28185fi
28186
28187have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028188if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28190$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28192$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28194$as_echo "" >&6; }
28195 failed=0
28196 passed=0
28197 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028198
28199 # Check for <lcms.h>
28200 if test "$have_lcms_header" != 'yes'; then
28201 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028202if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028203 have_lcms_header='yes'
28204fi
28205
28206
cristy71203402010-06-18 13:12:03 +000028207 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028208 passed=`expr $passed + 1`
28209
cristy8b350f62009-11-15 23:12:43 +000028210$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028211
cristy71203402010-06-18 13:12:03 +000028212 fi
28213 fi
28214
28215 # Check for <lcms/lcms.h>
28216 if test "$have_lcms_header" != 'yes'; then
28217 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 +000028218if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028219 have_lcms_header='yes'
28220fi
28221
28222
cristy71203402010-06-18 13:12:03 +000028223 if test "$have_lcms_header" = 'yes'; then
28224 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028225
cristy8b350f62009-11-15 23:12:43 +000028226$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028227
cristy71203402010-06-18 13:12:03 +000028228 fi
cristy3ed852e2009-09-05 21:47:34 +000028229 fi
cristy71203402010-06-18 13:12:03 +000028230
28231 # Failed to find lcms header?
28232 if test "$have_lcms_header" != 'yes'; then
28233 failed=`expr $failed + 1`
28234 fi
28235
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28237$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28238if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 $as_echo_n "(cached) " >&6
28240else
28241 ac_check_lib_save_LIBS=$LIBS
28242LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028244/* end confdefs.h. */
28245
28246/* Override any GCC internal prototype to avoid an error.
28247 Use char because int might match the return type of a GCC
28248 builtin and then its argument prototype would still apply. */
28249#ifdef __cplusplus
28250extern "C"
28251#endif
cristy71203402010-06-18 13:12:03 +000028252char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028253int
28254main ()
28255{
cristy71203402010-06-18 13:12:03 +000028256return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028257 ;
28258 return 0;
28259}
28260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028261if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028262 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028263else
cristy71203402010-06-18 13:12:03 +000028264 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028265fi
cristy8b350f62009-11-15 23:12:43 +000028266rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028268LIBS=$ac_check_lib_save_LIBS
28269fi
cristy71203402010-06-18 13:12:03 +000028270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28271$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28272if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 passed=`expr $passed + 1`
28274else
28275 failed=`expr $failed + 1`
28276fi
28277
cristy8b350f62009-11-15 23:12:43 +000028278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028279$as_echo_n "checking if LCMS package is complete... " >&6; }
28280 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028281 if test $failed -gt 0; then
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028283$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028284 have_lcms='no (failed tests)'
28285 else
28286 LCMS_LIBS='-llcms'
28287 LIBS="$LCMS_LIBS $LIBS"
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028289$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028290 have_lcms='yes'
28291 fi
cristy3ed852e2009-09-05 21:47:34 +000028292 else
cristy71203402010-06-18 13:12:03 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028294$as_echo "no" >&6; }
28295 fi
28296fi
cristy71203402010-06-18 13:12:03 +000028297
cristy73bd4a52010-10-05 11:24:23 +000028298 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28299 LCMS_DELEGATE_TRUE=
28300 LCMS_DELEGATE_FALSE='#'
28301else
28302 LCMS_DELEGATE_TRUE='#'
28303 LCMS_DELEGATE_FALSE=
28304fi
28305
cristy71203402010-06-18 13:12:03 +000028306if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28307
28308$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28309
28310fi
28311
cristy3ed852e2009-09-05 21:47:34 +000028312
28313
28314
28315#
28316# Check for the LQR (Liquid Rescale) delegate library.
28317#
28318
28319# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028320if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028321 withval=$with_lqr; with_lqr=$withval
28322else
28323 with_lqr='yes'
28324fi
28325
28326
28327if test "$with_lqr" != 'yes'; then
28328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28329fi
28330
28331have_lqr='no'
28332LQR_CFLAGS=""
28333LQR_LIBS=""
28334LQR_PKG=""
28335if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028337$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028338
28339pkg_failed=no
28340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28341$as_echo_n "checking for LQR... " >&6; }
28342
28343if test -n "$LQR_CFLAGS"; then
28344 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28345 elif test -n "$PKG_CONFIG"; then
28346 if test -n "$PKG_CONFIG" && \
28347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28348 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28349 ac_status=$?
28350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28351 test $ac_status = 0; }; then
28352 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28353else
28354 pkg_failed=yes
28355fi
28356 else
28357 pkg_failed=untried
28358fi
28359if test -n "$LQR_LIBS"; then
28360 pkg_cv_LQR_LIBS="$LQR_LIBS"
28361 elif test -n "$PKG_CONFIG"; then
28362 if test -n "$PKG_CONFIG" && \
28363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28364 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28365 ac_status=$?
28366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28367 test $ac_status = 0; }; then
28368 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28369else
28370 pkg_failed=yes
28371fi
28372 else
28373 pkg_failed=untried
28374fi
28375
28376
28377
28378if test $pkg_failed = yes; then
28379
28380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28381 _pkg_short_errors_supported=yes
28382else
28383 _pkg_short_errors_supported=no
28384fi
28385 if test $_pkg_short_errors_supported = yes; then
28386 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28387 else
28388 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28389 fi
28390 # Put the nasty error message in config.log where it belongs
28391 echo "$LQR_PKG_ERRORS" >&5
28392
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28394$as_echo "no" >&6; }
28395 have_lqr=no
28396elif test $pkg_failed = untried; then
28397 have_lqr=no
28398else
28399 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28400 LQR_LIBS=$pkg_cv_LQR_LIBS
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28402$as_echo "yes" >&6; }
28403 have_lqr=yes
28404fi
cristy8b350f62009-11-15 23:12:43 +000028405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo "" >&6; }
28407fi
28408
28409if test "$have_lqr" = 'yes'; then
28410
cristy8b350f62009-11-15 23:12:43 +000028411$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028412
28413 CFLAGS="$LQR_CFLAGS $CFLAGS"
28414fi
28415
cristy73bd4a52010-10-05 11:24:23 +000028416 if test "$have_lqr" = 'yes'; then
28417 LQR_DELEGATE_TRUE=
28418 LQR_DELEGATE_FALSE='#'
28419else
28420 LQR_DELEGATE_TRUE='#'
28421 LQR_DELEGATE_FALSE=
28422fi
28423
cristy3ed852e2009-09-05 21:47:34 +000028424
28425
28426
28427
28428#
28429# Check for the OpenEXR delegate library.
28430#
28431
28432# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028433if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028434 withval=$with_openexr; with_openexr=$withval
28435else
28436 with_openexr='yes'
28437fi
28438
28439
28440if test "$with_openexr" != 'yes'; then
28441 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28442fi
28443
28444have_openexr='no'
28445OPENEXR_CFLAGS=""
28446OPENEXR_LIBS=""
28447OPENEXR_PKG=""
28448if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028450$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028451
28452pkg_failed=no
28453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28454$as_echo_n "checking for OPENEXR... " >&6; }
28455
28456if test -n "$OPENEXR_CFLAGS"; then
28457 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28458 elif test -n "$PKG_CONFIG"; then
28459 if test -n "$PKG_CONFIG" && \
28460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28461 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28462 ac_status=$?
28463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28464 test $ac_status = 0; }; then
28465 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28466else
28467 pkg_failed=yes
28468fi
28469 else
28470 pkg_failed=untried
28471fi
28472if test -n "$OPENEXR_LIBS"; then
28473 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28474 elif test -n "$PKG_CONFIG"; then
28475 if test -n "$PKG_CONFIG" && \
28476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28477 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28478 ac_status=$?
28479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28480 test $ac_status = 0; }; then
28481 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28482else
28483 pkg_failed=yes
28484fi
28485 else
28486 pkg_failed=untried
28487fi
28488
28489
28490
28491if test $pkg_failed = yes; then
28492
28493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28494 _pkg_short_errors_supported=yes
28495else
28496 _pkg_short_errors_supported=no
28497fi
28498 if test $_pkg_short_errors_supported = yes; then
28499 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28500 else
28501 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28502 fi
28503 # Put the nasty error message in config.log where it belongs
28504 echo "$OPENEXR_PKG_ERRORS" >&5
28505
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28507$as_echo "no" >&6; }
28508 have_openexr=no
28509elif test $pkg_failed = untried; then
28510 have_openexr=no
28511else
28512 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28513 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28515$as_echo "yes" >&6; }
28516 have_openexr=yes
28517fi
cristy8b350f62009-11-15 23:12:43 +000028518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028519$as_echo "" >&6; }
28520fi
28521
28522if test "$have_openexr" = 'yes'; then
28523
cristy8b350f62009-11-15 23:12:43 +000028524$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028525
28526 if test "$with_modules" = 'no'; then
28527 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28528 fi
28529fi
28530
cristy73bd4a52010-10-05 11:24:23 +000028531 if test "$have_openexr" = 'yes'; then
28532 OPENEXR_DELEGATE_TRUE=
28533 OPENEXR_DELEGATE_FALSE='#'
28534else
28535 OPENEXR_DELEGATE_TRUE='#'
28536 OPENEXR_DELEGATE_FALSE=
28537fi
28538
cristy3ed852e2009-09-05 21:47:34 +000028539
28540
28541
28542
28543#
28544# Check for PNG delegate library.
28545#
28546
28547# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028548if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 withval=$with_png; with_png=$withval
28550else
28551 with_png='yes'
28552fi
28553
28554
28555if test "$with_png" != 'yes'; then
28556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28557fi
28558
28559have_png='no'
28560PNG_LIBS=''
28561if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028563$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028567$as_echo "" >&6; }
28568 failed=0
28569 passed=0
cristy8b350f62009-11-15 23:12:43 +000028570 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28571if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028572 passed=`expr $passed + 1`
28573else
28574 failed=`expr $failed + 1`
28575fi
28576
28577
cristy8b350f62009-11-15 23:12:43 +000028578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028579$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028580if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028581 $as_echo_n "(cached) " >&6
28582else
28583 ac_check_lib_save_LIBS=$LIBS
28584LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028586/* end confdefs.h. */
28587
28588/* Override any GCC internal prototype to avoid an error.
28589 Use char because int might match the return type of a GCC
28590 builtin and then its argument prototype would still apply. */
28591#ifdef __cplusplus
28592extern "C"
28593#endif
28594char png_get_io_ptr ();
28595int
28596main ()
28597{
28598return png_get_io_ptr ();
28599 ;
28600 return 0;
28601}
28602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028604 ac_cv_lib_png_png_get_io_ptr=yes
28605else
cristy8b350f62009-11-15 23:12:43 +000028606 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028607fi
cristy8b350f62009-11-15 23:12:43 +000028608rm -f core conftest.err conftest.$ac_objext \
28609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028610LIBS=$ac_check_lib_save_LIBS
28611fi
cristy8b350f62009-11-15 23:12:43 +000028612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028613$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028614if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 passed=`expr $passed + 1`
28616else
28617 failed=`expr $failed + 1`
28618fi
28619
cristy8b350f62009-11-15 23:12:43 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028621$as_echo_n "checking if PNG package is complete... " >&6; }
28622 if test $passed -gt 0; then
28623 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028625$as_echo "no -- some components failed test" >&6; }
28626 have_png='no (failed tests)'
28627 else
28628 PNG_LIBS='-lpng'
28629 LIBS="$PNG_LIBS $LIBS"
28630
cristy8b350f62009-11-15 23:12:43 +000028631$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028632
cristy8b350f62009-11-15 23:12:43 +000028633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028634$as_echo "yes" >&6; }
28635 have_png='yes'
28636 fi
28637 else
cristy8b350f62009-11-15 23:12:43 +000028638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028639$as_echo "no" >&6; }
28640 fi
28641fi
cristy73bd4a52010-10-05 11:24:23 +000028642 if test "$have_png" = 'yes'; then
28643 PNG_DELEGATE_TRUE=
28644 PNG_DELEGATE_FALSE='#'
28645else
28646 PNG_DELEGATE_TRUE='#'
28647 PNG_DELEGATE_FALSE=
28648fi
28649
cristy3ed852e2009-09-05 21:47:34 +000028650
28651
28652
28653#
28654# Check for RSVG delegate library.
28655#
28656
28657# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028658if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028659 withval=$with_rsvg; with_rsvg=$withval
28660else
28661 with_rsvg=$have_x
28662fi
28663
28664
28665if test "$with_rsvg" != 'yes'; then
28666 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28667fi
28668
28669have_rsvg='no'
28670have_cairo='no'
28671RSVG_CFLAGS=""
28672RSVG_LIBS=""
28673RSVG_PKG=""
28674if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028676$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028677
28678pkg_failed=no
28679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28680$as_echo_n "checking for RSVG... " >&6; }
28681
28682if test -n "$RSVG_CFLAGS"; then
28683 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28684 elif test -n "$PKG_CONFIG"; then
28685 if test -n "$PKG_CONFIG" && \
28686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28687 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28688 ac_status=$?
28689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28690 test $ac_status = 0; }; then
28691 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28692else
28693 pkg_failed=yes
28694fi
28695 else
28696 pkg_failed=untried
28697fi
28698if test -n "$RSVG_LIBS"; then
28699 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28700 elif test -n "$PKG_CONFIG"; then
28701 if test -n "$PKG_CONFIG" && \
28702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28703 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28704 ac_status=$?
28705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28706 test $ac_status = 0; }; then
28707 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28708else
28709 pkg_failed=yes
28710fi
28711 else
28712 pkg_failed=untried
28713fi
28714
28715
28716
28717if test $pkg_failed = yes; then
28718
28719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28720 _pkg_short_errors_supported=yes
28721else
28722 _pkg_short_errors_supported=no
28723fi
28724 if test $_pkg_short_errors_supported = yes; then
28725 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28726 else
28727 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28728 fi
28729 # Put the nasty error message in config.log where it belongs
28730 echo "$RSVG_PKG_ERRORS" >&5
28731
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28733$as_echo "no" >&6; }
28734 have_rsvg=no
28735elif test $pkg_failed = untried; then
28736 have_rsvg=no
28737else
28738 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28739 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28741$as_echo "yes" >&6; }
28742 have_rsvg=yes
28743fi
cristy8b350f62009-11-15 23:12:43 +000028744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028745$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028746
28747pkg_failed=no
28748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28749$as_echo_n "checking for CAIRO_SVG... " >&6; }
28750
28751if test -n "$CAIRO_SVG_CFLAGS"; then
28752 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28753 elif test -n "$PKG_CONFIG"; then
28754 if test -n "$PKG_CONFIG" && \
28755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28756 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28757 ac_status=$?
28758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28759 test $ac_status = 0; }; then
28760 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28761else
28762 pkg_failed=yes
28763fi
28764 else
28765 pkg_failed=untried
28766fi
28767if test -n "$CAIRO_SVG_LIBS"; then
28768 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28769 elif test -n "$PKG_CONFIG"; then
28770 if test -n "$PKG_CONFIG" && \
28771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28772 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28773 ac_status=$?
28774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28775 test $ac_status = 0; }; then
28776 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28777else
28778 pkg_failed=yes
28779fi
28780 else
28781 pkg_failed=untried
28782fi
28783
28784
28785
28786if test $pkg_failed = yes; then
28787
28788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28789 _pkg_short_errors_supported=yes
28790else
28791 _pkg_short_errors_supported=no
28792fi
28793 if test $_pkg_short_errors_supported = yes; then
28794 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28795 else
28796 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28797 fi
28798 # Put the nasty error message in config.log where it belongs
28799 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28800
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28802$as_echo "no" >&6; }
28803 have_cairo=no
28804elif test $pkg_failed = untried; then
28805 have_cairo=no
28806else
28807 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28808 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28810$as_echo "yes" >&6; }
28811 have_cairo=yes
28812fi
cristy8b350f62009-11-15 23:12:43 +000028813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028814$as_echo "" >&6; }
28815fi
28816
28817if test "$have_rsvg" = 'yes'; then
28818
cristy8b350f62009-11-15 23:12:43 +000028819$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028820
28821 if test "$with_modules" = 'no'; then
28822 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28823 fi
28824fi
28825
28826if test "$have_cairo" = 'yes'; then
28827
cristy8b350f62009-11-15 23:12:43 +000028828$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028829
28830 if test "$with_modules" = 'no'; then
28831 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28832 fi
28833fi
28834
cristy73bd4a52010-10-05 11:24:23 +000028835 if test "$have_rsvg" = 'yes'; then
28836 RSVG_DELEGATE_TRUE=
28837 RSVG_DELEGATE_FALSE='#'
28838else
28839 RSVG_DELEGATE_TRUE='#'
28840 RSVG_DELEGATE_FALSE=
28841fi
28842
28843 if test "$have_cairo" = 'yes'; then
28844 CAIRO_DELEGATE_TRUE=
28845 CAIRO_DELEGATE_FALSE='#'
28846else
28847 CAIRO_DELEGATE_TRUE='#'
28848 CAIRO_DELEGATE_FALSE=
28849fi
28850
cristy3ed852e2009-09-05 21:47:34 +000028851
28852
28853
28854
28855#
28856# Check for TIFF delegate library.
28857#
28858
28859# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028860if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 withval=$with_tiff; with_tiff=$withval
28862else
28863 with_tiff='yes'
28864fi
28865
28866
28867if test "$with_tiff" != 'yes'; then
28868 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28869fi
28870
28871have_tiff='no'
28872TIFF_LIBS=''
28873if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028875$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028877$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028879$as_echo "" >&6; }
28880 failed=0
28881 passed=0
cristy8b350f62009-11-15 23:12:43 +000028882 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28883if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 passed=`expr $passed + 1`
28885else
28886 failed=`expr $failed + 1`
28887fi
28888
28889
cristy8b350f62009-11-15 23:12:43 +000028890 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28891if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 passed=`expr $passed + 1`
28893else
28894 failed=`expr $failed + 1`
28895fi
28896
28897
cristy8b350f62009-11-15 23:12:43 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028899$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028900if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028901 $as_echo_n "(cached) " >&6
28902else
28903 ac_check_lib_save_LIBS=$LIBS
28904LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028906/* end confdefs.h. */
28907
28908/* Override any GCC internal prototype to avoid an error.
28909 Use char because int might match the return type of a GCC
28910 builtin and then its argument prototype would still apply. */
28911#ifdef __cplusplus
28912extern "C"
28913#endif
28914char TIFFOpen ();
28915int
28916main ()
28917{
28918return TIFFOpen ();
28919 ;
28920 return 0;
28921}
28922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028924 ac_cv_lib_tiff_TIFFOpen=yes
28925else
cristy8b350f62009-11-15 23:12:43 +000028926 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028927fi
cristy8b350f62009-11-15 23:12:43 +000028928rm -f core conftest.err conftest.$ac_objext \
28929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028930LIBS=$ac_check_lib_save_LIBS
28931fi
cristy8b350f62009-11-15 23:12:43 +000028932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028933$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028934if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028935 passed=`expr $passed + 1`
28936else
28937 failed=`expr $failed + 1`
28938fi
28939
cristy8b350f62009-11-15 23:12:43 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028941$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028942if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 $as_echo_n "(cached) " >&6
28944else
28945 ac_check_lib_save_LIBS=$LIBS
28946LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028948/* end confdefs.h. */
28949
28950/* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28953#ifdef __cplusplus
28954extern "C"
28955#endif
28956char TIFFClientOpen ();
28957int
28958main ()
28959{
28960return TIFFClientOpen ();
28961 ;
28962 return 0;
28963}
28964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028966 ac_cv_lib_tiff_TIFFClientOpen=yes
28967else
cristy8b350f62009-11-15 23:12:43 +000028968 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028969fi
cristy8b350f62009-11-15 23:12:43 +000028970rm -f core conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028972LIBS=$ac_check_lib_save_LIBS
28973fi
cristy8b350f62009-11-15 23:12:43 +000028974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028976if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 passed=`expr $passed + 1`
28978else
28979 failed=`expr $failed + 1`
28980fi
28981
cristyb97f1002010-07-26 14:02:57 +000028982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28983$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28984if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28985 $as_echo_n "(cached) " >&6
28986else
28987 ac_check_lib_save_LIBS=$LIBS
28988LIBS="-ltiff $LIBS"
28989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28990/* end confdefs.h. */
28991
28992/* Override any GCC internal prototype to avoid an error.
28993 Use char because int might match the return type of a GCC
28994 builtin and then its argument prototype would still apply. */
28995#ifdef __cplusplus
28996extern "C"
28997#endif
28998char TIFFIsBigEndian ();
28999int
29000main ()
29001{
29002return TIFFIsBigEndian ();
29003 ;
29004 return 0;
29005}
29006_ACEOF
29007if ac_fn_c_try_link "$LINENO"; then :
29008 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29009else
29010 ac_cv_lib_tiff_TIFFIsBigEndian=no
29011fi
29012rm -f core conftest.err conftest.$ac_objext \
29013 conftest$ac_exeext conftest.$ac_ext
29014LIBS=$ac_check_lib_save_LIBS
29015fi
29016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29017$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29018if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29019 passed=`expr $passed + 1`
29020else
29021 failed=`expr $failed + 1`
29022fi
29023
cristy8b350f62009-11-15 23:12:43 +000029024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029025$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029026if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 $as_echo_n "(cached) " >&6
29028else
29029 ac_check_lib_save_LIBS=$LIBS
29030LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029032/* end confdefs.h. */
29033
29034/* Override any GCC internal prototype to avoid an error.
29035 Use char because int might match the return type of a GCC
29036 builtin and then its argument prototype would still apply. */
29037#ifdef __cplusplus
29038extern "C"
29039#endif
29040char TIFFIsByteSwapped ();
29041int
29042main ()
29043{
29044return TIFFIsByteSwapped ();
29045 ;
29046 return 0;
29047}
29048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29051else
cristy8b350f62009-11-15 23:12:43 +000029052 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029053fi
cristy8b350f62009-11-15 23:12:43 +000029054rm -f core conftest.err conftest.$ac_objext \
29055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029056LIBS=$ac_check_lib_save_LIBS
29057fi
cristy8b350f62009-11-15 23:12:43 +000029058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029059$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029060if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029061 passed=`expr $passed + 1`
29062else
29063 failed=`expr $failed + 1`
29064fi
29065
cristy8b350f62009-11-15 23:12:43 +000029066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029068if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029069 $as_echo_n "(cached) " >&6
29070else
29071 ac_check_lib_save_LIBS=$LIBS
29072LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029074/* end confdefs.h. */
29075
29076/* Override any GCC internal prototype to avoid an error.
29077 Use char because int might match the return type of a GCC
29078 builtin and then its argument prototype would still apply. */
29079#ifdef __cplusplus
29080extern "C"
29081#endif
29082char TIFFReadRGBATile ();
29083int
29084main ()
29085{
29086return TIFFReadRGBATile ();
29087 ;
29088 return 0;
29089}
29090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029091if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29093else
cristy8b350f62009-11-15 23:12:43 +000029094 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029095fi
cristy8b350f62009-11-15 23:12:43 +000029096rm -f core conftest.err conftest.$ac_objext \
29097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029098LIBS=$ac_check_lib_save_LIBS
29099fi
cristy8b350f62009-11-15 23:12:43 +000029100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029102if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029103 passed=`expr $passed + 1`
29104else
29105 failed=`expr $failed + 1`
29106fi
29107
cristy8b350f62009-11-15 23:12:43 +000029108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029109$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029110if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029111 $as_echo_n "(cached) " >&6
29112else
29113 ac_check_lib_save_LIBS=$LIBS
29114LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029116/* end confdefs.h. */
29117
29118/* Override any GCC internal prototype to avoid an error.
29119 Use char because int might match the return type of a GCC
29120 builtin and then its argument prototype would still apply. */
29121#ifdef __cplusplus
29122extern "C"
29123#endif
29124char TIFFReadRGBAStrip ();
29125int
29126main ()
29127{
29128return TIFFReadRGBAStrip ();
29129 ;
29130 return 0;
29131}
29132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029133if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029134 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29135else
cristy8b350f62009-11-15 23:12:43 +000029136 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029137fi
cristy8b350f62009-11-15 23:12:43 +000029138rm -f core conftest.err conftest.$ac_objext \
29139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029140LIBS=$ac_check_lib_save_LIBS
29141fi
cristy8b350f62009-11-15 23:12:43 +000029142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029143$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029144if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029145 passed=`expr $passed + 1`
29146else
29147 failed=`expr $failed + 1`
29148fi
29149
cristy8b350f62009-11-15 23:12:43 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029151$as_echo_n "checking if TIFF package is complete... " >&6; }
29152 if test $passed -gt 0; then
29153 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029155$as_echo "no -- some components failed test" >&6; }
29156 have_tiff='no (failed tests)'
29157 else
29158 TIFF_LIBS='-ltiff'
29159 LIBS="$TIFF_LIBS $LIBS"
29160
cristy8b350f62009-11-15 23:12:43 +000029161$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029162
cristy8b350f62009-11-15 23:12:43 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029164$as_echo "yes" >&6; }
29165 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029166 for ac_header in tiffconf.h
29167do :
29168 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29169if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029171#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029172_ACEOF
29173
29174fi
29175
29176done
29177
cristy8b350f62009-11-15 23:12:43 +000029178 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029179 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29180 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029181do :
29182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029184if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 cat >>confdefs.h <<_ACEOF
29186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29187_ACEOF
29188
29189fi
29190done
29191
29192 fi
29193 else
cristy8b350f62009-11-15 23:12:43 +000029194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029195$as_echo "no" >&6; }
29196 fi
29197fi
cristy73bd4a52010-10-05 11:24:23 +000029198 if test "$have_tiff" = 'yes'; then
29199 TIFF_DELEGATE_TRUE=
29200 TIFF_DELEGATE_FALSE='#'
29201else
29202 TIFF_DELEGATE_TRUE='#'
29203 TIFF_DELEGATE_FALSE=
29204fi
29205
cristy3ed852e2009-09-05 21:47:34 +000029206
29207
29208
29209#
29210# Set Windows font directory.
29211#
29212
29213# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029214if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29216else
29217 with_windows_font_dir=''
29218fi
29219
29220if test "$with_windows_font_dir" != '' ; then
29221 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29222fi
29223
29224
29225#
29226# Check for WMF delegate library.
29227#
29228
29229# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029230if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029231 withval=$with_wmf; with_wmf=$withval
29232else
cristy8d63d1d2010-01-06 20:38:37 +000029233 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029234fi
29235
29236
29237if test "$with_wmf" != 'yes'; then
29238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29239fi
29240
29241have_wmf='no'
29242WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029243if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029245$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029249$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029250 failed=0
29251 passed=0
29252 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29253if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29254 passed=`expr $passed + 1`
29255else
29256 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029257fi
29258
29259
cristy735e8942010-04-02 20:32:57 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29261$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29262if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029263 $as_echo_n "(cached) " >&6
29264else
29265 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029266LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029268/* end confdefs.h. */
29269
29270/* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
29273#ifdef __cplusplus
29274extern "C"
29275#endif
cristy735e8942010-04-02 20:32:57 +000029276char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029277int
29278main ()
29279{
cristy735e8942010-04-02 20:32:57 +000029280return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029281 ;
29282 return 0;
29283}
29284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029285if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029286 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029287else
cristy735e8942010-04-02 20:32:57 +000029288 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029289fi
cristy8b350f62009-11-15 23:12:43 +000029290rm -f core conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029292LIBS=$ac_check_lib_save_LIBS
29293fi
cristy735e8942010-04-02 20:32:57 +000029294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29295$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29296if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29297 passed=`expr $passed + 1`
29298else
29299 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029300fi
29301
cristy735e8942010-04-02 20:32:57 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29303$as_echo_n "checking if WMF package is complete... " >&6; }
29304 if test $passed -gt 0; then
29305 if test $failed -gt 0; then
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29307$as_echo "no -- some components failed test" >&6; }
29308 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029309 else
cristy735e8942010-04-02 20:32:57 +000029310 WMF_LIBS='-lwmf -lwmflite'
29311 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029312
cristy8b350f62009-11-15 23:12:43 +000029313$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029314
cristy735e8942010-04-02 20:32:57 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029317 have_wmf='yes'
29318 fi
cristy3ed852e2009-09-05 21:47:34 +000029319 else
cristy8b350f62009-11-15 23:12:43 +000029320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029321$as_echo "no" >&6; }
29322 fi
29323fi
cristy73bd4a52010-10-05 11:24:23 +000029324 if test "$have_wmf" = 'yes'; then
29325 WMF_DELEGATE_TRUE=
29326 WMF_DELEGATE_FALSE='#'
29327else
29328 WMF_DELEGATE_TRUE='#'
29329 WMF_DELEGATE_FALSE=
29330fi
29331
cristy3ed852e2009-09-05 21:47:34 +000029332
29333
29334
29335
cristy735e8942010-04-02 20:32:57 +000029336
cristy3ed852e2009-09-05 21:47:34 +000029337#
29338# Check for XML delegate library.
29339#
29340
29341# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029342if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029343 withval=$with_xml; with_xml=$withval
29344else
29345 with_xml=$have_x
29346fi
29347
29348
29349if test "$with_xml" != 'yes' ; then
29350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29351fi
29352
29353have_xml='no'
29354XML_LIBS=''
29355if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029359$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029361$as_echo "" >&6; }
29362 PERSIST_LDFLAGS=$LDFLAGS
29363 PERSIST_CPPFLAGS=$CPPFLAGS
29364 xml2_config=''
29365 for ac_prog in xml2-config
29366do
29367 # Extract the first word of "$ac_prog", so it can be a program name with args.
29368set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029371if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 $as_echo_n "(cached) " >&6
29373else
29374 if test -n "$xml2_config"; then
29375 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29376else
29377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29378for as_dir in $PATH
29379do
29380 IFS=$as_save_IFS
29381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29384 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029386 break 2
29387 fi
29388done
cristy8b350f62009-11-15 23:12:43 +000029389 done
cristy3ed852e2009-09-05 21:47:34 +000029390IFS=$as_save_IFS
29391
29392fi
29393fi
29394xml2_config=$ac_cv_prog_xml2_config
29395if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "$xml2_config" >&6; }
29398else
cristy8b350f62009-11-15 23:12:43 +000029399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029400$as_echo "no" >&6; }
29401fi
29402
29403
29404 test -n "$xml2_config" && break
29405done
29406 if test -n "$xml2_config"; then
29407 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29408 # the shared library installed under /usr/lib, whereas the package
29409 # installs itself under $prefix/libxml and $prefix/lib.
29410 xml2_prefix=`xml2-config --prefix`
29411 if test -d "${xml2_prefix}/include/libxml2"; then
29412 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29413 fi
29414 if test "${xml2_prefix}" != '/usr'; then
29415 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29416 fi
29417 fi
29418 failed=0
29419 passed=0
cristy8b350f62009-11-15 23:12:43 +000029420 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29421if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 passed=`expr $passed + 1`
29423else
29424 failed=`expr $failed + 1`
29425fi
29426
29427
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029430if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 $as_echo_n "(cached) " >&6
29432else
29433 ac_check_lib_save_LIBS=$LIBS
29434LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029436/* end confdefs.h. */
29437
29438/* Override any GCC internal prototype to avoid an error.
29439 Use char because int might match the return type of a GCC
29440 builtin and then its argument prototype would still apply. */
29441#ifdef __cplusplus
29442extern "C"
29443#endif
29444char xmlParseExternalEntity ();
29445int
29446main ()
29447{
29448return xmlParseExternalEntity ();
29449 ;
29450 return 0;
29451}
29452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029454 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29455else
cristy8b350f62009-11-15 23:12:43 +000029456 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029457fi
cristy8b350f62009-11-15 23:12:43 +000029458rm -f core conftest.err conftest.$ac_objext \
29459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029460LIBS=$ac_check_lib_save_LIBS
29461fi
cristy8b350f62009-11-15 23:12:43 +000029462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029464if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029465 passed=`expr $passed + 1`
29466else
29467 failed=`expr $failed + 1`
29468fi
29469
cristy8b350f62009-11-15 23:12:43 +000029470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029471$as_echo_n "checking if XML package is complete... " >&6; }
29472 if test $passed -gt 0; then
29473 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029475$as_echo "no -- some components failed test" >&6; }
29476 have_xml='no (failed tests)'
29477 LDFLAGS="$PERSIST_LDFLAGS"
29478 CPPFLAGS="$PERSIST_CPPFLAGS"
29479 else
29480 XML_LIBS='-lxml2'
29481 LIBS="$XML_LIBS $LIBS"
29482
cristy8b350f62009-11-15 23:12:43 +000029483$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029484
cristy8b350f62009-11-15 23:12:43 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo "yes" >&6; }
29487 have_xml='yes'
29488 fi
29489 else
cristy8b350f62009-11-15 23:12:43 +000029490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029491$as_echo "no" >&6; }
29492 fi
29493fi
cristy73bd4a52010-10-05 11:24:23 +000029494 if test "$have_xml" = 'yes'; then
29495 XML_DELEGATE_TRUE=
29496 XML_DELEGATE_FALSE='#'
29497else
29498 XML_DELEGATE_TRUE='#'
29499 XML_DELEGATE_FALSE=
29500fi
29501
cristy3ed852e2009-09-05 21:47:34 +000029502
29503
29504
29505# Substitute compiler name to build/link PerlMagick
29506#
29507
29508
29509#
29510# Configure install Paths
29511#
29512
29513# Subdirectory under lib to place ImageMagick lib files
29514LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29515
29516cat >>confdefs.h <<_ACEOF
29517#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29518_ACEOF
29519
29520
29521# Path to ImageMagick bin directory
29522EXECUTABLE_PATH="${BIN_DIR}"
29523DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29524case "${build_os}" in
29525 mingw* )
29526 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29527 ;;
29528esac
29529
29530cat >>confdefs.h <<_ACEOF
29531#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29532_ACEOF
29533
29534
29535
29536# Path to ImageMagick lib
29537LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29538DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29539case "${build_os}" in
29540 mingw* )
29541 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29542 ;;
29543esac
29544
29545cat >>confdefs.h <<_ACEOF
29546#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29547_ACEOF
29548
29549
29550
29551# Subdirectory under lib to place ImageMagick configuration files
29552CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29553
29554cat >>confdefs.h <<_ACEOF
29555#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29556_ACEOF
29557
29558CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29559DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29560case "${build_os}" in
29561 mingw* )
29562 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29563 ;;
29564esac
29565
29566cat >>confdefs.h <<_ACEOF
29567#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29568_ACEOF
29569
29570
29571
29572#
29573# Subdirectory under lib to place ImageMagick coder module files
29574CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29575
29576cat >>confdefs.h <<_ACEOF
29577#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29578_ACEOF
29579
29580CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29581DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29582case "${build_os}" in
29583 mingw* )
29584 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29585 ;;
29586esac
29587
29588cat >>confdefs.h <<_ACEOF
29589#define CODER_PATH "$DEFINE_CODER_PATH"
29590_ACEOF
29591
29592
29593
29594#
29595# Subdirectory under lib to place ImageMagick filter module files
29596FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29597
29598cat >>confdefs.h <<_ACEOF
29599#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29600_ACEOF
29601
29602FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29603DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29604case "${build_os}" in
29605 mingw* )
29606 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29607 ;;
29608esac
29609
29610cat >>confdefs.h <<_ACEOF
29611#define FILTER_PATH "$DEFINE_FILTER_PATH"
29612_ACEOF
29613
29614
29615
29616#
29617# Path to ImageMagick documentation files
29618DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29619DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29620DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29621case "${build_os}" in
29622 mingw* )
29623 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29624 ;;
29625esac
29626
29627cat >>confdefs.h <<_ACEOF
29628#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29629_ACEOF
29630
29631
29632
29633#
29634# Path to ImageMagick share files
29635SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29636SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29637DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29638case "${build_os}" in
29639 mingw* )
29640 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29641 ;;
29642esac
29643
29644cat >>confdefs.h <<_ACEOF
29645#define SHARE_PATH "$DEFINE_SHARE_PATH"
29646_ACEOF
29647
29648
29649
29650# Subdirectory under share to place ImageMagick configuration files
29651SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29652
29653cat >>confdefs.h <<_ACEOF
29654#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29655_ACEOF
29656
29657SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29658DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29659case "${build_os}" in
29660 mingw* )
29661 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29662 ;;
29663esac
29664
29665cat >>confdefs.h <<_ACEOF
29666#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29667_ACEOF
29668
29669
29670
29671#
29672# program_transform_name is formed for use in a Makefile, so create a
29673# modified version for use in a shell script.
29674configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29675
29676# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029678$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029680$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029682$as_echo "" >&6; }
29683AutotraceDecodeDelegateDefault='autotrace'
29684AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029685BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029686BZIPDelegateDefault='bzip2'
29687BrowseDelegateDefault='xdg-open'
29688CGMDecodeDelegateDefault='ralcgm'
29689CatDelegateDefault='cat'
29690DNGDecodeDelegateDefault='ufraw-batch'
29691GVCDecodeDelegateDefault='dot'
29692DVIDecodeDelegateDefault='dvips'
29693EchoDelegateDefault='echo'
29694EditorDelegateDefault='xterm'
29695FIGDecodeDelegateDefault='fig2dev'
29696ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29697DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29698MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29699GnuplotDecodeDelegateDefault='gnuplot'
29700HDRDecodeDelegateDefault='ra_pfm'
29701HPGLDecodeDelegateDefault='hp2xx'
29702HTMLDecodeDelegateDefault='html2ps'
29703ILBMDecodeDelegateDefault='ilbmtoppm'
29704ILBMEncodeDelegateDefault='ppmtoilbm'
29705LPDelegateDefault='lp'
29706LPRDelegateDefault='lpr'
29707LZWDecodeDelegateDefault='uncompress'
29708LZWEncodeDelegateDefault='compress'
29709LaunchDelegateDefault='gimp'
29710MANDelegateDefault='groff'
29711MPEGDecodeDelegateDefault='ffmpeg'
29712MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029713MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029714MVDelegateDefault='mv'
29715PCLDelegateDefault='pcl6'
29716PGPDecodeDelegateDefault='pgpv'
29717POVDelegateDefault='povray'
29718if test "$native_win32_build" = 'yes'; then
29719 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029720elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029721 PSDelegateDefault='gsc'
29722else
29723 PSDelegateDefault='gs'
29724fi
29725RLEEncodeDelegateDefault='rawtorle'
29726RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029727RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029728SCANDecodeDelegateDefault='scanimage'
29729TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029730UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000029731WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000029732WMFDecodeDelegateDefault='wmf2eps'
29733WWWDecodeDelegateDefault='curl'
29734XPSDelegateDefault='gxps'
29735ZipDelegateDefault='gzip'
29736
29737# Search for delegates
29738# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29739set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029742if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029743 $as_echo_n "(cached) " >&6
29744else
29745 case $AutotraceDecodeDelegate in
29746 [\\/]* | ?:[\\/]*)
29747 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29748 ;;
29749 *)
29750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29751for as_dir in $PATH
29752do
29753 IFS=$as_save_IFS
29754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29757 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029759 break 2
29760 fi
29761done
cristy8b350f62009-11-15 23:12:43 +000029762 done
cristy3ed852e2009-09-05 21:47:34 +000029763IFS=$as_save_IFS
29764
29765 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29766 ;;
29767esac
29768fi
29769AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29770if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772$as_echo "$AutotraceDecodeDelegate" >&6; }
29773else
cristy8b350f62009-11-15 23:12:43 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775$as_echo "no" >&6; }
29776fi
29777
29778
29779# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29780set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029783if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029784 $as_echo_n "(cached) " >&6
29785else
29786 case $AVIDecodeDelegate in
29787 [\\/]* | ?:[\\/]*)
29788 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29789 ;;
29790 *)
29791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29792for as_dir in $PATH
29793do
29794 IFS=$as_save_IFS
29795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29798 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029800 break 2
29801 fi
29802done
cristy8b350f62009-11-15 23:12:43 +000029803 done
cristy3ed852e2009-09-05 21:47:34 +000029804IFS=$as_save_IFS
29805
29806 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29807 ;;
29808esac
29809fi
29810AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29811if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029813$as_echo "$AVIDecodeDelegate" >&6; }
29814else
cristy8b350f62009-11-15 23:12:43 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816$as_echo "no" >&6; }
29817fi
29818
29819
29820# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29821set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029824if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 $as_echo_n "(cached) " >&6
29826else
29827 case $BlenderDecodeDelegate in
29828 [\\/]* | ?:[\\/]*)
29829 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29830 ;;
29831 *)
29832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29833for as_dir in $PATH
29834do
29835 IFS=$as_save_IFS
29836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29839 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029841 break 2
29842 fi
29843done
cristy8b350f62009-11-15 23:12:43 +000029844 done
cristy3ed852e2009-09-05 21:47:34 +000029845IFS=$as_save_IFS
29846
29847 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29848 ;;
29849esac
29850fi
29851BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29852if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo "$BlenderDecodeDelegate" >&6; }
29855else
cristy8b350f62009-11-15 23:12:43 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857$as_echo "no" >&6; }
29858fi
29859
29860
29861# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29862set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029865if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 $as_echo_n "(cached) " >&6
29867else
29868 case $BZIPDelegate in
29869 [\\/]* | ?:[\\/]*)
29870 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29871 ;;
29872 *)
29873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29874for as_dir in $PATH
29875do
29876 IFS=$as_save_IFS
29877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29880 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029882 break 2
29883 fi
29884done
cristy8b350f62009-11-15 23:12:43 +000029885 done
cristy3ed852e2009-09-05 21:47:34 +000029886IFS=$as_save_IFS
29887
29888 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29889 ;;
29890esac
29891fi
29892BZIPDelegate=$ac_cv_path_BZIPDelegate
29893if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029895$as_echo "$BZIPDelegate" >&6; }
29896else
cristy8b350f62009-11-15 23:12:43 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898$as_echo "no" >&6; }
29899fi
29900
29901
29902# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29903set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029906if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029907 $as_echo_n "(cached) " >&6
29908else
29909 case $BrowseDelegate in
29910 [\\/]* | ?:[\\/]*)
29911 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29912 ;;
29913 *)
29914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915for as_dir in $PATH
29916do
29917 IFS=$as_save_IFS
29918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029923 break 2
29924 fi
29925done
cristy8b350f62009-11-15 23:12:43 +000029926 done
cristy3ed852e2009-09-05 21:47:34 +000029927IFS=$as_save_IFS
29928
29929 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29930 ;;
29931esac
29932fi
29933BrowseDelegate=$ac_cv_path_BrowseDelegate
29934if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029936$as_echo "$BrowseDelegate" >&6; }
29937else
cristy8b350f62009-11-15 23:12:43 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029939$as_echo "no" >&6; }
29940fi
29941
29942
29943# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29944set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029947if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029948 $as_echo_n "(cached) " >&6
29949else
29950 case $CGMDecodeDelegate in
29951 [\\/]* | ?:[\\/]*)
29952 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29953 ;;
29954 *)
29955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956for as_dir in $PATH
29957do
29958 IFS=$as_save_IFS
29959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029964 break 2
29965 fi
29966done
cristy8b350f62009-11-15 23:12:43 +000029967 done
cristy3ed852e2009-09-05 21:47:34 +000029968IFS=$as_save_IFS
29969
29970 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29971 ;;
29972esac
29973fi
29974CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29975if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029977$as_echo "$CGMDecodeDelegate" >&6; }
29978else
cristy8b350f62009-11-15 23:12:43 +000029979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029980$as_echo "no" >&6; }
29981fi
29982
29983
29984# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29985set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029987$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029988if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029989 $as_echo_n "(cached) " >&6
29990else
29991 case $CatDelegate in
29992 [\\/]* | ?:[\\/]*)
29993 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29994 ;;
29995 *)
29996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997for as_dir in $PATH
29998do
29999 IFS=$as_save_IFS
30000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30003 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030005 break 2
30006 fi
30007done
cristy8b350f62009-11-15 23:12:43 +000030008 done
cristy3ed852e2009-09-05 21:47:34 +000030009IFS=$as_save_IFS
30010
30011 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30012 ;;
30013esac
30014fi
30015CatDelegate=$ac_cv_path_CatDelegate
30016if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030018$as_echo "$CatDelegate" >&6; }
30019else
cristy8b350f62009-11-15 23:12:43 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021$as_echo "no" >&6; }
30022fi
30023
30024
30025# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30026set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030028$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030029if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030030 $as_echo_n "(cached) " >&6
30031else
30032 case $DNGDecodeDelegate in
30033 [\\/]* | ?:[\\/]*)
30034 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30035 ;;
30036 *)
30037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30038for as_dir in $PATH
30039do
30040 IFS=$as_save_IFS
30041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30044 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030046 break 2
30047 fi
30048done
cristy8b350f62009-11-15 23:12:43 +000030049 done
cristy3ed852e2009-09-05 21:47:34 +000030050IFS=$as_save_IFS
30051
30052 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30053 ;;
30054esac
30055fi
30056DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30057if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030059$as_echo "$DNGDecodeDelegate" >&6; }
30060else
cristy8b350f62009-11-15 23:12:43 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062$as_echo "no" >&6; }
30063fi
30064
30065
30066# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30067set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030069$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030070if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030071 $as_echo_n "(cached) " >&6
30072else
30073 case $GVCDecodeDelegate in
30074 [\\/]* | ?:[\\/]*)
30075 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30076 ;;
30077 *)
30078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30079for as_dir in $PATH
30080do
30081 IFS=$as_save_IFS
30082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30085 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030087 break 2
30088 fi
30089done
cristy8b350f62009-11-15 23:12:43 +000030090 done
cristy3ed852e2009-09-05 21:47:34 +000030091IFS=$as_save_IFS
30092
30093 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30094 ;;
30095esac
30096fi
30097GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30098if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100$as_echo "$GVCDecodeDelegate" >&6; }
30101else
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "no" >&6; }
30104fi
30105
30106
30107# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30108set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030111if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030112 $as_echo_n "(cached) " >&6
30113else
30114 case $DVIDecodeDelegate in
30115 [\\/]* | ?:[\\/]*)
30116 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30117 ;;
30118 *)
30119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30120for as_dir in $PATH
30121do
30122 IFS=$as_save_IFS
30123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30126 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128 break 2
30129 fi
30130done
cristy8b350f62009-11-15 23:12:43 +000030131 done
cristy3ed852e2009-09-05 21:47:34 +000030132IFS=$as_save_IFS
30133
30134 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30135 ;;
30136esac
30137fi
30138DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30139if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030141$as_echo "$DVIDecodeDelegate" >&6; }
30142else
cristy8b350f62009-11-15 23:12:43 +000030143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144$as_echo "no" >&6; }
30145fi
30146
30147
30148# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30149set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030152if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 $as_echo_n "(cached) " >&6
30154else
30155 case $EchoDelegate in
30156 [\\/]* | ?:[\\/]*)
30157 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30158 ;;
30159 *)
30160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30161for as_dir in $PATH
30162do
30163 IFS=$as_save_IFS
30164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30167 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030169 break 2
30170 fi
30171done
cristy8b350f62009-11-15 23:12:43 +000030172 done
cristy3ed852e2009-09-05 21:47:34 +000030173IFS=$as_save_IFS
30174
30175 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30176 ;;
30177esac
30178fi
30179EchoDelegate=$ac_cv_path_EchoDelegate
30180if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030182$as_echo "$EchoDelegate" >&6; }
30183else
cristy8b350f62009-11-15 23:12:43 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185$as_echo "no" >&6; }
30186fi
30187
30188
30189# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30190set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030193if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030194 $as_echo_n "(cached) " >&6
30195else
30196 case $EditorDelegate in
30197 [\\/]* | ?:[\\/]*)
30198 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30199 ;;
30200 *)
30201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30202for as_dir in $PATH
30203do
30204 IFS=$as_save_IFS
30205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30208 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030210 break 2
30211 fi
30212done
cristy8b350f62009-11-15 23:12:43 +000030213 done
cristy3ed852e2009-09-05 21:47:34 +000030214IFS=$as_save_IFS
30215
30216 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30217 ;;
30218esac
30219fi
30220EditorDelegate=$ac_cv_path_EditorDelegate
30221if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030223$as_echo "$EditorDelegate" >&6; }
30224else
cristy8b350f62009-11-15 23:12:43 +000030225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030226$as_echo "no" >&6; }
30227fi
30228
30229
30230# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30231set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030234if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030235 $as_echo_n "(cached) " >&6
30236else
30237 case $FIGDecodeDelegate in
30238 [\\/]* | ?:[\\/]*)
30239 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30240 ;;
30241 *)
30242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243for as_dir in $PATH
30244do
30245 IFS=$as_save_IFS
30246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30249 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030251 break 2
30252 fi
30253done
cristy8b350f62009-11-15 23:12:43 +000030254 done
cristy3ed852e2009-09-05 21:47:34 +000030255IFS=$as_save_IFS
30256
30257 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30258 ;;
30259esac
30260fi
30261FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30262if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo "$FIGDecodeDelegate" >&6; }
30265else
cristy8b350f62009-11-15 23:12:43 +000030266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267$as_echo "no" >&6; }
30268fi
30269
30270
30271# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30272set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030275if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030276 $as_echo_n "(cached) " >&6
30277else
30278 case $ConvertDelegate in
30279 [\\/]* | ?:[\\/]*)
30280 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30281 ;;
30282 *)
30283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30284for as_dir in $PATH
30285do
30286 IFS=$as_save_IFS
30287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30290 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030292 break 2
30293 fi
30294done
cristy8b350f62009-11-15 23:12:43 +000030295 done
cristy3ed852e2009-09-05 21:47:34 +000030296IFS=$as_save_IFS
30297
30298 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30299 ;;
30300esac
30301fi
30302ConvertDelegate=$ac_cv_path_ConvertDelegate
30303if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo "$ConvertDelegate" >&6; }
30306else
cristy8b350f62009-11-15 23:12:43 +000030307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308$as_echo "no" >&6; }
30309fi
30310
30311
30312# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30313set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030316if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030317 $as_echo_n "(cached) " >&6
30318else
30319 case $DisplayDelegate in
30320 [\\/]* | ?:[\\/]*)
30321 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30322 ;;
30323 *)
30324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30325for as_dir in $PATH
30326do
30327 IFS=$as_save_IFS
30328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30331 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030333 break 2
30334 fi
30335done
cristy8b350f62009-11-15 23:12:43 +000030336 done
cristy3ed852e2009-09-05 21:47:34 +000030337IFS=$as_save_IFS
30338
30339 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30340 ;;
30341esac
30342fi
30343DisplayDelegate=$ac_cv_path_DisplayDelegate
30344if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030346$as_echo "$DisplayDelegate" >&6; }
30347else
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "no" >&6; }
30350fi
30351
30352
30353# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30354set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030357if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030358 $as_echo_n "(cached) " >&6
30359else
30360 case $MogrifyDelegate in
30361 [\\/]* | ?:[\\/]*)
30362 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30363 ;;
30364 *)
30365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366for as_dir in $PATH
30367do
30368 IFS=$as_save_IFS
30369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374 break 2
30375 fi
30376done
cristy8b350f62009-11-15 23:12:43 +000030377 done
cristy3ed852e2009-09-05 21:47:34 +000030378IFS=$as_save_IFS
30379
30380 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30381 ;;
30382esac
30383fi
30384MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30385if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "$MogrifyDelegate" >&6; }
30388else
cristy8b350f62009-11-15 23:12:43 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390$as_echo "no" >&6; }
30391fi
30392
30393
30394# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30395set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030398if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030399 $as_echo_n "(cached) " >&6
30400else
30401 case $GnuplotDecodeDelegate in
30402 [\\/]* | ?:[\\/]*)
30403 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30404 ;;
30405 *)
30406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30407for as_dir in $PATH
30408do
30409 IFS=$as_save_IFS
30410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30413 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030415 break 2
30416 fi
30417done
cristy8b350f62009-11-15 23:12:43 +000030418 done
cristy3ed852e2009-09-05 21:47:34 +000030419IFS=$as_save_IFS
30420
30421 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30422 ;;
30423esac
30424fi
30425GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30426if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030428$as_echo "$GnuplotDecodeDelegate" >&6; }
30429else
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "no" >&6; }
30432fi
30433
30434
30435# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30436set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030438$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030439if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030440 $as_echo_n "(cached) " >&6
30441else
30442 case $HDRDecodeDelegate in
30443 [\\/]* | ?:[\\/]*)
30444 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30445 ;;
30446 *)
30447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30448for as_dir in $PATH
30449do
30450 IFS=$as_save_IFS
30451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30454 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030456 break 2
30457 fi
30458done
cristy8b350f62009-11-15 23:12:43 +000030459 done
cristy3ed852e2009-09-05 21:47:34 +000030460IFS=$as_save_IFS
30461
30462 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30463 ;;
30464esac
30465fi
30466HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30467if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469$as_echo "$HDRDecodeDelegate" >&6; }
30470else
cristy8b350f62009-11-15 23:12:43 +000030471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030472$as_echo "no" >&6; }
30473fi
30474
30475
30476# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30477set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030480if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030481 $as_echo_n "(cached) " >&6
30482else
30483 case $HPGLDecodeDelegate in
30484 [\\/]* | ?:[\\/]*)
30485 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30486 ;;
30487 *)
30488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30489for as_dir in $PATH
30490do
30491 IFS=$as_save_IFS
30492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30495 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497 break 2
30498 fi
30499done
cristy8b350f62009-11-15 23:12:43 +000030500 done
cristy3ed852e2009-09-05 21:47:34 +000030501IFS=$as_save_IFS
30502
30503 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30504 ;;
30505esac
30506fi
30507HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30508if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030510$as_echo "$HPGLDecodeDelegate" >&6; }
30511else
cristy8b350f62009-11-15 23:12:43 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "no" >&6; }
30514fi
30515
30516
30517# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30518set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030521if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030522 $as_echo_n "(cached) " >&6
30523else
30524 case $HTMLDecodeDelegate in
30525 [\\/]* | ?:[\\/]*)
30526 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30527 ;;
30528 *)
30529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530for as_dir in $PATH
30531do
30532 IFS=$as_save_IFS
30533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30536 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538 break 2
30539 fi
30540done
cristy8b350f62009-11-15 23:12:43 +000030541 done
cristy3ed852e2009-09-05 21:47:34 +000030542IFS=$as_save_IFS
30543
30544 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30545 ;;
30546esac
30547fi
30548HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30549if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030551$as_echo "$HTMLDecodeDelegate" >&6; }
30552else
cristy8b350f62009-11-15 23:12:43 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554$as_echo "no" >&6; }
30555fi
30556
30557
30558# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30559set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030562if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030563 $as_echo_n "(cached) " >&6
30564else
30565 case $ILBMDecodeDelegate in
30566 [\\/]* | ?:[\\/]*)
30567 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30568 ;;
30569 *)
30570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571for as_dir in $PATH
30572do
30573 IFS=$as_save_IFS
30574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30577 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030579 break 2
30580 fi
30581done
cristy8b350f62009-11-15 23:12:43 +000030582 done
cristy3ed852e2009-09-05 21:47:34 +000030583IFS=$as_save_IFS
30584
30585 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30586 ;;
30587esac
30588fi
30589ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30590if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030592$as_echo "$ILBMDecodeDelegate" >&6; }
30593else
cristy8b350f62009-11-15 23:12:43 +000030594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595$as_echo "no" >&6; }
30596fi
30597
30598
30599# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30600set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030603if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030604 $as_echo_n "(cached) " >&6
30605else
30606 case $ILBMEncodeDelegate in
30607 [\\/]* | ?:[\\/]*)
30608 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30609 ;;
30610 *)
30611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30612for as_dir in $PATH
30613do
30614 IFS=$as_save_IFS
30615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30618 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030620 break 2
30621 fi
30622done
cristy8b350f62009-11-15 23:12:43 +000030623 done
cristy3ed852e2009-09-05 21:47:34 +000030624IFS=$as_save_IFS
30625
30626 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30627 ;;
30628esac
30629fi
30630ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30631if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030633$as_echo "$ILBMEncodeDelegate" >&6; }
30634else
cristy8b350f62009-11-15 23:12:43 +000030635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030636$as_echo "no" >&6; }
30637fi
30638
30639
30640# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30641set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030644if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030645 $as_echo_n "(cached) " >&6
30646else
30647 case $LPDelegate in
30648 [\\/]* | ?:[\\/]*)
30649 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30650 ;;
30651 *)
30652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653for as_dir in $PATH
30654do
30655 IFS=$as_save_IFS
30656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30659 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030661 break 2
30662 fi
30663done
cristy8b350f62009-11-15 23:12:43 +000030664 done
cristy3ed852e2009-09-05 21:47:34 +000030665IFS=$as_save_IFS
30666
30667 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30668 ;;
30669esac
30670fi
30671LPDelegate=$ac_cv_path_LPDelegate
30672if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030674$as_echo "$LPDelegate" >&6; }
30675else
cristy8b350f62009-11-15 23:12:43 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677$as_echo "no" >&6; }
30678fi
30679
30680
30681# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30682set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030684$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030685if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030686 $as_echo_n "(cached) " >&6
30687else
30688 case $LPRDelegate in
30689 [\\/]* | ?:[\\/]*)
30690 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30691 ;;
30692 *)
30693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30694for as_dir in $PATH
30695do
30696 IFS=$as_save_IFS
30697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30700 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030702 break 2
30703 fi
30704done
cristy8b350f62009-11-15 23:12:43 +000030705 done
cristy3ed852e2009-09-05 21:47:34 +000030706IFS=$as_save_IFS
30707
30708 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30709 ;;
30710esac
30711fi
30712LPRDelegate=$ac_cv_path_LPRDelegate
30713if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030715$as_echo "$LPRDelegate" >&6; }
30716else
cristy8b350f62009-11-15 23:12:43 +000030717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718$as_echo "no" >&6; }
30719fi
30720
30721
30722# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30723set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030725$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030726if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030727 $as_echo_n "(cached) " >&6
30728else
30729 case $LZWDecodeDelegate in
30730 [\\/]* | ?:[\\/]*)
30731 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30732 ;;
30733 *)
30734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30735for as_dir in $PATH
30736do
30737 IFS=$as_save_IFS
30738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30741 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030743 break 2
30744 fi
30745done
cristy8b350f62009-11-15 23:12:43 +000030746 done
cristy3ed852e2009-09-05 21:47:34 +000030747IFS=$as_save_IFS
30748
30749 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30750 ;;
30751esac
30752fi
30753LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30754if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030756$as_echo "$LZWDecodeDelegate" >&6; }
30757else
cristy8b350f62009-11-15 23:12:43 +000030758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759$as_echo "no" >&6; }
30760fi
30761
30762
30763# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30764set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030766$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030767if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030768 $as_echo_n "(cached) " >&6
30769else
30770 case $LZWEncodeDelegate in
30771 [\\/]* | ?:[\\/]*)
30772 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30773 ;;
30774 *)
30775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776for as_dir in $PATH
30777do
30778 IFS=$as_save_IFS
30779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30782 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030784 break 2
30785 fi
30786done
cristy8b350f62009-11-15 23:12:43 +000030787 done
cristy3ed852e2009-09-05 21:47:34 +000030788IFS=$as_save_IFS
30789
30790 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30791 ;;
30792esac
30793fi
30794LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30795if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030797$as_echo "$LZWEncodeDelegate" >&6; }
30798else
cristy8b350f62009-11-15 23:12:43 +000030799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800$as_echo "no" >&6; }
30801fi
30802
30803
30804# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30805set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030807$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030808if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030809 $as_echo_n "(cached) " >&6
30810else
30811 case $LaunchDelegate in
30812 [\\/]* | ?:[\\/]*)
30813 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30814 ;;
30815 *)
30816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30817for as_dir in $PATH
30818do
30819 IFS=$as_save_IFS
30820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30823 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825 break 2
30826 fi
30827done
cristy8b350f62009-11-15 23:12:43 +000030828 done
cristy3ed852e2009-09-05 21:47:34 +000030829IFS=$as_save_IFS
30830
30831 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30832 ;;
30833esac
30834fi
30835LaunchDelegate=$ac_cv_path_LaunchDelegate
30836if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030838$as_echo "$LaunchDelegate" >&6; }
30839else
cristy8b350f62009-11-15 23:12:43 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo "no" >&6; }
30842fi
30843
30844
30845# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30846set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030848$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030849if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030850 $as_echo_n "(cached) " >&6
30851else
30852 case $MANDelegate in
30853 [\\/]* | ?:[\\/]*)
30854 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30855 ;;
30856 *)
30857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30858for as_dir in $PATH
30859do
30860 IFS=$as_save_IFS
30861 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30864 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030866 break 2
30867 fi
30868done
cristy8b350f62009-11-15 23:12:43 +000030869 done
cristy3ed852e2009-09-05 21:47:34 +000030870IFS=$as_save_IFS
30871
30872 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30873 ;;
30874esac
30875fi
30876MANDelegate=$ac_cv_path_MANDelegate
30877if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030879$as_echo "$MANDelegate" >&6; }
30880else
cristy8b350f62009-11-15 23:12:43 +000030881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882$as_echo "no" >&6; }
30883fi
30884
30885
30886# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30887set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030889$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030890if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030891 $as_echo_n "(cached) " >&6
30892else
30893 case $MPEGDecodeDelegate in
30894 [\\/]* | ?:[\\/]*)
30895 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30896 ;;
30897 *)
30898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899for as_dir in $PATH
30900do
30901 IFS=$as_save_IFS
30902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30905 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030907 break 2
30908 fi
30909done
cristy8b350f62009-11-15 23:12:43 +000030910 done
cristy3ed852e2009-09-05 21:47:34 +000030911IFS=$as_save_IFS
30912
30913 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30914 ;;
30915esac
30916fi
30917MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30918if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030920$as_echo "$MPEGDecodeDelegate" >&6; }
30921else
cristy8b350f62009-11-15 23:12:43 +000030922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030923$as_echo "no" >&6; }
30924fi
30925
30926
30927# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30928set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030931if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030932 $as_echo_n "(cached) " >&6
30933else
30934 case $MPEGEncodeDelegate in
30935 [\\/]* | ?:[\\/]*)
30936 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30937 ;;
30938 *)
30939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30940for as_dir in $PATH
30941do
30942 IFS=$as_save_IFS
30943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30946 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948 break 2
30949 fi
30950done
cristy8b350f62009-11-15 23:12:43 +000030951 done
cristy3ed852e2009-09-05 21:47:34 +000030952IFS=$as_save_IFS
30953
30954 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30955 ;;
30956esac
30957fi
30958MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30959if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030961$as_echo "$MPEGEncodeDelegate" >&6; }
30962else
cristy8b350f62009-11-15 23:12:43 +000030963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030964$as_echo "no" >&6; }
30965fi
30966
30967
cristy935c86e2010-06-05 23:50:07 +000030968# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30969set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30971$as_echo_n "checking for $ac_word... " >&6; }
30972if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30973 $as_echo_n "(cached) " >&6
30974else
30975 case $MrSIDDecodeDelegate in
30976 [\\/]* | ?:[\\/]*)
30977 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30978 ;;
30979 *)
30980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30981for as_dir in $PATH
30982do
30983 IFS=$as_save_IFS
30984 test -z "$as_dir" && as_dir=.
30985 for ac_exec_ext in '' $ac_executable_extensions; do
30986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30987 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30989 break 2
30990 fi
30991done
30992 done
30993IFS=$as_save_IFS
30994
30995 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30996 ;;
30997esac
30998fi
30999MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31000if test -n "$MrSIDDecodeDelegate"; then
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31002$as_echo "$MrSIDDecodeDelegate" >&6; }
31003else
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005$as_echo "no" >&6; }
31006fi
31007
31008
cristy3ed852e2009-09-05 21:47:34 +000031009# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31010set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031012$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031013if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031014 $as_echo_n "(cached) " >&6
31015else
31016 case $MVDelegate in
31017 [\\/]* | ?:[\\/]*)
31018 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31019 ;;
31020 *)
31021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31022for as_dir in $PATH
31023do
31024 IFS=$as_save_IFS
31025 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31028 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031030 break 2
31031 fi
31032done
cristy8b350f62009-11-15 23:12:43 +000031033 done
cristy3ed852e2009-09-05 21:47:34 +000031034IFS=$as_save_IFS
31035
31036 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31037 ;;
31038esac
31039fi
31040MVDelegate=$ac_cv_path_MVDelegate
31041if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031043$as_echo "$MVDelegate" >&6; }
31044else
cristy8b350f62009-11-15 23:12:43 +000031045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031046$as_echo "no" >&6; }
31047fi
31048
31049
31050# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31051set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031053$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031054if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031055 $as_echo_n "(cached) " >&6
31056else
31057 case $PCLDelegate in
31058 [\\/]* | ?:[\\/]*)
31059 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31060 ;;
31061 *)
31062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31063for as_dir in $PATH
31064do
31065 IFS=$as_save_IFS
31066 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031067 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31069 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031071 break 2
31072 fi
31073done
cristy8b350f62009-11-15 23:12:43 +000031074 done
cristy3ed852e2009-09-05 21:47:34 +000031075IFS=$as_save_IFS
31076
31077 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31078 ;;
31079esac
31080fi
31081PCLDelegate=$ac_cv_path_PCLDelegate
31082if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031084$as_echo "$PCLDelegate" >&6; }
31085else
cristy8b350f62009-11-15 23:12:43 +000031086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031087$as_echo "no" >&6; }
31088fi
31089
31090
31091# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31092set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031094$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031095if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031096 $as_echo_n "(cached) " >&6
31097else
31098 case $PGPDecodeDelegate in
31099 [\\/]* | ?:[\\/]*)
31100 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31101 ;;
31102 *)
31103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31104for as_dir in $PATH
31105do
31106 IFS=$as_save_IFS
31107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31110 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031112 break 2
31113 fi
31114done
cristy8b350f62009-11-15 23:12:43 +000031115 done
cristy3ed852e2009-09-05 21:47:34 +000031116IFS=$as_save_IFS
31117
31118 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31119 ;;
31120esac
31121fi
31122PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31123if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031125$as_echo "$PGPDecodeDelegate" >&6; }
31126else
cristy8b350f62009-11-15 23:12:43 +000031127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031128$as_echo "no" >&6; }
31129fi
31130
31131
31132# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31133set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031135$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031136if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031137 $as_echo_n "(cached) " >&6
31138else
31139 case $POVDelegate in
31140 [\\/]* | ?:[\\/]*)
31141 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31142 ;;
31143 *)
31144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31145for as_dir in $PATH
31146do
31147 IFS=$as_save_IFS
31148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31151 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031153 break 2
31154 fi
31155done
cristy8b350f62009-11-15 23:12:43 +000031156 done
cristy3ed852e2009-09-05 21:47:34 +000031157IFS=$as_save_IFS
31158
31159 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31160 ;;
31161esac
31162fi
31163POVDelegate=$ac_cv_path_POVDelegate
31164if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031166$as_echo "$POVDelegate" >&6; }
31167else
cristy8b350f62009-11-15 23:12:43 +000031168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031169$as_echo "no" >&6; }
31170fi
31171
31172
31173for ac_prog in gsx gsc "$PSDelegateDefault"
31174do
31175 # Extract the first word of "$ac_prog", so it can be a program name with args.
31176set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031178$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031179if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031180 $as_echo_n "(cached) " >&6
31181else
31182 case $PSDelegate in
31183 [\\/]* | ?:[\\/]*)
31184 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31185 ;;
31186 *)
31187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31188for as_dir in $PATH
31189do
31190 IFS=$as_save_IFS
31191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31194 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031196 break 2
31197 fi
31198done
cristy8b350f62009-11-15 23:12:43 +000031199 done
cristy3ed852e2009-09-05 21:47:34 +000031200IFS=$as_save_IFS
31201
31202 ;;
31203esac
31204fi
31205PSDelegate=$ac_cv_path_PSDelegate
31206if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031208$as_echo "$PSDelegate" >&6; }
31209else
cristy8b350f62009-11-15 23:12:43 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo "no" >&6; }
31212fi
31213
31214
31215 test -n "$PSDelegate" && break
31216done
31217test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31218
31219# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31220set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031222$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031223if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031224 $as_echo_n "(cached) " >&6
31225else
31226 case $RLEEncodeDelegate in
31227 [\\/]* | ?:[\\/]*)
31228 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31229 ;;
31230 *)
31231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31232for as_dir in $PATH
31233do
31234 IFS=$as_save_IFS
31235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31238 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240 break 2
31241 fi
31242done
cristy8b350f62009-11-15 23:12:43 +000031243 done
cristy3ed852e2009-09-05 21:47:34 +000031244IFS=$as_save_IFS
31245
31246 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31247 ;;
31248esac
31249fi
31250RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31251if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031253$as_echo "$RLEEncodeDelegate" >&6; }
31254else
cristy8b350f62009-11-15 23:12:43 +000031255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031256$as_echo "no" >&6; }
31257fi
31258
31259
31260# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31261set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031263$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031264if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031265 $as_echo_n "(cached) " >&6
31266else
31267 case $RMDelegate in
31268 [\\/]* | ?:[\\/]*)
31269 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31270 ;;
31271 *)
31272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31273for as_dir in $PATH
31274do
31275 IFS=$as_save_IFS
31276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31279 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031281 break 2
31282 fi
31283done
cristy8b350f62009-11-15 23:12:43 +000031284 done
cristy3ed852e2009-09-05 21:47:34 +000031285IFS=$as_save_IFS
31286
31287 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31288 ;;
31289esac
31290fi
31291RMDelegate=$ac_cv_path_RMDelegate
31292if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo "$RMDelegate" >&6; }
31295else
cristy8b350f62009-11-15 23:12:43 +000031296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031297$as_echo "no" >&6; }
31298fi
31299
31300
cristy4689cf02010-02-17 21:15:45 +000031301# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31302set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31304$as_echo_n "checking for $ac_word... " >&6; }
31305if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31306 $as_echo_n "(cached) " >&6
31307else
31308 case $RSVGDecodeDelegate in
31309 [\\/]* | ?:[\\/]*)
31310 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31311 ;;
31312 *)
31313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31314for as_dir in $PATH
31315do
31316 IFS=$as_save_IFS
31317 test -z "$as_dir" && as_dir=.
31318 for ac_exec_ext in '' $ac_executable_extensions; do
31319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31320 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31322 break 2
31323 fi
31324done
31325 done
31326IFS=$as_save_IFS
31327
31328 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31329 ;;
31330esac
31331fi
31332RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31333if test -n "$RSVGDecodeDelegate"; then
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31335$as_echo "$RSVGDecodeDelegate" >&6; }
31336else
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338$as_echo "no" >&6; }
31339fi
31340
31341
cristy3ed852e2009-09-05 21:47:34 +000031342# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31343set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031346if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031347 $as_echo_n "(cached) " >&6
31348else
31349 case $SCANDecodeDelegate in
31350 [\\/]* | ?:[\\/]*)
31351 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31352 ;;
31353 *)
31354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31355for as_dir in $PATH
31356do
31357 IFS=$as_save_IFS
31358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31361 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031363 break 2
31364 fi
31365done
cristy8b350f62009-11-15 23:12:43 +000031366 done
cristy3ed852e2009-09-05 21:47:34 +000031367IFS=$as_save_IFS
31368
31369 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31370 ;;
31371esac
31372fi
31373SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31374if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031376$as_echo "$SCANDecodeDelegate" >&6; }
31377else
cristy8b350f62009-11-15 23:12:43 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379$as_echo "no" >&6; }
31380fi
31381
31382
31383# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31384set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031387if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 $as_echo_n "(cached) " >&6
31389else
31390 case $TXTDelegate in
31391 [\\/]* | ?:[\\/]*)
31392 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31393 ;;
31394 *)
31395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396for as_dir in $PATH
31397do
31398 IFS=$as_save_IFS
31399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404 break 2
31405 fi
31406done
cristy8b350f62009-11-15 23:12:43 +000031407 done
cristy3ed852e2009-09-05 21:47:34 +000031408IFS=$as_save_IFS
31409
31410 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31411 ;;
31412esac
31413fi
31414TXTDelegate=$ac_cv_path_TXTDelegate
31415if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031417$as_echo "$TXTDelegate" >&6; }
31418else
cristy8b350f62009-11-15 23:12:43 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031420$as_echo "no" >&6; }
31421fi
31422
31423
cristy5ac9ac82010-07-29 13:24:24 +000031424# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31425set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31427$as_echo_n "checking for $ac_word... " >&6; }
31428if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31429 $as_echo_n "(cached) " >&6
31430else
31431 case $UniconvertorDelegate in
31432 [\\/]* | ?:[\\/]*)
31433 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31434 ;;
31435 *)
31436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31437for as_dir in $PATH
31438do
31439 IFS=$as_save_IFS
31440 test -z "$as_dir" && as_dir=.
31441 for ac_exec_ext in '' $ac_executable_extensions; do
31442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31443 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31445 break 2
31446 fi
31447done
31448 done
31449IFS=$as_save_IFS
31450
31451 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31452 ;;
31453esac
31454fi
31455UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31456if test -n "$UniconvertorDelegate"; then
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31458$as_echo "$UniconvertorDelegate" >&6; }
31459else
31460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31461$as_echo "no" >&6; }
31462fi
31463
31464
cristy23f7a922010-10-11 00:27:48 +000031465# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31466set dummy "$WEBPDelegateDefault"; ac_word=$2
31467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31468$as_echo_n "checking for $ac_word... " >&6; }
31469if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31470 $as_echo_n "(cached) " >&6
31471else
31472 case $WEBPDelegate in
31473 [\\/]* | ?:[\\/]*)
31474 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31475 ;;
31476 *)
31477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31478for as_dir in $PATH
31479do
31480 IFS=$as_save_IFS
31481 test -z "$as_dir" && as_dir=.
31482 for ac_exec_ext in '' $ac_executable_extensions; do
31483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31484 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31486 break 2
31487 fi
31488done
31489 done
31490IFS=$as_save_IFS
31491
31492 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31493 ;;
31494esac
31495fi
31496WEBPDelegate=$ac_cv_path_WEBPDelegate
31497if test -n "$WEBPDelegate"; then
31498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31499$as_echo "$WEBPDelegate" >&6; }
31500else
31501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31502$as_echo "no" >&6; }
31503fi
31504
31505
cristy3ed852e2009-09-05 21:47:34 +000031506# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31507set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031509$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031510if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031511 $as_echo_n "(cached) " >&6
31512else
31513 case $WMFDecodeDelegate in
31514 [\\/]* | ?:[\\/]*)
31515 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31516 ;;
31517 *)
31518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31519for as_dir in $PATH
31520do
31521 IFS=$as_save_IFS
31522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31525 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031527 break 2
31528 fi
31529done
cristy8b350f62009-11-15 23:12:43 +000031530 done
cristy3ed852e2009-09-05 21:47:34 +000031531IFS=$as_save_IFS
31532
31533 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31534 ;;
31535esac
31536fi
31537WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31538if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031540$as_echo "$WMFDecodeDelegate" >&6; }
31541else
cristy8b350f62009-11-15 23:12:43 +000031542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031543$as_echo "no" >&6; }
31544fi
31545
31546
31547# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31548set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031550$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031551if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031552 $as_echo_n "(cached) " >&6
31553else
31554 case $WWWDecodeDelegate in
31555 [\\/]* | ?:[\\/]*)
31556 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31557 ;;
31558 *)
31559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31560for as_dir in $PATH
31561do
31562 IFS=$as_save_IFS
31563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31566 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031568 break 2
31569 fi
31570done
cristy8b350f62009-11-15 23:12:43 +000031571 done
cristy3ed852e2009-09-05 21:47:34 +000031572IFS=$as_save_IFS
31573
31574 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31575 ;;
31576esac
31577fi
31578WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31579if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031581$as_echo "$WWWDecodeDelegate" >&6; }
31582else
cristy8b350f62009-11-15 23:12:43 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo "no" >&6; }
31585fi
31586
31587
31588# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31589set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031591$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031592if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031593 $as_echo_n "(cached) " >&6
31594else
31595 case $XPSDelegate in
31596 [\\/]* | ?:[\\/]*)
31597 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31598 ;;
31599 *)
31600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31601for as_dir in $PATH
31602do
31603 IFS=$as_save_IFS
31604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31607 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031609 break 2
31610 fi
31611done
cristy8b350f62009-11-15 23:12:43 +000031612 done
cristy3ed852e2009-09-05 21:47:34 +000031613IFS=$as_save_IFS
31614
31615 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31616 ;;
31617esac
31618fi
31619XPSDelegate=$ac_cv_path_XPSDelegate
31620if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031622$as_echo "$XPSDelegate" >&6; }
31623else
cristy8b350f62009-11-15 23:12:43 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo "no" >&6; }
31626fi
31627
31628
31629# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31630set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031632$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031633if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031634 $as_echo_n "(cached) " >&6
31635else
31636 case $ZipDelegate in
31637 [\\/]* | ?:[\\/]*)
31638 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31639 ;;
31640 *)
31641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31642for as_dir in $PATH
31643do
31644 IFS=$as_save_IFS
31645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31648 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031650 break 2
31651 fi
31652done
cristy8b350f62009-11-15 23:12:43 +000031653 done
cristy3ed852e2009-09-05 21:47:34 +000031654IFS=$as_save_IFS
31655
31656 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31657 ;;
31658esac
31659fi
31660ZipDelegate=$ac_cv_path_ZipDelegate
31661if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031663$as_echo "$ZipDelegate" >&6; }
31664else
cristy8b350f62009-11-15 23:12:43 +000031665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031666$as_echo "no" >&6; }
31667fi
31668
31669
31670
31671# Prefer lpr to lp; lp needs options tacked on.
31672if test "$LPRDelegate" != no; then
31673 PrintDelegate="$LPRDelegate"
31674else
31675 PrintDelegate="$LPDelegate -c -s"
31676fi
31677
31678
31679# Installed ImageMagick utiltity paths
31680ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31681DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31682MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31683
31684# Set delegate booleans
31685have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31686have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31687have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31688have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31689have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31690have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031691have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031692have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31693have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31694have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31695have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31696have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31697
31698#
31699# Test for font directories
31700#
31701type_include_files=''
31702
cristy430a7312010-01-21 20:44:04 +000031703# Dejavu fonts.
31704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31705$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31706dejavu_font_dir=''
31707if test "${with_dejavu_font_dir}" != 'default'; then
31708 dejavu_font_dir="${with_dejavu_font_dir}/"
31709else
31710 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31711 if test -f "${font_dir}DejaVuSerif.ttf"; then
31712 dejavu_font_dir="${font_dir}"
31713 break 1
31714 fi
31715 done
31716fi
31717if test "${dejavu_font_dir}x" != 'x'; then
31718 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31720$as_echo "$dejavu_font_dir" >&6; }
31721else
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31723$as_echo "not found!" >&6; };
31724fi
31725
31726
cristy3ed852e2009-09-05 21:47:34 +000031727# Windows
31728windows_font_dir=''
31729if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31730 windows_font_dir="${with_windows_font_dir}/"
31731fi
cristy430a7312010-01-21 20:44:04 +000031732if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031733 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31734 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31735 fi
31736 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31737 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31738 fi
31739 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31740 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31741 fi
31742fi
cristy430a7312010-01-21 20:44:04 +000031743if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031744 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31745fi
31746
31747
31748# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031750$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31751ghostscript_font_dir=''
31752if test "${with_gs_font_dir}" != 'default'; then
31753 ghostscript_font_dir="${with_gs_font_dir}/"
31754else
31755 if test "${native_win32_build}" = 'yes'; then
31756 # Native Windows Build
31757 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31758 if test -f "${font_dir}a010013l.pfb"; then
31759 ghostscript_font_dir="$font_dir"
31760 break 1
31761 fi
31762 done
31763 if test "${PSDelegate}" != 'gswin32c'; then
31764 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31765 fi
31766 else
31767 # Linux / Mac OS X / Unix Build
31768 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
31769 if test -f "${font_dir}a010013l.pfb"; then
31770 ghostscript_font_dir="${font_dir}"
31771 break 1
31772 fi
31773 done
31774 if test "${ghostscript_font_dir}x" = 'x'; then
31775 if test "$PSDelegate" != 'gs'; then
31776 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31777 fi
31778 fi
31779 fi
31780fi
31781if test "${ghostscript_font_dir}x" != 'x'; then
31782 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031784$as_echo "$ghostscript_font_dir" >&6; }
31785else
cristy8b350f62009-11-15 23:12:43 +000031786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031787$as_echo "not found!" >&6; };
31788fi
31789
31790case "${build_os}" in
31791 mingw* )
31792 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31793 ;;
31794esac
31795
31796
31797
31798#
31799# Handle case where user doesn't want frozen paths
31800#
31801if test "$with_frozenpaths" != 'yes'; then
31802 # Re-set delegate definitions to default (no paths)
31803 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31804 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31805 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31806 BZIPDelegate="$BZIPDelegateDefault"
31807 BrowseDelegate="$BrowseDelegateDefault"
31808 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31809 CatDelegate="$CatDelegateDefault"
31810 ConvertDelegate="$ConvertDelegateDefault"
31811 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31812 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31813 EchoDelegate="$EchoDelegateDefault"
31814 EditorDelegate="$EditorDelegateDefault"
31815 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31816 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31817 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31818 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31819 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31820 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31821 LPDelegate="$LPDelegateDefault"
31822 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31823 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31824 LaunchDelegate="$LaunchDelegateDefault"
31825 MANDelegate="$MANDelegateDefault"
31826 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31827 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031828 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031829 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31830 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031831 PCLDelegate="$PCLDelegateDefault"
31832 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31833 POVDelegate="$POVDelegateDefault"
31834 PSDelegate="$PSDelegateDefault"
31835 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31836 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31837 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031838 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031839 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31840 ShowImageDelegate="$ShowImageDelegateDefault"
31841 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031842 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000031843 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031844 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31845 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31846 XPSDelegate="$XPSDelegateDefault"
31847 ZipDelegate="$ZipDelegateDefault"
31848fi
31849
31850# Delegate substitutions
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
cristy935c86e2010-06-05 23:50:07 +000031893
cristy5ac9ac82010-07-29 13:24:24 +000031894
cristy23f7a922010-10-11 00:27:48 +000031895
cristy3ed852e2009-09-05 21:47:34 +000031896#
31897# RPM support.
31898#
31899RPM=''
31900for ac_prog in gnutar gtar tar
31901do
31902 # Extract the first word of "$ac_prog", so it can be a program name with args.
31903set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031905$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031906if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031907 $as_echo_n "(cached) " >&6
31908else
31909 if test -n "$TAR"; then
31910 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31911else
31912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31913for as_dir in $PATH
31914do
31915 IFS=$as_save_IFS
31916 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31919 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031921 break 2
31922 fi
31923done
cristy8b350f62009-11-15 23:12:43 +000031924 done
cristy3ed852e2009-09-05 21:47:34 +000031925IFS=$as_save_IFS
31926
31927fi
31928fi
31929TAR=$ac_cv_prog_TAR
31930if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031932$as_echo "$TAR" >&6; }
31933else
cristy8b350f62009-11-15 23:12:43 +000031934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo "no" >&6; }
31936fi
31937
31938
31939 test -n "$TAR" && break
31940done
31941
31942for ac_prog in perl
31943do
31944 # Extract the first word of "$ac_prog", so it can be a program name with args.
31945set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031948if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 $as_echo_n "(cached) " >&6
31950else
31951 if test -n "$PERL"; then
31952 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31953else
31954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31955for as_dir in $PATH
31956do
31957 IFS=$as_save_IFS
31958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31961 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031963 break 2
31964 fi
31965done
cristy8b350f62009-11-15 23:12:43 +000031966 done
cristy3ed852e2009-09-05 21:47:34 +000031967IFS=$as_save_IFS
31968
31969fi
31970fi
31971PERL=$ac_cv_prog_PERL
31972if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031974$as_echo "$PERL" >&6; }
31975else
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo "no" >&6; }
31978fi
31979
31980
31981 test -n "$PERL" && break
31982done
31983
31984for ac_prog in rpmbuild rpm
31985do
31986 # Extract the first word of "$ac_prog", so it can be a program name with args.
31987set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031989$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031990if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031991 $as_echo_n "(cached) " >&6
31992else
31993 if test -n "$RPM"; then
31994 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31995else
31996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31997for as_dir in $PATH
31998do
31999 IFS=$as_save_IFS
32000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32003 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005 break 2
32006 fi
32007done
cristy8b350f62009-11-15 23:12:43 +000032008 done
cristy3ed852e2009-09-05 21:47:34 +000032009IFS=$as_save_IFS
32010
32011fi
32012fi
32013RPM=$ac_cv_prog_RPM
32014if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo "$RPM" >&6; }
32017else
cristy8b350f62009-11-15 23:12:43 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo "no" >&6; }
32020fi
32021
32022
32023 test -n "$RPM" && break
32024done
32025
32026
cristy73bd4a52010-10-05 11:24:23 +000032027ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32028
32029
32030AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32031
32032
32033AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32034
32035
32036AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32037
32038
32039 if test "x$RPM" != "x" ; then
32040 RPM_DELEGATE_TRUE=
32041 RPM_DELEGATE_FALSE='#'
32042else
32043 RPM_DELEGATE_TRUE='#'
32044 RPM_DELEGATE_FALSE=
32045fi
32046
cristy3ed852e2009-09-05 21:47:34 +000032047
32048#
32049# 7ZIP support (http://p7zip.sourceforge.net/)
32050#
32051P7ZIP=''
32052for ac_prog in 7za
32053do
32054 # Extract the first word of "$ac_prog", so it can be a program name with args.
32055set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032057$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032058if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032059 $as_echo_n "(cached) " >&6
32060else
32061 if test -n "$P7ZIP"; then
32062 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32063else
32064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32065for as_dir in $PATH
32066do
32067 IFS=$as_save_IFS
32068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32071 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032073 break 2
32074 fi
32075done
cristy8b350f62009-11-15 23:12:43 +000032076 done
cristy3ed852e2009-09-05 21:47:34 +000032077IFS=$as_save_IFS
32078
32079fi
32080fi
32081P7ZIP=$ac_cv_prog_P7ZIP
32082if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032084$as_echo "$P7ZIP" >&6; }
32085else
cristy8b350f62009-11-15 23:12:43 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032087$as_echo "no" >&6; }
32088fi
32089
32090
32091 test -n "$P7ZIP" && break
32092done
32093
32094
cristy73bd4a52010-10-05 11:24:23 +000032095 if test "x$P7ZIP" != "x" ; then
32096 P7ZIP_DELEGATE_TRUE=
32097 P7ZIP_DELEGATE_FALSE='#'
32098else
32099 P7ZIP_DELEGATE_TRUE='#'
32100 P7ZIP_DELEGATE_FALSE=
32101fi
32102
cristy3ed852e2009-09-05 21:47:34 +000032103
32104#
32105# ZIP support (http://www.info-zip.org/Zip.html)
32106#
32107ZIP=''
32108for ac_prog in zip
32109do
32110 # Extract the first word of "$ac_prog", so it can be a program name with args.
32111set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032114if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032115 $as_echo_n "(cached) " >&6
32116else
32117 if test -n "$ZIP"; then
32118 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32119else
32120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32121for as_dir in $PATH
32122do
32123 IFS=$as_save_IFS
32124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32127 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032129 break 2
32130 fi
32131done
cristy8b350f62009-11-15 23:12:43 +000032132 done
cristy3ed852e2009-09-05 21:47:34 +000032133IFS=$as_save_IFS
32134
32135fi
32136fi
32137ZIP=$ac_cv_prog_ZIP
32138if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032140$as_echo "$ZIP" >&6; }
32141else
cristy8b350f62009-11-15 23:12:43 +000032142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032143$as_echo "no" >&6; }
32144fi
32145
32146
32147 test -n "$ZIP" && break
32148done
32149
32150
cristy73bd4a52010-10-05 11:24:23 +000032151 if test "x$ZIP" != "x" ; then
32152 ZIP_DELEGATE_TRUE=
32153 ZIP_DELEGATE_FALSE='#'
32154else
32155 ZIP_DELEGATE_TRUE='#'
32156 ZIP_DELEGATE_FALSE=
32157fi
32158
cristy3ed852e2009-09-05 21:47:34 +000032159
32160#
32161# GhostPCL related configuration.
32162#
32163PCLColorDevice=ppmraw
32164PCLCMYKDevice=bmpsep8
32165PCLMonoDevice=pbmraw
32166if test -z "$PCLVersion"; then
32167 PCLVersion='unknown'
32168fi
32169if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032175$as_echo "" >&6; }
32176 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178$as_echo_n "checking for pcl color device... " >&6; }
32179 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32180 :
32181 else
32182 PCLColorDevice=ppmraw
32183 fi
cristy8b350f62009-11-15 23:12:43 +000032184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032185$as_echo "$PCLColorDevice" >&6; }
32186
32187 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032189$as_echo_n "checking for pcl CMYK device... " >&6; }
32190 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32191 :
32192 else
32193 PCLCMYKDevice=$PCLColorDevice
32194 fi
cristy8b350f62009-11-15 23:12:43 +000032195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032196$as_echo "$PCLCMYKDevice" >&6; }
32197
32198 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo_n "checking for pcl mono device... " >&6; }
32201 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32202 :
32203 else
32204 PCLMonoDevice=$PCLColorDevice
32205 fi
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo "$PCLMonoDevice" >&6; }
32208fi
32209
32210
32211
32212
32213
32214
32215#
32216# GhostXPS related configuration.
32217#
32218XPSColorDevice=ppmraw
32219XPSCMYKDevice=bmpsep8
32220XPSMonoDevice=pbmraw
32221if test -z "$XPSVersion"; then
32222 XPSVersion='unknown'
32223fi
32224if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032226$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032228$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032230$as_echo "" >&6; }
32231 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo_n "checking for xps color device... " >&6; }
32234 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32235 :
32236 else
32237 XPSColorDevice=ppmraw
32238 fi
cristy8b350f62009-11-15 23:12:43 +000032239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo "$XPSColorDevice" >&6; }
32241
32242 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032244$as_echo_n "checking for xps CMYK device... " >&6; }
32245 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32246 :
32247 else
32248 XPSCMYKDevice=$XPSColorDevice
32249 fi
cristy8b350f62009-11-15 23:12:43 +000032250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251$as_echo "$XPSCMYKDevice" >&6; }
32252
32253 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo_n "checking for xps mono device... " >&6; }
32256 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32257 :
32258 else
32259 XPSMonoDevice=$XPSColorDevice
32260 fi
cristy8b350f62009-11-15 23:12:43 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032262$as_echo "$XPSMonoDevice" >&6; }
32263fi
32264
32265
32266
32267
32268
32269
32270#
32271# Ghostscript related configuration.
32272#
32273if test "$have_png" = 'yes'; then
32274 GSAlphaDevice=pngalpha
32275else
32276 GSAlphaDevice=pnmraw
32277fi
32278GSColorDevice=pnmraw
32279GSCMYKDevice=pam
32280GSMonoDevice=pbmraw
32281GSPDFDevice=pdfwrite
32282GSPSDevice=pswrite
32283GSEPSDevice=epswrite
32284GSVersion='unknown'
32285if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032287$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032291$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032293$as_echo_n "checking for Ghostscript version... " >&6; }
32294 if GSVersion=`$PSDelegate --version`; then
32295 :
32296 else
32297 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32298 fi
cristy8b350f62009-11-15 23:12:43 +000032299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032300$as_echo "$GSVersion" >&6; }
32301
32302 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032304$as_echo_n "checking for gs alpha device... " >&6; }
32305 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32306 :
32307 else
32308 GSAlphaDevice=pnmraw
32309 fi
cristy8b350f62009-11-15 23:12:43 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032311$as_echo "$GSAlphaDevice" >&6; }
32312
32313 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo_n "checking for gs color device... " >&6; }
32316 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32317 :
32318 else
32319 GSColorDevice=pnmraw
32320 fi
cristy8b350f62009-11-15 23:12:43 +000032321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo "$GSColorDevice" >&6; }
32323
32324 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo_n "checking for gs CMYK device... " >&6; }
32327 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32328 :
32329 else
32330 GSCMYKDevice=bmpsep8
32331 fi
cristy8b350f62009-11-15 23:12:43 +000032332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo "$GSCMYKDevice" >&6; }
32334
32335 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032337$as_echo_n "checking for gs mono device... " >&6; }
32338 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32339 :
32340 else
32341 GSMonoDevice=$GSColorDevice
32342 fi
cristy8b350f62009-11-15 23:12:43 +000032343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032344$as_echo "$GSMonoDevice" >&6; }
32345
32346 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032348$as_echo_n "checking for gs PDF writing device... " >&6; }
32349 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32350 :
32351 else
32352 GSPDFDevice=nodevice
32353 fi
cristy8b350f62009-11-15 23:12:43 +000032354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032355$as_echo "$GSPDFDevice" >&6; }
32356
32357 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359$as_echo_n "checking for gs PS writing device... " >&6; }
32360 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32361 :
32362 else
32363 GSPSDevice=nodevice
32364 fi
cristy8b350f62009-11-15 23:12:43 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366$as_echo "$GSPSDevice" >&6; }
32367
32368 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032370$as_echo_n "checking for gs EPS writing device... " >&6; }
32371 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32372 :
32373 else
32374 GSEPSDevice=nodevice
32375 fi
cristy8b350f62009-11-15 23:12:43 +000032376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377$as_echo "$GSEPSDevice" >&6; }
32378fi
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389#
32390# PerlMagick-related configuration
32391#
32392
32393# Look for PERL if PerlMagick requested
32394# If name/path of desired PERL interpreter is specified, look for that one first
32395have_perl='no'
32396if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032398$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032402$as_echo "" >&6; }
32403 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032405$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032406if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032407 $as_echo_n "(cached) " >&6
32408else
32409 ac_cv_path_PERL="$with_perl"
32410fi
cristy8b350f62009-11-15 23:12:43 +000032411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032412$as_echo "$ac_cv_path_PERL" >&6; };
32413 PERL=$ac_cv_path_PERL
32414 have_perl="$ac_cv_path_PERL"
32415 else
32416 for ac_prog in perl perl5
32417do
32418 # Extract the first word of "$ac_prog", so it can be a program name with args.
32419set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032421$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032422if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032423 $as_echo_n "(cached) " >&6
32424else
32425 case $PERL in
32426 [\\/]* | ?:[\\/]*)
32427 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32428 ;;
32429 *)
32430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32431for as_dir in $PATH
32432do
32433 IFS=$as_save_IFS
32434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32437 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032439 break 2
32440 fi
32441done
cristy8b350f62009-11-15 23:12:43 +000032442 done
cristy3ed852e2009-09-05 21:47:34 +000032443IFS=$as_save_IFS
32444
32445 ;;
32446esac
32447fi
32448PERL=$ac_cv_path_PERL
32449if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "$PERL" >&6; }
32452else
cristy8b350f62009-11-15 23:12:43 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo "no" >&6; }
32455fi
32456
32457
32458 test -n "$PERL" && break
32459done
32460 if test "$ac_cv_path_PERL"; then
32461 have_perl="$ac_cv_path_PERL"
32462 fi
32463 fi
32464fi
32465
cristy949301e2010-01-06 01:38:40 +000032466if test "$with_perl" != 'yes' ; then
32467 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32468fi
32469
32470PERL_SUPPORTS_DESTDIR='no'
32471
cristy3ed852e2009-09-05 21:47:34 +000032472with_perl_static='no'
32473with_perl_dynamic='no'
32474if test "$have_perl" != 'no'; then
32475 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32476 with_perl_static='yes'
32477 fi
32478 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32479 with_perl_dynamic='yes'
32480 fi
32481 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000032482
32483
32484
32485
32486 if test -n "$PERL"; then :
32487
32488 ax_perl_version="5.8.1"
32489
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32491$as_echo_n "checking for perl version... " >&6; }
32492
32493 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32494
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32496$as_echo "$perl_version" >&6; }
32497
32498 PERL_VERSION=$perl_version
32499
32500
32501
32502
32503
32504 # Used to indicate true or false condition
32505 ax_compare_version=false
32506
32507 # Convert the two version strings to be compared into a format that
32508 # allows a simple string comparison. The end result is that a version
32509 # string of the form 1.12.5-r617 will be converted to the form
32510 # 0001001200050617. In other words, each number is zero padded to four
32511 # digits, and non digits are removed.
32512
32513 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32514 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32515 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32516 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32517 -e 's/[^0-9]//g'`
32518
32519
32520 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32521 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32522 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32523 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32524 -e 's/[^0-9]//g'`
32525
32526
32527 ax_compare_version=`echo "x$ax_compare_version_A
32528x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32529
32530
32531
32532 if test "$ax_compare_version" = "true" ; then
32533
32534 :
32535 PERL_SUPPORTS_DESTDIR='yes'
32536
32537 else
32538 :
32539 PERL_SUPPORTS_DESTDIR='no'
32540
32541 fi
32542
32543
32544else
32545
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32547$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32548 PERL_SUPPORTS_DESTDIR='no'
32549
cristy3ed852e2009-09-05 21:47:34 +000032550fi
cristy73bd4a52010-10-05 11:24:23 +000032551
32552fi
32553 if test "$have_perl" != 'no'; then
32554 WITH_PERL_TRUE=
32555 WITH_PERL_FALSE='#'
32556else
32557 WITH_PERL_TRUE='#'
32558 WITH_PERL_FALSE=
32559fi
32560
32561 if test $with_perl_static = 'yes'; then
32562 WITH_PERL_STATIC_TRUE=
32563 WITH_PERL_STATIC_FALSE='#'
32564else
32565 WITH_PERL_STATIC_TRUE='#'
32566 WITH_PERL_STATIC_FALSE=
32567fi
32568
32569 if test $with_perl_dynamic = 'yes'; then
32570 WITH_PERL_DYNAMIC_TRUE=
32571 WITH_PERL_DYNAMIC_FALSE='#'
32572else
32573 WITH_PERL_DYNAMIC_TRUE='#'
32574 WITH_PERL_DYNAMIC_FALSE=
32575fi
32576
cristy3ed852e2009-09-05 21:47:34 +000032577
32578
32579# Determine path to pick up MagickCore library from for use with building PerlMagick
32580MAGICKCORE_PATH="${LIB_DIR}"
32581if test $with_perl_static = 'yes'; then
32582 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32583 libtool_objdir=$objdir
32584
32585 # Linker search path to library, followed by -lMagickCore
32586 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32587fi
32588
32589
32590# Create a simple string containing format names for all delegate libraries
32591DELEGATES=''
32592if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32593if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32594if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32595if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32596if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32597if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32598if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32599if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32600if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32601if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32602if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32603if test "$have_jpeg" = 'yes'; then
32604 DELEGATES="$DELEGATES jpeg";
32605 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32606fi
32607if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032608if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032609if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32610if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32611if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32612if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32613if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32614if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32615if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32616if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32617if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32618if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32619if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32620
32621
32622
32623#
32624# Handle special compiler flags
32625#
32626
32627# Add '-p' if prof source profiling support enabled
32628if test "$enable_prof" = 'yes'; then
32629 CFLAGS="-p $CFLAGS"
32630 CXXFLAGS="-p $CXXFLAGS"
32631 LDFLAGS="-p $LDFLAGS"
32632fi
32633
32634# Add '-pg' if gprof source profiling support enabled
32635if test "$enable_gprof" = 'yes'; then
32636 CFLAGS="-pg $CFLAGS"
32637 CXXFLAGS="-pg $CXXFLAGS"
32638 LDFLAGS="-pg $LDFLAGS"
32639fi
32640
32641# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32642# This is a gcc-specific feature
32643if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032645$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032646if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032647 $as_echo_n "(cached) " >&6
32648else
32649 ac_check_lib_save_LIBS=$LIBS
32650LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032652/* end confdefs.h. */
32653
32654/* Override any GCC internal prototype to avoid an error.
32655 Use char because int might match the return type of a GCC
32656 builtin and then its argument prototype would still apply. */
32657#ifdef __cplusplus
32658extern "C"
32659#endif
32660char _gcov_init ();
32661int
32662main ()
32663{
32664return _gcov_init ();
32665 ;
32666 return 0;
32667}
32668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032669if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032670 ac_cv_lib_gcov__gcov_init=yes
32671else
cristy8b350f62009-11-15 23:12:43 +000032672 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032673fi
cristy8b350f62009-11-15 23:12:43 +000032674rm -f core conftest.err conftest.$ac_objext \
32675 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032676LIBS=$ac_check_lib_save_LIBS
32677fi
cristy8b350f62009-11-15 23:12:43 +000032678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032679$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032680if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032681 cat >>confdefs.h <<_ACEOF
32682#define HAVE_LIBGCOV 1
32683_ACEOF
32684
32685 LIBS="-lgcov $LIBS"
32686
32687fi
32688
cristy8b350f62009-11-15 23:12:43 +000032689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032690$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032691if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032692 $as_echo_n "(cached) " >&6
32693else
32694 ac_check_lib_save_LIBS=$LIBS
32695LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032697/* end confdefs.h. */
32698
32699/* Override any GCC internal prototype to avoid an error.
32700 Use char because int might match the return type of a GCC
32701 builtin and then its argument prototype would still apply. */
32702#ifdef __cplusplus
32703extern "C"
32704#endif
32705char __gcov_init ();
32706int
32707main ()
32708{
32709return __gcov_init ();
32710 ;
32711 return 0;
32712}
32713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032715 ac_cv_lib_gcov___gcov_init=yes
32716else
cristy8b350f62009-11-15 23:12:43 +000032717 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032718fi
cristy8b350f62009-11-15 23:12:43 +000032719rm -f core conftest.err conftest.$ac_objext \
32720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032721LIBS=$ac_check_lib_save_LIBS
32722fi
cristy8b350f62009-11-15 23:12:43 +000032723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032724$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032725if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032726 cat >>confdefs.h <<_ACEOF
32727#define HAVE_LIBGCOV 1
32728_ACEOF
32729
32730 LIBS="-lgcov $LIBS"
32731
32732fi
32733
32734 case "$target_os" in
32735 darwin*)
32736 OSX_GCOV_LDFLAG="-Wl,-single_module"
32737 ;;
32738 *)
32739 OSX_GCOV_LDFLAG=""
32740 ;;
32741 esac
32742
32743 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32744 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32745 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32746fi
32747
32748#
32749# Build library dependency list for libMagickCore
32750#
32751
32752MAGICK_LIBLTDL='' # Libltdl for build
32753MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32754MAGICK_LTDLDEPS='' # extra libltdl dependencies
32755if test "$with_ltdl" != 'no'
32756then
32757 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32758 MAGICK_API_LIBLTDL='-lltdl'
32759 fi
32760 MAGICK_LIBLTDL=${LIBLTDL}
32761 MAGICK_LTDLDEPS=${LTDLDEPS}
32762fi
32763
32764
32765
32766if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032767 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 +000032768else
cristy2e8b51d2009-10-17 18:26:15 +000032769 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 +000032770fi
32771
32772
32773#
32774# Remove extraneous spaces from output variables (asthetic)
32775#
32776X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32777X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32778X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32779X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32780
32781CC=`echo $CC | sed -e 's/ */ /g'`
32782CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32783CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32784CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32785DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32786DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32787LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32788TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32789MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32790#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32791
32792# Pass only user-provided LIBS as "global" libraries
32793LIBS=$USER_LIBS
32794
32795#AC_SUBST(CPPFLAGS)
32796
32797#AC_SUBST(LDFLAGS)
32798#AC_SUBST(X_PRE_LIBS)
32799#AC_SUBST(X_LIBS)
32800#AC_SUBST(X_EXTRA_LIBS)
32801
32802MAGICK_CFLAGS=$CFLAGS
32803MAGICK_CXXFLAGS="$CXXFLAGS"
32804MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32805MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32806MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32807MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32808
32809
32810
32811
32812
32813
32814
32815
cristyfd9dcd42010-08-08 18:07:02 +000032816
cristy3ed852e2009-09-05 21:47:34 +000032817# Set configured scripts to executable.
32818ac_config_commands="$ac_config_commands default"
32819
32820ac_config_commands="$ac_config_commands MagickCore-config.in"
32821
32822ac_config_commands="$ac_config_commands Magick-config.in"
32823
32824ac_config_commands="$ac_config_commands MagickWand-config.in"
32825
32826ac_config_commands="$ac_config_commands Wand-config.in"
32827
32828ac_config_commands="$ac_config_commands Magick++-config.in"
32829
32830ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32831
32832
cristy8b350f62009-11-15 23:12:43 +000032833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo "Update ImageMagick configuration" >&6; }
32837cat >confcache <<\_ACEOF
32838# This file is a shell script that caches the results of configure
32839# tests run on this system so they can be shared between configure
32840# scripts and configure runs, see configure's option --config-cache.
32841# It is not useful on other systems. If it contains results you don't
32842# want to keep, you may remove or edit it.
32843#
32844# config.status only pays attention to the cache file if you give it
32845# the --recheck option to rerun configure.
32846#
32847# `ac_cv_env_foo' variables (set or unset) will be overridden when
32848# loading this file, other *unset* `ac_cv_foo' will be assigned the
32849# following values.
32850
32851_ACEOF
32852
32853# The following way of writing the cache mishandles newlines in values,
32854# but we know of no workaround that is simple, portable, and efficient.
32855# So, we kill variables containing newlines.
32856# Ultrix sh set writes to stderr and can't be redirected directly,
32857# and sets the high bit in the cache file unless we assign to the vars.
32858(
32859 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32860 eval ac_val=\$$ac_var
32861 case $ac_val in #(
32862 *${as_nl}*)
32863 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32866 esac
32867 case $ac_var in #(
32868 _ | IFS | as_nl) ;; #(
32869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032870 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032871 esac ;;
32872 esac
32873 done
32874
32875 (set) 2>&1 |
32876 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32877 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032878 # `set' does not quote correctly, so add quotes: double-quote
32879 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032880 sed -n \
32881 "s/'/'\\\\''/g;
32882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32883 ;; #(
32884 *)
32885 # `set' quotes correctly as required by POSIX, so do not add quotes.
32886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32887 ;;
32888 esac |
32889 sort
32890) |
32891 sed '
32892 /^ac_cv_env_/b end
32893 t clear
32894 :clear
32895 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32896 t end
32897 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32898 :end' >>confcache
32899if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32900 if test -w "$cache_file"; then
32901 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032902 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032903$as_echo "$as_me: updating cache $cache_file" >&6;}
32904 cat confcache >$cache_file
32905 else
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32908 fi
32909fi
32910rm -f confcache
32911
32912test "x$prefix" = xNONE && prefix=$ac_default_prefix
32913# Let make expand exec_prefix.
32914test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32915
32916DEFS=-DHAVE_CONFIG_H
32917
32918ac_libobjs=
32919ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000032920U=
cristy3ed852e2009-09-05 21:47:34 +000032921for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32922 # 1. Remove the extension, and $U if already installed.
32923 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32924 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32925 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32926 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032927 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32928 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032929done
32930LIBOBJS=$ac_libobjs
32931
32932LTLIBOBJS=$ac_ltlibobjs
32933
32934
cristy73bd4a52010-10-05 11:24:23 +000032935 if test -n "$EXEEXT"; then
32936 am__EXEEXT_TRUE=
32937 am__EXEEXT_FALSE='#'
32938else
32939 am__EXEEXT_TRUE='#'
32940 am__EXEEXT_FALSE=
32941fi
cristy3ed852e2009-09-05 21:47:34 +000032942
cristy73bd4a52010-10-05 11:24:23 +000032943if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032944 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032945Usually this means the macro was only invoked conditionally." "$LINENO" 5
32946fi
32947if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032948 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032949Usually this means the macro was only invoked conditionally." "$LINENO" 5
32950fi
32951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032952 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032953Usually this means the macro was only invoked conditionally." "$LINENO" 5
32954fi
32955if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032956 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032957Usually this means the macro was only invoked conditionally." "$LINENO" 5
32958fi
32959if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032960 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032961Usually this means the macro was only invoked conditionally." "$LINENO" 5
32962fi
32963if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032964 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032965Usually this means the macro was only invoked conditionally." "$LINENO" 5
32966fi
32967if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032968 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032969Usually this means the macro was only invoked conditionally." "$LINENO" 5
32970fi
32971if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032972 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032973Usually this means the macro was only invoked conditionally." "$LINENO" 5
32974fi
32975if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032976 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032977Usually this means the macro was only invoked conditionally." "$LINENO" 5
32978fi
32979if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032980 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032981Usually this means the macro was only invoked conditionally." "$LINENO" 5
32982fi
32983if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032984 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032985Usually this means the macro was only invoked conditionally." "$LINENO" 5
32986fi
32987LT_CONFIG_H=config/config.h
32988
32989 _ltdl_libobjs=
32990 _ltdl_ltlibobjs=
32991 if test -n "$_LT_LIBOBJS"; then
32992 # Remove the extension.
32993 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32994 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32995 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32996 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32997 done
32998 fi
32999 ltdl_LIBOBJS=$_ltdl_libobjs
33000
33001 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33002
33003
33004if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033005 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033006Usually this means the macro was only invoked conditionally." "$LINENO" 5
33007fi
33008if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033009 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033010Usually this means the macro was only invoked conditionally." "$LINENO" 5
33011fi
33012if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033013 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033014Usually this means the macro was only invoked conditionally." "$LINENO" 5
33015fi
33016if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033017 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033018Usually this means the macro was only invoked conditionally." "$LINENO" 5
33019fi
33020
33021if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033022 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033023Usually this means the macro was only invoked conditionally." "$LINENO" 5
33024fi
33025if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033026 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033027Usually this means the macro was only invoked conditionally." "$LINENO" 5
33028fi
33029if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033030 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033031Usually this means the macro was only invoked conditionally." "$LINENO" 5
33032fi
33033if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033034 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033035Usually this means the macro was only invoked conditionally." "$LINENO" 5
33036fi
33037if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033038 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033039Usually this means the macro was only invoked conditionally." "$LINENO" 5
33040fi
33041if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033042 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033043Usually this means the macro was only invoked conditionally." "$LINENO" 5
33044fi
33045if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033046 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033047Usually this means the macro was only invoked conditionally." "$LINENO" 5
33048fi
33049if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033050 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033051Usually this means the macro was only invoked conditionally." "$LINENO" 5
33052fi
33053if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033054 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033055Usually this means the macro was only invoked conditionally." "$LINENO" 5
33056fi
33057if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033058 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033059Usually this means the macro was only invoked conditionally." "$LINENO" 5
33060fi
33061if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033062 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033063Usually this means the macro was only invoked conditionally." "$LINENO" 5
33064fi
33065if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033066 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033067Usually this means the macro was only invoked conditionally." "$LINENO" 5
33068fi
33069if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033070 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033071Usually this means the macro was only invoked conditionally." "$LINENO" 5
33072fi
33073if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033074 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033075Usually this means the macro was only invoked conditionally." "$LINENO" 5
33076fi
33077if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033078 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033079Usually this means the macro was only invoked conditionally." "$LINENO" 5
33080fi
33081if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033082 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033083Usually this means the macro was only invoked conditionally." "$LINENO" 5
33084fi
33085if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033086 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033087Usually this means the macro was only invoked conditionally." "$LINENO" 5
33088fi
33089if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033090 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033091Usually this means the macro was only invoked conditionally." "$LINENO" 5
33092fi
33093if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033094 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033095Usually this means the macro was only invoked conditionally." "$LINENO" 5
33096fi
33097if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033098 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033099Usually this means the macro was only invoked conditionally." "$LINENO" 5
33100fi
33101if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033102 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033103Usually this means the macro was only invoked conditionally." "$LINENO" 5
33104fi
33105if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033106 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033107Usually this means the macro was only invoked conditionally." "$LINENO" 5
33108fi
33109if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033110 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033111Usually this means the macro was only invoked conditionally." "$LINENO" 5
33112fi
33113if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033114 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033115Usually this means the macro was only invoked conditionally." "$LINENO" 5
33116fi
33117if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033118 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033119Usually this means the macro was only invoked conditionally." "$LINENO" 5
33120fi
33121if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033122 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033123Usually this means the macro was only invoked conditionally." "$LINENO" 5
33124fi
33125if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033126 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033127Usually this means the macro was only invoked conditionally." "$LINENO" 5
33128fi
33129if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033130 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033131Usually this means the macro was only invoked conditionally." "$LINENO" 5
33132fi
33133if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033134 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033135Usually this means the macro was only invoked conditionally." "$LINENO" 5
33136fi
33137if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033138 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033139Usually this means the macro was only invoked conditionally." "$LINENO" 5
33140fi
33141if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033142 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033143Usually this means the macro was only invoked conditionally." "$LINENO" 5
33144fi
33145if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033146 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033147Usually this means the macro was only invoked conditionally." "$LINENO" 5
33148fi
33149if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033150 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033151Usually this means the macro was only invoked conditionally." "$LINENO" 5
33152fi
cristy3ed852e2009-09-05 21:47:34 +000033153
33154: ${CONFIG_STATUS=./config.status}
33155ac_write_fail=0
33156ac_clean_files_save=$ac_clean_files
33157ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033158{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033160as_write_fail=0
33161cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033162#! $SHELL
33163# Generated by $as_me.
33164# Run this file to recreate the current configuration.
33165# Compiler output produced by configure, useful for debugging
33166# configure, is in config.log if it exists.
33167
33168debug=false
33169ac_cs_recheck=false
33170ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033171
cristy8b350f62009-11-15 23:12:43 +000033172SHELL=\${CONFIG_SHELL-$SHELL}
33173export SHELL
33174_ASEOF
33175cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33176## -------------------- ##
33177## M4sh Initialization. ##
33178## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033179
33180# Be more Bourne compatible
33181DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033182if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033183 emulate sh
33184 NULLCMD=:
33185 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33186 # is contrary to our usage. Disable this feature.
33187 alias -g '${1+"$@"}'='"$@"'
33188 setopt NO_GLOB_SUBST
33189else
cristy8b350f62009-11-15 23:12:43 +000033190 case `(set -o) 2>/dev/null` in #(
33191 *posix*) :
33192 set -o posix ;; #(
33193 *) :
33194 ;;
cristy3ed852e2009-09-05 21:47:34 +000033195esac
cristy3ed852e2009-09-05 21:47:34 +000033196fi
33197
33198
cristy3ed852e2009-09-05 21:47:34 +000033199as_nl='
33200'
33201export as_nl
33202# Printing a long string crashes Solaris 7 /usr/bin/printf.
33203as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33204as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33205as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033206# Prefer a ksh shell builtin over an external printf program on Solaris,
33207# but without wasting forks for bash or zsh.
33208if test -z "$BASH_VERSION$ZSH_VERSION" \
33209 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33210 as_echo='print -r --'
33211 as_echo_n='print -rn --'
33212elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033213 as_echo='printf %s\n'
33214 as_echo_n='printf %s'
33215else
33216 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33217 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33218 as_echo_n='/usr/ucb/echo -n'
33219 else
33220 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33221 as_echo_n_body='eval
33222 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033223 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033224 *"$as_nl"*)
33225 expr "X$arg" : "X\\(.*\\)$as_nl";
33226 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33227 esac;
33228 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33229 '
33230 export as_echo_n_body
33231 as_echo_n='sh -c $as_echo_n_body as_echo'
33232 fi
33233 export as_echo_body
33234 as_echo='sh -c $as_echo_body as_echo'
33235fi
33236
33237# The user is always right.
33238if test "${PATH_SEPARATOR+set}" != set; then
33239 PATH_SEPARATOR=:
33240 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33241 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33242 PATH_SEPARATOR=';'
33243 }
33244fi
33245
cristy3ed852e2009-09-05 21:47:34 +000033246
33247# IFS
33248# We need space, tab and new line, in precisely that order. Quoting is
33249# there to prevent editors from complaining about space-tab.
33250# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33251# splitting by setting IFS to empty value.)
33252IFS=" "" $as_nl"
33253
33254# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033255case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033256 *[\\/]* ) as_myself=$0 ;;
33257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33258for as_dir in $PATH
33259do
33260 IFS=$as_save_IFS
33261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33263 done
cristy3ed852e2009-09-05 21:47:34 +000033264IFS=$as_save_IFS
33265
33266 ;;
33267esac
33268# We did not find ourselves, most probably we were run as `sh COMMAND'
33269# in which case we are not to be found in the path.
33270if test "x$as_myself" = x; then
33271 as_myself=$0
33272fi
33273if test ! -f "$as_myself"; then
33274 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033275 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033276fi
33277
cristy8b350f62009-11-15 23:12:43 +000033278# Unset variables that we do not need and which cause bugs (e.g. in
33279# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33280# suppresses any "Segmentation fault" message there. '((' could
33281# trigger a bug in pdksh 5.2.14.
33282for as_var in BASH_ENV ENV MAIL MAILPATH
33283do eval test x\${$as_var+set} = xset \
33284 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033285done
33286PS1='$ '
33287PS2='> '
33288PS4='+ '
33289
33290# NLS nuisances.
33291LC_ALL=C
33292export LC_ALL
33293LANGUAGE=C
33294export LANGUAGE
33295
cristy8b350f62009-11-15 23:12:43 +000033296# CDPATH.
33297(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33298
33299
cristy98dddb52010-11-04 00:30:15 +000033300# as_fn_error STATUS ERROR [LINENO LOG_FD]
33301# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033302# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33303# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033304# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033305as_fn_error ()
33306{
cristy98dddb52010-11-04 00:30:15 +000033307 as_status=$1; test $as_status -eq 0 && as_status=1
33308 if test "$4"; then
33309 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33310 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033311 fi
cristy98dddb52010-11-04 00:30:15 +000033312 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033313 as_fn_exit $as_status
33314} # as_fn_error
33315
33316
33317# as_fn_set_status STATUS
33318# -----------------------
33319# Set $? to STATUS, without forking.
33320as_fn_set_status ()
33321{
33322 return $1
33323} # as_fn_set_status
33324
33325# as_fn_exit STATUS
33326# -----------------
33327# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33328as_fn_exit ()
33329{
33330 set +e
33331 as_fn_set_status $1
33332 exit $1
33333} # as_fn_exit
33334
33335# as_fn_unset VAR
33336# ---------------
33337# Portably unset VAR.
33338as_fn_unset ()
33339{
33340 { eval $1=; unset $1;}
33341}
33342as_unset=as_fn_unset
33343# as_fn_append VAR VALUE
33344# ----------------------
33345# Append the text in VALUE to the end of the definition contained in VAR. Take
33346# advantage of any shell optimizations that allow amortized linear growth over
33347# repeated appends, instead of the typical quadratic growth present in naive
33348# implementations.
33349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33350 eval 'as_fn_append ()
33351 {
33352 eval $1+=\$2
33353 }'
33354else
33355 as_fn_append ()
33356 {
33357 eval $1=\$$1\$2
33358 }
33359fi # as_fn_append
33360
33361# as_fn_arith ARG...
33362# ------------------
33363# Perform arithmetic evaluation on the ARGs, and store the result in the
33364# global $as_val. Take advantage of shells that can avoid forks. The arguments
33365# must be portable across $(()) and expr.
33366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33367 eval 'as_fn_arith ()
33368 {
33369 as_val=$(( $* ))
33370 }'
33371else
33372 as_fn_arith ()
33373 {
33374 as_val=`expr "$@" || test $? -eq 1`
33375 }
33376fi # as_fn_arith
33377
33378
cristy3ed852e2009-09-05 21:47:34 +000033379if expr a : '\(a\)' >/dev/null 2>&1 &&
33380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33381 as_expr=expr
33382else
33383 as_expr=false
33384fi
33385
33386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33387 as_basename=basename
33388else
33389 as_basename=false
33390fi
33391
cristy8b350f62009-11-15 23:12:43 +000033392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33393 as_dirname=dirname
33394else
33395 as_dirname=false
33396fi
cristy3ed852e2009-09-05 21:47:34 +000033397
cristy3ed852e2009-09-05 21:47:34 +000033398as_me=`$as_basename -- "$0" ||
33399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33400 X"$0" : 'X\(//\)$' \| \
33401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33402$as_echo X/"$0" |
33403 sed '/^.*\/\([^/][^/]*\)\/*$/{
33404 s//\1/
33405 q
33406 }
33407 /^X\/\(\/\/\)$/{
33408 s//\1/
33409 q
33410 }
33411 /^X\/\(\/\).*/{
33412 s//\1/
33413 q
33414 }
33415 s/.*/./; q'`
33416
cristy8b350f62009-11-15 23:12:43 +000033417# Avoid depending upon Character Ranges.
33418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33421as_cr_digits='0123456789'
33422as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033423
33424ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033425case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033426-n*)
cristy8b350f62009-11-15 23:12:43 +000033427 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033428 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033429 xy) ECHO_C='\c';;
33430 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33431 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033432 esac;;
33433*)
33434 ECHO_N='-n';;
33435esac
cristy3ed852e2009-09-05 21:47:34 +000033436
33437rm -f conf$$ conf$$.exe conf$$.file
33438if test -d conf$$.dir; then
33439 rm -f conf$$.dir/conf$$.file
33440else
33441 rm -f conf$$.dir
33442 mkdir conf$$.dir 2>/dev/null
33443fi
33444if (echo >conf$$.file) 2>/dev/null; then
33445 if ln -s conf$$.file conf$$ 2>/dev/null; then
33446 as_ln_s='ln -s'
33447 # ... but there are two gotchas:
33448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33450 # In both cases, we have to default to `cp -p'.
33451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33452 as_ln_s='cp -p'
33453 elif ln conf$$.file conf$$ 2>/dev/null; then
33454 as_ln_s=ln
33455 else
33456 as_ln_s='cp -p'
33457 fi
33458else
33459 as_ln_s='cp -p'
33460fi
33461rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33462rmdir conf$$.dir 2>/dev/null
33463
cristy8b350f62009-11-15 23:12:43 +000033464
33465# as_fn_mkdir_p
33466# -------------
33467# Create "$as_dir" as a directory, including parents if necessary.
33468as_fn_mkdir_p ()
33469{
33470
33471 case $as_dir in #(
33472 -*) as_dir=./$as_dir;;
33473 esac
33474 test -d "$as_dir" || eval $as_mkdir_p || {
33475 as_dirs=
33476 while :; do
33477 case $as_dir in #(
33478 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33479 *) as_qdir=$as_dir;;
33480 esac
33481 as_dirs="'$as_qdir' $as_dirs"
33482 as_dir=`$as_dirname -- "$as_dir" ||
33483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33484 X"$as_dir" : 'X\(//\)[^/]' \| \
33485 X"$as_dir" : 'X\(//\)$' \| \
33486 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33487$as_echo X"$as_dir" |
33488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33489 s//\1/
33490 q
33491 }
33492 /^X\(\/\/\)[^/].*/{
33493 s//\1/
33494 q
33495 }
33496 /^X\(\/\/\)$/{
33497 s//\1/
33498 q
33499 }
33500 /^X\(\/\).*/{
33501 s//\1/
33502 q
33503 }
33504 s/.*/./; q'`
33505 test -d "$as_dir" && break
33506 done
33507 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000033508 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033509
33510
33511} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033512if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033513 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033514else
33515 test -d ./-p && rmdir ./-p
33516 as_mkdir_p=false
33517fi
33518
33519if test -x / >/dev/null 2>&1; then
33520 as_test_x='test -x'
33521else
33522 if ls -dL / >/dev/null 2>&1; then
33523 as_ls_L_option=L
33524 else
33525 as_ls_L_option=
33526 fi
33527 as_test_x='
33528 eval sh -c '\''
33529 if test -d "$1"; then
33530 test -d "$1/.";
33531 else
cristy8b350f62009-11-15 23:12:43 +000033532 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033533 -*)set "./$1";;
33534 esac;
cristy8b350f62009-11-15 23:12:43 +000033535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033536 ???[sx]*):;;*)false;;esac;fi
33537 '\'' sh
33538 '
33539fi
33540as_executable_p=$as_test_x
33541
33542# Sed expression to map a string onto a valid CPP name.
33543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33544
33545# Sed expression to map a string onto a valid variable name.
33546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33547
33548
33549exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033550## ----------------------------------- ##
33551## Main body of $CONFIG_STATUS script. ##
33552## ----------------------------------- ##
33553_ASEOF
33554test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033555
cristy8b350f62009-11-15 23:12:43 +000033556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33557# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033558# report actual input values of CONFIG_FILES etc. instead of their
33559# values after options handling.
33560ac_log="
cristy56225732010-09-04 23:44:25 +000033561This file was extended by ImageMagick $as_me 6.6.4, which was
cristy98dddb52010-11-04 00:30:15 +000033562generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033563
33564 CONFIG_FILES = $CONFIG_FILES
33565 CONFIG_HEADERS = $CONFIG_HEADERS
33566 CONFIG_LINKS = $CONFIG_LINKS
33567 CONFIG_COMMANDS = $CONFIG_COMMANDS
33568 $ $0 $@
33569
33570on `(hostname || uname -n) 2>/dev/null | sed 1q`
33571"
33572
33573_ACEOF
33574
33575case $ac_config_files in *"
33576"*) set x $ac_config_files; shift; ac_config_files=$*;;
33577esac
33578
33579case $ac_config_headers in *"
33580"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33581esac
33582
33583
33584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33585# Files that config.status was made for.
33586config_files="$ac_config_files"
33587config_headers="$ac_config_headers"
33588config_commands="$ac_config_commands"
33589
33590_ACEOF
33591
33592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33593ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033594\`$as_me' instantiates files and other configuration actions
33595from templates according to the current configuration. Unless the files
33596and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033597
cristy8b350f62009-11-15 23:12:43 +000033598Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033599
33600 -h, --help print this help, then exit
33601 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033602 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033603 -q, --quiet, --silent
33604 do not print progress messages
33605 -d, --debug don't remove temporary files
33606 --recheck update $as_me by reconfiguring in the same conditions
33607 --file=FILE[:TEMPLATE]
33608 instantiate the configuration file FILE
33609 --header=FILE[:TEMPLATE]
33610 instantiate the configuration header FILE
33611
33612Configuration files:
33613$config_files
33614
33615Configuration headers:
33616$config_headers
33617
33618Configuration commands:
33619$config_commands
33620
cristy8b350f62009-11-15 23:12:43 +000033621Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033622
33623_ACEOF
33624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033625ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033626ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033627ImageMagick config.status 6.6.4
cristy98dddb52010-11-04 00:30:15 +000033628configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033629 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033630
cristy98dddb52010-11-04 00:30:15 +000033631Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033632This config.status script is free software; the Free Software Foundation
33633gives unlimited permission to copy, distribute and modify it."
33634
33635ac_pwd='$ac_pwd'
33636srcdir='$srcdir'
33637INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000033638MKDIR_P='$MKDIR_P'
33639AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000033640test -n "\$AWK" || AWK=awk
33641_ACEOF
33642
33643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33644# The default lists apply if the user does not specify any file.
33645ac_need_defaults=:
33646while test $# != 0
33647do
33648 case $1 in
33649 --*=*)
33650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33652 ac_shift=:
33653 ;;
33654 *)
33655 ac_option=$1
33656 ac_optarg=$2
33657 ac_shift=shift
33658 ;;
33659 esac
33660
33661 case $ac_option in
33662 # Handling of the options.
33663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33664 ac_cs_recheck=: ;;
33665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33666 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033667 --config | --confi | --conf | --con | --co | --c )
33668 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033669 --debug | --debu | --deb | --de | --d | -d )
33670 debug=: ;;
33671 --file | --fil | --fi | --f )
33672 $ac_shift
33673 case $ac_optarg in
33674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33675 esac
cristy8b350f62009-11-15 23:12:43 +000033676 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033677 ac_need_defaults=false;;
33678 --header | --heade | --head | --hea )
33679 $ac_shift
33680 case $ac_optarg in
33681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33682 esac
cristy8b350f62009-11-15 23:12:43 +000033683 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033684 ac_need_defaults=false;;
33685 --he | --h)
33686 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000033687 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033688Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033689 --help | --hel | -h )
33690 $as_echo "$ac_cs_usage"; exit ;;
33691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33693 ac_cs_silent=: ;;
33694
33695 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000033696 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033697Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033698
cristy8b350f62009-11-15 23:12:43 +000033699 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033700 ac_need_defaults=false ;;
33701
33702 esac
33703 shift
33704done
33705
33706ac_configure_extra_args=
33707
33708if $ac_cs_silent; then
33709 exec 6>/dev/null
33710 ac_configure_extra_args="$ac_configure_extra_args --silent"
33711fi
33712
33713_ACEOF
33714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33715if \$ac_cs_recheck; then
33716 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33717 shift
33718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33719 CONFIG_SHELL='$SHELL'
33720 export CONFIG_SHELL
33721 exec "\$@"
33722fi
33723
33724_ACEOF
33725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33726exec 5>>config.log
33727{
33728 echo
33729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33730## Running $as_me. ##
33731_ASBOX
33732 $as_echo "$ac_log"
33733} >&5
33734
33735_ACEOF
33736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000033737#
33738# INIT-COMMANDS
33739#
33740PACKAGE="$PACKAGE"
33741AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33742
33743
33744# The HP-UX ksh and POSIX shell print the target directory to stdout
33745# if CDPATH is set.
33746(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33747
33748sed_quote_subst='$sed_quote_subst'
33749double_quote_subst='$double_quote_subst'
33750delay_variable_subst='$delay_variable_subst'
33751SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33752Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33753GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33754EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33755FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33756LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33757macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33758macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33759AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33760DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33761OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33762enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33763enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33764pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33765enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33766host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33767host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33768host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33769build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33770build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33771build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33772NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33773LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33774max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33775ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33776exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33777lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33778lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33779lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33780reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33781reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33782deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33783file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33784AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33785AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33786STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33787RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33788old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33789old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33790old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33791CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33792CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33793compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33794GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33795lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33796lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33797lt_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"`'
33798lt_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"`'
33799objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33800SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33801ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33802MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33803lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33804lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33805lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33806lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33807lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33808need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33809DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33810NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33811LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33812OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33813OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33814libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33815shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33816extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33817archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33818enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33819export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33820whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33821compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33822old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33823old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33824archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33825archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33826module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33827module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33828with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33829allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33830no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33831hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33832hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33833hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33834hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33835hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33836hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33837hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33838hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33839inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33840link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33841fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33842always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33843export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33844exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33845include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33846prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33847file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33848variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33849need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33850need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33851version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33852runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33853shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33854shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33855libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33856library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33857soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33858postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33859postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33860finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33861finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33862hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33863sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33864sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33865hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33866enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33867enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33868enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33869old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33870striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33871compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33872predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33873postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33874predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33875postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33876compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33877LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33878old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33879compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33880GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33881lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33882lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33883lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33884lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33885lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33886archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33887enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33888export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33889whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33890compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33891old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33892old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33893archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33894archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33895module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33896module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33897with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33898allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33899no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33900hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33901hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33902hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33903hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33904hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33905hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33906hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33907hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33908inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33909link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33910fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33911always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33912export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33913exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33914include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33915prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33916file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33917hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33918compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33919predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33920postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33921predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33922postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33923compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33924
33925LTCC='$LTCC'
33926LTCFLAGS='$LTCFLAGS'
33927compiler='$compiler_DEFAULT'
33928
33929# Quote evaled strings.
33930for var in SED \
33931GREP \
33932EGREP \
33933FGREP \
33934LD \
33935NM \
33936LN_S \
33937lt_SP2NL \
33938lt_NL2SP \
33939reload_flag \
33940deplibs_check_method \
33941file_magic_cmd \
33942AR \
33943AR_FLAGS \
33944STRIP \
33945RANLIB \
33946CC \
33947CFLAGS \
33948compiler \
33949lt_cv_sys_global_symbol_pipe \
33950lt_cv_sys_global_symbol_to_cdecl \
33951lt_cv_sys_global_symbol_to_c_name_address \
33952lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33953SHELL \
33954ECHO \
33955lt_prog_compiler_no_builtin_flag \
33956lt_prog_compiler_wl \
33957lt_prog_compiler_pic \
33958lt_prog_compiler_static \
33959lt_cv_prog_compiler_c_o \
33960need_locks \
33961DSYMUTIL \
33962NMEDIT \
33963LIPO \
33964OTOOL \
33965OTOOL64 \
33966shrext_cmds \
33967export_dynamic_flag_spec \
33968whole_archive_flag_spec \
33969compiler_needs_object \
33970with_gnu_ld \
33971allow_undefined_flag \
33972no_undefined_flag \
33973hardcode_libdir_flag_spec \
33974hardcode_libdir_flag_spec_ld \
33975hardcode_libdir_separator \
33976fix_srcfile_path \
33977exclude_expsyms \
33978include_expsyms \
33979file_list_spec \
33980variables_saved_for_relink \
33981libname_spec \
33982library_names_spec \
33983soname_spec \
33984finish_eval \
33985old_striplib \
33986striplib \
33987compiler_lib_search_dirs \
33988predep_objects \
33989postdep_objects \
33990predeps \
33991postdeps \
33992compiler_lib_search_path \
33993LD_CXX \
33994compiler_CXX \
33995lt_prog_compiler_no_builtin_flag_CXX \
33996lt_prog_compiler_wl_CXX \
33997lt_prog_compiler_pic_CXX \
33998lt_prog_compiler_static_CXX \
33999lt_cv_prog_compiler_c_o_CXX \
34000export_dynamic_flag_spec_CXX \
34001whole_archive_flag_spec_CXX \
34002compiler_needs_object_CXX \
34003with_gnu_ld_CXX \
34004allow_undefined_flag_CXX \
34005no_undefined_flag_CXX \
34006hardcode_libdir_flag_spec_CXX \
34007hardcode_libdir_flag_spec_ld_CXX \
34008hardcode_libdir_separator_CXX \
34009fix_srcfile_path_CXX \
34010exclude_expsyms_CXX \
34011include_expsyms_CXX \
34012file_list_spec_CXX \
34013compiler_lib_search_dirs_CXX \
34014predep_objects_CXX \
34015postdep_objects_CXX \
34016predeps_CXX \
34017postdeps_CXX \
34018compiler_lib_search_path_CXX; do
34019 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34020 *[\\\\\\\`\\"\\\$]*)
34021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34022 ;;
34023 *)
34024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34025 ;;
34026 esac
34027done
34028
34029# Double-quote double-evaled strings.
34030for var in reload_cmds \
34031old_postinstall_cmds \
34032old_postuninstall_cmds \
34033old_archive_cmds \
34034extract_expsyms_cmds \
34035old_archive_from_new_cmds \
34036old_archive_from_expsyms_cmds \
34037archive_cmds \
34038archive_expsym_cmds \
34039module_cmds \
34040module_expsym_cmds \
34041export_symbols_cmds \
34042prelink_cmds \
34043postinstall_cmds \
34044postuninstall_cmds \
34045finish_cmds \
34046sys_lib_search_path_spec \
34047sys_lib_dlsearch_path_spec \
34048old_archive_cmds_CXX \
34049old_archive_from_new_cmds_CXX \
34050old_archive_from_expsyms_cmds_CXX \
34051archive_cmds_CXX \
34052archive_expsym_cmds_CXX \
34053module_cmds_CXX \
34054module_expsym_cmds_CXX \
34055export_symbols_cmds_CXX \
34056prelink_cmds_CXX; do
34057 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34058 *[\\\\\\\`\\"\\\$]*)
34059 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34060 ;;
34061 *)
34062 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34063 ;;
34064 esac
34065done
34066
34067# Fix-up fallback echo if it was mangled by the above quoting rules.
34068case \$lt_ECHO in
34069*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34070 ;;
34071esac
34072
34073ac_aux_dir='$ac_aux_dir'
34074xsi_shell='$xsi_shell'
34075lt_shell_append='$lt_shell_append'
34076
34077# See if we are running on zsh, and set the options which allow our
34078# commands through without removal of \ escapes INIT.
34079if test -n "\${ZSH_VERSION+set}" ; then
34080 setopt NO_GLOB_SUBST
34081fi
34082
34083
34084 PACKAGE='$PACKAGE'
34085 VERSION='$VERSION'
34086 TIMESTAMP='$TIMESTAMP'
34087 RM='$RM'
34088 ofile='$ofile'
34089
34090
34091
34092
34093
34094
cristy3ed852e2009-09-05 21:47:34 +000034095_ACEOF
34096
34097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34098
34099# Handling of arguments.
34100for ac_config_target in $ac_config_targets
34101do
34102 case $ac_config_target in
34103 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034104 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034105 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34106 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34107 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34108 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34109 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034110 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034111 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34112 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34113 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34114 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34115 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34116 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34117 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34118 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34119 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34120 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34121 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34122 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34124 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34125 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34126 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34127 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34128 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34129 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34130 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34131 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34132 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34133 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34134 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34135 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34136 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34137 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34138 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34139 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34140 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34141 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34142 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34143 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034144 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34145 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034146 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34147 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34148 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34149 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34150 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34151 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34152 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34153
cristy98dddb52010-11-04 00:30:15 +000034154 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034155 esac
34156done
34157
34158
34159# If the user did not use the arguments to specify the items to instantiate,
34160# then the envvar interface is used. Set only those that are not.
34161# We use the long form for the default assignment because of an extremely
34162# bizarre bug on SunOS 4.1.3.
34163if $ac_need_defaults; then
34164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34166 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34167fi
34168
34169# Have a temporary directory for convenience. Make it in the build tree
34170# simply because there is no reason against having it here, and in addition,
34171# creating and moving files from /tmp can sometimes cause problems.
34172# Hook for its removal unless debugging.
34173# Note that there is a small window in which the directory will not be cleaned:
34174# after its creation but before its name has been assigned to `$tmp'.
34175$debug ||
34176{
34177 tmp=
34178 trap 'exit_status=$?
34179 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34180' 0
cristy8b350f62009-11-15 23:12:43 +000034181 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034182}
34183# Create a (secure) tmp directory for tmp files.
34184
34185{
34186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34187 test -n "$tmp" && test -d "$tmp"
34188} ||
34189{
34190 tmp=./conf$$-$RANDOM
34191 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034192} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034193
34194# Set up the scripts for CONFIG_FILES section.
34195# No need to generate them if there are no CONFIG_FILES.
34196# This happens for instance with `./config.status config.h'.
34197if test -n "$CONFIG_FILES"; then
34198
34199
cristy8b350f62009-11-15 23:12:43 +000034200ac_cr=`echo X | tr X '\015'`
34201# On cygwin, bash can eat \r inside `` if the user requested igncr.
34202# But we know of no other shell where ac_cr would be empty at this
34203# point, so we can use a bashism as a fallback.
34204if test "x$ac_cr" = x; then
34205 eval ac_cr=\$\'\\r\'
34206fi
cristy3ed852e2009-09-05 21:47:34 +000034207ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34208if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034209 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034210else
34211 ac_cs_awk_cr=$ac_cr
34212fi
34213
34214echo 'BEGIN {' >"$tmp/subs1.awk" &&
34215_ACEOF
34216
34217
34218{
34219 echo "cat >conf$$subs.awk <<_ACEOF" &&
34220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34221 echo "_ACEOF"
34222} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34224ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034225ac_delim='%!_!# '
34226for ac_last_try in false false false false false :; do
34227 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034229
34230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34231 if test $ac_delim_n = $ac_delim_num; then
34232 break
34233 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034235 else
34236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34237 fi
34238done
34239rm -f conf$$subs.sh
34240
34241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34242cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34243_ACEOF
34244sed -n '
34245h
34246s/^/S["/; s/!.*/"]=/
34247p
34248g
34249s/^[^!]*!//
34250:repl
34251t repl
34252s/'"$ac_delim"'$//
34253t delim
34254:nl
34255h
cristycd4c5312009-11-22 01:19:08 +000034256s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034257t more1
34258s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34259p
34260n
34261b repl
34262:more1
34263s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34264p
34265g
34266s/.\{148\}//
34267t nl
34268:delim
34269h
cristycd4c5312009-11-22 01:19:08 +000034270s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034271t more2
34272s/["\\]/\\&/g; s/^/"/; s/$/"/
34273p
34274b
34275:more2
34276s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34277p
34278g
34279s/.\{148\}//
34280t delim
34281' <conf$$subs.awk | sed '
34282/^[^""]/{
34283 N
34284 s/\n//
34285}
34286' >>$CONFIG_STATUS || ac_write_fail=1
34287rm -f conf$$subs.awk
34288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34289_ACAWK
34290cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34291 for (key in S) S_is_set[key] = 1
34292 FS = ""
34293
34294}
34295{
34296 line = $ 0
34297 nfields = split(line, field, "@")
34298 substed = 0
34299 len = length(field[1])
34300 for (i = 2; i < nfields; i++) {
34301 key = field[i]
34302 keylen = length(key)
34303 if (S_is_set[key]) {
34304 value = S[key]
34305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34306 len += length(value) + length(field[++i])
34307 substed = 1
34308 } else
34309 len += 1 + keylen
34310 }
34311
34312 print line
34313}
34314
34315_ACAWK
34316_ACEOF
34317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34318if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34320else
34321 cat
34322fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000034323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034324_ACEOF
34325
cristy98dddb52010-11-04 00:30:15 +000034326# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34327# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034328# trailing colons and then remove the whole line if VPATH becomes empty
34329# (actually we leave an empty line to preserve line numbers).
34330if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000034331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34332h
34333s///
34334s/^/:/
34335s/[ ]*$/:/
34336s/:\$(srcdir):/:/g
34337s/:\${srcdir}:/:/g
34338s/:@srcdir@:/:/g
34339s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034340s/:*$//
cristy98dddb52010-11-04 00:30:15 +000034341x
34342s/\(=[ ]*\).*/\1/
34343G
34344s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034345s/^[^=]*=[ ]*$//
34346}'
34347fi
34348
34349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34350fi # test -n "$CONFIG_FILES"
34351
34352# Set up the scripts for CONFIG_HEADERS section.
34353# No need to generate them if there are no CONFIG_HEADERS.
34354# This happens for instance with `./config.status Makefile'.
34355if test -n "$CONFIG_HEADERS"; then
34356cat >"$tmp/defines.awk" <<\_ACAWK ||
34357BEGIN {
34358_ACEOF
34359
34360# Transform confdefs.h into an awk script `defines.awk', embedded as
34361# here-document in config.status, that substitutes the proper values into
34362# config.h.in to produce config.h.
34363
34364# Create a delimiter string that does not exist in confdefs.h, to ease
34365# handling of long lines.
34366ac_delim='%!_!# '
34367for ac_last_try in false false :; do
34368 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34369 if test -z "$ac_t"; then
34370 break
34371 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034373 else
34374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34375 fi
34376done
34377
34378# For the awk script, D is an array of macro values keyed by name,
34379# likewise P contains macro parameters if any. Preserve backslash
34380# newline sequences.
34381
34382ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34383sed -n '
34384s/.\{148\}/&'"$ac_delim"'/g
34385t rset
34386:rset
34387s/^[ ]*#[ ]*define[ ][ ]*/ /
34388t def
34389d
34390:def
34391s/\\$//
34392t bsnl
34393s/["\\]/\\&/g
34394s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34395D["\1"]=" \3"/p
34396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34397d
34398:bsnl
34399s/["\\]/\\&/g
34400s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34401D["\1"]=" \3\\\\\\n"\\/p
34402t cont
34403s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34404t cont
34405d
34406:cont
34407n
34408s/.\{148\}/&'"$ac_delim"'/g
34409t clear
34410:clear
34411s/\\$//
34412t bsnlc
34413s/["\\]/\\&/g; s/^/"/; s/$/"/p
34414d
34415:bsnlc
34416s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34417b cont
34418' <confdefs.h | sed '
34419s/'"$ac_delim"'/"\\\
34420"/g' >>$CONFIG_STATUS || ac_write_fail=1
34421
34422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34423 for (key in D) D_is_set[key] = 1
34424 FS = ""
34425}
34426/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34427 line = \$ 0
34428 split(line, arg, " ")
34429 if (arg[1] == "#") {
34430 defundef = arg[2]
34431 mac1 = arg[3]
34432 } else {
34433 defundef = substr(arg[1], 2)
34434 mac1 = arg[2]
34435 }
34436 split(mac1, mac2, "(") #)
34437 macro = mac2[1]
34438 prefix = substr(line, 1, index(line, defundef) - 1)
34439 if (D_is_set[macro]) {
34440 # Preserve the white space surrounding the "#".
34441 print prefix "define", macro P[macro] D[macro]
34442 next
34443 } else {
34444 # Replace #undef with comments. This is necessary, for example,
34445 # in the case of _POSIX_SOURCE, which is predefined and required
34446 # on some systems where configure will not decide to define it.
34447 if (defundef == "undef") {
34448 print "/*", prefix defundef, macro, "*/"
34449 next
34450 }
34451 }
34452}
34453{ print }
34454_ACAWK
34455_ACEOF
34456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000034457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034458fi # test -n "$CONFIG_HEADERS"
34459
34460
34461eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34462shift
34463for ac_tag
34464do
34465 case $ac_tag in
34466 :[FHLC]) ac_mode=$ac_tag; continue;;
34467 esac
34468 case $ac_mode$ac_tag in
34469 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000034470 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034471 :[FH]-) ac_tag=-:-;;
34472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34473 esac
34474 ac_save_IFS=$IFS
34475 IFS=:
34476 set x $ac_tag
34477 IFS=$ac_save_IFS
34478 shift
34479 ac_file=$1
34480 shift
34481
34482 case $ac_mode in
34483 :L) ac_source=$1;;
34484 :[FH])
34485 ac_file_inputs=
34486 for ac_f
34487 do
34488 case $ac_f in
34489 -) ac_f="$tmp/stdin";;
34490 *) # Look for the file first in the build tree, then in the source tree
34491 # (if the path is not absolute). The absolute path cannot be DOS-style,
34492 # because $ac_f cannot contain `:'.
34493 test -f "$ac_f" ||
34494 case $ac_f in
34495 [\\/$]*) false;;
34496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34497 esac ||
cristy98dddb52010-11-04 00:30:15 +000034498 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034499 esac
34500 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034501 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034502 done
34503
34504 # Let's still pretend it is `configure' which instantiates (i.e., don't
34505 # use $as_me), people would be surprised to read:
34506 # /* config.h. Generated by config.status. */
34507 configure_input='Generated from '`
34508 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34509 `' by configure.'
34510 if test x"$ac_file" != x-; then
34511 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513$as_echo "$as_me: creating $ac_file" >&6;}
34514 fi
34515 # Neutralize special characters interpreted by sed in replacement strings.
34516 case $configure_input in #(
34517 *\&* | *\|* | *\\* )
34518 ac_sed_conf_input=`$as_echo "$configure_input" |
34519 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34520 *) ac_sed_conf_input=$configure_input;;
34521 esac
34522
34523 case $ac_tag in
34524 *:-:* | *:-) cat >"$tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000034525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034526 esac
34527 ;;
34528 esac
34529
34530 ac_dir=`$as_dirname -- "$ac_file" ||
34531$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34532 X"$ac_file" : 'X\(//\)[^/]' \| \
34533 X"$ac_file" : 'X\(//\)$' \| \
34534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34535$as_echo X"$ac_file" |
34536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34537 s//\1/
34538 q
34539 }
34540 /^X\(\/\/\)[^/].*/{
34541 s//\1/
34542 q
34543 }
34544 /^X\(\/\/\)$/{
34545 s//\1/
34546 q
34547 }
34548 /^X\(\/\).*/{
34549 s//\1/
34550 q
34551 }
34552 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034553 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034554 ac_builddir=.
34555
34556case "$ac_dir" in
34557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34558*)
34559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34560 # A ".." for each directory in $ac_dir_suffix.
34561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34562 case $ac_top_builddir_sub in
34563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34565 esac ;;
34566esac
34567ac_abs_top_builddir=$ac_pwd
34568ac_abs_builddir=$ac_pwd$ac_dir_suffix
34569# for backward compatibility:
34570ac_top_builddir=$ac_top_build_prefix
34571
34572case $srcdir in
34573 .) # We are building in place.
34574 ac_srcdir=.
34575 ac_top_srcdir=$ac_top_builddir_sub
34576 ac_abs_top_srcdir=$ac_pwd ;;
34577 [\\/]* | ?:[\\/]* ) # Absolute name.
34578 ac_srcdir=$srcdir$ac_dir_suffix;
34579 ac_top_srcdir=$srcdir
34580 ac_abs_top_srcdir=$srcdir ;;
34581 *) # Relative name.
34582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34583 ac_top_srcdir=$ac_top_build_prefix$srcdir
34584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34585esac
34586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34587
34588
34589 case $ac_mode in
34590 :F)
34591 #
34592 # CONFIG_FILE
34593 #
34594
34595 case $INSTALL in
34596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34598 esac
cristy73bd4a52010-10-05 11:24:23 +000034599 ac_MKDIR_P=$MKDIR_P
34600 case $MKDIR_P in
34601 [\\/$]* | ?:[\\/]* ) ;;
34602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34603 esac
cristy3ed852e2009-09-05 21:47:34 +000034604_ACEOF
34605
34606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34607# If the template does not know about datarootdir, expand it.
34608# FIXME: This hack should be removed a few years after 2.60.
34609ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034610ac_sed_dataroot='
34611/datarootdir/ {
34612 p
34613 q
34614}
34615/@datadir@/p
34616/@docdir@/p
34617/@infodir@/p
34618/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034619/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034620case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34621*datarootdir*) ac_datarootdir_seen=yes;;
34622*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034624$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34625_ACEOF
34626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34627 ac_datarootdir_hack='
34628 s&@datadir@&$datadir&g
34629 s&@docdir@&$docdir&g
34630 s&@infodir@&$infodir&g
34631 s&@localedir@&$localedir&g
34632 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034633 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034634esac
34635_ACEOF
34636
34637# Neutralize VPATH when `$srcdir' = `.'.
34638# Shell code in configure.ac might set extrasub.
34639# FIXME: do we really want to maintain this feature?
34640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34641ac_sed_extra="$ac_vpsub
34642$extrasub
34643_ACEOF
34644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34645:t
34646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34647s|@configure_input@|$ac_sed_conf_input|;t t
34648s&@top_builddir@&$ac_top_builddir_sub&;t t
34649s&@top_build_prefix@&$ac_top_build_prefix&;t t
34650s&@srcdir@&$ac_srcdir&;t t
34651s&@abs_srcdir@&$ac_abs_srcdir&;t t
34652s&@top_srcdir@&$ac_top_srcdir&;t t
34653s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34654s&@builddir@&$ac_builddir&;t t
34655s&@abs_builddir@&$ac_abs_builddir&;t t
34656s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34657s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000034658s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000034659$ac_datarootdir_hack
34660"
34661eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy98dddb52010-11-04 00:30:15 +000034662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034663
34664test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34665 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034668which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034669$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034670which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034671
34672 rm -f "$tmp/stdin"
34673 case $ac_file in
34674 -) cat "$tmp/out" && rm -f "$tmp/out";;
34675 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34676 esac \
cristy98dddb52010-11-04 00:30:15 +000034677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034678 ;;
34679 :H)
34680 #
34681 # CONFIG_HEADER
34682 #
34683 if test x"$ac_file" != x-; then
34684 {
34685 $as_echo "/* $configure_input */" \
34686 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34687 } >"$tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000034688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034689 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034690 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034691$as_echo "$as_me: $ac_file is unchanged" >&6;}
34692 else
34693 rm -f "$ac_file"
34694 mv "$tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000034695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034696 fi
34697 else
34698 $as_echo "/* $configure_input */" \
34699 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000034700 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034701 fi
cristy73bd4a52010-10-05 11:24:23 +000034702# Compute "$ac_file"'s index in $config_headers.
34703_am_arg="$ac_file"
34704_am_stamp_count=1
34705for _am_header in $config_headers :; do
34706 case $_am_header in
34707 $_am_arg | $_am_arg:* )
34708 break ;;
34709 * )
34710 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34711 esac
34712done
34713echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34714$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34715 X"$_am_arg" : 'X\(//\)[^/]' \| \
34716 X"$_am_arg" : 'X\(//\)$' \| \
34717 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34718$as_echo X"$_am_arg" |
34719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34720 s//\1/
34721 q
34722 }
34723 /^X\(\/\/\)[^/].*/{
34724 s//\1/
34725 q
34726 }
34727 /^X\(\/\/\)$/{
34728 s//\1/
34729 q
34730 }
34731 /^X\(\/\).*/{
34732 s//\1/
34733 q
34734 }
34735 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000034736 ;;
34737
cristy8b350f62009-11-15 23:12:43 +000034738 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034739$as_echo "$as_me: executing $ac_file commands" >&6;}
34740 ;;
34741 esac
34742
34743
34744 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000034745 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34746ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34747ac_prefix_conf_PKG=`echo MagickCore`
34748ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34749ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34750ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34751if test ".$ac_prefix_conf_INP" = "."; then
34752 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34753 case "$ac_file" in
34754 *.h) ac_prefix_conf_INP=$ac_file ;;
34755 *)
34756 esac
34757 test ".$ac_prefix_conf_INP" != "." && break
34758 done
34759fi
34760if test ".$ac_prefix_conf_INP" = "."; then
34761 case "$ac_prefix_conf_OUT" in
34762 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34763 ;;
34764 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34765 ;;
34766 *) ac_prefix_conf_INP=config.h
34767 ;;
34768 esac
34769fi
34770if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000034771 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034772else
34773 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34774 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34775 fi fi
34776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34777$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34778 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000034779 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34780 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34781 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34782 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34783 $as_echo "#endif/" >> conftest.prefix
34784 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34785 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34786 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000034787 # now executing _script on _DEF input to create _OUT output file
34788 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34789 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34790 echo ' ' >>$tmp/pconfig.h
34791 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34792
34793 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34794 echo ' ' >>$tmp/pconfig.h
34795 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34796 echo "#endif" >>$tmp/pconfig.h
34797 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34798 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34799$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34800 else
34801 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34802$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34803 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34804 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34805 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34806$as_echo X"$ac_prefix_conf_OUT" |
34807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34808 s//\1/
34809 q
34810 }
34811 /^X\(\/\/\)[^/].*/{
34812 s//\1/
34813 q
34814 }
34815 /^X\(\/\/\)$/{
34816 s//\1/
34817 q
34818 }
34819 /^X\(\/\).*/{
34820 s//\1/
34821 q
34822 }
34823 s/.*/./; q'`
34824 as_dir="$ac_dir"; as_fn_mkdir_p
34825 rm -f "$ac_prefix_conf_OUT"
34826 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34827 fi
34828 cp conftest.prefix _configs.sed
34829 else
cristy98dddb52010-11-04 00:30:15 +000034830 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034831 fi
34832 rm -f conftest.*
34833fi
34834 ;;
34835 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34836 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34837 # are listed without --file. Let's play safe and only enable the eval
34838 # if we detect the quoting.
34839 case $CONFIG_FILES in
34840 *\'*) eval set x "$CONFIG_FILES" ;;
34841 *) set x $CONFIG_FILES ;;
34842 esac
34843 shift
34844 for mf
34845 do
34846 # Strip MF so we end up with the name of the file.
34847 mf=`echo "$mf" | sed -e 's/:.*$//'`
34848 # Check whether this is an Automake generated Makefile or not.
34849 # We used to match only the files named `Makefile.in', but
34850 # some people rename them; so instead we look at the file content.
34851 # Grep'ing the first line is not enough: some people post-process
34852 # each Makefile.in and add a new line on top of each file to say so.
34853 # Grep'ing the whole file is not good either: AIX grep has a line
34854 # limit of 2048, but all sed's we know have understand at least 4000.
34855 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34856 dirpart=`$as_dirname -- "$mf" ||
34857$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34858 X"$mf" : 'X\(//\)[^/]' \| \
34859 X"$mf" : 'X\(//\)$' \| \
34860 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34861$as_echo X"$mf" |
34862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34863 s//\1/
34864 q
34865 }
34866 /^X\(\/\/\)[^/].*/{
34867 s//\1/
34868 q
34869 }
34870 /^X\(\/\/\)$/{
34871 s//\1/
34872 q
34873 }
34874 /^X\(\/\).*/{
34875 s//\1/
34876 q
34877 }
34878 s/.*/./; q'`
34879 else
34880 continue
34881 fi
34882 # Extract the definition of DEPDIR, am__include, and am__quote
34883 # from the Makefile without running `make'.
34884 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34885 test -z "$DEPDIR" && continue
34886 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34887 test -z "am__include" && continue
34888 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34889 # When using ansi2knr, U may be empty or an underscore; expand it
34890 U=`sed -n 's/^U = //p' < "$mf"`
34891 # Find all dependency output files, they are included files with
34892 # $(DEPDIR) in their names. We invoke sed twice because it is the
34893 # simplest approach to changing $(DEPDIR) to its actual value in the
34894 # expansion.
34895 for file in `sed -n "
34896 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34897 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34898 # Make sure the directory exists.
34899 test -f "$dirpart/$file" && continue
34900 fdir=`$as_dirname -- "$file" ||
34901$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34902 X"$file" : 'X\(//\)[^/]' \| \
34903 X"$file" : 'X\(//\)$' \| \
34904 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34905$as_echo X"$file" |
34906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34907 s//\1/
34908 q
34909 }
34910 /^X\(\/\/\)[^/].*/{
34911 s//\1/
34912 q
34913 }
34914 /^X\(\/\/\)$/{
34915 s//\1/
34916 q
34917 }
34918 /^X\(\/\).*/{
34919 s//\1/
34920 q
34921 }
34922 s/.*/./; q'`
34923 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34924 # echo "creating $dirpart/$file"
34925 echo '# dummy' > "$dirpart/$file"
34926 done
34927 done
34928}
34929 ;;
34930 "libtool":C)
34931
34932 # See if we are running on zsh, and set the options which allow our
34933 # commands through without removal of \ escapes.
34934 if test -n "${ZSH_VERSION+set}" ; then
34935 setopt NO_GLOB_SUBST
34936 fi
34937
34938 cfgfile="${ofile}T"
34939 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34940 $RM "$cfgfile"
34941
34942 cat <<_LT_EOF >> "$cfgfile"
34943#! $SHELL
34944
34945# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34946# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34947# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34948# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34949#
34950# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34951# 2006, 2007, 2008 Free Software Foundation, Inc.
34952# Written by Gordon Matzigkeit, 1996
34953#
34954# This file is part of GNU Libtool.
34955#
34956# GNU Libtool is free software; you can redistribute it and/or
34957# modify it under the terms of the GNU General Public License as
34958# published by the Free Software Foundation; either version 2 of
34959# the License, or (at your option) any later version.
34960#
34961# As a special exception to the GNU General Public License,
34962# if you distribute this file as part of a program or library that
34963# is built using GNU Libtool, you may include this file under the
34964# same distribution terms that you use for the rest of that program.
34965#
34966# GNU Libtool is distributed in the hope that it will be useful,
34967# but WITHOUT ANY WARRANTY; without even the implied warranty of
34968# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34969# GNU General Public License for more details.
34970#
34971# You should have received a copy of the GNU General Public License
34972# along with GNU Libtool; see the file COPYING. If not, a copy
34973# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34974# obtained by writing to the Free Software Foundation, Inc.,
34975# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34976
34977
34978# The names of the tagged configurations supported by this script.
34979available_tags="CXX "
34980
34981# ### BEGIN LIBTOOL CONFIG
34982
34983# A sed program that does not truncate output.
34984SED=$lt_SED
34985
34986# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34987Xsed="\$SED -e 1s/^X//"
34988
34989# A grep program that handles long lines.
34990GREP=$lt_GREP
34991
34992# An ERE matcher.
34993EGREP=$lt_EGREP
34994
34995# A literal string matcher.
34996FGREP=$lt_FGREP
34997
34998# Which release of libtool.m4 was used?
34999macro_version=$macro_version
35000macro_revision=$macro_revision
35001
35002# Assembler program.
35003AS=$AS
35004
35005# DLL creation program.
35006DLLTOOL=$DLLTOOL
35007
35008# Object dumper program.
35009OBJDUMP=$OBJDUMP
35010
35011# Whether or not to build shared libraries.
35012build_libtool_libs=$enable_shared
35013
35014# Whether or not to build static libraries.
35015build_old_libs=$enable_static
35016
35017# What type of objects to build.
35018pic_mode=$pic_mode
35019
35020# Whether or not to optimize for fast installation.
35021fast_install=$enable_fast_install
35022
35023# The host system.
35024host_alias=$host_alias
35025host=$host
35026host_os=$host_os
35027
35028# The build system.
35029build_alias=$build_alias
35030build=$build
35031build_os=$build_os
35032
35033# A BSD- or MS-compatible name lister.
35034NM=$lt_NM
35035
35036# Whether we need soft or hard links.
35037LN_S=$lt_LN_S
35038
35039# What is the maximum length of a command?
35040max_cmd_len=$max_cmd_len
35041
35042# Object file suffix (normally "o").
35043objext=$ac_objext
35044
35045# Executable file suffix (normally "").
35046exeext=$exeext
35047
35048# whether the shell understands "unset".
35049lt_unset=$lt_unset
35050
35051# turn spaces into newlines.
35052SP2NL=$lt_lt_SP2NL
35053
35054# turn newlines into spaces.
35055NL2SP=$lt_lt_NL2SP
35056
35057# How to create reloadable object files.
35058reload_flag=$lt_reload_flag
35059reload_cmds=$lt_reload_cmds
35060
35061# Method to check whether dependent libraries are shared objects.
35062deplibs_check_method=$lt_deplibs_check_method
35063
35064# Command to use when deplibs_check_method == "file_magic".
35065file_magic_cmd=$lt_file_magic_cmd
35066
35067# The archiver.
35068AR=$lt_AR
35069AR_FLAGS=$lt_AR_FLAGS
35070
35071# A symbol stripping program.
35072STRIP=$lt_STRIP
35073
35074# Commands used to install an old-style archive.
35075RANLIB=$lt_RANLIB
35076old_postinstall_cmds=$lt_old_postinstall_cmds
35077old_postuninstall_cmds=$lt_old_postuninstall_cmds
35078
35079# A C compiler.
35080LTCC=$lt_CC
35081
35082# LTCC compiler flags.
35083LTCFLAGS=$lt_CFLAGS
35084
35085# Take the output of nm and produce a listing of raw symbols and C names.
35086global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35087
35088# Transform the output of nm in a proper C declaration.
35089global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35090
35091# Transform the output of nm in a C name address pair.
35092global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35093
35094# Transform the output of nm in a C name address pair when lib prefix is needed.
35095global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35096
35097# The name of the directory that contains temporary libtool files.
35098objdir=$objdir
35099
35100# Shell to use when invoking shell scripts.
35101SHELL=$lt_SHELL
35102
35103# An echo program that does not interpret backslashes.
35104ECHO=$lt_ECHO
35105
35106# Used to examine libraries when file_magic_cmd begins with "file".
35107MAGIC_CMD=$MAGIC_CMD
35108
35109# Must we lock files when doing compilation?
35110need_locks=$lt_need_locks
35111
35112# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35113DSYMUTIL=$lt_DSYMUTIL
35114
35115# Tool to change global to local symbols on Mac OS X.
35116NMEDIT=$lt_NMEDIT
35117
35118# Tool to manipulate fat objects and archives on Mac OS X.
35119LIPO=$lt_LIPO
35120
35121# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35122OTOOL=$lt_OTOOL
35123
35124# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35125OTOOL64=$lt_OTOOL64
35126
35127# Old archive suffix (normally "a").
35128libext=$libext
35129
35130# Shared library suffix (normally ".so").
35131shrext_cmds=$lt_shrext_cmds
35132
35133# The commands to extract the exported symbol list from a shared archive.
35134extract_expsyms_cmds=$lt_extract_expsyms_cmds
35135
35136# Variables whose values should be saved in libtool wrapper scripts and
35137# restored at link time.
35138variables_saved_for_relink=$lt_variables_saved_for_relink
35139
35140# Do we need the "lib" prefix for modules?
35141need_lib_prefix=$need_lib_prefix
35142
35143# Do we need a version for libraries?
35144need_version=$need_version
35145
35146# Library versioning type.
35147version_type=$version_type
35148
35149# Shared library runtime path variable.
35150runpath_var=$runpath_var
35151
35152# Shared library path variable.
35153shlibpath_var=$shlibpath_var
35154
35155# Is shlibpath searched before the hard-coded library search path?
35156shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35157
35158# Format of library name prefix.
35159libname_spec=$lt_libname_spec
35160
35161# List of archive names. First name is the real one, the rest are links.
35162# The last name is the one that the linker finds with -lNAME
35163library_names_spec=$lt_library_names_spec
35164
35165# The coded name of the library, if different from the real name.
35166soname_spec=$lt_soname_spec
35167
35168# Command to use after installation of a shared archive.
35169postinstall_cmds=$lt_postinstall_cmds
35170
35171# Command to use after uninstallation of a shared archive.
35172postuninstall_cmds=$lt_postuninstall_cmds
35173
35174# Commands used to finish a libtool library installation in a directory.
35175finish_cmds=$lt_finish_cmds
35176
35177# As "finish_cmds", except a single script fragment to be evaled but
35178# not shown.
35179finish_eval=$lt_finish_eval
35180
35181# Whether we should hardcode library paths into libraries.
35182hardcode_into_libs=$hardcode_into_libs
35183
35184# Compile-time system search path for libraries.
35185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35186
35187# Run-time system search path for libraries.
35188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35189
35190# Whether dlopen is supported.
35191dlopen_support=$enable_dlopen
35192
35193# Whether dlopen of programs is supported.
35194dlopen_self=$enable_dlopen_self
35195
35196# Whether dlopen of statically linked programs is supported.
35197dlopen_self_static=$enable_dlopen_self_static
35198
35199# Commands to strip libraries.
35200old_striplib=$lt_old_striplib
35201striplib=$lt_striplib
35202
35203
35204# The linker used to build libraries.
35205LD=$lt_LD
35206
35207# Commands used to build an old-style archive.
35208old_archive_cmds=$lt_old_archive_cmds
35209
35210# A language specific compiler.
35211CC=$lt_compiler
35212
35213# Is the compiler the GNU compiler?
35214with_gcc=$GCC
35215
35216# Compiler flag to turn off builtin functions.
35217no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35218
35219# How to pass a linker flag through the compiler.
35220wl=$lt_lt_prog_compiler_wl
35221
35222# Additional compiler flags for building library objects.
35223pic_flag=$lt_lt_prog_compiler_pic
35224
35225# Compiler flag to prevent dynamic linking.
35226link_static_flag=$lt_lt_prog_compiler_static
35227
35228# Does compiler simultaneously support -c and -o options?
35229compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35230
35231# Whether or not to add -lc for building shared libraries.
35232build_libtool_need_lc=$archive_cmds_need_lc
35233
35234# Whether or not to disallow shared libs when runtime libs are static.
35235allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35236
35237# Compiler flag to allow reflexive dlopens.
35238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35239
35240# Compiler flag to generate shared objects directly from archives.
35241whole_archive_flag_spec=$lt_whole_archive_flag_spec
35242
35243# Whether the compiler copes with passing no objects directly.
35244compiler_needs_object=$lt_compiler_needs_object
35245
35246# Create an old-style archive from a shared archive.
35247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35248
35249# Create a temporary old-style archive to link instead of a shared archive.
35250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35251
35252# Commands used to build a shared archive.
35253archive_cmds=$lt_archive_cmds
35254archive_expsym_cmds=$lt_archive_expsym_cmds
35255
35256# Commands used to build a loadable module if different from building
35257# a shared archive.
35258module_cmds=$lt_module_cmds
35259module_expsym_cmds=$lt_module_expsym_cmds
35260
35261# Whether we are building with GNU ld or not.
35262with_gnu_ld=$lt_with_gnu_ld
35263
35264# Flag that allows shared libraries with undefined symbols to be built.
35265allow_undefined_flag=$lt_allow_undefined_flag
35266
35267# Flag that enforces no undefined symbols.
35268no_undefined_flag=$lt_no_undefined_flag
35269
35270# Flag to hardcode \$libdir into a binary during linking.
35271# This must work even if \$libdir does not exist
35272hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35273
35274# If ld is used when linking, flag to hardcode \$libdir into a binary
35275# during linking. This must work even if \$libdir does not exist.
35276hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35277
35278# Whether we need a single "-rpath" flag with a separated argument.
35279hardcode_libdir_separator=$lt_hardcode_libdir_separator
35280
35281# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35282# DIR into the resulting binary.
35283hardcode_direct=$hardcode_direct
35284
35285# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35286# DIR into the resulting binary and the resulting library dependency is
35287# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35288# library is relocated.
35289hardcode_direct_absolute=$hardcode_direct_absolute
35290
35291# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35292# into the resulting binary.
35293hardcode_minus_L=$hardcode_minus_L
35294
35295# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35296# into the resulting binary.
35297hardcode_shlibpath_var=$hardcode_shlibpath_var
35298
35299# Set to "yes" if building a shared library automatically hardcodes DIR
35300# into the library and all subsequent libraries and executables linked
35301# against it.
35302hardcode_automatic=$hardcode_automatic
35303
35304# Set to yes if linker adds runtime paths of dependent libraries
35305# to runtime path list.
35306inherit_rpath=$inherit_rpath
35307
35308# Whether libtool must link a program against all its dependency libraries.
35309link_all_deplibs=$link_all_deplibs
35310
35311# Fix the shell variable \$srcfile for the compiler.
35312fix_srcfile_path=$lt_fix_srcfile_path
35313
35314# Set to "yes" if exported symbols are required.
35315always_export_symbols=$always_export_symbols
35316
35317# The commands to list exported symbols.
35318export_symbols_cmds=$lt_export_symbols_cmds
35319
35320# Symbols that should not be listed in the preloaded symbols.
35321exclude_expsyms=$lt_exclude_expsyms
35322
35323# Symbols that must always be exported.
35324include_expsyms=$lt_include_expsyms
35325
35326# Commands necessary for linking programs (against libraries) with templates.
35327prelink_cmds=$lt_prelink_cmds
35328
35329# Specify filename containing input files.
35330file_list_spec=$lt_file_list_spec
35331
35332# How to hardcode a shared library path into an executable.
35333hardcode_action=$hardcode_action
35334
35335# The directories searched by this compiler when creating a shared library.
35336compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35337
35338# Dependencies to place before and after the objects being linked to
35339# create a shared library.
35340predep_objects=$lt_predep_objects
35341postdep_objects=$lt_postdep_objects
35342predeps=$lt_predeps
35343postdeps=$lt_postdeps
35344
35345# The library search path used internally by the compiler when linking
35346# a shared library.
35347compiler_lib_search_path=$lt_compiler_lib_search_path
35348
35349# ### END LIBTOOL CONFIG
35350
35351_LT_EOF
35352
35353 case $host_os in
35354 aix3*)
35355 cat <<\_LT_EOF >> "$cfgfile"
35356# AIX sometimes has problems with the GCC collect2 program. For some
35357# reason, if we set the COLLECT_NAMES environment variable, the problems
35358# vanish in a puff of smoke.
35359if test "X${COLLECT_NAMES+set}" != Xset; then
35360 COLLECT_NAMES=
35361 export COLLECT_NAMES
35362fi
35363_LT_EOF
35364 ;;
35365 esac
35366
35367
35368ltmain="$ac_aux_dir/ltmain.sh"
35369
35370
35371 # We use sed instead of cat because bash on DJGPP gets confused if
35372 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35373 # text mode, it properly converts lines to CR/LF. This bash problem
35374 # is reportedly fixed, but why not run on old versions too?
35375 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35376 || (rm -f "$cfgfile"; exit 1)
35377
35378 case $xsi_shell in
35379 yes)
35380 cat << \_LT_EOF >> "$cfgfile"
35381
35382# func_dirname file append nondir_replacement
35383# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35384# otherwise set result to NONDIR_REPLACEMENT.
35385func_dirname ()
35386{
35387 case ${1} in
35388 */*) func_dirname_result="${1%/*}${2}" ;;
35389 * ) func_dirname_result="${3}" ;;
35390 esac
35391}
35392
35393# func_basename file
35394func_basename ()
35395{
35396 func_basename_result="${1##*/}"
35397}
35398
35399# func_dirname_and_basename file append nondir_replacement
35400# perform func_basename and func_dirname in a single function
35401# call:
35402# dirname: Compute the dirname of FILE. If nonempty,
35403# add APPEND to the result, otherwise set result
35404# to NONDIR_REPLACEMENT.
35405# value returned in "$func_dirname_result"
35406# basename: Compute filename of FILE.
35407# value retuned in "$func_basename_result"
35408# Implementation must be kept synchronized with func_dirname
35409# and func_basename. For efficiency, we do not delegate to
35410# those functions but instead duplicate the functionality here.
35411func_dirname_and_basename ()
35412{
35413 case ${1} in
35414 */*) func_dirname_result="${1%/*}${2}" ;;
35415 * ) func_dirname_result="${3}" ;;
35416 esac
35417 func_basename_result="${1##*/}"
35418}
35419
35420# func_stripname prefix suffix name
35421# strip PREFIX and SUFFIX off of NAME.
35422# PREFIX and SUFFIX must not contain globbing or regex special
35423# characters, hashes, percent signs, but SUFFIX may contain a leading
35424# dot (in which case that matches only a dot).
35425func_stripname ()
35426{
35427 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35428 # positional parameters, so assign one to ordinary parameter first.
35429 func_stripname_result=${3}
35430 func_stripname_result=${func_stripname_result#"${1}"}
35431 func_stripname_result=${func_stripname_result%"${2}"}
35432}
35433
35434# func_opt_split
35435func_opt_split ()
35436{
35437 func_opt_split_opt=${1%%=*}
35438 func_opt_split_arg=${1#*=}
35439}
35440
35441# func_lo2o object
35442func_lo2o ()
35443{
35444 case ${1} in
35445 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35446 *) func_lo2o_result=${1} ;;
35447 esac
35448}
35449
35450# func_xform libobj-or-source
35451func_xform ()
35452{
35453 func_xform_result=${1%.*}.lo
35454}
35455
35456# func_arith arithmetic-term...
35457func_arith ()
35458{
35459 func_arith_result=$(( $* ))
35460}
35461
35462# func_len string
35463# STRING may not start with a hyphen.
35464func_len ()
35465{
35466 func_len_result=${#1}
35467}
35468
35469_LT_EOF
35470 ;;
35471 *) # Bourne compatible functions.
35472 cat << \_LT_EOF >> "$cfgfile"
35473
35474# func_dirname file append nondir_replacement
35475# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35476# otherwise set result to NONDIR_REPLACEMENT.
35477func_dirname ()
35478{
35479 # Extract subdirectory from the argument.
35480 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35481 if test "X$func_dirname_result" = "X${1}"; then
35482 func_dirname_result="${3}"
35483 else
35484 func_dirname_result="$func_dirname_result${2}"
35485 fi
35486}
35487
35488# func_basename file
35489func_basename ()
35490{
35491 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35492}
35493
35494
35495# func_stripname prefix suffix name
35496# strip PREFIX and SUFFIX off of NAME.
35497# PREFIX and SUFFIX must not contain globbing or regex special
35498# characters, hashes, percent signs, but SUFFIX may contain a leading
35499# dot (in which case that matches only a dot).
35500# func_strip_suffix prefix name
35501func_stripname ()
35502{
35503 case ${2} in
35504 .*) func_stripname_result=`$ECHO "X${3}" \
35505 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35506 *) func_stripname_result=`$ECHO "X${3}" \
35507 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35508 esac
35509}
35510
35511# sed scripts:
35512my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35513my_sed_long_arg='1s/^-[^=]*=//'
35514
35515# func_opt_split
35516func_opt_split ()
35517{
35518 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35519 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35520}
35521
35522# func_lo2o object
35523func_lo2o ()
35524{
35525 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35526}
35527
35528# func_xform libobj-or-source
35529func_xform ()
35530{
35531 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35532}
35533
35534# func_arith arithmetic-term...
35535func_arith ()
35536{
35537 func_arith_result=`expr "$@"`
35538}
35539
35540# func_len string
35541# STRING may not start with a hyphen.
35542func_len ()
35543{
35544 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35545}
35546
35547_LT_EOF
35548esac
35549
35550case $lt_shell_append in
35551 yes)
35552 cat << \_LT_EOF >> "$cfgfile"
35553
35554# func_append var value
35555# Append VALUE to the end of shell variable VAR.
35556func_append ()
35557{
35558 eval "$1+=\$2"
35559}
35560_LT_EOF
35561 ;;
35562 *)
35563 cat << \_LT_EOF >> "$cfgfile"
35564
35565# func_append var value
35566# Append VALUE to the end of shell variable VAR.
35567func_append ()
35568{
35569 eval "$1=\$$1\$2"
35570}
35571
35572_LT_EOF
35573 ;;
35574 esac
35575
35576
35577 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35578 || (rm -f "$cfgfile"; exit 1)
35579
35580 mv -f "$cfgfile" "$ofile" ||
35581 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35582 chmod +x "$ofile"
35583
35584
35585 cat <<_LT_EOF >> "$ofile"
35586
35587# ### BEGIN LIBTOOL TAG CONFIG: CXX
35588
35589# The linker used to build libraries.
35590LD=$lt_LD_CXX
35591
35592# Commands used to build an old-style archive.
35593old_archive_cmds=$lt_old_archive_cmds_CXX
35594
35595# A language specific compiler.
35596CC=$lt_compiler_CXX
35597
35598# Is the compiler the GNU compiler?
35599with_gcc=$GCC_CXX
35600
35601# Compiler flag to turn off builtin functions.
35602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35603
35604# How to pass a linker flag through the compiler.
35605wl=$lt_lt_prog_compiler_wl_CXX
35606
35607# Additional compiler flags for building library objects.
35608pic_flag=$lt_lt_prog_compiler_pic_CXX
35609
35610# Compiler flag to prevent dynamic linking.
35611link_static_flag=$lt_lt_prog_compiler_static_CXX
35612
35613# Does compiler simultaneously support -c and -o options?
35614compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35615
35616# Whether or not to add -lc for building shared libraries.
35617build_libtool_need_lc=$archive_cmds_need_lc_CXX
35618
35619# Whether or not to disallow shared libs when runtime libs are static.
35620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35621
35622# Compiler flag to allow reflexive dlopens.
35623export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35624
35625# Compiler flag to generate shared objects directly from archives.
35626whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35627
35628# Whether the compiler copes with passing no objects directly.
35629compiler_needs_object=$lt_compiler_needs_object_CXX
35630
35631# Create an old-style archive from a shared archive.
35632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35633
35634# Create a temporary old-style archive to link instead of a shared archive.
35635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35636
35637# Commands used to build a shared archive.
35638archive_cmds=$lt_archive_cmds_CXX
35639archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35640
35641# Commands used to build a loadable module if different from building
35642# a shared archive.
35643module_cmds=$lt_module_cmds_CXX
35644module_expsym_cmds=$lt_module_expsym_cmds_CXX
35645
35646# Whether we are building with GNU ld or not.
35647with_gnu_ld=$lt_with_gnu_ld_CXX
35648
35649# Flag that allows shared libraries with undefined symbols to be built.
35650allow_undefined_flag=$lt_allow_undefined_flag_CXX
35651
35652# Flag that enforces no undefined symbols.
35653no_undefined_flag=$lt_no_undefined_flag_CXX
35654
35655# Flag to hardcode \$libdir into a binary during linking.
35656# This must work even if \$libdir does not exist
35657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35658
35659# If ld is used when linking, flag to hardcode \$libdir into a binary
35660# during linking. This must work even if \$libdir does not exist.
35661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35662
35663# Whether we need a single "-rpath" flag with a separated argument.
35664hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35665
35666# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35667# DIR into the resulting binary.
35668hardcode_direct=$hardcode_direct_CXX
35669
35670# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35671# DIR into the resulting binary and the resulting library dependency is
35672# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35673# library is relocated.
35674hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35675
35676# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35677# into the resulting binary.
35678hardcode_minus_L=$hardcode_minus_L_CXX
35679
35680# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35681# into the resulting binary.
35682hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35683
35684# Set to "yes" if building a shared library automatically hardcodes DIR
35685# into the library and all subsequent libraries and executables linked
35686# against it.
35687hardcode_automatic=$hardcode_automatic_CXX
35688
35689# Set to yes if linker adds runtime paths of dependent libraries
35690# to runtime path list.
35691inherit_rpath=$inherit_rpath_CXX
35692
35693# Whether libtool must link a program against all its dependency libraries.
35694link_all_deplibs=$link_all_deplibs_CXX
35695
35696# Fix the shell variable \$srcfile for the compiler.
35697fix_srcfile_path=$lt_fix_srcfile_path_CXX
35698
35699# Set to "yes" if exported symbols are required.
35700always_export_symbols=$always_export_symbols_CXX
35701
35702# The commands to list exported symbols.
35703export_symbols_cmds=$lt_export_symbols_cmds_CXX
35704
35705# Symbols that should not be listed in the preloaded symbols.
35706exclude_expsyms=$lt_exclude_expsyms_CXX
35707
35708# Symbols that must always be exported.
35709include_expsyms=$lt_include_expsyms_CXX
35710
35711# Commands necessary for linking programs (against libraries) with templates.
35712prelink_cmds=$lt_prelink_cmds_CXX
35713
35714# Specify filename containing input files.
35715file_list_spec=$lt_file_list_spec_CXX
35716
35717# How to hardcode a shared library path into an executable.
35718hardcode_action=$hardcode_action_CXX
35719
35720# The directories searched by this compiler when creating a shared library.
35721compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35722
35723# Dependencies to place before and after the objects being linked to
35724# create a shared library.
35725predep_objects=$lt_predep_objects_CXX
35726postdep_objects=$lt_postdep_objects_CXX
35727predeps=$lt_predeps_CXX
35728postdeps=$lt_postdeps_CXX
35729
35730# The library search path used internally by the compiler when linking
35731# a shared library.
35732compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35733
35734# ### END LIBTOOL TAG CONFIG: CXX
35735_LT_EOF
35736
35737 ;;
cristy3ed852e2009-09-05 21:47:34 +000035738 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35739 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35740 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35741 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35742 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35743 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35744
35745 esac
35746done # for ac_tag
35747
35748
cristy8b350f62009-11-15 23:12:43 +000035749as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035750_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035751ac_clean_files=$ac_clean_files_save
35752
35753test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000035754 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035755
35756
35757# configure is writing to config.log, and then calls config.status.
35758# config.status does its own redirection, appending to config.log.
35759# Unfortunately, on DOS this fails, as config.log is still kept open
35760# by configure, so config.status won't be able to write to it; its
35761# output is simply discarded. So we exec the FD to /dev/null,
35762# effectively closing config.log, so it can be properly (re)opened and
35763# appended to by config.status. When coming back to configure, we
35764# need to make the FD available again.
35765if test "$no_create" != yes; then
35766 ac_cs_success=:
35767 ac_config_status_args=
35768 test "$silent" = yes &&
35769 ac_config_status_args="$ac_config_status_args --quiet"
35770 exec 5>/dev/null
35771 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35772 exec 5>>config.log
35773 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35774 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000035775 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035776fi
35777if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035779$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35780fi
35781
35782
35783rm -f magick-version
35784
cristy430a7312010-01-21 20:44:04 +000035785result_dejavu_font_dir='none'
35786if test "${dejavu_font_dir}x" != 'x'; then
35787 result_dejavu_font_dir=$dejavu_font_dir
35788fi
35789
cristy3ed852e2009-09-05 21:47:34 +000035790result_ghostscript_font_dir='none'
35791if test "${ghostscript_font_dir}x" != 'x'; then
35792 result_ghostscript_font_dir=$ghostscript_font_dir
35793fi
35794
35795result_windows_font_dir='none'
35796if test "${windows_font_dir}x" != 'x'; then
35797 result_windows_font_dir=${windows_font_dir}
35798fi
35799
cristy8b350f62009-11-15 23:12:43 +000035800{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035801ImageMagick is configured as follows. Please verify that this configuration
35802matches your expectations.
35803
35804Host system type: $host
35805Build system type: $build
35806
35807 Option Value
35808-------------------------------------------------------------------------------
35809Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35810Static libraries --enable-static=$enable_static $libtool_build_static_libs
35811Module support --with-modules=$with_modules $with_modules
35812GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35813Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35814High Dynamic Range Imagery
35815 --enable-hdri=$enable_hdri $enable_hdri
35816
35817Delegate Configuration:
35818BZLIB --with-bzlib=$with_bzlib $have_bzlib
35819Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035820Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035821DJVU --with-djvu=$with_djvu $have_djvu
35822DPS --with-dps=$with_dps $have_dps
35823FFTW --with-fftw=$with_fftw $have_fftw
35824FlashPIX --with-fpx=$with_fpx $have_fpx
35825FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35826FreeType --with-freetype=$with_freetype $have_freetype
35827GhostPCL None $PCLDelegate ($PCLVersion)
35828GhostXPS None $XPSDelegate ($XPSVersion)
35829Ghostscript None $PSDelegate ($GSVersion)
35830Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35831Ghostscript lib --with-gslib=$with_gslib $have_gslib
35832Graphviz --with-gvc=$with_gvc $have_gvc
35833JBIG --with-jbig=$with_jbig $have_jbig
35834JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35835JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035836LCMS v1 --with-lcms=$with_lcms $have_lcms
35837LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035838LQR --with-lqr=$with_lqr $have_lqr
35839Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35840OpenEXR --with-openexr=$with_openexr $have_openexr
35841PERL --with-perl=$with_perl $have_perl
35842PNG --with-png=$with_png $have_png
35843RSVG --with-rsvg=$with_rsvg $have_rsvg
35844TIFF --with-tiff=$with_tiff $have_tiff
35845Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35846WMF --with-wmf=$with_wmf $have_wmf
35847X11 --with-x=$with_x $have_x
35848XML --with-xml=$with_xml $have_xml
35849ZLIB --with-zlib=$with_zlib $have_zlib
35850
35851X11 Configuration:
35852 X_CFLAGS = $X_CFLAGS
35853 X_PRE_LIBS = $X_PRE_LIBS
35854 X_LIBS = $X_LIBS
35855 X_EXTRA_LIBS = $X_EXTRA_LIBS
35856
35857Options used to compile and link:
35858 PREFIX = $PREFIX_DIR
35859 EXEC-PREFIX = $EXEC_PREFIX_DIR
35860 VERSION = $PACKAGE_VERSION
35861 CC = $CC
35862 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035863 CPPFLAGS = $MAGICK_CPPFLAGS
35864 PCFLAGS = $MAGICK_PCFLAGS
35865 DEFS = $DEFS
35866 LDFLAGS = $LDFLAGS
35867 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35868 LIBS = $MAGICK_LIBS
35869 CXX = $CXX
35870 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035871 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035872" >&5
35873$as_echo "
35874ImageMagick is configured as follows. Please verify that this configuration
35875matches your expectations.
35876
35877Host system type: $host
35878Build system type: $build
35879
35880 Option Value
35881-------------------------------------------------------------------------------
35882Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35883Static libraries --enable-static=$enable_static $libtool_build_static_libs
35884Module support --with-modules=$with_modules $with_modules
35885GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35886Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35887High Dynamic Range Imagery
35888 --enable-hdri=$enable_hdri $enable_hdri
35889
35890Delegate Configuration:
35891BZLIB --with-bzlib=$with_bzlib $have_bzlib
35892Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035893Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035894DJVU --with-djvu=$with_djvu $have_djvu
35895DPS --with-dps=$with_dps $have_dps
35896FFTW --with-fftw=$with_fftw $have_fftw
35897FlashPIX --with-fpx=$with_fpx $have_fpx
35898FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35899FreeType --with-freetype=$with_freetype $have_freetype
35900GhostPCL None $PCLDelegate ($PCLVersion)
35901GhostXPS None $XPSDelegate ($XPSVersion)
35902Ghostscript None $PSDelegate ($GSVersion)
35903Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35904Ghostscript lib --with-gslib=$with_gslib $have_gslib
35905Graphviz --with-gvc=$with_gvc $have_gvc
35906JBIG --with-jbig=$with_jbig $have_jbig
35907JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35908JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035909LCMS v1 --with-lcms=$with_lcms $have_lcms
35910LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035911LQR --with-lqr=$with_lqr $have_lqr
35912Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35913OpenEXR --with-openexr=$with_openexr $have_openexr
35914PERL --with-perl=$with_perl $have_perl
35915PNG --with-png=$with_png $have_png
35916RSVG --with-rsvg=$with_rsvg $have_rsvg
35917TIFF --with-tiff=$with_tiff $have_tiff
35918Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35919WMF --with-wmf=$with_wmf $have_wmf
35920X11 --with-x=$with_x $have_x
35921XML --with-xml=$with_xml $have_xml
35922ZLIB --with-zlib=$with_zlib $have_zlib
35923
35924X11 Configuration:
35925 X_CFLAGS = $X_CFLAGS
35926 X_PRE_LIBS = $X_PRE_LIBS
35927 X_LIBS = $X_LIBS
35928 X_EXTRA_LIBS = $X_EXTRA_LIBS
35929
35930Options used to compile and link:
35931 PREFIX = $PREFIX_DIR
35932 EXEC-PREFIX = $EXEC_PREFIX_DIR
35933 VERSION = $PACKAGE_VERSION
35934 CC = $CC
35935 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035936 CPPFLAGS = $MAGICK_CPPFLAGS
35937 PCFLAGS = $MAGICK_PCFLAGS
35938 DEFS = $DEFS
35939 LDFLAGS = $LDFLAGS
35940 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35941 LIBS = $MAGICK_LIBS
35942 CXX = $CXX
35943 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035944 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035945" >&6; }